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.
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.
Frame Structure: Ethernet uses frames to transmit data. Each Ethernet frame contains several fields:
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:
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:
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.
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.
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:
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.
| 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 |
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.
Open this section to load past papers