networking, updated

Ethernet

Ethernet (IEEE 802.3) moves frames between devices on the same network segment, addressed by MAC address. Nearly every capture starts with an Ethernet header.

OSI layer
2 Data link
Carried in
Physical medium (copper, fibre)
Identified by
Carries IPv4 (0x0800), ARP (0x0806), IPv6 (0x86DD), ...
Specs
IEEE 802.3, RFC 894
Wireshark filter
eth
Encrypted
no

Packet structure

Ethernet II frame18 bytes + variable

Select a field to see what it does.

IEEE 802.3 / Ethernet II, as Wireshark shows it. Preamble (7 bytes), start frame delimiter (1 byte) and the inter-frame gap are removed by the NIC before capture.

The header is 14 bytes (18 with a VLAN tag). The minimum frame is 64 bytes including FCS, the maximum 1518 (1522 tagged); jumbo frames go up to about 9000.

How it works

Ethernet only gets a frame to the next device on the same segment. Routers strip the Ethernet header and build a new one for the next hop, so MAC addresses change at every router, IP addresses do not.

Switches learn which source MAC lives behind which port (the MAC address table, or CAM table). Frames to a known MAC go out one port; frames to an unknown MAC, broadcast and (without IGMP snooping) multicast are flooded to all ports of the VLAN.

MAC address format: 6 bytes, written aa:bb:cc:dd:ee:ff. The first 3 bytes are the vendor’s OUI. Two bits of the first byte matter:

Bit (of first byte)01
Lowest (I/G)UnicastMulticast / broadcast
Second lowest (U/L)Vendor-assignedLocally administered (random MAC, VM)

In Wireshark

FilterShows
eth.addr == aa:bb:cc:dd:ee:ffFrames from or to a MAC
eth.dst == ff:ff:ff:ff:ff:ffBroadcasts
eth.dst.ig == 1All multicast and broadcast
eth.src.lg == 1Locally administered (often randomised) source MACs
eth.type == 0x0806ARP (same as arp)
eth.addr matches "^00:50:56"VMware OUI (works for any vendor prefix)
!(eth.type == 0x0800 or eth.type == 0x86dd)Everything that is not IP

What normal looks like: a steady background of broadcasts (ARP, DHCP) and multicast (mDNS, SSDP, LLDP, STP). Captures on the sending host often show frames larger than 1514 bytes: that is segmentation offload (TSO/GSO), the NIC splits them later.

Security notes

References

§ home
~/knubertus/home/
1,1 Top