Data Communication Components · Computer Networks

SVGVector Architecture Diagram (SVG)
COMPUTER NETWORKS · Module 1★ High PriorityWired LAN (Ethernet)IT Sem 6 · Code 100602 · IEEE 802.3, frame format, 64-byte ruleMNEMONICFrame: Pre 7, SFD 1, Dst 6, Src 6, Type 2, Data 46-1500, FCS 4. Min 64 B, max 1518 B.LLC (802.2) sits on top, MAC (802.3) below. Hub = 1 collision domain, switch = 1 per port.Core BreakdownLLC and MACIEEE 802 splits the Data Link layer: LLC (802.2) gives one interface upward.MAC (802.3) handles framing, MAC addressing and access to the shared medium.FramePreamble 7 B sync, SFD 10101011, Dst and Src MAC 6 B each, Type/Length 2 B.Data 46-1500 B (padded), FCS 4 B CRC-32; bad frames are silently dropped.SizesMin frame = 6 + 6 + 2 + 46 + 4 = 64 B (512 bits); max = 1518 B, MTU 1500 B.Type/Length: up to 1500 = length, 0x0600 or more = type (0x0800 IPv4).64 byte ruleSend time must be at least 2 x propagation delay, to see a collision in time.10 Mbps x 51.2 us = 512 bits = 64 bytes (CSMA/CD).MAC address48 bit, 6 bytes, 12 hex digits; first 24 bits OUI (vendor), last 24 serial.Unicast, multicast (01:00:5E..) and broadcast FF:FF:FF:FF:FF:FF.DomainsHub: 1 collision + 1 broadcast domain. Switch: 1 collision domain per port.Only routers (and VLANs) split a broadcast domain.Diagram: Ethernet Frame and DomainsPre7SFD1Dst6Src6Type2Data46-1500FCS4Header = Dst + Src + Type = 14 B (bytes)HUB (Layer 1)1 collision domainSWITCH (Layer 2)1 domain per portData Link layer split:LLC 802.2: flow, error, multiplexingMAC 802.3: framing, address, accessMin = 6+6+2+46+4 = 64 BMax = 6+6+2+1500+4 = 1518 BTx time >= 2 x Tp (sees collision)⚠️ Exam Traps & Viva Favorites① Why minimum 64 bytes?Transmission must outlast the worst round trip(2 x Tp) so the sender still hears a collisionfrom the far end before it finishes sending.② Max frame vs MTU?Max frame is 1518 B (14 header + 1500 data +4 FCS), without preamble and SFD. The MTU, thepayload limit, is 1500 B.③ Hub vs switch?Hub (L1) repeats bits to all ports in one collisiondomain. Switch (L2) reads the MAC address, sends toone port and isolates each port.Tip: min 64 B = 6+6+2+46+4Master Revision Table(learn it row by row!)StandardName / IEEERateCableModeStandard EthernetIEEE 802.310 Mbps10Base5, 10Base2, 10Base-T (Cat 3)Half-duplex, CSMA/CDFast EthernetIEEE 802.3u100 Mbps100Base-TX (Cat 5), 100Base-FXFull-duplex, switchedGigabit EthernetIEEE 802.3z / ab1 Gbps1000Base-T (Cat 5e/6), SX/LX fibreFull-duplex, switched10G EthernetIEEE 802.3ae / an10 Gbps10GBase-T (Cat 6a), SR/LR fibreStrictly full-duplexMin / max frame64 B / 1518 BMTU 1500 BPreamble and SFD excludedCRC-32 FCSAddress48 bit MACOUI + serialBurned into NIC ROMBroadcast all onesQUICK FACTSEtherType: IPv4 0x0800, ARP 0x0806 · padding bytes 0x00 when data is under 46 BClassic Ethernet 2.5 km diameter: round trip 51.2 us gives 512 bits at 10 MbpsBit 0 of first byte: 0 unicast, 1 multicast · Bit 1: 0 global (OUI), 1 localVERIFIED★ Golden rule: a frame must outlast the roundtrip, hence 64 bytes minimum.

Wired LANs: IEEE 802.3 Ethernet


1. Overview and IEEE 802 Architecture

A Local Area Network (LAN) is a computer network that interconnects computers within a limited geographical area such as a residence, school, laboratory, university campus, or office building.

The IEEE 802 Committee split the OSI Data Link Layer into two distinct sublayers to support multiple physical media under a unified interface:

MermaidDiagram
Rendering diagram…
  1. LLC (Logical Link Control — IEEE 802.2): Provides a uniform interface to the network layer, independent of the underlying transmission technology.
  2. MAC (Medium Access Control — IEEE 802.3): Controls physical framing, MAC addressing, and access to the shared medium.

2. Standard Ethernet Frame Format (IEEE 802.3 / DIX II)

Ethernet transmits data encapsulated in frames with standardized headers and trailers:

SVGVector Architecture Diagram (SVG)
Preamble 7 bytes SFD 1 B Dest MAC 6 bytes Src MAC 6 bytes Type/Len 2 bytes Data Payload 46-1500 bytes FCS 4 bytes Header (14 bytes) Trailer

Detailed Field Breakdown:

  1. Preamble (7 bytes / 56 bits): Alternating bit pattern 10101010... used to synchronize receiver clocks.
  2. SFD (Start of Frame Delimiter - 1 byte): Exact sequence 10101011. The last two consecutive 1s alert the receiver that the next bit is the start of the destination address.
  3. Destination Address (6 bytes / 48 bits): Physical MAC address of the target recipient or broadcast address.
  4. Source Address (6 bytes / 48 bits): Physical MAC address of the transmitting network adapter.
  5. Length / Type (2 bytes):
    • If value ≤1500\leq 1500, it specifies the payload length in bytes (IEEE 802.3 standard).
    • If value ≥1536\geq 1536 (0x06000x0600), it defines the higher-layer protocol (Ethernet II format, e.g., 0x0800 for IPv4, 0x0806 for ARP).
  6. Data (Payload - 46 to 1500 bytes):
    • Encapsulated network layer packet (MTU = 1500 bytes).
    • If user data is less than 46 bytes, padding bytes (0x00) are appended to maintain the minimum frame size.
  7. FCS (Frame Check Sequence - 4 bytes): Contains a 32-bit Cyclic Redundancy Check (CRC-32) to detect transmission errors. Corrupted frames are silently dropped.

3. Frame Size Constraints: Why Minimum 64 Bytes?

  • Minimum Frame Size:
Min Frame=6+6+2+46+4=64 bytes (512 bits)\text{Min Frame} = 6 + 6 + 2 + 46 + 4 = 64\text{ bytes (512 bits)}
  • Maximum Frame Size:
Max Frame=6+6+2+1500+4=1518 bytes\text{Max Frame} = 6 + 6 + 2 + 1500 + 4 = 1518\text{ bytes}

(Excludes Preamble and SFD)

The Physical Reason for Minimum Frame Size:

In CSMA/CD, a sender must continue transmitting long enough to detect a collision from the furthest station on the cable before completing transmission.

Transmission Time (Ttx)≥2×Propagation Delay (Tp)\text{Transmission Time } (T_{tx}) \geq 2 \times \text{Propagation Delay } (T_p)
Minimum Frame LengthBandwidth≥2×Max Cable LengthSignal Velocity\frac{\text{Minimum Frame Length}}{\text{Bandwidth}} \geq 2 \times \frac{\text{Max Cable Length}}{\text{Signal Velocity}}

For classic 10 Mbps10\text{ Mbps} Ethernet spanning 2.5 km2.5\text{ km} with repeaters, the round-trip propagation time is ≈51.2 μs\approx 51.2\text{ }\mu\text{s}.

Min Length=10 Mbps×51.2 μs=512 bits=64 bytes\text{Min Length} = 10\text{ Mbps} \times 51.2\text{ }\mu\text{s} = 512\text{ bits} = 64\text{ bytes}

If a frame were shorter than 64 bytes, a collision occurring at the far end would bounce back after the sender finished transmitting, preventing the sender from detecting the collision!


4. Ethernet MAC Addressing

A MAC address is a permanent hardware address burned into the Network Interface Card (NIC) ROM.

  • Size: 48 bits (6 bytes), represented as 12 hexadecimal digits separated by colons or hyphens:
00:1A:2B:3C:4D:5E\text{00:1A:2B:3C:4D:5E}
MermaidDiagram
Rendering diagram…
  • Unicast: Directed to a single host (e.g., 00:1A:2B:3C:4D:5E).
  • Multicast: Directed to a group of subscribed hosts (1st byte odd, e.g., 01:00:5E:00:00:01).
  • Broadcast: Delivered to all hosts on the local network (FF:FF:FF:FF:FF:FF).

5. Evolution of Ethernet

Generation Standard Data Rate Cable Types Access Method / Mode
Standard Ethernet IEEE 802.3 10 Mbps10\text{ Mbps} 10Base5 (Thick), 10Base2 (Thin), 10Base-T (Cat 3 UTP) Half-Duplex (CSMA/CD)
Fast Ethernet IEEE 802.3u 100 Mbps100\text{ Mbps} 100Base-TX (Cat 5), 100Base-FX (Fiber) Full-Duplex / Switched
Gigabit Ethernet IEEE 802.3z / ab 1 Gbps1\text{ Gbps} 1000Base-T (Cat 5e/6), 1000Base-SX/LX (Fiber) Full-Duplex Switched
10G Ethernet IEEE 802.3ae / an 10 Gbps10\text{ Gbps} 10GBase-T (Cat 6a), 10GBase-SR/LR (Fiber) Strictly Full-Duplex (No CSMA/CD)

6. Collision vs. Broadcast Domains in LANs

MermaidDiagram
Rendering diagram…
  • Collision Domain: A network segment where packet collisions can occur when two devices transmit simultaneously. A switch port isolates each connection into its own collision domain.
  • Broadcast Domain: The set of all devices that receive a broadcast frame (FF:FF:FF:FF:FF:FF). All switch ports belong to the same broadcast domain unless separated by VLANs or Routers.

Frequently Asked Questions

QWhy is the minimum Ethernet frame size 64 bytes?

It guarantees that frame transmission duration exceeds the worst-case round-trip propagation delay (2×Tp2 \times T_p) across the maximum network diameter, ensuring stations detect collisions before finishing transmission.

QWhat are the two sublayers of the Data Link Layer in IEEE 802?
  • LLC (Logical Link Control, 802.2) for flow/error control and protocol multiplexing.
  • MAC (Medium Access Control, 802.3) for framing, physical addressing, and channel access.
QHow does a switch differ from a hub?
  • A Hub (Layer 1) broadcasts every incoming electrical signal to all ports, sharing a single collision domain.
  • A Switch (Layer 2) inspects MAC addresses, forwards frames only to the designated port, and creates a separate collision domain per port in full-duplex mode.
QWhat is the maximum Ethernet frame size and MTU?

The maximum frame is 1518 bytes (14-byte header + 1500-byte payload + 4-byte FCS), excluding preamble and SFD. The MTU (payload) is 1500 bytes.

Budget AppAndroid App

Pocketly on Android

Log daily food, travel, and hostel expenses instantly. Set monthly spending limits and see where your money goes without complex spreadsheets.

← All Computer Networks modules