Resources | Subject Notes | Computer Science
Ethernet is the most common networking technology used in local area networks (LANs). It provides a reliable and relatively high-speed method for devices to communicate within a limited geographical area. This section will focus on the principles of Ethernet and how it handles collisions.
Ethernet is defined by a set of standards, with the most prevalent being IEEE 802.3. These standards specify the physical and data link layers protocols.
Ethernet utilizes various types of cabling to transmit data. Common types include:
At the data link layer, Ethernet uses MAC (Media Access Control) addresses to uniquely identify devices on the network. Data is transmitted in the form of frames.
A typical Ethernet frame contains:
Early Ethernet implementations used CSMA/CD to manage access to the network medium. This method is crucial for understanding collision detection and avoidance.
CSMA stands for Carrier Sense Multiple Access. Devices listen to the network to see if it's currently in use. If the medium is idle, a device can transmit.
CD stands for Collision Detection. If two devices transmit simultaneously, a collision occurs. Both devices stop transmitting and detect the collision.
During transmission, a device continuously monitors the network medium. If the device detects that the signal strength is significantly lower than what it's transmitting, it indicates a collision has occurred. This is because the device is receiving a signal that is not its own.
The amount of time a device waits before retransmitting after a collision is determined by the collision window. This window is a random value chosen from a range of possible values.
Modern Ethernet networks primarily use switches instead of hubs. Switches learn the MAC addresses of devices connected to their ports and forward data only to the intended recipient, reducing the likelihood of collisions and improving network efficiency. Switches operate in a full-duplex mode, allowing simultaneous transmission and reception.
Feature | Description |
---|---|
Access Method | Carrier Sense Multiple Access |
Collision Detection | Detects collisions during transmission |
Collision Handling | Stop transmitting, wait randomly, retransmit |
Medium Access | Devices listen before transmitting |