Chapter 2: Choosing between Protocols: TCP and UDP
In This Chapter
Comparing TCP versus UDP for network communication
Examining the header structures
Figuring out when to use TCP and UDP
Getting familiar with three-way handshaking
Understanding how TCP sliding windows operate
As I mention in earlier chapters when discussing the Open System Interconnection (OSI) model and the Internet Protocol (IP) network model, Transmission Control Protocol (TCP) and User Datagram Protocol (UDP) are network protocols that operate at the transport or host-to-host layer, depending on the model you are using. They are responsible for the delivery control mechanisms in use with the TCP/IP suite of protocols.
In this chapter, I show you how TCP and UDP allow you to send data over a large IP-based network and the significance of choosing one transport layer protocol over another. In showing you how these two protocols operate, you see where they fit into the IP packet (which I also discuss in Chapter 1 ...