Details

TCP/IP Architecture, Design, and Implementation in Linux


TCP/IP Architecture, Design, and Implementation in Linux


Practitioners, Band 68 1. Aufl.

von: Sameer Seth, M. Ajaykumar Venkatesulu

117,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 23.01.2009
ISBN/EAN: 9780470377840
Sprache: englisch
Anzahl Seiten: 800

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

This book provides thorough knowledge of Linux TCP/IP stack and kernel framework for its network stack, including complete knowledge of design and implementation. Starting with simple client-server socket programs and progressing to complex design and implementation of TCP/IP protocol in linux, this book provides different aspects of socket programming and major TCP/IP related algorithms. In addition, the text features netfilter hook framework, a complete explanation of routing sub-system, IP QOS implementation, and Network Soft IRQ. This book further contains elements on TCP state machine implementation,TCP timer implementation on Linux, TCP memory management on Linux, and debugging TCP/IP stack using lcrash
<b>Preface.</b> <p><b>Acknowledgments.</b></p> <p><b>1. INTRODUCTION.</b></p> <p>1.1 Overview of TCP/IP Stack.</p> <p>1.2 Source Code Organization for Linux 2.4.20.</p> <p>1.3 TCP/IP Stack and Kernel Control Paths.</p> <p>1.4 Linux Kernel Until Version 2.4 Is Non-preemptible.</p> <p>1.5 Linux Process and Thread.</p> <p>1.6 Kernel Synchronization Mechanism.</p> <p>1.7 Application Interfaces for TCP/IP Programming.</p> <p>1.8 Shutdown.</p> <p>1.9 I/O.</p> <p>1.10 TCP State.<br /> </p> <p>1.11 Summary.</p> <p><b>2. PROTOCOL FUNDAMENTALS.</b></p> <p>2.1 TCP.</p> <p>2.2 TCP Options (RFC 1323).</p> <p>2.3 TCP Data Flow.</p> <p>2.4 Delayed Acknowledgment.</p> <p>2.5 Nagle’s Algorithm (RFC 896).</p> <p>2.6 TCP Sliding Window Protocol.</p> <p>2.7 Maximizing TCP Throughput.</p> <p>2.8 TCP Timers.</p> <p>2.9 TCP Congestion Control.</p> <p>2.10 TCP Performance and Reliability.</p> <p>2.11 IP (Internet Protocol).</p> <p>2.12 Routing.</p> <p>2.13 <i>netstat.</i></p> <p>2.14 <i>traceroute.</i></p> <p>2.15 ICMP.<br /> </p> <p>2.16 <i>ping.</i></p> <p>2.17 ARP/RARP.</p> <p>2.18 Summary.</p> <p><b>3. KERNEL IMPLEMENTATION OF SOCKETS.<br /> </b></p> <p>3.1 Socket Layer.</p> <p>3.2 VFS and Socket.</p> <p>3.3 Protocol Socket Registration.</p> <p>3.4 <i>struct inet_protosw.</i></p> <p>3.5 Socket Organization in the Kernel.</p> <p>3.6 Socket.</p> <p>3.7 <i>inet_create.</i></p> <p>3.8 Flow Diagram for Socket Call.</p> <p>3.9 Summary.</p> <p><b>4. KERNEL IMPLEMENTATION OF TCP CONNECTION SETUP.</b></p> <p>4.1 Connection Setup.</p> <p>4.2 Bind.</p> <p>4.3 Listen.<br /> </p> <p>4.4 Connection Request Handling by Kernel.</p> <p>4.5 Accept.</p> <p>4.6 Client Side Setup.</p> <p>4.7 Summary.<br /> </p> <p><b>5. <i>sk_buff</i> AND PROTOCOL HEADERS.</b></p> <p>5.1 struct <i>sk_buff.</i></p> <p>5.2 struct <i>skb_shared_info.</i></p> <p>5.3 <i>sk_buff</i> and DMA—SKB_FRAG_STRUCT.</p> <p>5.4 Routines Operating on <i>sk_buff.</i></p> <p>5.5 <i>sk_buff</i> Builds Protocol Headers as It Traverses Down the Protocol Layers.</p> <p>5.6 <i>sk_buff</i> Extracts Protocol Headers as It Traverses Up the Protocol Layers When a Packet Arrives.<br /> </p> <p>5.7 Summary.</p> <p><b>6. MOVEMENT OF <i>sk_buff</i> ACROSS PROTOCOL LAYERS.</b></p> <p>6.1 Packet Traversing Down the TCP/IP Stack.</p> <p>6.2 Routed Packet Ready for Transmission.</p> <p>6.3 Kernel Flow for a Packet Moving Down the Stack.</p> <p>6.4 Packet Traversing Up the TCP/IP Stack.</p> <p>6.5 Kernel Flow for a Packet Moving Up the Stack.</p> <p>6.6 Summary.</p> <p><b>7. TCP SEND.</b></p> <p>7.1 TCP Segmentation Unit for Sending Data.</p> <p>7.2 Segmentation with Scatter–Gather Technique.</p> <p>7.3 Sending OOB Data.<br /> </p> <p>7.4 Flow for TCP Segmentation Unit and Send Process.</p> <p>7.5 Functional Level Flow for Segmentation and Send Mechanism.</p> <p>7.6 Summary.</p> <p><b>8. TCP RECEIVE.</b></p> <p>8.1 Queuing Mechanism.</p> <p>8.2 Processing of TCP Data from the Receive Queue.</p> <p>8.3 TCP Urgent Byte Processing.</p> <p>8.4 DATA Flow Diagram for Receiving Data over the TCP Socket.<br /> </p> <p>8.5 Summary.</p> <p><b>9. TCP MEMORY MANAGEMENT.</b></p> <p>9.1 Transmit Side TCP Memory Management.</p> <p>9.2 Receive Side TCP Memory Management.</p> <p>9.3 Freeing of Memory Allocated to a Receive Buffer.<br /> </p> <p>9.4 System-Wide Control Parameters Are Worth Noticing When It Comes to TCP Memory Management.</p> <p>9.5 Summary.</p> <p><b>10. TCP TIMERS.</b></p> <p>10.2 TCP Retransmit Timer.</p> <p>10.3 Zero Window Probe Timer.</p> <p>10.4 Delay ACK Timer.</p> <p>10.5 Keepalive Timer.<br /> </p> <p>10.6 SYN-ACK Timer.</p> <p>10.7 TIME_WAIT Timer.</p> <p>10.7.8 <i>__tcp_tw_hashdance().</i><br /> </p> <p>10.8 Summary.</p> <p><b>11. TCP CORE PROCESSING.</b></p> <p>11.1 TCP Incoming Segment Processing.</p> <p>11.2 Fast Path Processing.</p> <p>11.3 Slow Path Processing.</p> <p>11.4 Processing of Incoming ACK.</p> <p>11.5 Processing of SACK blocks.<br /> </p> <p>11.6 Reordering Length.<br /> </p> <p>11.7 Processing TCP Urgent Pointer.</p> <p>11.8 Processing Data Segments in Slow Path.</p> <p>11.9 Overview of Core TCP Processing.<br /> </p> <p>11.10 Summary.</p> <p><b>12. TCP STATE PROCESSING.<br /> </b></p> <p>12.1 Overview of State Processing.</p> <p>12.2 TCP States.</p> <p>12.3 Processing of Duplicate/Partial ACKs in Recovery State.</p> <p>12.4 Processing of Duplicate/Partial ACKs in Loss State.</p> <p>12.5 Default Processing of TCP States.</p> <p>12.6 Processing of TCP Non-open States when ACKed Beyond <i>tp</i> → <i>high_seq.</i></p> <p>12.7 Summary.<br /> </p> <p><b>13. NETLINK SOCKETS.</b></p> <p>13.1 Introduction to Netlink Sockets.</p> <p>13.2 Netlink Socket Registration and Initialization at Boot Time.</p> <p>13.3 How Is the Kernel Netlink Socket Created?</p> <p>13.4 How Is the User Netlink Socket Created?</p> <p>13.5 Netlink Data Structures.</p> <p>13.6 Other Important Data Strutures.</p> <p>13.7 Netlink Packet Format.<br /> </p> <p>13.8 Netlink Socket Example—tc Command for Adding a qdisc.</p> <p>13.9 Flow Diagram for tc Command in Kernel Space.<br /> </p> <p>13.10 Summary.</p> <p><b>14. IP ROUTING.</b></p> <p>14.1 Routing.</p> <p>14.2 Policy-Based Routing.</p> <p>14.3 Multipathing.</p> <p>14.4 Record Route Options (RFC 791) and Processing by Linux Stack.</p> <p>14.5 Source Routing.</p> <p>14.6 Linux Kernel Implementation of Routing Table and Caches.</p> <p>14.7 Routing Cache Implementation Overview.</p> <p>14.8 Managing Routing Cache.</p> <p>14.9 Implementation Overview of Forwarding Information Base (FIB).</p> <p>14.10 Adding New Entry in Routing Table Using ip Command (RT Netlink Interface).</p> <p>14.11 What Happens When the ip Command Is Run with a Rule Option for Adding an Entry in the Routing Table?<br /> </p> <p>14.12 FIB Traversal Flow Diagram.</p> <p>14.13 Summary.</p> <p><b>15. IP QUALITY OF SERVICE IN LINUX (IP QoS).<br /> </b></p> <p>15.1 Introduction.</p> <p>15.2 Basic Components of Linux Traffi c Control.</p> <p>15.3 Linux Implementation of <i>pfi fo_fast qdisc.</i></p> <p>15.4 Queueing Discipline Data Structure.</p> <p>15.5 tc User Program and Kernel Implementation Details.</p> <p>15.6 The tc Commands for Creating Class Hierarchy for CBQ.</p> <p>15.7 Filters.<br /> </p> <p>15.8 u32 Filter Implementation.</p> <p>15.9 Route Filter Implementation.<br /> </p> <p>15.10 Enqueue.</p> <p>15.11 Overview of Linux Implementation of CBQ.<br /> </p> <p>15.12 <i>cbq_dequeue().</i></p> <p>15.13 Summary.</p> <p><b>16. IP FILTER AND FIREWALL.<br /> </b></p> <p>16.1 Netfi lter Hook Framework.</p> <p>16.2 Netfi lter Hooks on IP Stack.</p> <p>16.3 Overview of Netfi lter Hooks on Linux TCP-IP Stack.</p> <p>16.4 Registration of Netfi lter Hooks.</p> <p>16.5 Processing of Netfi lter Hooks.</p> <p>16.6 Compatibility Framework.<br /> </p> <p>16.7 Ip Chains.</p> <p>16.8 How Is the Packet Filtered with Ipchains.</p> <p>16.9 Iptables.<br /> </p> <p>16.10 Iptables Filter Rules and Target Organization.</p> <p>16.11 Organization of Filter Rules and Target for Iptables.<br /> </p> <p>16.12 Filtering Packets with Iptables.</p> <p>16.13 Summary.</p> <p><b>17. NET SOFTIRQ.<br /> </b></p> <p>17.1 Why Net SoftIRQs, and How Do We Raise Them?</p> <p>17.2 How Are SoftIRQs Are Processed, and When?</p> <p>17.3 Registration of SoftIRQs.</p> <p>17.4 Packet Reception and Delayed Processing by Rx SoftIRQ.</p> <p>17.5 Processing of Net Rx SoftIRQ.</p> <p>17.6 Packet Transmission and SoftIRQ.</p> <p>17.7 Summary.</p> <p><b>18. TRANSMISSION AND RECEPTION OF PACKETS.</b></p> <p>18.1 DMA Ring Buffers for Transmission and Reception of Packets.</p> <p>18.2 Packet Reception Process.</p> <p>18.3 Packet Transmission Process.</p> <p>18.4 Implementation of Reception and Transmission of Packets.</p> <p>18.5 Rx Interrupt for Reception of Packets.</p> <p>18.6 Transmission of Packets.</p> <p>18.7 Summary.</p> <p><b>19. <i>lkcd</i> AND DEBUGGING TCP/IP STACK.</b></p> <p>19.1 <i>lkcd</i> Source and Patches.</p> <p>19.2 Touching the Socket.</p> <p>19.3 Looking into the Receive Socket Buffer.</p> <p>19.3.1 Route Information in <i>sk_buff.</i></p> <p>19.4 Peep into Send Socket Buffer.</p> <p>19.5 TCP Segmentation Unit.</p> <p>19.6 Send Congestion Window and <i>ssthresh.</i></p> <p>19.7 Retransmissions and Route.</p> <p>19.8 Peeping into Connection Queues and SYN Queues.</p> <p>19.9 Routing and IP Qos lcrash Steps.</p> <p>19.10 CBQ (Class-Based) Queueing Discipline lcrash Steps.</p> <p>19.11 U32 Filters.</p> <p>19.12 Route Filters.</p> <p>19.13 FIB Table lcrash Output for Setting Up the Realm Using ip Command.</p> <p>19.14 lcrash Output for Setting Up Route Filter Using tc Command.</p> <p>19.15 Netlink Data Structure.</p> <p>19.16 Summary.<br /> </p> <p><b>20. NEXT EDITION.</b></p> <p><b>Bibliography.</b></p> <p><b>Index.</b></p>
<b>Sameer Seth</b> works at Juniper Networks as Senior Staff Engineer for JUNOS Kernel Team. Previously, he was a senior engineer at Sun Microsystems, where he worked on the TCP/IP stack in Solaris, sockets, streams, NFS, and related kernel framework. He has ten years of experience working with Linux in research and commercial environments. He has also worked on embedded TCP/IP Linux stack as well as on X86 architectures. Additionally, he has worked on different communication protocols on Motorola MPC8260 processors. His community work includes blogging for opensolaris technology (blogs.sun.com/sameer) and he delivers technical talks on open solaris technology. In his spare time he enjoys writing and talking on technical topics related to networking and Unix. <p><b>M. Ajaykumar Venkatesulu</b> is currently working on networking and naming services. He has seven years of experience with Linux networking and kernel in research and commercial environments. His areas of interest include Linux kernel, embedded systems, IP routing, and IP QoS.</p>
<b>The only single-source reference on the concept and implementation of TCP/IP in Linux</b> <p>As open source software becomes a trusted part of business and research systems, it's no wonder that a combination of the Transmission Control Protocol/Internet Protocol (TCP/IP) and the Linux operating system is becoming more common. TCP/IP's prevalence allows easy communication among computers using various operating systems, whether Windows, Mac OS, Linux, or Unix. And Linux—because it is open source and thus modifiable—has become a frequent choice for developers who want a customizable operating system on which to build their applications.</p> <p>This book describes the design and implementation of TCP/IP in Linux, from simple client-server applications to more complex executions. Topical coverage includes:</p> <ul> <li> <p>Basic socket concepts and implementations</p> </li> <li> <p>The Linux implementation of network packets</p> </li> <li> <p>TCP read/write</p> </li> <li> <p>TCP algorithms for data transmission and congestion control</p> </li> <li> <p>TCP timers</p> </li> <li> <p>IP layer and routing tables implementation</p> </li> <li> <p>IP forwarding and quality of service implementation</p> </li> <li> <p>Netfilter hooks for the stacks</p> </li> <li> <p>Network Soft IRQ</p> </li> <li> <p>How to debug a TCP/IP stack</p> </li> </ul> <p>All topics are discussed in a concise, step-by-step manner and the book is complemented with helpful illustrations to give readers a better understanding of the subject. <i>TCP/IP Architecture, Design, and Implementation in Linux</i> is an indispensable resource for embedded-network product developers, network security product developers, IT network architects, researchers, and graduate students.</p>

Diese Produkte könnten Sie auch interessieren:

Windows Vista For Dummies
Windows Vista For Dummies
von: Andy Rathbone
PDF ebook
15,99 €
Mastering Digital Audio Production
Mastering Digital Audio Production
von: Cliff Truesdell
PDF ebook
26,99 €