ScholarQuill logoScholarQuillUniversity Notes
  • Notes
  • Past Papers
  • Blogs
  • Todo
Login
ScholarQuill logoScholarQuillUniversity Notes
Login
NotesPast PapersBlogsTodo
More
SubjectsDiscussionCGPA CalculatorGPA CalculatorStudent PortalCourse Outline
About
About usPrivacy PolicyReportContact
Notes
Past Papers
Blogs
Todo
Analytics
    Current Subject
    🧩
    Computer Networks
    CSI-417
    Progress0 / 18 topics
    Topics
    1. Analogue and Digital Transmission2. Noise3. Media4. Encoding5. Asynchronous and Synchronous Transmission6. Protocol Design Issues7. Network System Architectures (OSI, TCP/IP)8. Error Control9. Flow Control10. Data Link Protocols (HDLC, PPP)11. Local Area Networks and MAC Layer Protocols (Ethernet, Token Ring)12. Multiplexing13. Switched and IP Networks14. Inter-networking15. Routing16. Bridging17. Transport Layer Protocols (TCP/IP, UDP)18. Network Security Issues
    CSI-417›Local Area Networks and MAC Layer Protocols (Ethernet, Token Ring)
    Computer NetworksTopic 11 of 18

    Local Area Networks and MAC Layer Protocols (Ethernet, Token Ring)

    7 minread
    1,271words
    Intermediatelevel

    Local Area Networks (LANs) and MAC Layer Protocols (Ethernet, Token Ring)

    A Local Area Network (LAN) is a network of computers and devices connected within a limited geographical area, such as a building, office, or campus. LANs are typically characterized by high data transfer rates, low latency, and the use of private communication infrastructure (wires, wireless signals, etc.).

    The MAC (Medium Access Control) layer is a sub-layer of the Data Link Layer responsible for controlling access to the shared communication medium (physical channel). It defines the protocols and rules for how devices on the same network can share and access the physical transmission medium to avoid data collisions and ensure efficient communication.

    Two popular MAC layer protocols used in LANs are Ethernet and Token Ring. These protocols determine how data is transmitted across the network and how devices access the shared medium.


    1. Ethernet

    Ethernet is the most widely used LAN technology. It defines both the physical layer (the hardware used to transmit data) and the data link layer (how data is framed and transmitted). Ethernet has evolved over time, from the early coaxial cable versions to modern Ethernet over twisted pair cables (e.g., Cat 5e, Cat 6) and fiber-optic cables.

    Key Features of Ethernet:

    • Frame Structure: Ethernet uses frames to transmit data. Each Ethernet frame contains several fields:

      1. Preamble: Used for synchronization between devices.
      2. Destination MAC Address: Identifies the recipient device's network interface card (NIC).
      3. Source MAC Address: Identifies the sender's NIC.
      4. EtherType: Specifies the type of data contained in the payload (e.g., IPv4, IPv6).
      5. Payload: The actual data being transmitted.
      6. CRC (Cyclic Redundancy Check): Used for error detection.
    • MAC Addressing: Each device on an Ethernet network has a unique MAC address assigned to its network interface card (NIC). The MAC address is used to identify the source and destination of data frames on the local network.

    • Ethernet Standards: Over time, Ethernet has evolved in terms of speed, medium, and capabilities. Some notable versions include:

      • 10Base-T: 10 Mbps, twisted-pair cables.
      • 100Base-T: 100 Mbps, twisted-pair cables.
      • 1000Base-T (Gigabit Ethernet): 1 Gbps, twisted-pair cables.
      • 10GBase-T: 10 Gbps, twisted-pair cables.
      • Fiber Ethernet: Ethernet over fiber-optic cables for high-speed long-distance communication.
    • Collision Detection (CSMA/CD): Ethernet originally used the Carrier Sense Multiple Access with Collision Detection (CSMA/CD) protocol to control access to the shared medium. In CSMA/CD:

      1. Devices listen to the channel (Carrier Sense).
      2. If the channel is free, the device begins transmitting.
      3. If another device transmits simultaneously (a collision), both devices stop and wait for a random backoff time before retransmitting.

      In modern Ethernet networks (especially with full-duplex communication), CSMA/CD is no longer needed, as collisions are eliminated by switching technologies (i.e., switches instead of hubs).

    • Full-Duplex Ethernet: In modern Ethernet, full-duplex communication allows devices to send and receive data simultaneously without collisions, significantly improving network performance.

    Advantages of Ethernet:

    • Widespread Adoption: Ethernet is the most common LAN technology and is supported by virtually all networking hardware.
    • Scalability: Ethernet can scale from small office networks to large enterprise networks.
    • High-Speed Support: Modern Ethernet standards offer very high data transfer speeds, up to 100 Gbps (Ethernet over fiber).
    • Cost-Effective: Ethernet hardware is inexpensive and widely available.

    Disadvantages of Ethernet:

    • Collision Domain: In traditional Ethernet using hubs, collisions could occur, affecting performance. However, this has been largely mitigated with the use of switches.
    • Limited Range: The maximum transmission distance is limited by the medium (e.g., 100 meters for Cat 5e cables).
    • Security: Ethernet networks can be vulnerable to physical security issues if not properly segmented or secured.

    2. Token Ring

    Token Ring is another LAN technology, originally developed by IBM. Unlike Ethernet, which uses a CSMA/CD method to manage access to the shared medium, Token Ring uses a token-passing method for medium access.

    Key Features of Token Ring:

    • Token Passing: In Token Ring networks, a special frame called a token circulates around the network. Only the device holding the token can transmit data. When a device wants to send data, it must first capture the token. Once the data transmission is complete, the token is passed to the next device in the ring.

    • Physical Topology: Token Ring uses a physical ring topology, where devices are connected in a closed loop. Data travels in one direction around the ring, passing from device to device until it reaches the intended recipient.

    • MAC Frame Structure: A typical Token Ring frame consists of the following components:

      • Start Delimiter: Marks the beginning of the frame.
      • Access Control: Identifies whether the frame is being sent or if it's a token.
      • Destination Address: Specifies the recipient device.
      • Data: The actual data being transmitted.
      • Frame Check Sequence (FCS): Provides error detection.
      • End Delimiter: Marks the end of the frame.
    • Access Control: Token Ring's access control method ensures that only one device transmits at a time, preventing collisions. The token itself contains the necessary control information and is constantly circulating through the network.

    • Data Transfer Speed: Token Ring networks traditionally operate at speeds of 4 Mbps or 16 Mbps. However, modern implementations could go higher.

    • Deterministic Access: Token Ring provides deterministic access, meaning that every device knows when it will get the opportunity to transmit, based on the passage of the token.

    Advantages of Token Ring:

    • Collision-Free: The token-passing method ensures that only one device can transmit at a time, preventing data collisions.
    • Predictable Access: Since only one device can transmit at any given time, the network provides deterministic behavior, which is important for certain applications like voice and video transmission.
    • Good for High-traffic Networks: Token Ring works well in networks with heavy traffic, where collisions would reduce performance in Ethernet.

    Disadvantages of Token Ring:

    • Slower Speeds: Token Ring networks typically operate at slower speeds than Ethernet (4 Mbps to 16 Mbps, with limited scalability).
    • Complexity: The physical ring topology and token-passing method require additional hardware and setup compared to Ethernet, which can make it more complex and costly.
    • Limited Adoption: Token Ring was largely overshadowed by Ethernet and has seen decreased adoption over the years.

    Comparison: Ethernet vs. Token Ring

    Feature Ethernet Token Ring
    Access Control CSMA/CD (Carrier Sense, Collision Detection) Token Passing (only token holder can transmit)
    Topology Bus or Star (with switches) Ring (closed loop)
    Data Rate 10 Mbps to 100 Gbps (modern Ethernet) Typically 4 Mbps or 16 Mbps
    Collision Handling Collisions are detected and retransmitted No collisions, token prevents simultaneous transmission
    Performance High-speed, scalable with switches Good for high-traffic environments with predictable access
    Network Fault Tolerance Vulnerable to network disruptions (due to collision) Less fault-tolerant (failure in the ring can disrupt communication)
    Cost Inexpensive, widespread adoption More expensive, less commonly used
    Usage Dominant in modern LANs Legacy technology, rarely used today
    Flexibility Flexible, supports various topologies Limited to ring topology

    Conclusion

    Ethernet and Token Ring are both LAN technologies, but they use different approaches for managing access to the shared medium. Ethernet has become the dominant technology due to its simplicity, scalability, high speed, and widespread adoption. It is highly suitable for modern networks that require high data transfer rates and flexibility.

    Token Ring, while once a strong competitor, is less commonly used today. However, its deterministic token-passing method still offers certain advantages in specific scenarios, such as high-traffic networks requiring predictable access patterns.

    In modern networks, Ethernet is far more popular due to its speed, cost-effectiveness, and compatibility with a wide range of devices and applications.

    Previous topic 10
    Data Link Protocols (HDLC, PPP)
    Next topic 12
    Multiplexing

    Past Papers

    Open this section to load past papers

    Click on Show Past Papers to see past papers.
    On This Page
      Reading Stats
      Est. reading time7 min
      Word count1,271
      Code examples0
      DifficultyIntermediate