Sockets: Fundamentals of TCP/IP Networks 1183Figure 58-3: Layered communication via the TCP/IP protocols
Figure 58-4: Encapsulation within the TCP/IP protocol layers
TCP protocol
(transfers TCP segments)Data link protocol
(transfers data frames)IP protocol
(transfers IP datagrams)ApplicationTCPIPData linkApplicationTCPIPData linkApplication-defined protocol
(transfers application data)Network mediumTCP
segmentIP
datagramApplication
dataSource + destination
port #, sequence #,
acknowledgement #,
flags, checksum, etc.TCP header TCP dataSource +
destination IP
address, header
checksum, etc.IP header IP dataApplication-defined
content