In the following sub-sections, the TCP and UDP (client and server) operations are described in details.