TCP/IP 详解(卷2):实现(英文版)

TCP/IP 详解(卷2):实现(英文版)
分享
扫描下方二维码分享到微信
打开微信,点击右上角”+“,
使用”扫一扫“即可将网页分享到朋友圈。
作者: [美] (Gary R.Wright) [美] (W.Richard Stevens)
出版社: 人民邮电出版社
2010-04
版次: 1
ISBN: 9787115222480
定价: 139.00
装帧: 平装
开本: 16开
纸张: 胶版纸
页数: 1174页
字数: 1440千字
正文语种: 英语
  •   《TCP/IP详解·卷2:实现(英文版)》是已故网络专家、著名技术作W.RichardStevens的传世之作,内容详尽且具权威性,被誉为TCP/IP领域的不朽名著。《TCP/IP详解卷2:实现(英文版)》是《TCP/IP详解》三卷本的第2卷,重点关注TCP/IP协议的实现问题。书中介绍了一个实际的TCP/IP实现,并给出了这一实现的完整源代码,大约有15000行C代码。此外,几乎每章都提供精选的习题,并在附录中提供了部分习题的答案。
      这一卷要求读者对TCP/IP协议的工作原理以及操作系统原理有初步的了解。对TCP/IP协议不是很熟悉的读者应先阅读《TCP/IP详解》的第1卷,该书对TCP/IP协议族有比较透彻的描述。
      《TCP/IP详解》对于网络应用的开发人员、网络管理员以及任何想了解TCP/IP协议运行原理的人员来说,都是极好的权威参考书。无论是初学者还是功底深厚的网络领域高手,这套书都应是案头必备。   Gary.Wright,研究TCP/IP多年。他是Connix公司的董事长,Cotlnix公司的总部在康涅狄格州,主要提供Intermet接入和咨询服务。
      W.RichardStevens(1951-1999)国际知名的LJNIX和网络专家,备受赞誉的技术作家。生前著有《TCP/IP详解》(三卷)、《UNIX环境高级编程》和《UNIX网络编程》(两卷),均为不朽的经典著作。 Prefacexix
    Chapter1.Introduction1
    1.1Introduction1
    1.2SourceCodePresentation1
    1.3History3
    1.4ApplicationProgrammingInterfaces5
    1.5ExampleProgram5
    1.6SystemCallsandLibraryFunctions7
    1.7NetworkImplementationOverview9
    1.8Descriptors10
    1.9Mbufs(MemoryBuffers)andOutputProcessing15
    1.10InputProcessing19
    1.11NetworkImplementationOverviewRevisited22
    1.12InterruptLevelsandConcurrency23
    1.13SourceCodeOrganization26
    1.14TestNetwork28
    1.15Summary29

    Chapter2.Mbufs:MemoryBuffers31
    2.1Introduction31
    2.2CodeIntroduction36
    2.3MbufDefinitions37
    2.4mbufStructure38
    2.5SimpleMbufMacrosandFunctions40
    2.6m_devgetandm_pullupFunctions44
    2.7SummaryofMbufMacrosandFunctions51
    2.8SummaryofNet/3NetworkingDataStructures54
    2.9m_copyandClusterReferenceCounts56
    2.10Alternatives60
    2.11Summary60

    Chapter3.InterfaceLayer63
    3.1Introduction63
    3.2CodeIntroduction64
    3.3ifnetStructure65
    3.4ifaddrStructure73
    3.5sockaddrStructure74
    3.6ifnetandifaddrSpecialization76
    3.7NetworkInitializationOverview77
    3.8EthernetInitialization80
    3.9SLIPInitialization82
    3.10LoopbackInitialization85
    3.11ifattachFunction85
    3.12ifinitFunction93
    3.13Summary94

    Chapter4.Interfaces:Ethernet95
    4.1Introduction95
    4.2CodeIntroduction96
    4.3EthernetInterface98
    4.4ioct1SystemCall114
    4.5Summary125

    Chapter5.Interfaces:SLIPandLoopback127
    5.1Introduction127
    5.2CodeIntroduction127
    5.3SLIPInterface128
    5.4LoopbackInterface150
    5.5Summary153

    Chapter6.IPAddressing155
    6.1Introduction155
    6.2CodeIntroduction158
    6.3InterfaceandAddressSummary158
    6.4sockaddrinStructure160
    6.5inifaddrStructure161
    6.6AddressAssignment161
    6.7InterfaceioctlProcessing177
    6.8InternetUtilityFunctions181
    6.9ifnetUtilityFunctions182
    6.10Summary183

    Chapter7.DomainsandProtocols185
    7.1Introduction185
    7.2CodeIntroduction186
    7.3domainStructure187
    7.4protoswStructure188
    7.5IPdomainandprotoswStructures191
    7.6pffindprotoandpffindtypeFunctions196
    7.7pfctiinputFunction198
    7.8IPInitialization199
    7.9sysctlSystemCall201
    7.10Summary204

    Chapter8.IP:InternetProtocol205
    8.1Introduction2205
    8.2CodeIntroduction2206
    8.3IPPackets210
    8.4InputProcessing:ipintrFunction2212
    8.5Forwarding:ip_forwardFunction2220
    8.6OutputProcessing:ip_output 2Function228
    8.7InternetChecksum:incksum 2Function234
    8.8setsockoptandgetsockoptSystemCalls2239
    8.9ip_sysctiFunction2244
    8.10Summary245

    Chapter9.IPOptionProcessing247
    9.1Introduction247
    9.2CodeIntroduction247
    9.3OptionFormat248
    9.4ip_dooptionsFunction249
    9.5RecordRouteOption252
    9.6SourceandRecordRouteOptions254
    9.7TimestampOption261
    9.8ip_insertoptionsFunction265
    9.9ip_pcboptsFunction269
    9.10Limitations272
    9.11Summary272

    Chapter10.IPFragmentationandReassembly275
    10.1Introduction275
    10.2CodeIntroduction277
    10.3Fragmentation278
    10.4ip_optcopyFunction282
    10.5Reassembly283
    10.6ip_reassFunction286
    10.7ip_s1owtimoFunction298
    10.8Summary300

    Chapter11.ICMP:InternetControlMessageProtocol301
    11.1Introduction301
    11.2CodeIntroduction305
    11.3icmpStructure308
    11.4ICMPprotoswStructure309
    11.5InputProcessing:icmp_inputFunction310
    11.6ErrorProcessing313
    11.7RequestProcessing316
    11.8RedirectProcessing321
    11.9ReplyProcessing323
    11.10OutputProcessing324
    11.11icmp_errorFunction324
    11.12icmp_ref1ectFunction328
    11.13icmp_sendFunction333
    11.14i-icmp_sysctlFunction334
    11.15Summary335

    Chapter12.IPMulticasting337
    12.1Introduction337
    12.2CodeIntroduction340
    12.3EthernetMulticastAddresses341
    12.4e_thermu1tiStructure342
    12.5EthernetMulticastReception344
    12.6in_mu1tiStructure345
    12.7ip_moptionsStructure347
    12.8MulticastSocketOptions348
    12.9MulticastTTLValues348
    12.10ip_setmoptionsFunction351
    12.11JoininganIPMulticastGroup355
    12.12LeavinganIPMulticastGroup366
    12.13ip_getmoptionsFunction371
    12.14MulticastInputProcessing:ipintrFunction373
    12.15MulticastOutputProcessing:ip_outputFunction375
    12.16PerformanceConsiderations379
    12.17Summary379

    Chapter13.IGMP:InternetGroupManagementProtocol381
    13.1Introduction381
    13.2CodeIntroduction382
    13.3i_gmpStructure384
    13.4IGMPprotoswStructure384
    13.5JoiningaGroup:igmp_joingroupFunction386
    13.6i_gmp_fasttimoFunction387
    13.7InputProcessing:igmp_inputFunction391
    13.8LeavingaGroup:igmp_leavegroupFunction395
    13.9Summary396

    Chapter14.IPMulticastRouting397
    14.1Introduction397
    14.2CodeIntroduction398
    14.3MulticastOutputProcessingRevisited399
    14.4mroutedDaemon401
    14.5VirtualInterfaces404
    14.6IGMPRevisited411
    14.7MulticastRouting416
    14.8MulticastForwarding:ip_mforwardFunction424
    14.9Cleanup:ip_mrouter_doneFunction433
    14.10Summary434

    Chapter15.SocketLayer435
    15.1Introduction435
    15.2CodeIntroduction436
    15.3socketStructure437
    15.4SystemCalls441
    15.5Processes,Descriptors,andSockets445
    15.6socketSystemCall447
    15.7getsockandsockargsFunctions451
    15.8bindSystemCall453
    15.91istenSystemCall455
    15.10t_sleepandwakeupFunctions456
    15.11acceptSystemCall457
    15.12sonewconnandsoisconnectedFunctions461
    15.13connectSystemcall464
    15.14shutdownSystemCall468
    15.15c1oseSystemCall471
    15.16Summary474

    Chapter16.SocketI/O475
    16.1Introduction475
    16.2CodeIntroduction475
    16.3SocketBuffers476
    16.4write,writev,sendto,andsendmsgSystemCalls480
    16.5sendmsgSystemCall483
    16.6senditFunction485
    16.7sosendFunction489
    16.8read,readv,recvfrom,andrecvmsgSystemCalls500
    16.9recvmsgSystemCall501
    16.10recvitFunction503
    16.11soreceiveFunction505
    16.12soreceiveCode510
    16.13selectSystemCall524
    16.14Summary534

    Chapter17.SocketOptions537
    17.1Introduction537
    17.2CodeIntroduction538
    17.3setsockoptSystemCall539
    17.4getsockoptSystemCall545
    17.5font1andioct1SystemCalls548
    17.6getsocknameSystemCall554
    17.7getpeernameSystemCall554
    17.8Summary557

    Chapter18.RadixTreeRoutingTables559
    18.1Introduction559
    18.2RoutingTableStructure560
    18.3RoutingSockets569
    18.4CodeIntroduction570
    18.5RadixNodeDataStructures573
    18.6RoutingStructures578
    18.7Initialization:routeinitandrtableinitFunctions581
    18.8Initialization:rninitandrninitheadFunctions584
    18.9DuplicateKeysandMaskLists587
    18.10rnmatchFunction591
    18.11rnsearchFunction599
    18.12Summary599

    Chapter19.RoutingRequestsandRoutingMessages601
    19.1Introduction601
    19.2rtallocandrtalloclFunctions601
    19.3RTFREEMacroandrtfreeFunction604
    19.4rtrequestFunction607
    19.5rt_setgateFunction612
    19.6rt_initFunction615
    19.7rtredirectFunction617
    19.8RoutingMessageStructures621
    19.9rt_missmsgFunction625
    19.10rtifmsgFunction627
    19.11rt_newaddrmsgFunction628
    19.12rt_ms_g1Function630
    19.13rt_ms_g2Function632
    19.14sysctl_rtableFunction635
    19.15sysctl_dumpentryFunction640
    19.16sysctliflistFunction642
    19.17Summary644

    Chapter20.RoutingSockets645
    20.1Introduction645
    20.2routedomainandprotoswStructures646
    20.3RoutingControlBlocks647
    20.4rawinitFunction647
    20.5route_outputFunction648
    20.6rt_xaddrsFunction660
    20.7rt_setmetricsFunction661
    20.8raw_inputFunction662
    20.9route_usrreqFunction664
    20.10raw_usrreqFunction666
    20.11raw_attach,raw_detach,andraw_disconnectFunctions671
    20.12Summary672

    Chapter21.ARP:AddressResolutionProtocol675
    21.1Introduction675
    21.2ARPandtheRoutingTable675
    21.3CodeIntroduction678
    21.4ARPStructures681
    21.5arpwhohasFunction683
    21.6arprequestFunction684
    21.7arpintrFunction687
    21.8in_arpinputFunction688
    21.9ARPTimerFunctions694
    21.10arpresolveFunction696
    21.11arplookupFunction701
    21.12ProxyARP703
    21.13arp_rtrequestFunction704
    21.14ARPandMulticasting710
    21.15Summary711

    Chapter22.ProtocolControlBlocks713
    22.1Introduction713
    22.2CodeIntroduction715
    22.3inpcbStructure716
    22.4in_pcballocandin_pcbdetachFunctions717
    22.5Binding,Connecting,andDemultiplexing719
    22.6inpcblookupFunction724
    22.7in_gcbbindFunction728
    22.8inpcbconnectFunction735
    22.9in_pcbdisconnectFunction741
    22.10in_setsockaddrandin_setpeeraddrFunctions741
    22.11in_pcbnotify,in_rtchange,andin_losingFunctions742
    22.12ImplementationRefinements750
    22.13Summary751

    Chapter23.UDP:UserDatagramProtocol755
    23.1Introduction755
    23.2CodeIntroduction755
    23.3UDPprotoswStructure758
    23.4UDPHeader759
    23.5udpinitFunction760
    23.6udp_outputFunction760
    23.7udp_inputFunction769
    23.8udp_saveoptFunction781
    23.9udp_ctlinputFunction782
    23.10udp_usrreqFunction784
    23.11udp_sysct1Function790
    23.12ImplementationRefinements791
    23.13Summary793

    Chapter24.TCP:TransmissionControlProtocol795
    24.1Introduction795
    24.2CodeIntroduction795
    24.3TCPprotoswStructure801
    24.4TCPHeader801
    24.5TCPControlBlock803
    24.6TCPStateTransitionDiagram805
    24.7TCPSequenceNumbers807
    24.8tcp_initFunction812
    24.9Summary815

    Chapter25.TCPTimers817
    25.1Introduction817
    25.2CodeIntroduction819
    25.3tcpcanceltimersFunction821
    25.4tcpfasttimoFunction821
    25.5tcp_s1owtimoFunction822
    25.6tcp_timersFunction824
    25.7RetransmissionTimerCalculations831
    25.8tcpnewtcpcbFunction833
    25.9tcp_setpersistFunction835
    25.10tcp_xmit_timerFunction836
    25.11RetransmissionTimeout:tcp_timersFunction841
    25.12AnRTTExample846
    25.13Summary848

    Chapter26.TCPOutput851
    26.1Introduction851
    26.2tcpoutputOverview852
    26.3DetermineifaSegmentShouldbeSent852
    26.4TCPOptions864
    26.5WindowScaleOption866
    26.6TimestampOption866
    26.7SendaSegment871
    26.8tcptemplataFunction884
    26.9tcprespondFunction885
    26.10Summary888

    Chapter27.TCPFunctions891
    27.1Introduction891
    27.2tcp_drainFunction892
    27.3tcpdropFunction892
    27.4tcpcloseFunction893
    27.5tcpmssFunction897
    27.6topctiinputFunction904
    27.7tcpnotifyFunction904
    27.8tcp_quenchFunction906
    27.9TCPREASSMacroandtcp_reassFunctionv906
    27.10tcp_traceFunction916
    27.11Summary920

    Chapter28.TCPInput923
    28.1Introduction923
    28.2PreliminaryProcessing925
    28.3tcp_dooptionsFunction933
    28.4HeaderPrediction934
    28.5TCPInput:SlowPathProcessing941
    28.6InitiationofPassiveOpen,CompletionofActiveOpen942
    28.7PAWS:ProtectionAgainstWrappedSequenceNumbers951
    28.8TrimSegmentsoDataisWithinWindow954
    28.9Self-ConnectsandSimultaneousOpens960
    28.10RecordTimestamp963
    28.11RSTProcessing963
    28.12Summary965

    Chapter29.TCPInput(Continued)967
    29.1Introduction967
    29.2ACKProcessingOverview967
    29.3CompletionofPassiveOpensandSimultaneousOpens967
    29.4FastRetransmitandFastRecoveryAlgorithms970
    29.5ACKProcessing974
    29.6UpdateWindowInformation981
    29.7UrgentModeProcessing983
    29.8tcp_pulloutofbandFunction986
    29.9ProcessingofReceivedData988
    29.10FINProcessing990
    29.11FinalProcessing992
    29.12ImplementationRefinements994
    29.13HeaderCompression995
    29.14Summary1004

    Chapter30.TCPUserRequests1007
    30.1Introduction1007
    30.2tcp_usrreqFunction1007
    30.3tcpattachFunction1018
    30.4tcpdisconnectFunction1019
    30.5tcp_usrclosedFunction1021
    30.6tcp_ctloutputFunction1022
    30.7Summary1025
    BPF:BSDPacketFilter1027

    Chapter31.BPF:BSOPacketFllter
    31.1Introduction1027
    31.2CodeIntroduction1028
    31.3bpfifStructurev1029
    31.4bpfdStructure1032
    31.5BPFInput1040
    31.6BPFOutput1046
    31.7Summary1047
    RawIP1049

    Chapter32.RawIP
    32.1Introduction1049
    32.2CodeIntroduction1050
    32.3RawIPprotoswStructure1051
    32.4rip_initFunction1053
    32.5rip_inputFunction1053
    32.6ripoutputFunction1056
    32.7rlp_usrreqFunction1058
    32.8ripct1outputFunction1063
    32.9Summary1065
    Epilogue1067

    AppendixA.SolutionstoSelectedExercises1069
    AppendixB.SourceCodeAvailability1093
    AppendixC.RFC1122Compliance1097
    C.1Link-LayerRequirements1097
    C.2IPRequirements1098
    C.3IPOptionsRequirements1102
    C.4IPFragmentationandReassemblyRequirements1104
    C.5ICMPRequirements1105
    C.6MulticastingRequirements1110
    C.7IGMPRequirements1111
    C.8RoutingRequirements1111
    C.9ARPRequirements1113
    C.10UDPRequirements1113
    C.11TCPRequirements1115
    Bibliography1125
    Index1133
  • 内容简介:
      《TCP/IP详解·卷2:实现(英文版)》是已故网络专家、著名技术作W.RichardStevens的传世之作,内容详尽且具权威性,被誉为TCP/IP领域的不朽名著。《TCP/IP详解卷2:实现(英文版)》是《TCP/IP详解》三卷本的第2卷,重点关注TCP/IP协议的实现问题。书中介绍了一个实际的TCP/IP实现,并给出了这一实现的完整源代码,大约有15000行C代码。此外,几乎每章都提供精选的习题,并在附录中提供了部分习题的答案。
      这一卷要求读者对TCP/IP协议的工作原理以及操作系统原理有初步的了解。对TCP/IP协议不是很熟悉的读者应先阅读《TCP/IP详解》的第1卷,该书对TCP/IP协议族有比较透彻的描述。
      《TCP/IP详解》对于网络应用的开发人员、网络管理员以及任何想了解TCP/IP协议运行原理的人员来说,都是极好的权威参考书。无论是初学者还是功底深厚的网络领域高手,这套书都应是案头必备。
  • 作者简介:
      Gary.Wright,研究TCP/IP多年。他是Connix公司的董事长,Cotlnix公司的总部在康涅狄格州,主要提供Intermet接入和咨询服务。
      W.RichardStevens(1951-1999)国际知名的LJNIX和网络专家,备受赞誉的技术作家。生前著有《TCP/IP详解》(三卷)、《UNIX环境高级编程》和《UNIX网络编程》(两卷),均为不朽的经典著作。
  • 目录:
    Prefacexix
    Chapter1.Introduction1
    1.1Introduction1
    1.2SourceCodePresentation1
    1.3History3
    1.4ApplicationProgrammingInterfaces5
    1.5ExampleProgram5
    1.6SystemCallsandLibraryFunctions7
    1.7NetworkImplementationOverview9
    1.8Descriptors10
    1.9Mbufs(MemoryBuffers)andOutputProcessing15
    1.10InputProcessing19
    1.11NetworkImplementationOverviewRevisited22
    1.12InterruptLevelsandConcurrency23
    1.13SourceCodeOrganization26
    1.14TestNetwork28
    1.15Summary29

    Chapter2.Mbufs:MemoryBuffers31
    2.1Introduction31
    2.2CodeIntroduction36
    2.3MbufDefinitions37
    2.4mbufStructure38
    2.5SimpleMbufMacrosandFunctions40
    2.6m_devgetandm_pullupFunctions44
    2.7SummaryofMbufMacrosandFunctions51
    2.8SummaryofNet/3NetworkingDataStructures54
    2.9m_copyandClusterReferenceCounts56
    2.10Alternatives60
    2.11Summary60

    Chapter3.InterfaceLayer63
    3.1Introduction63
    3.2CodeIntroduction64
    3.3ifnetStructure65
    3.4ifaddrStructure73
    3.5sockaddrStructure74
    3.6ifnetandifaddrSpecialization76
    3.7NetworkInitializationOverview77
    3.8EthernetInitialization80
    3.9SLIPInitialization82
    3.10LoopbackInitialization85
    3.11ifattachFunction85
    3.12ifinitFunction93
    3.13Summary94

    Chapter4.Interfaces:Ethernet95
    4.1Introduction95
    4.2CodeIntroduction96
    4.3EthernetInterface98
    4.4ioct1SystemCall114
    4.5Summary125

    Chapter5.Interfaces:SLIPandLoopback127
    5.1Introduction127
    5.2CodeIntroduction127
    5.3SLIPInterface128
    5.4LoopbackInterface150
    5.5Summary153

    Chapter6.IPAddressing155
    6.1Introduction155
    6.2CodeIntroduction158
    6.3InterfaceandAddressSummary158
    6.4sockaddrinStructure160
    6.5inifaddrStructure161
    6.6AddressAssignment161
    6.7InterfaceioctlProcessing177
    6.8InternetUtilityFunctions181
    6.9ifnetUtilityFunctions182
    6.10Summary183

    Chapter7.DomainsandProtocols185
    7.1Introduction185
    7.2CodeIntroduction186
    7.3domainStructure187
    7.4protoswStructure188
    7.5IPdomainandprotoswStructures191
    7.6pffindprotoandpffindtypeFunctions196
    7.7pfctiinputFunction198
    7.8IPInitialization199
    7.9sysctlSystemCall201
    7.10Summary204

    Chapter8.IP:InternetProtocol205
    8.1Introduction2205
    8.2CodeIntroduction2206
    8.3IPPackets210
    8.4InputProcessing:ipintrFunction2212
    8.5Forwarding:ip_forwardFunction2220
    8.6OutputProcessing:ip_output 2Function228
    8.7InternetChecksum:incksum 2Function234
    8.8setsockoptandgetsockoptSystemCalls2239
    8.9ip_sysctiFunction2244
    8.10Summary245

    Chapter9.IPOptionProcessing247
    9.1Introduction247
    9.2CodeIntroduction247
    9.3OptionFormat248
    9.4ip_dooptionsFunction249
    9.5RecordRouteOption252
    9.6SourceandRecordRouteOptions254
    9.7TimestampOption261
    9.8ip_insertoptionsFunction265
    9.9ip_pcboptsFunction269
    9.10Limitations272
    9.11Summary272

    Chapter10.IPFragmentationandReassembly275
    10.1Introduction275
    10.2CodeIntroduction277
    10.3Fragmentation278
    10.4ip_optcopyFunction282
    10.5Reassembly283
    10.6ip_reassFunction286
    10.7ip_s1owtimoFunction298
    10.8Summary300

    Chapter11.ICMP:InternetControlMessageProtocol301
    11.1Introduction301
    11.2CodeIntroduction305
    11.3icmpStructure308
    11.4ICMPprotoswStructure309
    11.5InputProcessing:icmp_inputFunction310
    11.6ErrorProcessing313
    11.7RequestProcessing316
    11.8RedirectProcessing321
    11.9ReplyProcessing323
    11.10OutputProcessing324
    11.11icmp_errorFunction324
    11.12icmp_ref1ectFunction328
    11.13icmp_sendFunction333
    11.14i-icmp_sysctlFunction334
    11.15Summary335

    Chapter12.IPMulticasting337
    12.1Introduction337
    12.2CodeIntroduction340
    12.3EthernetMulticastAddresses341
    12.4e_thermu1tiStructure342
    12.5EthernetMulticastReception344
    12.6in_mu1tiStructure345
    12.7ip_moptionsStructure347
    12.8MulticastSocketOptions348
    12.9MulticastTTLValues348
    12.10ip_setmoptionsFunction351
    12.11JoininganIPMulticastGroup355
    12.12LeavinganIPMulticastGroup366
    12.13ip_getmoptionsFunction371
    12.14MulticastInputProcessing:ipintrFunction373
    12.15MulticastOutputProcessing:ip_outputFunction375
    12.16PerformanceConsiderations379
    12.17Summary379

    Chapter13.IGMP:InternetGroupManagementProtocol381
    13.1Introduction381
    13.2CodeIntroduction382
    13.3i_gmpStructure384
    13.4IGMPprotoswStructure384
    13.5JoiningaGroup:igmp_joingroupFunction386
    13.6i_gmp_fasttimoFunction387
    13.7InputProcessing:igmp_inputFunction391
    13.8LeavingaGroup:igmp_leavegroupFunction395
    13.9Summary396

    Chapter14.IPMulticastRouting397
    14.1Introduction397
    14.2CodeIntroduction398
    14.3MulticastOutputProcessingRevisited399
    14.4mroutedDaemon401
    14.5VirtualInterfaces404
    14.6IGMPRevisited411
    14.7MulticastRouting416
    14.8MulticastForwarding:ip_mforwardFunction424
    14.9Cleanup:ip_mrouter_doneFunction433
    14.10Summary434

    Chapter15.SocketLayer435
    15.1Introduction435
    15.2CodeIntroduction436
    15.3socketStructure437
    15.4SystemCalls441
    15.5Processes,Descriptors,andSockets445
    15.6socketSystemCall447
    15.7getsockandsockargsFunctions451
    15.8bindSystemCall453
    15.91istenSystemCall455
    15.10t_sleepandwakeupFunctions456
    15.11acceptSystemCall457
    15.12sonewconnandsoisconnectedFunctions461
    15.13connectSystemcall464
    15.14shutdownSystemCall468
    15.15c1oseSystemCall471
    15.16Summary474

    Chapter16.SocketI/O475
    16.1Introduction475
    16.2CodeIntroduction475
    16.3SocketBuffers476
    16.4write,writev,sendto,andsendmsgSystemCalls480
    16.5sendmsgSystemCall483
    16.6senditFunction485
    16.7sosendFunction489
    16.8read,readv,recvfrom,andrecvmsgSystemCalls500
    16.9recvmsgSystemCall501
    16.10recvitFunction503
    16.11soreceiveFunction505
    16.12soreceiveCode510
    16.13selectSystemCall524
    16.14Summary534

    Chapter17.SocketOptions537
    17.1Introduction537
    17.2CodeIntroduction538
    17.3setsockoptSystemCall539
    17.4getsockoptSystemCall545
    17.5font1andioct1SystemCalls548
    17.6getsocknameSystemCall554
    17.7getpeernameSystemCall554
    17.8Summary557

    Chapter18.RadixTreeRoutingTables559
    18.1Introduction559
    18.2RoutingTableStructure560
    18.3RoutingSockets569
    18.4CodeIntroduction570
    18.5RadixNodeDataStructures573
    18.6RoutingStructures578
    18.7Initialization:routeinitandrtableinitFunctions581
    18.8Initialization:rninitandrninitheadFunctions584
    18.9DuplicateKeysandMaskLists587
    18.10rnmatchFunction591
    18.11rnsearchFunction599
    18.12Summary599

    Chapter19.RoutingRequestsandRoutingMessages601
    19.1Introduction601
    19.2rtallocandrtalloclFunctions601
    19.3RTFREEMacroandrtfreeFunction604
    19.4rtrequestFunction607
    19.5rt_setgateFunction612
    19.6rt_initFunction615
    19.7rtredirectFunction617
    19.8RoutingMessageStructures621
    19.9rt_missmsgFunction625
    19.10rtifmsgFunction627
    19.11rt_newaddrmsgFunction628
    19.12rt_ms_g1Function630
    19.13rt_ms_g2Function632
    19.14sysctl_rtableFunction635
    19.15sysctl_dumpentryFunction640
    19.16sysctliflistFunction642
    19.17Summary644

    Chapter20.RoutingSockets645
    20.1Introduction645
    20.2routedomainandprotoswStructures646
    20.3RoutingControlBlocks647
    20.4rawinitFunction647
    20.5route_outputFunction648
    20.6rt_xaddrsFunction660
    20.7rt_setmetricsFunction661
    20.8raw_inputFunction662
    20.9route_usrreqFunction664
    20.10raw_usrreqFunction666
    20.11raw_attach,raw_detach,andraw_disconnectFunctions671
    20.12Summary672

    Chapter21.ARP:AddressResolutionProtocol675
    21.1Introduction675
    21.2ARPandtheRoutingTable675
    21.3CodeIntroduction678
    21.4ARPStructures681
    21.5arpwhohasFunction683
    21.6arprequestFunction684
    21.7arpintrFunction687
    21.8in_arpinputFunction688
    21.9ARPTimerFunctions694
    21.10arpresolveFunction696
    21.11arplookupFunction701
    21.12ProxyARP703
    21.13arp_rtrequestFunction704
    21.14ARPandMulticasting710
    21.15Summary711

    Chapter22.ProtocolControlBlocks713
    22.1Introduction713
    22.2CodeIntroduction715
    22.3inpcbStructure716
    22.4in_pcballocandin_pcbdetachFunctions717
    22.5Binding,Connecting,andDemultiplexing719
    22.6inpcblookupFunction724
    22.7in_gcbbindFunction728
    22.8inpcbconnectFunction735
    22.9in_pcbdisconnectFunction741
    22.10in_setsockaddrandin_setpeeraddrFunctions741
    22.11in_pcbnotify,in_rtchange,andin_losingFunctions742
    22.12ImplementationRefinements750
    22.13Summary751

    Chapter23.UDP:UserDatagramProtocol755
    23.1Introduction755
    23.2CodeIntroduction755
    23.3UDPprotoswStructure758
    23.4UDPHeader759
    23.5udpinitFunction760
    23.6udp_outputFunction760
    23.7udp_inputFunction769
    23.8udp_saveoptFunction781
    23.9udp_ctlinputFunction782
    23.10udp_usrreqFunction784
    23.11udp_sysct1Function790
    23.12ImplementationRefinements791
    23.13Summary793

    Chapter24.TCP:TransmissionControlProtocol795
    24.1Introduction795
    24.2CodeIntroduction795
    24.3TCPprotoswStructure801
    24.4TCPHeader801
    24.5TCPControlBlock803
    24.6TCPStateTransitionDiagram805
    24.7TCPSequenceNumbers807
    24.8tcp_initFunction812
    24.9Summary815

    Chapter25.TCPTimers817
    25.1Introduction817
    25.2CodeIntroduction819
    25.3tcpcanceltimersFunction821
    25.4tcpfasttimoFunction821
    25.5tcp_s1owtimoFunction822
    25.6tcp_timersFunction824
    25.7RetransmissionTimerCalculations831
    25.8tcpnewtcpcbFunction833
    25.9tcp_setpersistFunction835
    25.10tcp_xmit_timerFunction836
    25.11RetransmissionTimeout:tcp_timersFunction841
    25.12AnRTTExample846
    25.13Summary848

    Chapter26.TCPOutput851
    26.1Introduction851
    26.2tcpoutputOverview852
    26.3DetermineifaSegmentShouldbeSent852
    26.4TCPOptions864
    26.5WindowScaleOption866
    26.6TimestampOption866
    26.7SendaSegment871
    26.8tcptemplataFunction884
    26.9tcprespondFunction885
    26.10Summary888

    Chapter27.TCPFunctions891
    27.1Introduction891
    27.2tcp_drainFunction892
    27.3tcpdropFunction892
    27.4tcpcloseFunction893
    27.5tcpmssFunction897
    27.6topctiinputFunction904
    27.7tcpnotifyFunction904
    27.8tcp_quenchFunction906
    27.9TCPREASSMacroandtcp_reassFunctionv906
    27.10tcp_traceFunction916
    27.11Summary920

    Chapter28.TCPInput923
    28.1Introduction923
    28.2PreliminaryProcessing925
    28.3tcp_dooptionsFunction933
    28.4HeaderPrediction934
    28.5TCPInput:SlowPathProcessing941
    28.6InitiationofPassiveOpen,CompletionofActiveOpen942
    28.7PAWS:ProtectionAgainstWrappedSequenceNumbers951
    28.8TrimSegmentsoDataisWithinWindow954
    28.9Self-ConnectsandSimultaneousOpens960
    28.10RecordTimestamp963
    28.11RSTProcessing963
    28.12Summary965

    Chapter29.TCPInput(Continued)967
    29.1Introduction967
    29.2ACKProcessingOverview967
    29.3CompletionofPassiveOpensandSimultaneousOpens967
    29.4FastRetransmitandFastRecoveryAlgorithms970
    29.5ACKProcessing974
    29.6UpdateWindowInformation981
    29.7UrgentModeProcessing983
    29.8tcp_pulloutofbandFunction986
    29.9ProcessingofReceivedData988
    29.10FINProcessing990
    29.11FinalProcessing992
    29.12ImplementationRefinements994
    29.13HeaderCompression995
    29.14Summary1004

    Chapter30.TCPUserRequests1007
    30.1Introduction1007
    30.2tcp_usrreqFunction1007
    30.3tcpattachFunction1018
    30.4tcpdisconnectFunction1019
    30.5tcp_usrclosedFunction1021
    30.6tcp_ctloutputFunction1022
    30.7Summary1025
    BPF:BSDPacketFilter1027

    Chapter31.BPF:BSOPacketFllter
    31.1Introduction1027
    31.2CodeIntroduction1028
    31.3bpfifStructurev1029
    31.4bpfdStructure1032
    31.5BPFInput1040
    31.6BPFOutput1046
    31.7Summary1047
    RawIP1049

    Chapter32.RawIP
    32.1Introduction1049
    32.2CodeIntroduction1050
    32.3RawIPprotoswStructure1051
    32.4rip_initFunction1053
    32.5rip_inputFunction1053
    32.6ripoutputFunction1056
    32.7rlp_usrreqFunction1058
    32.8ripct1outputFunction1063
    32.9Summary1065
    Epilogue1067

    AppendixA.SolutionstoSelectedExercises1069
    AppendixB.SourceCodeAvailability1093
    AppendixC.RFC1122Compliance1097
    C.1Link-LayerRequirements1097
    C.2IPRequirements1098
    C.3IPOptionsRequirements1102
    C.4IPFragmentationandReassemblyRequirements1104
    C.5ICMPRequirements1105
    C.6MulticastingRequirements1110
    C.7IGMPRequirements1111
    C.8RoutingRequirements1111
    C.9ARPRequirements1113
    C.10UDPRequirements1113
    C.11TCPRequirements1115
    Bibliography1125
    Index1133
查看详情
目前没有书店销售此书
好书推荐 / 更多
TCP/IP 详解(卷2):实现(英文版)
价格的发现复杂约束市场中的拍卖设计
保罗·米尔格罗姆 著
TCP/IP 详解(卷2):实现(英文版)
我的思想与观念:爱因斯坦自选集(袒露心迹之作,畅销60余年,中文版震撼上市)
张卜天 译者;果麦文化 出品;阿尔伯特·爱因斯坦
TCP/IP 详解(卷2):实现(英文版)
宙斯的正义
[英]劳埃德-琼斯(Hugh Lloyd-Jones)
TCP/IP 详解(卷2):实现(英文版)
法镜般的神眼之下(オールドレンズの神のもとで)
[日]堀江敏幸 著;陆求实 译
TCP/IP 详解(卷2):实现(英文版)
末日机器:一个核战争策划者的自白
[美]丹尼尔·埃尔斯伯格
TCP/IP 详解(卷2):实现(英文版)
为政——古代中国的致治理念
梁治平 著
TCP/IP 详解(卷2):实现(英文版)
看不见的女人:家庭事务社会学//守望者·人间世
[英]安·奥克利 著
TCP/IP 详解(卷2):实现(英文版)
甲骨文丛书·一个偶像的黄昏:弗洛伊德的谎言
米歇尔·翁福雷(Michel Onfray) 著;王甦 译
TCP/IP 详解(卷2):实现(英文版)
古罗马的笑:演说家、弄臣和猴子
[英]玛丽·比尔德(Mary Beard)
TCP/IP 详解(卷2):实现(英文版)
呼吸在一米之外(聚焦真实好故事的“天才捕手计划”全新纪实力作,记录大危机时期平凡人的悲喜)
陈拙 著;博集天卷 出品
TCP/IP 详解(卷2):实现(英文版)
旧巢痕:金克木小说体回忆录。一个儿童眼中的旧时风物。一代大家传奇的教育启蒙。
金克木 著
TCP/IP 详解(卷2):实现(英文版)
无声的角落——被隐匿的日本校园之恶
[日]池谷孝司