Nepedia
Back to Discover
Fluent Reader
💻

Network packet

technology Maturity 9-11 Next article →

Computers use small units to move information across networks. We call these units network packets.

A packet is a formatted unit of data. It travels through a packet-switched network. This type of network shares its paths between many different sessions. This is different from circuit switching. In circuit switching, paths are set aside for just one session. Packets make sharing much easier for everyone.

A packet has two main parts. The first part is the control information. This is usually found in headers and trailers. The header is like the envelope on a letter. The trailer is like a signature at the bottom.

The second part is the payload. This is the actual data being sent. It is the same as the content inside a letter. The control information tells the network how to deliver the payload. It includes the source address and the destination address. It also includes special codes to find mistakes.

Packets have many clever ways to work correctly. One way is called a checksum. The sender does a math test before sending the packet. The receiver does the same math test when it arrives. If the results do not match, there is an error. The network can then fix or discard the packet.

Packets also use a field called time to live. This field shows how many hops a packet can take. A hop is when a packet moves to a new spot. Every time it moves, the number goes down by one. If the number hits zero, the packet is discarded. This stops packets from looping forever and clogging the network.

Different systems use different rules for packets. In the OSI model, a packet is used at layer 3. This is called the network layer. At layer 2, these units are called frames. At layer 4, they are called segments or datagrams.

Some networks use the Point-to-Point Protocol. This protocol uses 8-bit bytes to format data. Other networks like Ethernet use the location of data to find the header. Some networks even prioritize certain packets. High-priority packets move through queues more quickly when the network is busy.

We see packets working in many big ways. The Internet Protocol uses IP packets. These have a header and a payload. They do not have a trailer. However, an IP packet is often carried inside an Ethernet frame.

NASA uses special packets too. The CCSDS standard helps send data from spacecraft. This includes images from instruments in deep space. Even video uses packets. The MPEG-2 standard can divide a video stream into packets. This helps send video and audio through different systems.

440 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

More to explore

🪜 Step back

Simpler topics to build understanding

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.