|
读过这本书吗?
最近在读
读过
想读
还不熟悉
|
图书城书列:
加入到博客或社交网站:
|
|
我来评论这本书:
内容提要:
TCP/IP Illustrated, and 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: The Implementation contains a thorough explanation of how TCP/IP protocols are implemented. There isn't a more practical or up-to-date book-this 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.
目录:
Chapter 1. IntroductIon
1.1 Introduction 1 1.2 Source Code Present8tion 1 1.3 story 3 1.4 AppIication Programming Int6rfaces 5 1.5 Example Program 5 1.6 System CaIls and Library FunCtions 7 1.7 NetWork lmpIement8tion Overview 9 1.8 Descriptors 10 1.9 Mbufs (Memory Buffers) and Output Processing 15 1.10 lnput Processlng 19 1.11 NetWork lmpIementation Overview Revis1ted 22 1.12 Interrupt Levels and Concurrency 23 1.13 Source Code Organization 26 1.14 Test Netwoth 28 1.15 Summary 29 Chapter 2. Mbufs: Memory Buff6rs 2.1 IntroduCtion 31 2.2 Code lntroduction 36 2.3 Mbuf DefinitIons 37 2.4 mbuf Structure 38 2.5 Simple Mbuf Macros and Functions 40 2.6 m_devget and m_pul1up Functions 44 2.7 Summary of Mbuf Macros and FunCtions 51 2.8 Summary of NeU3 Nberking D8ta StruCtures 54 2.9 rucorw and CIust6r Reference Counts 56 2.10 Alternatives 60 2.11 Summary 60 ChaPter 3. lnterf8ce Layer 3.1 lntrOduCtion 63 3.2 Code Introduction 64 3.3 lf net StrUCtUre 65 3.4 ifaddr StruCture 73 3.5 sockaddr StruCture 74 3.6 lf net and ifaddr SP6ciaIiz8tion 76 3.7 NetWork InitiaIizatton Overview 77 3.8 Ethern6t lnitialization 80 3.9 SLlP lnitiaIiz8tion 82 3.10 Loopb8ck InitiaIiZaion 85 3.11 lf--attach FunCtion 85 3.12 1flnit FunCtton 93 3.13 Summary 94 ChaPter 4. lnt6deces: Ethernet 4.1 IntroduCtion 95 4.2 Code IntrOduCtion 96 4.3 Ethernet lnterf8ce 98 4.4 1octl SyStem CatI 114 4.5 Summary 125 Chapter 5. lnt6rfaces: SLlP and Loopback 5.1 lntrOduCtion 127 5.2 Code lntroduction 127 5.3 SUP lnterf8ce 128 5.4 Loopback lnterf8ce 150 5.5 Summary 153 Chapt6r 6. lP Addressing 6.1 IntroduCtion 155 6.2 Code Introduction 158 6.3 tnterface and Address Summary 158 6.4 sockaddr--ln StruCture 160 6.5 in--ifdddr StruCture 161 6.6 Address Assignment 161 6.7 Interface ioct1 Processing 177 6.8 lnternet Utility FunCtions 181 6.9 if net Utility FunCtions 182 6.10 Summary 183 ChaPter 7. Domains and Pndocols 7.1 IofroduCtion 185 7.2 Code IntrOduCtion 186 7.3 domain StruCture 187 7.4' protosw StrUCtUre 188 7.5 IP domain artd protosw Structures 191 7.6 pfflndproto and pffindtype FunCtions 196 7.7 pfct1input Function 198 7.8 IP lnitiaIization 199 7.9 sysctl System CaII 201 7.10 Summary 204 Chapt6r 8. lP: lnt6rn6t Protheol 8.1 IntroduCtion 205 8.2 COde IntroduCtion 206 8.3 IP P8Ck6ts 210 8.4 lnPut Processjng f ipintr Function 212 8.5 FOrWarding' iPforwaId FunCtion 220 8.6 Output PMssinQ' ip--output FunCtion 228 8.7 Int6rnet Ch60ksum' in--cksum Funotinn 234 8.8 setsockopt and getsockopt SyStem CaIls 239 8.9 iPsysct1 FunCtion 244 8.10 Summary 245 ChaPter 9. IP OPtlon Processlng 9.1 IntbouCtion 247 9.2 Code Introdudion 247 9.3 Option F0rmat 248 9.4 ip--dooptlons FunCtion 249 9.5 Record Route Option 252 9.6 Source and Record Route OPtions 254 9.7 Timestamp Option 261 9.8 lp--lnsertoptions Function 265 9.9 lp--Pcbopts FunCtion 269 9.10 Limitations 272 9.11 Summary 272 Chapt6r 10. IP Fragment8tion and ReassembIy 10.1 lntroduCtion 275 10.2 C0de lntrOductIon 277 10.3 Fmpmentation 278 10.4 lp--optcopy FunCtion 282 10.5 ReassembIy 283 10.6 ip--reass FunCtion 286 10.7 ip--s1owtlmo FunCtion 298 10.8 Summary 300 Chapter 11. ICMP: lnternet Control Message Pbocol 11.1 lntroduCtion 301 11.2 Code lntroduCtion 305 11.3 ictnp StruCture 308 11.4 lCMP protosw StruCture 309 11.5 Input Processing: icmP--input Fuodion 310 11.6 Error Processing 313 11.7 Request Processing 316 11.8 RedireCt Processing 321 11.9 RepIy Processing 323 11.10 Output Processing 324 11.11 icmP--error Fun0tion 324 11.12 lcro--ret1ect FunCtion 328 11.13 icmP--send Function 333 11.14 lcco--sysctl FunCtIon 334 11.15 Summary 335 Chapter 12. lP MuItlcastlng 12.1 lotrOduCtion 337 12.2 Code lntrOdodion 340 12.3 Ethern6t MuIticaSt Addresses 341 12.4 etheramulti StruCture 342 12.5 Ethern6t Multicast Reception 344 12.6 ininultl StrUCtUre 345 12.7 ippooptions StrUCtUre 347 12.8 MuIticast S0Cket OPtIons 348 12.9 MulticaSt TTL V8Iues 348 12.10 ip_setmoptions FunCtion 351 12.11 Joining an lP MuIticaSt Group 355 12.12 Leaving an tP MulticaSt Group 366 12.13 lp--getmoptlons Function 371 12.14 Multicast Input Processing: ipintr FunCtion 373 12.15 Multicast Output Processing f ip--output FunCtion 375 12.16 Perf0rmance Considerations 379 12.17 Summary 379 ChaPter 13. lGMP: lnternet Group Management ProtocoI 13.1 IntroduCtion 381 13.2 Code IntroduCtion 382 13.3 lgmp StrUCtUre 384 13.4 IGMP protQsw StrUCtUre 384 13.5 Joining a Group f lgmp--3olngroup FunCtion 386 13.6 lgmp--fasttimo Function 387 13.7 lnput Processingt igmp--lnput Function 391 13.8 Leaving a Group f lgmp--leavegroup Function 395 13.9 Summary 396 Chapt6r 14. IP MuIticast Routing 14.1 Introduction 397 14.2 Code Introduction 398 14.3 Mufticast Output Processing Revisit6d 399 14.4 mrouted Daemon 401 14.5 VirtuaI lnterfaces 404 14.6 IGMP Revisited 411 14.7 Multicast Routing 416 14.8 Multicast FOrwarding f lpamforward Function 424 14.9 Cleanup; ipinrouter--done Function 433 14.10 Summary 434 Chapt6r 15. Socket Layer 15.1 IntroduCtion 435 15.2 Code lntroduCtion 436 15.3 socket Structure 437 15.4 System Calls 441 15.5 Processes, Descriptors, and Sock6ts 445 15.6 socket System Call 447 15.7 getsock and sockargs FunCtions 451 15.8 blnd System CalI 453 15.9 llsten SyStem Call 455 15.10 ts1eep and wakeup FunCtions 456 15.11 accept System CaII 457 15.12 sonewconn and soisconnected Functions 461 15.13 connect System caII 464 15.14 shutdown System Call 468 15.15 close System Call 471 15.16 Summary 474 Chapter 16. Sock6t UO 16.1 Introduction 475 16.2 Code Introduction 475 16.3 Socket Buffers 476 16.4 wrlte, writev, sendto, and sendrisg System Calls 16.5 sendrisg System Call 483 16.6 sendlt FunCtion 485 16.7 sosend FunCtion 489 16.8 read, readv, recvfrom, and recwnsg Syst6m Calls 16.9 recwnsg System CalI 501 16.10 recvlt FunCtion 503 1 6.1 1 sorecelve FunCtIon 505 16.12 sorece1ve Code 510 16.13 se1ect System Call 524 16.14 Summary 534 ChaPter 17. Socket OPtions 17.1 lntrOduCtion 537 17.2 Code lntrOduCtion 538 17.3 setsockoPt System CalI 539 17.4 getsockopt SyStem CalI 545 17.5 fcntl aed 1oct1 System CaIls 548 17.6 getsockname SyStem CalI 554 17.7 getpeername Syst6m Call 554 17.8 Summary 557 ChaPter 18. Radix Tree Routing TSbIes 18.1 lntrOduCtion 559 18.2 Routing T8ble StruCture 560 18.3 RoUting SOCkats 569 18.4 COde lntrOduotion 570 18.5 Radix Node Data StruCtures 573 18.6 Routing StruCtures 578 18.7 Initia[izationt route--lnlt and rtable--lnlt FunCtions 581 18.8 lnitialhation' rn--init and rn--inlthead FunCtions' 584 18.9 Duplicate Keys and Mask LiSts 587 18.10 rnamatch FunCtion 591 18.11 rn--search FunCtion 599 18.12 Summary 599 Chapt6r 19. Routing Requests and Routing Messages 19.1 lntrOduCtion 601 19.2 rta11oc and rta11ocl FunCtions 601 19.3 RTFREE Macro and rtfree FunCtion 604 19.4 rtrequest FunCtion 607 19.5 rt--setgate Function 612 19.6 rtinit FunCtion 615 19.7 rtredirect FunCtion 617 19.8 Routing Message Structures |