§ — — Data Communications and Networking
Ethernet is the most common LAN technology. Switches use Ethernet frame information to forward data efficiently between devices on the same local network.
An Ethernet frame contains control information and the data being delivered. Important frame fields include the destination MAC address, source MAC address, type/length information, payload, and error-checking field.
Ethernet uses the Frame Check Sequence (FCS) to help detect damaged frames. If a frame fails the check, it is discarded.
A MAC address is a Layer 2 address assigned to a network interface. It is commonly written as 12 hexadecimal digits, often grouped in pairs.
Example:
00-1A-2B-3C-4D-5E
The first part of a MAC address identifies the organization that assigned the address, while the remaining part identifies the specific interface value assigned by that organization.
MAC addresses are used for local network delivery. They do not replace IP addresses; instead, they work with IP addresses during communication.
| Address Type | Purpose |
|---|---|
| Unicast | Identifies one receiving interface. |
| Broadcast | Sent to all devices in the local broadcast domain. |
| Multicast | Sent to a selected group of devices. |
An Ethernet broadcast destination MAC address is:
FF-FF-FF-FF-FF-FF
A switch learns MAC addresses by reading the source MAC address of incoming frames. It records which MAC address is reachable through which switch port.
When a switch receives a frame:
Switches may use different forwarding methods.
| Method | Description |
|---|---|
| Store-and-forward | Receives the full frame and checks it before forwarding. |
| Cut-through | Begins forwarding after reading enough of the frame to identify the destination. |
Store-and-forward provides better error checking. Cut-through can reduce latency, but it may forward damaged frames.
Switch interfaces can operate at different speeds, such as 100 Mbps, 1 Gbps, or higher. Modern devices usually negotiate speed and duplex automatically.
Auto-MDIX allows a switch port to adjust automatically for straight-through or crossover cable requirements. This simplifies cabling in many modern networks.
ProReviewer — locked
Drills, code labs, and full solutions.
ProReviewer — locked
Drills, code labs, and full solutions.
ProReviewer — locked
Drills, code labs, and full solutions.
Done with this module? Track it — your progress shows on the subject list.
Up next
Network Layer→←Previous: Data Link Layer