October 2018
Intermediate to advanced
420 pages
10h 26m
English
Framing is the first step to be done when network packets are received, and the last one when network messages are sent. In fact, the need for this step depends on the network protocol being used. Network protocols are classified in two categories:
Datagram protocols operate on datagrams, that is, messages. Datagrams are the base unit sent on the network. So a producer writes a datagram on the network, and a receiver receives this same datagram, or nothing if an error occurred. UDP is an example of a datagram protocol.
Stream protocols operate on bytes. Bytes are the base units that are sent on the network. So, a producer writes bytes on the network link, and a receiver receives these bytes, but ...