Definition of a network packet: What is a packet?

What is a packet?

A network is a group of two or more connected computers. The Internet is a network of networks — multiple networks around the world that are all interconnected with each other

A packet is a brief section of a bigger communication in networking. Packets are used to separate data being delivered via computer networks*, like the Internet. The computer or device that receives these packets then reassembles them.

Let’s say Alice is writing Bob a letter, but Bob can only fit envelopes the size of a small index card through his mail slot. Alice breaks up her message into much smaller chunks, each just a few words long, and writes these portions out on index cards rather than putting it on regular paper and then attempting to fit it through the postal slot. Bob receives the stack of cards from her, and he arranges them so he can read the entire message.

Why use packets?

It might be feasible, in theory, to transfer files and data across the Internet without breaking them up into discrete information packets. A lengthy uninterrupted line of bits, or discrete information units sent as electrical pulses that computers can understand, could be sent from one computer to another.

However, if more than two computers are involved, this strategy quickly becomes unfeasible. No third computer could utilize the same connections to convey data while the lengthy line of bits traveled between the two computers; it had to wait its turn.

The Internet operates as a “packet switching” network in contrast to this methodology. The ability of networking hardware to process packets independently of one another is known as packet switching. Additionally, it implies that packets can go via several network paths to reach the same location as long as they all get there. (In certain protocols, even if each packet traveled a different path to get there, they still need to arrive at their final destinations in the correct sequence.)

Packets from different computers can flow across the same lines in virtually any order thanks to packet switching. This makes it possible for several connections to occur simultaneously over the same networking equipment.