CN Lab Manual

Table of Contents

    CN Lab Manual

    We’d like to inform you that the study material on our website will be updated as soon as we receive the latest content. Our team is continuously working to bring the best and most reliable resources for students.

    Thank you for your patience and support — stay tuned for regular updates!

    Practical 01

    Aim: Introduction to data Transmission in network.

    Exercise:

    1. Write a program to convert character into binary and binary digits into character.
    # Convert string to binary
    string_input = input("Enter a string: ")
    binary_output = ' '.join(format(ord(char), '08b') for char in string_input)
    print("Binary value:", binary_output)
     
    # Convert binary to string
    binary_input = input("Enter binary (separate each 8-bit by space): ")
    string_output = ''.join(chr(int(b, 2)) for b in binary_input.split())
    print("String:", string_output)
     

    Conclusion: This experiment shows how characters are converted to binary and back, which is the basic principle of data transmission in networks.


    Practical 02

    Aim: Study of networking devices

    Exercise:

    1. Define topology & list names of different topologies.

      • A network topology is the arrangement of devices and connections in a network. It defines how devices communicate and impacts performance and reliability. Common topologies include: Bus, Star, Ring, Mesh, Tree, and Hybrid.
    2. List out different kinds of addresses at layers with example.

    Form of dataLayer at addressName of addressExample
    BitsPhysicalNot AvailableNot Available
    FramesData LinkMAC Address00:1A:2B:3C:4D:5E
    PacketsNetworkIP Address127.0.0.1
    SegmentsTransportPort Number80, 5500, 443
    MessagesApplicationURLwww.google.com
    1. What does RJ45 stand for?

      • RJ45 stands for Registered Jack 45. It is a standard connector used for Ethernet cables to connect computers and networking devices.
    2. Define mapping of:

      • ARP: Address Resolution Protocol; maps IP address → MAC address
      • RARP: Reverse Address Resolution Protocol; maps MAC address → IP address
    3. Difference between HUB and SWITCH?

    FeatureHubSwitch
    Device TypeNetworking deviceNetworking device
    LayerOperates at Layer 1 (Physical Layer)Operates at Layer 2 (Data Link Layer)
    FunctionBroadcasts data to all portsSends data only to specific destination port
    Data TransferHalf-duplex (data flows one way at a time)Full-duplex (simultaneous send & receive)
    IntelligenceNo filtering or learning capabilityYes—Learns MAC addresses and makes decisions
    Speed & EfficiencySlower, more collisionsFaster, fewer or no collisions
    SecurityLow (data sent to all devices)Higher (data sent only to the right device)
    Example Use CaseSmall, outdated networksModern LANs, offices, enterprises
    CostCheaperMore expensive

    Conclusion: This experiment helps understand basic networking devices, their functions, and addressing, which are essential for network communication.


    Practical 03

    Aim: To study various networking commands

    Exercise:

    1. Why we are using ping command?

      • The ping command is used to test the connectivity between two network devices. It checks whether a device (like a computer or server) is reachable over the network and measures the round-trip time for messages sent.
    2. Explain arp command.

      • The arp (Address Resolution Protocol) command is used to view and manage the ARP table on a device. It shows the mapping between IP addresses and MAC addresses, helping in resolving network layer addresses to link layer addresses.

    Conclusion: This experiment helps understand basic networking commands, their purpose, and how they assist in network troubleshooting and device communication.


    Practical 04


    Practical 05

    Aim: Introduction to different types of wired transmission media

    Exercise:

    1. Compare different types of light sources used in optical fiber.
    FeatureLED (Light Emitting Diode)Laser Diode
    WavelengthBroad range (850–1300 nm), may cause signal dispersion over long distancesNarrow range (1300–1550 nm), less signal loss, ideal for long distances
    Power OutputLow, suitable for short-distance communication like LANsHigh, suitable for long-distance communication like WANs or internet backbones
    BandwidthLimited bandwidth, restricts data transmission speedHigh bandwidth, supports high-speed data transmission
    Cost & SizeCheaper, easy to manufacture, larger in sizeExpensive, compact, requires precise alignment
    Applications & EfficiencyUsed in short-distance, low-speed communication; moderate efficiencyUsed in long-distance, high-speed networks; high efficiency and minimal loss
    1. List out different types of wired media used in computer lab with their specifications.

      • Twisted Pair Cable (UTP/STP): Consists of pairs of insulated copper wires twisted together to reduce interference. Used in LANs. Categories include Cat5e and Cat6. Maximum distance ~100m, speed up to 1 Gbps (Cat5e) and 10 Gbps (Cat6).

      • Coaxial Cable: Single copper conductor with insulating layer, metal shield, and outer insulation. Used in older networks and cable TV. Moderate bandwidth, distance up to 500m, resistant to interference.

      • Fiber Optic Cable: Uses glass or plastic fibers to transmit data as light pulses. Supports very high speeds (up to 100 Gbps), long distances (several kilometers), and is immune to electromagnetic interference. Used in backbone networks.

      • Shielded Twisted Pair (STP): Twisted pair cable with extra shielding to protect against electromagnetic interference. Slightly more expensive than UTP, used in industrial environments.

      • Ethernet Cable (Cat5e / Cat6 / Cat6a): Standard cable for LAN connections, supports high-speed data transmission. Cat5e: up to 1 Gbps, Cat6: up to 10 Gbps for short distances. Easy to install and widely used in labs.

    2. Give difference between following:

    (A) Twisted Pair Cable and Coaxial Cable

    FeatureTwisted Pair CableCoaxial Cable
    StructurePairs of insulated copper wires twisted togetherCentral conductor with insulating layer and metallic shield
    InterferenceReduces interference through twistingReduces interference using shielding
    CostGenerally cheaperMore expensive
    FlexibilityMore flexible and easier to installLess flexible, especially thicker types
    ApplicationEthernet LANs, telephone linesCable TV, broadband, older LANs

    (B) Twisted Pair Cable and Fiber Optic Cable

    FeatureTwisted Pair CableFiber Optic Cable
    MediumCopper wiresGlass or plastic strands
    SignalElectrical impulsesLight pulses
    InterferenceSusceptible to electromagnetic interferenceImmune to EMI/RFI
    BandwidthLimited bandwidthExtremely high bandwidth
    ApplicationShort-distance communication (LANs)Long-distance communication, high-speed networks

    (C) Fiber Optic Cable and Coaxial Cable

    FeatureFiber Optic CableCoaxial Cable
    MediumGlass or plastic strandsCopper conductor
    SignalLight pulsesElectrical signals
    BandwidthExtremely highLower
    DistanceVery long (km to hundreds of km)Shorter (hundreds of meters to few km)
    SecurityMore secure, difficult to tapLess secure, easier to tap

    (D) Wired Communication and Wireless Communication

    FeatureWired CommunicationWireless Communication
    MediumPhysical cables (copper, fiber optic)Air/space (electromagnetic waves)
    MobilityLimited mobility, requires physical connectionHigh mobility, no physical connection needed
    InstallationComplex, requires cable routingSimpler, no physical wiring needed
    ReliabilityMore reliable, less prone to interferenceCan be less reliable, affected by interference
    ApplicationsLANs, telephone, cable TV, fiber internetWi-Fi, Bluetooth, cellular, satellite

    Conclusion: This experiment helps understand different types of wired transmission media, their characteristics, applications, and the key differences between various cables and communication methods, which are essential for designing and maintaining efficient networks.


    Made By SOU Student for SOU Students