In a p2p network nodes share information by sending messages to each other. In the Ethereum p2p network, nodes send blocks, transactions, and many other type of messages. All nodes need to send the data (e.g., blocks) in a format that other nodes can understand. Thus, messages get serialized before being sent over the network. After the data has been serialized, it can be compressed to reduce the network bandwidth consumption and speed up network transfers.