資源描述:
《外文翻譯linux網(wǎng)絡棧剖析從socket到設備驅動程序》由會員上傳分享,免費在線閱讀,更多相關內(nèi)容在工程資料-天天文庫。
1、外文原文AnatomyoftheLinuxnetworkingstackFromsocketstodevicedriversSummary:?OneofthegreatestfeaturesoftheLinux?operatingsystemisitsnetworkingstack.ItwasinitiallyaderivativeoftheBSDstackandiswellorganizedwithacleansetofinterfaces.Itsinterfacesrangefromtheprotocolagnostics,suchasthecommon
2、socketslayerinterfaceorthedevicelayer,tothespecificinterfacesoftheindividualnetworkingprotocols.ThisarticleexploresthestructureoftheLinuxnetworkingstackfromtheperspectiveofitslayersandalsoexaminessomeofitsmajorstructures.ProtocolsintroductionWhileformalintroductionstonetworkingcomm
3、onlyrefertotheOpenSystemsInterconnection(OSI)model,thisintroductiontothebasicnetworkingstackinLinuxusesthefour-layermodelknownastheInternetmodel(seeFigure1).Figure1.TheInternetmodelofanetworkstackAtthebottomofthestackisthelinklayer.Thelinklayerreferstothedevicedriversprovidingacces
4、stothephysicallayer,whichcouldbenumerousmediums,suchasseriallinksorEthernetdevices.Abovethelinklayeristhenetworklayer,whichisresponsiblefordirectingpacketstotheirdestinations.Thenextlayer,calledthetransportlayer,isresponsibleforpeer-to-peercommunication(forexample,withinahost).Whil
5、ethenetworklayermanagescommunicationbetweenhosts,thetransportlayermanagescommunicationbetweenendpointswithinthosehosts.Finally,there'stheapplicationlayer,whichiscommonlythesemanticlayerthatunderstandsthedatabeingmoved.Forexample,theHypertextTransferProtocol(HTTP)movesrequestsandres
6、ponsesforWebcontentbetweenaserverandaclient.Practicallyspeaking,thelayersofthenetworkingstackgobymuchmorerecognizablenames.Atthelinklayer,youfindEthernet,themostcommonhigh-speedmedium.Olderlink-layerprotocolsincludetheserialprotocolssuchastheSerialLineInternetProtocol(SLIP),Compres
7、sedSLIP(CSLIP),andthePoint-to-PointProtocol(PPP).ThemostcommonnetworklayerprotocolisInternetProtocol(IP),butotherprotocolsexistatthenetworklayerthatsatisfyotherneeds,suchastheInternetControlMessageProtocol(ICMP)andtheAddressResolutionProtocol(ARP).AtthetransportlayeristheTransmissi
8、onControlProtocol(TCP)andU