Networking conceptsBeginner19 min read

What Is Frame in Networking?

Reviewed byJohnson Ajibi· Senior Network & Security Engineer · MSc IT Security

This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.

On This Page

Quick Definition

In networking, a frame is a package of data that travels between devices on the same local network. It includes addresses, the actual data, and error-checking information. Think of it as an envelope that carries your data from one device to another on the same network segment.

Commonly Confused With

FramevsPacket

A packet is a Layer 3 data unit that contains IP addresses and is used for routing across networks. A frame is a Layer 2 data unit that contains MAC addresses and is used for delivery within a local network. The frame encapsulates the packet as its payload.

When you visit a website, your browser creates a packet with the web server's IP address. That packet is then placed inside a frame addressed to your router's MAC address.

FramevsSegment

A segment is a Layer 4 data unit used by TCP to manage data transmission between applications. It is encapsulated inside a packet, which is then encapsulated inside a frame. Segments handle sequencing, acknowledgments, and flow control.

Downloading a large file involves many TCP segments. Each segment is wrapped into a packet, then into a frame for delivery.

FramevsDatagram

A datagram is a Layer 3 data unit used by UDP. Like a packet, it contains IP addresses but does not guarantee delivery. The term 'datagram' is often used interchangeably with 'packet' for UDP traffic. Frames still encapsulate datagrams for local delivery.

A VoIP call uses UDP datagrams. Each datagram is put into a frame for transmission over Ethernet.

FramevsCell

A cell is a fixed-size data unit used in ATM (Asynchronous Transfer Mode) networks, usually 53 bytes. Frames are variable in size. ATM cells are used in older WAN technologies, while frames are used in Ethernet and Wi-Fi.

Legacy ATM networks use cells for voice and data. Modern networks almost exclusively use frames.

Must Know for Exams

For general IT certifications like CompTIA Network+, Cisco CCNA, and CompTIA A+, understanding frames is crucial because it relates directly to OSI model layers, Ethernet standards, and network troubleshooting.

For CompTIA Network+ (N10-008 or N10-009), objectives include explaining the OSI model layers and how data encapsulation works. You need to know that frames are at Layer 2 (Data Link), and that they contain MAC addresses. Exam questions often ask you to identify what happens at each layer, or to choose the correct unit of data at a given layer. For example, "Which of the following is the data unit at the Data Link layer?" Answer: Frame. Also, questions about Ethernet frame fields (preamble, destination MAC, FCS) appear frequently.

For Cisco CCNA, frames are even more critical. The exam tests your ability to configure switch ports, VLANs, and trunking. You need to understand how frames are forwarded based on MAC tables, how VLAN tagging works with 802.1Q, and how spanning tree protocol (STP) prevents loops. CCNA exam questions often simulate network topologies where you must analyze frame paths or troubleshoot connectivity issues related to incorrect MAC addresses or VLAN mismatches.

For CompTIA A+, frame concepts appear more lightly but are still tested in the context of network hardware and cabling. You might see a question like "What is the purpose of a frame check sequence (FCS)?" Answer: To detect errors in the frame. Understanding frames helps you answer these questions correctly and avoid traps where learners confuse frames with packets or segments.

In the exam environment, questions about frames may also appear in scenario-based formats, such as "A user cannot communicate with another device on the same network. What is the most likely issue?" Options might include incorrect subnet mask (Layer 3), wrong MAC address (Layer 2), or cable problem (Layer 1). Knowing frames helps you distinguish between these layers.

Simple Meaning

Imagine you want to send a letter to your neighbor down the street. You don't need the whole postal service system, you can just walk over and hand it to them directly. In networking, a frame is like that letter you hand-deliver to a neighbor. It's a way to send data between devices that are connected to the same local network, like computers in the same office or devices on the same home Wi-Fi.

A frame has three main parts: a header, a payload, and a trailer. The header is like the envelope with a "from" and "to" address, it tells the network which device sent the frame and which device should receive it. The payload is the actual content of your message, the data you're sending. The trailer is like a checksum or a seal at the bottom that helps the receiver check if the message got damaged during delivery.

Frames are used because they allow devices on a local network to communicate directly without needing to go through the internet. Every time you send a request to a website, your computer first sends a frame to your router, asking it to forward the request to the internet. Frames are the backbone of how Ethernet and Wi-Fi networks work.

Full Technical Definition

In computer networking, a frame is a data unit at the Data Link layer (Layer 2) of the OSI model. It encapsulates network layer packets (such as IP packets) for transmission over a physical network medium. The frame structure includes a header, payload, and trailer. The header typically contains the destination and source MAC addresses, as well as other control information such as preamble, start frame delimiter, and optional VLAN tagging (802.1Q). The payload carries the higher-layer packet, and the trailer includes a Frame Check Sequence (FCS) for error detection.

Ethernet frames are the most common type, defined by IEEE 802.3. The standard Ethernet frame format includes a 7-byte preamble, a 1-byte Start Frame Delimiter (SFD), a 6-byte destination MAC address, a 6-byte source MAC address, a 2-byte EtherType or length field, the payload (46 to 1500 bytes), and a 4-byte FCS. The maximum transmission unit (MTU) for Ethernet is typically 1500 bytes, which limits payload size. Jumbo frames allow up to 9000 bytes for high-performance environments.

Frames operate at Layer 2, meaning they are used for direct communication between devices on the same local network segment. Switches forward frames based on MAC addresses. When a device sends a frame, it addresses it to the MAC address of the destination device. If the destination is on another network, the frame is sent to the default gateway (usually a router), which strips the frame, processes the packet, and creates a new frame for the next hop.

Other frame types include Point-to-Point Protocol (PPP) frames used on serial links, and Wi-Fi frames (IEEE 802.11) which have additional fields for wireless management. Frame relay and HDLC are legacy protocols that also use frames. The concept of framing is critical for understanding network segmentation, collision domains, and broadcast domains.

Real-Life Example

Imagine you are at a large conference where people are grouped into small tables. Each table has a designated runner who carries messages between tables but only within that table's area. You want to send a note to someone at the same table. You write your message on a piece of paper, put it in an envelope, write the recipient's name and your name on it, and hand it to the runner. The runner delivers it directly to that person. That envelope with the note inside is your frame.

Now suppose you want to send a message to someone at a different table. You can't just hand it to your local runner because they only work at your table. So you give it to a special coordinator who sits at the edge of your table, that coordinator is like your router. The coordinator takes your envelope, opens it, reads the address, repackages it into a new envelope for the next table's runner, and passes it along. The original envelope (frame) was only used within your table.

In this analogy, the tables are local networks, the runners are switches, the coordinator is a router, and the envelopes are frames. The addresses on the envelopes are MAC addresses, unique identifiers for each device. The conference itself is the larger internet. Frames make it possible for devices on the same local network to talk to each other quickly and efficiently without going through the entire postal system.

Why This Term Matters

Frames are fundamental to how data moves within local networks. Without frames, devices on the same Ethernet or Wi-Fi network could not communicate directly. Every time you browse the web, send an email, or stream a video, your device sends frames to your router, which then forwards them to the internet. Understanding frames helps IT professionals troubleshoot network issues, configure switches, and optimize performance.

In practical IT, frames matter for network design and security. For example, VLANs use frame tagging (802.1Q) to separate traffic within the same physical network. If you misconfigure VLAN tags, frames can end up in the wrong network segment, causing connectivity issues. Also, frame size matters, if a frame exceeds the MTU, it must be fragmented, which slows performance. Network engineers often increase MTU for jumbo frames to improve throughput in storage networks.

Frames are also the basis for understanding collisions and broadcast storms. On older Ethernet networks, collisions happened when two devices sent frames at the same time. Modern switches reduce collisions by creating separate collision domains for each port. However, broadcast frames (sent to all devices) can still cause problems if too many are generated. Knowing how frames work helps in designing efficient networks and troubleshooting performance bottlenecks.

How It Appears in Exam Questions

Frame-related questions in IT certification exams typically fall into these patterns:

First, definitional questions. These ask directly about the data unit at the Data Link layer. For example: "At which OSI model layer does a frame operate?" or "Which of the following is the correct data unit for Layer 2?" The answer is always "frame." These are usually straightforward but can trip you up if you confuse frames with packets (Layer 3) or segments (Layer 4).

Second, Ethernet frame fields questions. You might see: "Which field in an Ethernet frame is used for error detection?" The answer is Frame Check Sequence (FCS). Or: "What is the purpose of the preamble?" Answer: To synchronize timing between sender and receiver. Knowing the standard Ethernet frame format (preamble, SFD, destination MAC, source MAC, EtherType, payload, FCS) is essential.

Third, scenario-based troubleshooting questions. For instance: "A user reports they cannot access a shared printer on the same network segment. Other users on the same switch can access it. What should you check first?" The answer might involve checking the MAC address table on the switch or verifying that the frame is being forwarded correctly. These questions test your practical understanding of how frames travel within a LAN.

Fourth, configuration questions. For CCNA, you might be given a switch output and asked: "Which MAC address is associated with port Gi0/1?" This tests your ability to read the MAC address table and understand frame forwarding. Or: "You need to allow frames from VLAN 10 to cross a trunk. Which command do you use?" Answer: switchport trunk allowed vlan 10.

Fifth, comparison questions. Some exams ask you to differentiate between frame types: "What is the difference between an Ethernet frame and a Wi-Fi frame?" or "Compare frame switching versus packet switching." These require you to understand that frames are used at Layer 2 for local delivery, while packets are used at Layer 3 for end-to-end routing across networks.

Finally, error detection questions might ask: "What happens if a frame's FCS does not match the computed value?" Answer: The frame is discarded. This tests your knowledge of error control at the Data Link layer.

Practise Frame Questions

Test your understanding with exam-style practice questions.

Practise

Example Scenario

You are setting up a small office network with five computers connected to a single switch. The computers all share a printer connected to the same switch. You want to send a print job from Computer A to the printer. Here is what happens step by step:

First, Computer A creates a frame. The header contains the MAC address of Computer A as the source and the MAC address of the printer as the destination. The payload is the data containing the print job. The trailer includes a Frame Check Sequence to ensure data integrity.

Next, Computer A sends the frame out of its network interface. The switch receives the frame on one of its ports. The switch looks at the destination MAC address and checks its MAC address table. If the switch knows which port the printer is on, it forwards the frame only to that specific port. If the switch does not know, it floods the frame out of all ports except the one it came from (broadcast). The printer then receives the frame, checks the FCS for errors, and processes the print job.

Now consider a problem: Suppose the printer's MAC address entry in the switch table is incorrect because of a misconfiguration or a device replacement. The switch might forward the frame to the wrong port, and the printer never gets it. In that case, you would need to clear the MAC table or let it re-learn dynamically. This scenario is common in exam questions where you must identify why a device cannot communicate within the same network.

Also, if the network uses VLANs, the frame might need a VLAN tag (802.1Q) to cross a trunk port. If the tag is missing or wrong, the frame will not reach the printer. Understanding this helps you troubleshoot VLAN-related connectivity issues. This practical example shows how frames are the building blocks of local network communication.

Common Mistakes

Confusing frames with packets

Frames operate at Layer 2 (Data Link) and use MAC addresses for local delivery, while packets operate at Layer 3 (Network) and use IP addresses for routing across networks.

Remember: frames are for same-network communication; packets are for cross-network routing.

Thinking frames include IP addresses

Frames contain MAC addresses, not IP addresses. IP addresses are in the encapsulated packet inside the frame's payload.

When you see a question about Layer 2, think MAC addresses. Layer 3 = IP addresses.

Assuming all frames are the same size

Frame size depends on the network technology. Ethernet frames have a maximum payload of 1500 bytes, but jumbo frames can be larger. Wi-Fi frames also have different structures.

Check the network type when discussing frame size. Ethernet and Wi-Fi have different frame formats.

Forgetting that switches forward frames based on MAC addresses

Some learners think switches use IP addresses, but switches operate at Layer 2 and use MAC address tables to forward frames.

Switches forward frames using MAC addresses. Routers forward packets using IP addresses.

Believing frames are error-free

Frames include an FCS for error detection, but errors can still occur. If the FCS check fails, the frame is discarded, not corrected.

Understand that FCS detects errors but does not correct them. Higher layers handle retransmission.

Exam Trap — Don't Get Fooled

{"trap":"On the exam, a question may describe a scenario where a device can ping another device on a different subnet but cannot communicate with a device on the same subnet. Many learners jump to IP addressing issues, but the real problem is often at Layer 2, a wrong MAC address or a misconfigured switch port.","why_learners_choose_it":"Learners often focus on IP addressing because they study routing and subnetting heavily.

They forget that local communication relies on MAC addresses and frames.","how_to_avoid_it":"Always start troubleshooting by checking Layer 2 first for same-network issues. Verify ARP tables, MAC address tables, and switch port configurations before moving to Layer 3."

Step-by-Step Breakdown

1

Data generation

An application on a device generates data, such as a web request or file transfer. This data is handed down to the transport layer (Layer 4), which adds a header to create a segment (TCP) or datagram (UDP).

2

Packet creation

The segment or datagram is passed to the network layer (Layer 3), which adds an IP header containing source and destination IP addresses. This creates a packet.

3

Frame encapsulation

The packet is passed to the data link layer (Layer 2). The network interface adds a frame header (source and destination MAC addresses) and a trailer (Frame Check Sequence). This creates a frame ready for transmission.

4

Bit transmission

The frame is converted into bits and sent over the physical medium (e.g., Ethernet cable or Wi-Fi radio waves). The bits travel as electrical signals, light pulses, or radio waves to the next device.

5

Frame reception and checking

The receiving device reads the bits, reassembles them into a frame, and checks the FCS. If the FCS matches, the frame is accepted. If not, the frame is discarded (no retransmission at this layer).

6

De-encapsulation

The receiving device strips the frame header and trailer, extracting the packet. The packet is then passed up to the network layer for further processing (e.g., routing or local delivery).

Practical Mini-Lesson

In real-world IT, frames are at the heart of every local network communication. As a network administrator, you will often deal with issues related to frame forwarding, VLAN tagging, and MTU configuration. Understanding how switches handle frames is critical for troubleshooting.

When a switch receives a frame, it examines the destination MAC address and looks it up in its MAC address table. This table maps MAC addresses to switch ports. If the address is found, the switch forwards the frame only to that port. If not found, the switch floods the frame out of all ports except the incoming one, this is called an unknown unicast flood. Over time, the switch learns MAC addresses by reading the source MAC of incoming frames and populating the table.

One common issue is a MAC address flapping, when the same MAC address appears on multiple ports, causing instability. This can happen if there is a loop in the network or if a device moves between ports. Spanning Tree Protocol (STP) helps prevent loops by blocking redundant ports, but misconfigurations can still cause problems.

VLAN tagging is another critical area. When a frame needs to cross a trunk link between switches, an 802.1Q tag is inserted into the frame header. This tag identifies which VLAN the frame belongs to. If the tag is missing or mismatched, the frame will not reach the correct VLAN. For example, if a switch port is configured as an access port for VLAN 10 but the connected device sends an untagged frame for VLAN 20, the switch may drop it or misdirect it.

MTU (Maximum Transmission Unit) also matters. Standard Ethernet MTU is 1500 bytes. If an application sends a packet larger than 1500 bytes, it must be fragmented at Layer 3 before being encapsulated into frames. Fragmentation reduces performance. In storage networks or data centers, jumbo frames (up to 9000 bytes) are used to improve throughput. However, all devices along the path must support the same MTU, or frames may be dropped.

Finally, security is a concern. Attackers can send malformed frames to exploit vulnerabilities. For instance, a MAC flood attack sends many frames with different source MAC addresses to fill the switch's MAC table, causing it to fail open and flood all traffic. Understanding frames helps you implement port security, static MAC entries, and storm control to mitigate such attacks.

Memory Tip

Think of a frame as an envelope with local addresses (MAC), it only works within your neighborhood.

Covered in These Exams

Current Exam Context

Current exam versions that test this topic — use these objectives when studying.

Legacy Exam Context

Older materials may mention these exam versions, but learners should use the current objectives for their target exam.

N10-008N10-009(current version)

Related Glossary Terms

Frequently Asked Questions

What is the difference between a frame and a packet?

A frame is a Layer 2 data unit with MAC addresses, used for local delivery. A packet is a Layer 3 data unit with IP addresses, used for routing across networks. The packet is encapsulated inside the frame.

Why are frames important for network troubleshooting?

Many network issues occur at Layer 2, such as incorrect MAC addresses, switch misconfigurations, or VLAN mismatches. Understanding frames helps you isolate these problems quickly.

What does the Frame Check Sequence (FCS) do?

The FCS is a 4-byte value at the end of an Ethernet frame used for error detection. The receiver recalculates the FCS and compares it to the received value. If they don't match, the frame is discarded.

Can frames be larger than 1500 bytes?

Standard Ethernet frames have a maximum payload of 1500 bytes, but jumbo frames allow payloads up to 9000 bytes. However, all devices on the path must support jumbo frames for them to work.

How do switches know where to forward a frame?

Switches maintain a MAC address table that maps MAC addresses to specific ports. The switch learns these addresses by examining the source MAC of incoming frames and forwards frames based on the destination MAC.

What happens if a frame has a wrong FCS?

The receiving device discards the frame. No error correction is attempted at Layer 2. Higher-layer protocols like TCP may detect the loss and request retransmission.

What is a broadcast frame?

A broadcast frame has a destination MAC address of FF:FF:FF:FF:FF:FF, meaning it is sent to all devices on the local network. Switches forward broadcast frames out of all ports except the incoming port.

Summary

a frame is a fundamental data unit at Layer 2 of the OSI model, enabling direct communication between devices on the same local network. Frames consist of a header with MAC addresses, a payload containing higher-layer data, and a trailer with error detection. Understanding frames is crucial for network professionals because they form the basis of Ethernet and Wi-Fi communication.

For IT certification exams, frame-related questions test your knowledge of OSI layers, Ethernet frame fields, switch forwarding behavior, and VLAN tagging. Common mistakes include confusing frames with packets or segments, and forgetting that switches use MAC addresses, not IP addresses. By mastering frame concepts, you can troubleshoot local network issues more effectively and answer exam questions with confidence.

Remember that frames operate only within a single network segment. When data needs to travel to a different network, it must be routed by a router, which strips the frame and creates a new one for the next hop. This distinction is key for understanding how data moves across the internet. Use the memory tip: a frame is like a neighborhood envelope, it only works locally.