3 Ethernet and Network Devices
Learn how Ethernet frames and MAC addresses deliver data across local links, how switches and routers forward traffic, and how common network devices differ in function.
frames on a local link
is a family of wired local-area networking technologies standardized as IEEE 802.3. It carries data in frames across a local link. An contains information needed to deliver data on that link, and its payload commonly contains an IP packet.
A transmitting interface sends synchronization information before the frame. A basic, untagged frame is typically 64–1518 bytes, measured from the destination address through the Frame Check Sequence (FCS). VLAN tags and other variants can change the frame size.
Fields in an
A common contains these fields:
Destination : Identifies the intended receiver on the local link.
Source : Identifies the sending interface.
Type/Length: In II, identifies the payload protocol, such as IPv4 or IPv6; in IEEE 802.3 framing, it indicates payload length.
Data and padding: Carries the payload. Padding may be added to meet the minimum frame size.
Frame Check Sequence (FCS): Provides an error-detection check so a receiver can detect a damaged frame. It detects errors but does not repair them.
MAC addressing and IP addressing
A Media Access Control (MAC) address is a link-layer address used to deliver frames within a local network segment. A common is 48 bits, written as six hexadecimal pairs, such as 02:1A:2B:3C:4D:5E. Network interfaces may use globally assigned or locally administered addresses, so a is not always a permanent, factory-set identifier.
Destination MAC addresses can identify one interface through , a group through , or all devices on the local domain through . An uses the address FF:FF:FF:FF:FF:FF.
MAC and IP addresses serve different purposes. A delivers a frame across a local link, while an IP address identifies a destination across networks. When a host sends traffic to a different IP network, it sends the local frame to its default gateway’s ; the then forwards the IP packet toward its destination.
How switches forward frames
A connects LAN segments and forwards frames using MAC addresses. An is essentially a multiport . As it receives frames, a switch learns by recording each source and the incoming port.
For a known destination, the switch uses this table to send a frame out the appropriate port. If the destination is unknown, or the frame is a , the switch floods it to the other relevant ports in that local network or VLAN.
For example, when Computer A sends a frame to Computer B on the same switched LAN, the switch learns A’s on A’s port. If the switch already knows B’s port, it forwards the frame there rather than sending it to every port.
How routers forward packets
A connects IP networks and forwards packets according to their destination IP addresses and its routing information. This is a Layer 3 forwarding decision between networks. A Layer 2 switch, by contrast, forwards frames within a local network using MAC addresses.
When routing a packet over , the removes the incoming link-layer frame and sends the packet in a new frame on the outgoing link. The source and destination MAC addresses apply to that particular link and usually change at each routed hop. The packet’s IP addresses generally remain the end-to-end source and destination, though some functions can modify them.
Access points and other network devices
A lets Wi-Fi devices connect to a network. In a typical setup, it bridges wireless clients’ traffic to a wired LAN, forwarding traffic between wireless and media. An AP provides wireless access; it does not necessarily route between IP networks.
Other common devices have specialized functions:
A connects a device to or Wi-Fi and sends and receives link-layer frames.
A regenerates or retransmits signals to extend a connection. It does not make forwarding decisions based on MAC or IP addresses.
A is a legacy multiport that repeats incoming bits to its other ports rather than selectively forwarding frames.
A adapts signals for a service-provider access medium. A alone does not necessarily provide routing or Wi-Fi.
A applies traffic rules to allow, block, or inspect communications. It may be a separate appliance or integrated into a or another device.
Many home-network products combine roles such as , , , and wireless access point in one enclosure. The roles remain distinct even when the hardware is combined.