Book contents
- Frontmatter
- Contents
- Preface
- Acknowledgements
- General conventions
- List of abbreviations
- 0 TCP/IP overview
- 1 Linux and TCP/IP networking
- 2 A single segment network
- 3 Bridges, LANs and the Cisco IOS
- 4 Static and dynamic routing
- 5 UDP and its applications
- 6 TCP study
- 7 Multicast and realtime service
- 8 The Web, DHCP, NTP and NAT
- 9 Network management and security
- References and further reading
- Appendix A Instructor's guide
- Appendix B Initial configuration of the routers
- Appendix C Source code
- Appendix D List of key requests for comments (RFC)
- Index
6 - TCP study
Published online by Cambridge University Press: 05 June 2012
- Frontmatter
- Contents
- Preface
- Acknowledgements
- General conventions
- List of abbreviations
- 0 TCP/IP overview
- 1 Linux and TCP/IP networking
- 2 A single segment network
- 3 Bridges, LANs and the Cisco IOS
- 4 Static and dynamic routing
- 5 UDP and its applications
- 6 TCP study
- 7 Multicast and realtime service
- 8 The Web, DHCP, NTP and NAT
- 9 Network management and security
- References and further reading
- Appendix A Instructor's guide
- Appendix B Initial configuration of the routers
- Appendix C Source code
- Appendix D List of key requests for comments (RFC)
- Index
Summary
The flow on a TCP connection should obey a ‘conservation of packets’ principle. … A new packet isn't put into the network until an old packet leaves.
Van JacobsonObjectives
TCP connection establishment and termination.
TCP timers.
TCP timeout and retransmission.
TCP interactive data flow, using telnet as an example.
TCP bulk data flow, using sock as a traffic generator.
Further comparison of TCP and UDP.
Tuning the TCP/IP kernel.
Study TCP flow control, congestion control, and error control using DBS and NIST Net.
TCP service
TCP is the transport layer protocol in the TCP/IP protocol family that provides a connection-oriented, reliable service to applications. TCP achieves this by incorporating the following features.
Error control: TCP uses cumulative acknowledgements to report lost segments or out of order reception, and a time out and retransmission mechanism to guarantee that application data is received reliably.
Flow control: TCP uses sliding window flow control to prevent the receiver buffer from overflowing.
Congestion control: TCP uses slow start, congestion avoidance, and fast retransmit/fast recovery to adapt to congestion in the routers and achieve high throughput.
The TCP header, shown in Fig. 0.16, consists of fields for the implementation of the above functions. Because of its complexity, TCP only supports unicast, while UDP, which is much simpler, supports both unicast and multicast. TCP is widely used in internet applications, e.g., the Web (HTTP), email (SMTP), file transfer (FTP), remote access (telnet), etc.
- Type
- Chapter
- Information
- TCP/IP EssentialsA Lab-Based Approach, pp. 111 - 133Publisher: Cambridge University PressPrint publication year: 2004