TCP/IP Illustrated, Volume 1: The Protocols
W. Richard Stevens

ISBN-10: 0201633469
ISBN-13: 9780201633467

Publisher: Addison-Wesley Professional
Copyright: 1994
Format: Cloth; 600 pp
Published: 12/31/1993

Suggested retail price: $79.99
Buy from myPearsonStore

For students writing applications that run over TCP/IP, or for those responsible for managing and maintaining a TCP/IP internet, this book's innovative approach helps readers at all levels to truly understand how TCP/IP really works. Rather than just describing the protocols from an abstract, standards-related point of view-describing what the standards say the protocol suite should do-TCP/IP Illustrated, Volume 1 actually shows the protocols in action. Stevens also recognizes that readers deal with multiple TCP/IP implementations on heterogeneous platforms. Therefore, the examples in this book show how current, popular TCP/IP implementations operate-SunOS 4.1.3, Solaris 2.2, System V Release 4, BSD/386, AIX 3.2.2, and 4.4 BSD-and they relate these real-world implementations to the RFC standards.



1. Introduction.

Introduction.

Layering.

TCP/IP Layering.

Internet Addresses.

The Domain Name System.

Encapsulation.

Demultiplexing.

Client-Server Model.

Port Numbers.

Standardization Process.

RFCs.

Standard, Simple Services.

The Internet.

Implementations.

Application Programming Interfaces.

Test Network.

Summary.



2. Link Layer.

Introduction.

Ethernet and IEEE 802 Encapsulation.

Trailer Encapsulation.

SLIP: Serial Line IP.

Compressed SLIP.

PPP: Point-to-Point Protocol.

Loopback Interface.

MTU.

Path MTU.

Serial Line Throughput Calculations.

Summary.



3. IP: Internet Protocol.

Introduction.

IP Header.

IP Routing.

Subnet Addressing.

Subnet Mask.

Special Case IP Addresses.

A Subnet Example.

ifconfig Command.

netstat Command.

IP Futures.

Summary.



4. ARP: Address Resolution Protocol.

Introduction.

An Example.

ARP Cache.

ARP Packet Format.

ARP Examples.

Proxy ARP.

Gratuitous ARP.

arp Command.

Summary.



5. RARP: Reverse Address Resolution Protocol.

Introduction.

RARP Packet Format.

RARP Examples.

RARP Server Design.

Summary.



6. ICMP: Internet Control Message Protocol.

Introduction.

ICMP Message Types.

ICMP Address Mask Request and Reply.

ICMP Timestamp Request and Reply.

ICMP Port Unreachable Error.

4.4BSD Processing of ICMP Messages.

Summary.



7. Ping Program.

Introduction.

Ping Program.

IP Record Route Option.

IP Timestamp Option.

Summary.



8. Traceroute Program.

Introduction.

Traceroute Program Operation.

LAN Output.

WAN Output.

IP Source Routing Option.

Summary.



9. IP Routing.

Introduction.

Routing Principles.

ICMP Host and Network Unreachable Errors.

To Forward or Not to Forward.

ICMP Redirect Errors.

ICMP Router Discovery Messages.

Summary.



10. Dynamic Routing Protocols.

Introduction.

Dynamic Routing.

Unix Routing Daemons.

RIP: Routing Information Protocol.

RIP Version 2.

OSPF: Open Shortest Path First.

BGP: Border Gateway Protocol.

CIDR: Classless Interdomain Routing.

Summary.



11. UDP: User Datagram Protocol.

Introduction.

UDP Header.

UDP Checksum.

A Simple Example.

IP Fragmentation.

ICMP Unreachable Error (Fragmentation Required).

Determining the Path MTU Using Traceroute.

Path MTU Discovery with UDP.

Interaction Between UDP and ARP.

Maximum UDP Datagram Size.

ICMP Source Quench Error.

UDP Server Design.

Summary.



12. Broadcasting and Multicasting.

Introduction.

Broadcasting.

Broadcasting Examples.

Multicasting.

Summary.



13. IGMP: Internet Group Management Protocol.

Introduction.

IGMP Message.

IGMP Protocol.

An Example.

Summary.



14. DNS: The Domain Name System.

Introduction.

DNS Basics.

DNS Message Format.

A Simple Example.

Pointer Queries.

Resource Records.

Caching.

UDP or TCP.

Another Example.

Summary.



15. TFTP: Trivial File Transfer Protocol.

Introduction.

Protocol.

An Example.

Security.

Summary.



16. BOOTP: Bootstrap Protocol.

Introduction.

BOOTP Packet Format.

An Example.

BOOTP Server Design.

BOOTP Through a Router.

Vendor-Specific Information.

Summary.



17. TCP: Transmission Control Protocol.

Introduction.

TCP Services.

TCP Header.

Summary.



18. TCP Connection Establishment and Termination.

Introduction.

Connection Establishment and Termination.

Timeout of Connection Establishment.

Maximum Segment Size.

TCP Half-Close.

TCP State Transition Diagram.

Reset Segments.

Simultaneous Open.

Simultaneous Close.

TCP Options.

TCP Server Design.

Summary.



19. TCP Interactive Data Flow.

Introduction.

Interactive Input.

Delayed Acknowledgments.

Nagle Algorithm.

Window Size Advertisements.

Summary.



20. TCP Bulk Data Flow.

Introduction.

Normal Data Flow.

Sliding Windows.

Window Size.

PUSH Flag.

Slow Start.

Bulk Data Throughput.

Urgent Mode.

Summary.



21. TCP Timeout and Retransmission.

Introduction.

Simple Timeout and Retransmission Example.

Round-Trip Time Measurement.

An RTT Example.

Congestion Example.

Congestion Avoidance Algorithm.

Fast Retransmit and Fast Recovery Algorithms.

Congestion Example (Continued).

Per-Route Metrics.

ICMP Errors.

Repacketization.

Summary.



22. TCP Persist Timer.

Introduction.

An Example.

Silly Window Syndrome.

Summary.



23. TCP Keepalive Timer.

Introduction.

Description.

Keepalive Examples.

Summary.



24. TCP Futures and Performance.

Introduction.

Path MTU Discovery.

Long Fat Pipes.

Window Scale Option.

Timestamp Option.

PAWS: Protection Against Wrapped Sequence Numbers.

T/TCP: A TCP Extension for Transactions.

TCP Performance.

Summary.



25. SNMP: Simple Network Management Protocol.

Introduction.

Protocol.

Structure of Management Information.

Object Identifiers.

Introduction to the Management Information Base.

Instance Identification.

Simple Examples.

Management Information Base (Continued).

Additional Examples.

Traps.

ASN.1 and BER.

SNMP Version 2.

Summary.



26. Telnet and Rlogin: Remote Login.

Introduction.

Rlogin Protocol.

Rlogin Examples.

Telnet Protocol.

Telnet Examples.

Summary.



27. FTP: File Transfer Protocol.

Introduction.

FTP Protocol.

FTP Examples.

Summary.



28. SMTP: Simple Mail Transfer Protocol.

Introduction.

SMTP Protocol.

SMTP Examples.

SMTP Futures.

Summary.



29. NFS: Network File System.

Introduction.

Sun Remote Procedure Call.

XDR: External Data Representation.

Port Mapper.

NFS Protocol.

NFS Examples.

NFS Version 3.

Summary.



30. Other TCP/IP Applications.

Introduction.

Finger Protocol.

Whois Protocol.

Archie, WAIS, Gopher, Veronica, and WWW.

X Window System.

Summary.



Appendix A. The tcpdump Program.

BSD Packet Filter.

SunOS Network Interface Tap.

SVR4 Data Link Provider Interface.

tcpdump Output.

Security Considerations.

Socket Debug Option.



Appendix B. Computer Clocks.


Appendix C. The sock Program.


Appendix D. Solutions to Selected Exercises.


Appendix E. Configurable Options.

BSD/386 Version 1.0.

SunOS 4.1.3.

System V Release 4.

Solaris 2.2.

AIX 3.2.2.

4.4BSD.



Appendix F. Source Code Availability.


Bibliography.


Index. 0201633469T04062001

We are deeply saddened to learn of the death of noted author W. Richard Stevens. His passing is obviously a tremendous loss for the technical community, but it is a personal one for us as well. Rich was both a gifted colleague and a valued friend who will be greatly missed. We extend our sympathies to his family.

Obituary from the Arizona Daily Star:

STEVENS, W. Richard, noted author of computer books died on September 1. He is best known for his "UNIX Network Programming" series (1990, 1998, 1999), "Advanced Programming in the UNIX Environment" (1992), and "TCP/IP Illustrated" series (1994, 1995, 1996). Richard was born in 1951 in Luanshya, Northern Rhodesia (now Zambia), where his father worked for the copper industry. The family moved to Salt Lake City, Hurley, New Mexico, Washington, DC and Phalaborwa, South Africa. Richard attended Fishburne Military School in Waynesboro, Virginia. He received a B.SC. in Aerospace Engineering from the University of Michigan in 1973, and an M.S. (1978) and Ph.D. (1982) in Systems Engineering from the University of Arizona. He moved to Tucson in 1975 and from then until 1982 he was employed at Kitt Peak National Observatory as a computer programmer. From 1982 until 1990 he was Vice President of Computing Services at Health Systems International in New Haven, CT, moving back to Tucson in 1990. Here he pursued his career as an author and consultant. He was also an avid pilot and a part-time flight instructor during the 1970's.

He is survived by his loving wife of 20 years, Sally Hodges Stevens; three wonderful children, Bill, Ellen and David; sister, Claire Stevens of Las Vegas, NV; brother, Bob and wife Linda Stevens of Dallas, TX; nieces, Laura, Sarah, Collette, Christy; and nephew, Brad. He is predeceased by his parents, Royale J. Stevens (1915-1984); and Helen Patterson Stevens (1916-1997). Helen lived in Tucson from 1991-1997, and Royale lived here in the early 1930's attending Tucson High School while his father was treated for TB at the Desert Sanitorium (now TMC). The family asks that in lieu of flowers, donations be made in Richard's name to Habitat for Humanity, 2950 E. 22nd Street, Tucson, AZ 85713. A memorial service for Richard will be held at St. Phillip's in the Hills Episcopal Church on Tuesday, September 7th at 12:00 noon. Following the service there will be a reception in the Murphy Gallery of the Church. Please wear colorful clothing to the service; Richard loved colors.

W. Richard Stevens was an acknowledged UNIX and networking expert and the highly-respected author of several books. He was also a sought-after instructor and consultant.



TCP/IP Illustrated is a complete and detailed guide to the entire TCP/IP protocol suite-with an important difference from other books on the subject. Rather than just describing what the RFCs say the protocol suite should do, this unique book uses a popular diagnostic tool so you may actually watch the protocols in action.By forcing various conditions to occur-such as connection establishment, timeout and retransmission, and fragmentation-and then displaying the results, TCP/IP Illustrated gives you a much greater understanding of these concepts than words alone could provide. Whether you are new to TCP/IP or you have read other books on the subject, you will come away with an increased understanding of how and why TCP/IP works the way it does, as well as enhanced skill at developing applications that run over TCP/IP.

With this unique approach, TCP/IP Illustrated presents the structure and function of TCP/IP from the link layer up through the network, transport, and application layers. You will learn about the protocols that belong to each of these layers and how they operate under numerous implementations, including Sun OS 4.1.3, Solaris 2.2, System V Release 4, BSD/386TM, AIX 3.2.2, and 4.4BSD.In TCP/IP Illustrated you will find the most thorough coverage of TCP available - 8 entire chapters. You will also find coverage of the newest TCP/IP features, including multicasting, path MTU discovery, and long fat pipes.

"While all of Stevens' books are excellent, this new opus (TCP/IP Illustrated, Volume 1) is awesome. Although many books describe the TCP/IP protocols, the author provides a level of depth and real-world detail lacking from the competition."
- Unix Review

"This book (TCP/IP Illustrated, Volume 1) is a stone jewel...Written by W. Richard Stevens, this book probably provides the most comprehensive view of TCP/IP available today in print."
- Boardwatch

"The diagrams he uses are excellent and his writing style is clear and readable. Please read it (TCP/IP Illustrated, Volume 1) and keep it on your bookshelf."
- Sys Admin

"The word 'illustrated' distinguishes this book (TCP/IP Illustrated, Volume 1) from its many rivals. Stevens uses the Lawrence Berkeley Laboratories tcdump program to capture packets in promiscuous mode under a variety of OS and TCP/IP implementations. Studying tcdump output helps you understand how the various protocols work."
- Unix Review

View a Sample Chapter PDF:

Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students, contact your Pearson Higher Education representative for pricing and ordering information.

This title is a member of the Addison-Wesley Professional Computing Series, which also contains the titles below . You can also visit the Addison-Wesley Professional Computing Series page.

  • 0201379279Advanced CORBA® Programming with C++
    Henning & Vinoski
    © 1999 | Addison-Wesley Professional | Paper; 1120 pages | Instock
    ISBN-10: 0201379279 | ISBN-13: 9780201379273
    Brief Description | Buy from myPearsonStore

  • 0321525949Advanced Programming in the UNIX Environment: Paperback Edition, 2/E
    Stevens & Rago
    © 2008 | Addison-Wesley Professional | Paper; 960 pages | Instock
    ISBN-10: 0321525949 | ISBN-13: 9780321525949
    Buy from myPearsonStore

  • 0201433079Advanced Programming in the UNIX® Environment, 2/E
    Stevens & Rago
    © 2005 | Addison-Wesley Professional | Cloth; 960 pages | Instock
    ISBN-10: 0201433079 | ISBN-13: 9780201433074
    Brief Description | Buy from myPearsonStore

  • 0131411543Advanced UNIX Programming, 2/E
    Rochkind
    © 2004 | Addison-Wesley Professional | Paper; 736 pages | Instock
    ISBN-10: 0131411543 | ISBN-13: 9780131411548
    Brief Description | Buy from myPearsonStore

  • 0131429019The Art of UNIX Programming
    Raymond
    © 2004 | Addison-Wesley Professional | Paper; 560 pages | Instock
    ISBN-10: 0131429019 | ISBN-13: 9780131429017
    Brief Description | Buy from myPearsonStore

  • 020172152XBuilding Secure Software: How to Avoid Security Problems the Right Way
    Viega & McGraw
    © 2002 | Addison-Wesley Professional | Cloth; 528 pages | Instock
    ISBN-10: 020172152X | ISBN-13: 9780201721522
    Brief Description | Buy from myPearsonStore

  • 0201498413C Interfaces and Implementations: Techniques for Creating Reusable Software
    Hanson
    © 1997 | Addison-Wesley Professional | Paper; 544 pages | Instock
    ISBN-10: 0201498413 | ISBN-13: 9780201498417
    Buy from myPearsonStore

  • 0201634988Design Patterns CD: Elements of Reusable Object-Oriented Software
    Gamma, Helm, Johnson & Vlissides
    © 1998 | Addison-Wesley Professional | CD-ROM Only; 2 pages | Instock
    ISBN-10: 0201634988 | ISBN-13: 9780201634983
    Brief Description | Buy from myPearsonStore

  • 0201633612Design Patterns: Elements of Reusable Object-Oriented Software
    Gamma, Helm, Johnson & Vlissides
    © 1995 | Addison-Wesley Professional | Cloth; 416 pages | Instock
    ISBN-10: 0201633612 | ISBN-13: 9780201633610
    Brief Description | Buy from myPearsonStore

  • 0321334876Effective C++: 55 Specific Ways to Improve Your Programs and Designs, 3/E
    Meyers
    © 2005 | Addison-Wesley Professional | Paper; 320 pages | Instock
    ISBN-10: 0321334876 | ISBN-13: 9780321334879
    Brief Description | Buy from myPearsonStore

  • 0201749629Effective STL: 50 Specific Ways to Improve Your Use of the Standard Template Library
    Meyers
    © 2001 | Addison-Wesley Professional | Paper; 288 pages | Instock
    ISBN-10: 0201749629 | ISBN-13: 9780201749625
    Brief Description | Buy from myPearsonStore

  • 020163466XFirewalls and Internet Security: Repelling the Wily Hacker, 2/E
    Cheswick, Bellovin & Rubin
    © 2003 | Addison-Wesley Professional | Paper; 464 pages | Instock
    ISBN-10: 020163466X | ISBN-13: 9780201634662
    Brief Description | Buy from myPearsonStore

  • 020163497XForensic Discovery
    Farmer & Venema
    © 2005 | Addison-Wesley Professional | Cloth; 240 pages | Instock
    ISBN-10: 020163497X | ISBN-13: 9780201634976
    Brief Description | Buy from myPearsonStore

  • 0321618092Forensic Discovery
    Farmer & Venema
    © 2005 | Addison-Wesley Professional | On-line Supplement | Estimated Availability: 12/27/2004
    ISBN-10: 0321618092 | ISBN-13: 9780321618092
    URL: http://safari.informit.com


  • 0201563339Gigabit Networking
    Partridge
    © 1994 | Addison-Wesley Professional | Paper; 416 pages | Estimated Availability: 10/30/1993
    ISBN-10: 0201563339 | ISBN-13: 9780201563337
    Brief Description | Buy from myPearsonStore

  • 0201634481Interconnections: Bridges, Routers, Switches, and Internetworking Protocols, 2/E
    Perlman
    © 2000 | Addison-Wesley Professional | Cloth; 560 pages | Instock
    ISBN-10: 0201634481 | ISBN-13: 9780201634488
    Buy from myPearsonStore

  • 0201633620Large-Scale C++ Software Design
    Lakos
    © 1996 | Addison-Wesley Professional | Paper; 896 pages | Instock
    ISBN-10: 0201633620 | ISBN-13: 9780201633627
    Buy from myPearsonStore

  • 020163371XMore Effective C++: 35 New Ways to Improve Your Programs and Designs
    Meyers
    © 1996 | Addison-Wesley Professional | Paper; 336 pages | Instock
    ISBN-10: 020163371X | ISBN-13: 9780201633719
    Buy from myPearsonStore

  • 020161586XThe Practice of Programming
    Kernighan & Pike
    © 1999 | Addison-Wesley Professional | Paper; 288 pages | Instock
    ISBN-10: 020161586X | ISBN-13: 9780201615869
    Brief Description | Buy from myPearsonStore

  • 0201379236STL Tutorial and Reference Guide: C++ Programming with the Standard Template Library, 2/E
    Musser, Derge & Saini
    © 2001 | Addison-Wesley Professional | Cloth; 560 pages | Instock
    ISBN-10: 0201379236 | ISBN-13: 9780201379235
    Brief Description | Buy from myPearsonStore

  • 0201633469TCP/IP Illustrated, Volume 1: The Protocols
    Stevens
    © 1994 | Addison-Wesley Professional | Cloth; 600 pages | Instock
    ISBN-10: 0201633469 | ISBN-13: 9780201633467
    Brief Description | Buy from myPearsonStore

  • 020163354XTCP/IP Illustrated, Volume 2: The Implementation
    Wright & Stevens
    © 1995 | Addison-Wesley Professional | Cloth; 1200 pages | Instock
    ISBN-10: 020163354X | ISBN-13: 9780201633542
    Brief Description | Buy from myPearsonStore

  • 0201634953TCP/IP Illustrated, Volume 3: TCP for Transactions, HTTP, NNTP, and the UNIX® Domain Protocols
    Stevens
    © 1996 | Addison-Wesley Professional | Cloth; 352 pages | Instock
    ISBN-10: 0201634953 | ISBN-13: 9780201634952
    Buy from myPearsonStore

  • 020163337XTcl and the Tk Toolkit
    Ousterhout
    © 1994 | Addison-Wesley Professional | Paper; 480 pages | Out of Stock
    ISBN-10: 020163337X | ISBN-13: 9780201633375
    Brief Description

  • 0201633388UNIX® Systems for Modern Architectures: Symmetric Multiprocessing and Caching for Kernel Programmers
    Schimmel
    © 1994 | Addison-Wesley Professional | Paper; 432 pages | Instock
    ISBN-10: 0201633388 | ISBN-13: 9780201633382
    Brief Description | Buy from myPearsonStore

  • 0131411551Unix Network Programming, Volume 1: The Sockets Networking API, 3/E
    Stevens, Fenner & Rudoff
    © 2004 | Addison-Wesley Professional | Cloth; 1024 pages | Instock
    ISBN-10: 0131411551 | ISBN-13: 9780131411555
    Brief Description | Buy from myPearsonStore

Pearson Higher Education offers special pricing when you choose to package your text with other student resources. If you're interested in creating a cost-saving package for your students, browse our available packages below, or contact your Pearson Higher Education representative to create your own package.



Copyright ©2008 Pearson Education. All rights reserved. Legal Notice | Privacy Policy | Permissions