Networking

What Is Ethernet? Frames, Cables and Switches Explained

Ethernet is the wired LAN standard (IEEE 802.3) that carries data in frames. Inspect a 64-byte frame field by field and follow it to a switch.

Ethernet is the family of wired networking standards, IEEE 802.3, that most local networks use. It moves data in frames: each frame carries a destination and source MAC address, a type field, the data (usually an IP packet) and a checksum. Computers connect with twisted-pair cables to a switch, which forwards each frame toward the port where the destination MAC address lives.

Inspect a frame

Constructed sampleThis is a complete 64-byte Ethernet frame that we built and checked in Python. It carries a ping (an ICMP echo request) from 192.0.2.10 to 192.0.2.1. All addresses come from ranges reserved for documentation.

InspectA minimum-size Ethernet II frame carrying an IPv4 ping. Select a field.
0000
0010
0020
0030

Select a field below or a byte above.

FieldBytesValueMeaning
0–500 00 5E 00 53 0100:00:5e:00:53:01. The switch looks this up to choose an output port.
6–1100 00 5E 00 53 0200:00:5e:00:53:02. The switch learns which port this address is on.
12–1308 000x0800 = IPv4. 0x86DD would be IPv6, 0x0806 ARP. Sent big-endian.
14–3345 00 00 20 00 01 00 00 40 01 F6 D0 C0 00 02 0A C0 00 02 01Version 4, length 32, TTL 64, protocol 1 (ICMP), checksum 0xF6D0, source 192.0.2.10, destination 192.0.2.1.
34–4508 00 06 FA 12 34 00 01 70 69 6E 67Type 8 (echo request), checksum, identifier 0x1234, sequence 1, then the 4 data bytes 'ping'.
46–5900 00 00 00 00 00 00 00 00 00 00 00 00 00Zeros added because the data field must be at least 46 bytes.
60–631C 51 A4 C6Frame check sequence over bytes 0–59. A receiver that computes a different CRC drops the frame.

The frame is 64 bytes, the smallest Ethernet allows: 14 bytes of header, at least 46 bytes of data, and 4 bytes of FCS. On the wire it is preceded by a 7-byte preamble and a start-of-frame delimiter that the network card adds and strips, which is why tools such as Wireshark normally show neither those nor the FCS.

The fields that matter

  • MAC addresses are 48-bit hardware addresses, written as six hex bytes. They only have meaning on the local network segment. The MAC vs. IP address guide shows which one changes at a router.
  • EtherType says what the data is. IANA keeps the registry: 0x0800 for IPv4, 0x86DD for IPv6, 0x0806 for ARP.
  • Data (payload) holds 46 to 1,500 bytes in a standard frame. The 1,500-byte limit is the familiar MTU.
  • FCS is a CRC-32 checksum. It detects corruption; it cannot fix it. Damaged frames are dropped and higher layers such as TCP retransmit.

Multi-byte fields such as the EtherType and IP addresses are sent most significant byte first, the network byte order described in the endianness guide.

From a computer to a switch

Step throughFollow the sample frame across a small switched network
1 / 6
  1. Step 1. The computer builds the packet

    The ping program asks the operating system to send an ICMP echo request to 192.0.2.1. The IP layer adds the 20-byte IPv4 header.

  2. Step 2. It finds the destination MAC

    192.0.2.1 is on the local subnet, so the computer needs that host's MAC address. If it is not in the ARP cache, it broadcasts an ARP request (EtherType 0x0806) and caches the reply: 00:00:5e:00:53:01.

  3. Step 3. The network card frames it

    The card writes destination MAC, source MAC and EtherType 0x0800, appends padding up to 46 data bytes, computes the CRC-32 FCS and sends the bits over the cable.

  4. switchStep 4. The switch learns and checks

    The switch checks the FCS and drops the frame if it is wrong. It records that 00:00:5e:00:53:02 is on the incoming port: that is how its MAC address table fills up.

  5. switchStep 5. The switch forwards

    It looks up 00:00:5e:00:53:01. If the table has it, the frame goes out only that port. If not, the switch floods it to every port except the incoming one, and learns the right port from the reply.

  6. Step 6. The destination accepts it

    The receiving card sees its own MAC in the destination field, checks the FCS and hands the IPv4 packet up. Its ping reply makes the same trip in reverse.

Cables and speeds

Ethernet runs over several media. In homes and offices that is mostly twisted-pair copper with RJ45 connectors; the speed is set by the Ethernet variant and the cable category: common names are 100BASE-TX (100 Mbps), 1000BASE-T (1 Gbps) and 10GBASE-T (10 Gbps). Data centres and longer runs use fibre. Whatever the medium, the frame format above stays the same, which is why one switch can connect devices running at different speeds.

Ethernet, switches and routers

A switch works with MAC addresses inside one network. A router connects different IP networks and rewrites the Ethernet header at each hop. The router vs. switch diagram traces both cases. To decode any byte of the frame above, paste it into the hex to binary converter.

Sources

  1. IEEE 802.3 Ethernet Working Group — IEEE
  2. RFC 894: Transmission of IP Datagrams over Ethernet Networks — IETF. EtherType 0x0800, 46–1500 byte data field
  3. IEEE 802 Numbers (EtherTypes) — IANA
  4. RFC 7042: IANA Considerations and IETF Protocol Usage for IEEE 802 Parameters — IETF. 00-00-5E-00-53-xx documentation MAC range
  5. RFC 5737: IPv4 Address Blocks Reserved for Documentation — IETF

How we made this

Computed and checked by tests. We built the sample frame byte by byte in Python 3.14.3: documentation MAC addresses (RFC 7042) and IPv4 addresses (RFC 5737), a valid IPv4 header checksum, a valid ICMP checksum, padding to the 60-byte minimum and a CRC-32 FCS from zlib.crc32. Recomputing CRC-32 over the whole frame gives the standard residue 0x2144DF1C, which confirms the FCS. The frame was constructed, not captured from a live network.

Performed by Claude, an AI assistant working in the BinConvert repository (Python 3.14.3 (struct, zlib)), November 16, 2026.

This article was drafted with AI assistance. Every example, calculation and command output on this page was re-run or checked before release; the frame bytes, both checksums and the FCS were regenerated and verified. Review: automated test suite and source check, November 16, 2026.

Spotted an error? Tell us and we will correct it.

Copied to clipboard!