Search This Blog

Wednesday, 29 January 2025

Experiment -54 :- Understanding The Layout Of Computer Network

 AIM :- Understanding  The Layout Of Computer Network

Objective:

To create a basic LAN using multiple devices, understand network topology, configure IP addresses, and test connectivity.

Materials Needed:

  1. Devices:

    • At least two computers (can be laptops or desktops)
    • A router or switch
    • Ethernet cables (Cat5e or Cat6)
    • Optional: Wireless access point (if using Wi-Fi)
  2. Software:

    • Operating systems (Windows, Linux, or macOS)
    • Network monitoring tools (e.g., Wireshark, Ping, Traceroute)

Steps:

Step 1: Set Up the Physical Network

  1. Choose a Topology: Decide on a topology for your network. For simplicity, use a star topology.
  2. Connect Devices:
    • Connect each computer to the router or switch using Ethernet cables.
    • If using Wi-Fi, connect one computer via Ethernet and the others wirelessly.

Step 2: Configure IP Addresses

  1. Automatic Configuration:

    • Ensure the router has DHCP enabled (most routers do this by default).
    • Connect each device to the network and check if they receive an IP address automatically.
    • On Windows, use ipconfig in Command Prompt; on Linux/macOS, use ifconfig or ip a in the terminal.
  2. Manual Configuration (Optional):

    • Assign static IP addresses to each device. For example:
      • Computer 1: 192.168.1.2
      • Computer 2: 192.168.1.3
    • Set the subnet mask to 255.255.255.0 and the default gateway to the router's IP (e.g., 192.168.1.1).

Step 3: Test Connectivity

  1. Ping Test:

    • Open a command prompt or terminal on one computer.
    • Use the ping command to test connectivity to another device. For example, ping 192.168.1.3.
    • Observe the results. Successful replies indicate a working connection.
  2. Network Discovery:

    • On Windows, enable network discovery and see if you can find other devices on the network.
    • On Linux, use tools like nmap to scan the network for active devices.

Step 4: Monitor Network Traffic

  1. Install Wireshark:
    • Download and install Wireshark on one of the computers.
    • Start capturing packets on the network interface connected to the LAN.
    • Analyze the captured packets to understand the types of traffic (e.g., ARP requests, HTTP requests).

Step 5: Explore Network Services

  1. File Sharing:

    • Set up file sharing on one of the computers and try to access shared files from another computer.
    • On Windows, you can share a folder by right-clicking it and selecting "Share."
  2. Web Server (Optional):

    • Install a simple web server (like Apache or Nginx) on one computer.
    • Access the web server from another computer using the IP address (e.g., http://192.168.1.2).

Step 6: Troubleshooting

  1. Simulate Issues:

    • Disconnect a cable or disable Wi-Fi on one device and observe the effects.
    • Use the tracert command to see the path taken by packets to reach another device.
  2. Check Configuration:

    • Verify IP configurations and ensure devices are on the same subnet.
    • Check firewall settings that may block communication.

Conclusion

This experiment provides hands-on experience with setting up a basic computer network. You will learn about network topology, IP addressing, connectivity testing, and basic network services. By experimenting with different configurations and troubleshooting methods, you will gain a deeper understanding of how computer networks operate.

Tuesday, 21 January 2025

EXPERIMENT - 51 :- Managing Internet Cookies

 

Experiment: Managing Internet Cookies

Objective:

To enable, disable, view, and delete internet cookies in various web browsers.

Materials Needed:

  1. PC or Laptop (with internet access)
  2. Web Browsers (e.g., Google Chrome, Mozilla Firefox, Microsoft Edge)

Procedure




Step 1: Enable or Disable Cookies

Google Chrome
  1. Open Google Chrome:

    • Launch the Google Chrome browser.
  2. Access Settings:

    • Click on the three vertical dots (menu) in the upper right corner.
    • Select "Settings."
  3. Privacy and Security:

    • In the left sidebar, click on "Privacy and security."
    • Click on "Cookies and other site data."
  4. Enable or Disable Cookies:

    • To enable cookies, select "Allow all cookies."
    • To disable cookies, select "Block third-party cookies" or "Block all cookies."


  5. Close Settings:

    • Close the settings tab to save your changes.

Mozilla Firefox
  1. Open Mozilla Firefox:

    • Launch the Firefox browser.
  2. Access Options:

    • Click on the three horizontal lines (menu) in the upper right corner.
    • Select "Options" (or "Preferences" on macOS).
  3. Privacy & Security:

    • In the left sidebar, click on "Privacy & Security."
  4. Cookies and Site Data:

    • Under the "Cookies and Site Data" section, you can choose to enable or disable cookies:
      • To enable cookies, ensure "Accept cookies and site data from websites" is checked.
      • To disable cookies, uncheck this option.
  5. Close Options:

    • Close the options tab to save your changes.
Microsoft Edge
  1. Open Microsoft Edge:

    • Launch the Microsoft Edge browser.
  2. Access Settings:

    • Click on the three horizontal dots (menu) in the upper right corner.
    • Select "Settings."
  3. Privacy, Search, and Services:

    • In the left sidebar, click on "Privacy, search, and services."
  4. Cookies and Site Permissions:

    • Scroll down to the "Cookies and site permissions" section.
    • Click on "Manage and delete cookies and site data."
  5. Enable or Disable Cookies:

    • To enable cookies, ensure "Allow sites to save and read cookie data" is toggled on.
    • To disable cookies, toggle it off.
  6. Close Settings:

    • Close the settings tab to save your changes.

Step 2: View Cookies

Google Chrome
  1. Open Developer Tools:

    • Right-click on any webpage and select "Inspect" or press Ctrl + Shift + I (Windows) or Cmd + Option + I (Mac).
  2. Go to Application Tab:

    • In the Developer Tools panel, click on the "Application" tab.
  3. View Cookies:

    • In the left sidebar, expand the "Cookies" section and select the website you want to view cookies for.
    • You will see a list of cookies stored by that website.
Mozilla Firefox
  1. Open Developer Tools:

    • Right-click on any webpage and select "Inspect Element" or press Ctrl + Shift + I (Windows) or Cmd + Option + I (Mac).
  2. Go to Storage Tab:

    • In the Developer Tools panel, click on the "Storage" tab.
  3. View Cookies:

    • In the left sidebar, expand the "Cookies" section and select the website you want to view cookies for.
    • You will see a list of cookies stored by that website.
Microsoft Edge
  1. Open Developer Tools:

    • Right-click on any webpage and select "Inspect" or press Ctrl + Shift + I (Windows) or Cmd + Option + I (Mac).
  2. Go to Application Tab:

    • In the Developer Tools panel, click on the "Application" tab.
  3. View Cookies:

    • In the left sidebar, expand the "Cookies" section and select the website you want to view cookies for.
    • You will see a list of cookies stored by that website.

Step 3: Delete Cookies

Google Chrome
  1. Open Settings:

    • Click on the three vertical dots (menu) in the upper right corner.
    • Select "Settings."
  2. Privacy and Security:

    • Click on