Home > Store > Networking
TCP/IP Illustrated, Volume 2: The Implementation
- By Gary R. Wright, W. Richard Stevens
- Published Jan 31, 1995 by Addison-Wesley Professional. Part of the Addison-Wesley Professional Computing Series series.
- Copyright 1995
- Dimensions: 7-3/8x9-1/4
- Pages: 1200
- Edition: 1st
- Book
- ISBN-10: 0-201-63354-X
- ISBN-13: 978-0-201-63354-2
Register your product to gain access to bonus material or receive a coupon.
TCP/IP Illustrated, an ongoing series covering the many facets of TCP/IP, brings a highly-effective visual approach to learning about this networking protocol suite.
TCP/IP Illustrated, Volume 2 contains a thorough explanation of how TCP/IP protocols are implemented. There isn't a more practical or up-to-date bookothis volume is the only one to cover the de facto standard implementation from the 4.4BSD-Lite release, the foundation for TCP/IP implementations run daily on hundreds of thousands of systems worldwide.
Combining 500 illustrations with 15,000 lines of real, working code, TCP/IP Illustrated, Volume 2 uses a teach-by-example approach to help you master TCP/IP implementation. You will learn about such topics as the relationship between the sockets API and the protocol suite, and the differences between a host implementation and a router. In addition, the book covers the newest features of the 4.4BSD-Lite release, including multicasting, long fat pipe support, window scale, timestamp options, and protection against wrapped sequence numbers, and many other topics.
Comprehensive in scope, based on a working standard, and thoroughly illustrated, this book is an indispensable resource for anyone working with TCP/IP.
|
50 of 51 people found the following review helpful
By
This review is from: TCP/IP Illustrated, Vol. 2: The Implementation (Hardcover)
Even though this book was first published in 1995, it still serves as a useful research and reference guide to those involved in changing the TCP/IP protocol or the mathematical and simulation modeling of it. Most of the source code is included for the protocol and UDP is treated also, with Berkeley TCP/IP used as the protocol implementation. A brief introduction to descriptors and memory buffers is given in Chapter 1, along with a discussion of input processing. The authors treat memory buffers (Mbufs) in detail in Chapter 2. Four different types of Mbufs are used in the protocol, depending on the flag setting in the m_flags member of the header. The source code clearly illustrates the data structures used for the Mbufs. This is followed by a detailed discussion of the Mbuf macros and functions. This is followed in the next chapter with a discussion of the interface layer and the all-important sockaddr data structure. In addition, the system initialization procedures are treated...
Read more
52 of 54 people found the following review helpful
By
Amazon Verified Purchase(What's this?)
This review is from: TCP/IP Illustrated, Vol. 2: The Implementation (Hardcover)
I bought this book shortly after finishing Volume 1. With volume 1, I found myself staying up late to read more, but volume 2 gets tiring after a while... it's literally a detailed analysis of every single line of networking code in the BSD 4.3 kernel. Although it's well worth the effort, I found myself reading no more than about 10 pages at a time (constantly flipping back, sometimes almost all the way to the beginning, to re-read something I hadn't quite absorbed the first time).Difficulty aside, this book alone will honestly make you a TCP/IP guru - now that I've read volumes 1 and 2, the networking administrators where I work come to me with questions about issues they can't resolve. I'm literally comfortable saying that there's nothing I don't know about TCP/IP, and that's not a statement I'd make lightly (feel free to test me). But more than that, I learned a *lot* about writing good, solid code... in learning the networking stack as a whole, I was able to understand some... Read more
22 of 22 people found the following review helpful
By Nirav Raval (Canada) - See all my reviews
This review is from: TCP/IP Illustrated, Vol. 2: The Implementation (Hardcover)
I was always fascinated by the way computers were connected over the networks and communicated. Being a software programmer, I was looking for a book which could explain how the internet protocols work. TCP/IP Illustrated gave me an excellent and in-depth details of how TCP/IP is implemented with a unique line by line explanation of source code and clear diagrams. The book is an absolute must on every network programmer's book shelf and for anyone like me interested in getting closer look at the way TCP/IP functions.
|
› See all 19 customer reviews...
Praise For TCP/IP Illustrated, Volume 2: The Implementation
Quotes of Note
"Teaching Cisco internetworking classes around the country, I get to hear about every new data communications book of note because my students bring them to class for reference. Stevens' TCP/IP Illustrated, Volume 1 arrived like a bomb going off ... students raved about the book. I've just read TCP/IP Illustrated, Volume 2. If Volume 1 was like a bomb, then Volume 2 is the Big Bang!"
"After reading Stevens' TCP/IP Illustrated, Volume 1, I thought it would be hard to come up with another book as useful, but Volume 2 is just that. Some of you might ask how this book applies to you if you aren't a full-time network programmer. Since my earliest days of using UNIX, the standard answer to 'How does this really work?' has been 'Look at the source.' With this book, you can not only look at the source, but also have one of the clearest explanations as to how it all fits together."
"When I reviewed Volume 1 (in 1993), I said I was looking forward to Volume 2. I was. I now stand in awe. Stevens and his collaborator, Gary Wright, have taken the 4.4BSD-Lite implementation of the TCP/IP suite and gone through every protocol and its requirements in detail. This is not a "how-to" bookothis is a book that facilitates understanding at the highest level."
Online Sample Chapter
Preface
Introduction
This book describes and presents the source code for the common reference implementation of TCP/IP: the implementation from the Computer Systems Research Group (CSRG) at the University of California at Berkeley. Historically this has been distributed with the 4.x BSD system (Berkeley Software Distribution). This implementation was first released in 1982 and has survived many significant changes, much fine tuning, and numerous ports to other Unix and non-Unix systems. This is not a toy implementation, but the foundation for TCP/IP implementations that are run daily on hundreds of thousands of systems worldwide. This implementation also provides router functionality, letting us show the differences between a host implementation of TCP/IP and a router.We describe the implementation and present the entire source code for the kernel implementation of TCP/IP, approximately 15,000 lines of C code. The version of the Berkeley code described in this text is the 4.4BSD-Lite release. This code was made publicly available in April 1994, and it contains numerous networking enhancements that were added to the 4.3BSD Tahoe release in 1988, the 4.3BSD Reno release in 1990, and the 4.4BSD release in 1993. (App sourceB describes how to obtain this source code.) The 4.4BSD release provides the latest TCP/IP features, such as multicasting and long fat pipe support (for high-bandwidth, long-delay paths). {Fig 1.1} (p. 4) provides additional details of the various releases of the Berkeley networking code.
This book is intended for anyone wishing to understand how the TCP/IP protocols are implemented: programmers writing network applications, system administrators responsible for maintaining computer systems and networks utilizing TCP/IP, and any programmer interested in understanding how a large body of nontrivial code fits into a real operating system.
Organization of the Book
We take a bottom-up approach to the TCP/IP protocol suite, starting at the data-link layer, then the network layer (IP, ICMP, IGMP, IP routing, and multicast routing), followed by the socket layer, and finishing with the transport layer (UDP, TCP, and raw IP).Intended Audience
This book assumes a basic understanding of how the TCP/IP protocols work. Readers unfamiliar with TCP/IP should consult the first volume in this series, Stevens 1994, for a thorough description of the TCP/IP protocol suite. This earlier volume is referred to throughout the current text as Volume 1. The current text also assumes a basic understanding of operating system principles.We describe the implementation of the protocols using a data-structures approach. That is, in addition to the source code presentation, each chapter contains pictures and descriptions of the data structures used and maintained by the source code. We show how these data structures fit into the other data structures used by TCP/IP and the kernel. Heavy use is made of diagrams throughout the text - there are over 250 diagrams. This data-structures approach allows readers to use the book in various ways. Those interested in all the implementation details can read the entire text from start to finish, following through all the source code. Others might want to understand how the protocols are implemented by understanding all the data structurestand reading all the text, but not following through all the source code.
We anticipate that many readers are interested in specific portions of the book and will want to go directly to those chapters. Therefore many forward and backward references are provided throughout the text, along with a thorough index, to allow individual chapters to be studied by themselves. The inside back covers contain an alphabetical cross-reference of all the functions and macros described in the book and the starting page number of the description. Exercises are provided at the end of the chapters; most solutions are in Appendix A to maximize the usefulness of the text as a self-study reference.
Source Code Copyright
All of the source code presented in this book, other than Figures 1.2 and 8.27, is from the 4.4BSD-Lite distribution. This software is publicly available through many sources (Appendix B). All of this source code contains the following copyright notice:
Acknowledgments
We thank the technical reviewers who read the manuscript and provided important feedback on a tight timetable: Ragnvald Blindheim, Jon Crowcroft, Sally Floyd, Glen Glater, John Gulbenkian, Don Hering, Mukesh Kacker, Berry Kercheval, Brian W. Kernighan, Ulf Kieber, Mark Laubach, Steven McCanne, Craig Partridge, Vern Paxson, Steve Rago, Chakravardhi Ravi, Peter Salus, Doug Schmidt, Keith Sklower, Ian Lance Taylor, and G. N. Ananda Vardhana. A special thanks to the consulting editor, Brian Kernighan, for his rapid, thorough, and helpful reviews throughout the course of the project, and for his continued encouragement and support.Our thanks (again) to the National Optical Astronomy Observatories (NOAO), especially Sidney Wolff, Richard Wolff, and Steve Grandi, for providing access to their networks and hosts. Our thanks also to the U.C. Berkeley CSRG: Keith Bostic and Kirk McKusick provided access to the latest 4.4BSD system, and Keith Sklower provided the modifications to the 4.4BSD-Lite software to run under BSD/386 V1.1.
G.R.W. wishes to thank John Wait, for several years of gentle prodding; Dave Schaller, for his encouragement; and Jim Hogue, for his support during the writing and production of this book.
W.R.S. thanks his family, once again, for enduring another "small" book project. Thank you Sally, Bill, Ellen, and David.
The hardwork, professionalism, and support of the team at Addison-Wesley has made the authors' job that much easier. In particular, we wish to thank John Wait for his guidance and Kim Dawley for her creative ideas.
Camera-ready copy of the book was produced by the authors. It is only fitting that a book describing an industrial-strength software system be produced with an industrial-strength text processing system. Therefore one of the authors chose to use the Groff package written by James Clark, and the other author agreed begrudgingly.
We welcome electronic mail from any readers with comments, suggestions, or bug fixes: tcpipiv2-book@aw.com. Each author will gladly blame the other for any remaining errors.
Gary R. Wright
Middletown, Connecticut
W. Richard Stevens
Tucson, Arizona
November 1994
020163354XP04062001
Table of Contents
(All chapters conclude with a Summary.)
1. Introduction.
2. Mbufs.
3. Interface Layer.
4. Interfaces.
5. Interfaces.
6. IP Addressing.
7. Domains and Protocols.
8. IP: Internet Protocol.
9. IP Option Processing.
10. IP Fragmentation and Reassembly.
11. ICMP: Internet Control Message Protocol.
12. IP Multicasting.
13. IGMP: Internet Group Management Protocol.
14. IP Multicast Routing.
15. Socket Layer.
16. Socket I/O.
17. Socket Options.
18. Radix Tree Routing Tables.
19. Routing Requests and Routing Messages.
20. Routing Sockets
21. ARP: Address Resolution Protocol.
22. Protocol Control Blocks.
23. UDP: User Datagram Protocol.
24. TCP: Transmission Control Protocol.
25. TCP Timers.
26. TCP Output.
27. TCP Functions.
28. TCP Input.
29. TCP Input (Continued).
30. TCP User Requests.
31. BPF: BSD Packet Filter.
32. Raw IP.
Epilogue.
Appendix A. Solutions to Selected Exercises.
Appendix B. Source Code Availability.
Appendix C. RFC 1122 Compliance.
Bibliography.
Index. 020163354XT04062001
Errata
Click below for Errata related to this title:
Errata

This book includes free shipping!
This book includes free shipping!

eBook (Watermarked)
$67.99
$54.39
Includes EPUB and PDF
About eBook Formats
This eBook includes the following formats, accessible from your Account page after purchase:
PDFThe popular standard, used most often with the free Adobe® Reader® software.
EPUBThe open industry format known for its reflowable content and usability on supported mobile devices.
This eBook requires no passwords or activation to read. We customize your eBook by discretely watermarking it with your name, making it uniquely yours.
- Request an Instructor or Media review copy.
- Corporate, Academic, and Employee Purchases
- International Buying Options
Get access to thousands of books and training videos about technology, professional development and digital media from more than 40 leading publishers, including Addison-Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media, Wrox, Apress, and many more. If you continue your subscription after your 30-day trial, you can receive 30% off a monthly subscription to the Safari Library for up to 12 months. That's a total savings of $199.




