Networks can be arranged in different topologies. Encryption is used to ensure that messages can be sent securely over a network.
Transmissions over a network can be extremely large in size. To send a large message in one go would be impractical, as both the sending and receiving node would be tied up with one communication.
Instead, a method called packet switching is used. With packet switching, messages are broken up into very small pieces, called packets. Each packet consists of two parts:
The packets are sent individually across the network and put back together to reform the message at the other end.
Packets may or may not follow the same route - they are sent along whichever route allows the quickest transmission. Packets, therefore, may arrive out of sequence. The recipient takes each packet, makes a note of its number and assembles them into the correct order.
Sending small packets allows a node to send more than one message at the same time. It is rather like speaking to two people at the same time, saying one word to each person in turn.
Packet switching also helps to ensure messages arrive complete without slowing down a network. If the recipient finds packets are missing, it can request that just those packets are re-sent. This saves having to resend the whole message, which is especially useful if the message is a large video file.