计算机英语第五章翻译.docx

上传人:b****7 文档编号:9741157 上传时间:2023-02-06 格式:DOCX 页数:11 大小:23.52KB
下载 相关 举报
计算机英语第五章翻译.docx_第1页
第1页 / 共11页
计算机英语第五章翻译.docx_第2页
第2页 / 共11页
计算机英语第五章翻译.docx_第3页
第3页 / 共11页
计算机英语第五章翻译.docx_第4页
第4页 / 共11页
计算机英语第五章翻译.docx_第5页
第5页 / 共11页
点击查看更多>>
下载资源
资源描述

计算机英语第五章翻译.docx

《计算机英语第五章翻译.docx》由会员分享,可在线阅读,更多相关《计算机英语第五章翻译.docx(11页珍藏版)》请在冰豆网上搜索。

计算机英语第五章翻译.docx

计算机英语第五章翻译

Ch5TheNetworkLayer

Thenetworklayerisconcernedwithgettingpacketsfromthesourceallthewaytothedestination.Gettingtothedestinationmayrequiremakingmanyhopsatintermediateroutersalongtheway.

网络层关心的是把包从源到目的地的所有方式。

到达目的地可能需要在中间路由器沿途许多跳。

5.1NetworkLayerDesignIssues

Inthefollowingsectionswewillprovideanintroductiontosomeoftheissuesthatthedesignersofthenetworklayermustgrapplewith.Theseissuesincludetheserviceprovidedtothetransportlayerandtheinternaldesignofthesubnet.

在下面的章节中我们将提供一些,网络层的设计必须解决的问题的介绍。

这些问题包括服务提供给传输层和子网的内部设计。

5.1.1Store-and-ForwardPacketSwitching

Ahostwithapackettosendtransmitsittothenearestrouter,eitheronitsownLANoroverapoint-to-pointlinktothecarrier.Thepacketisstoredthereuntilithasfullyarrivedsothechecksumcanbeverified.Thenitisforwardedtothenextrouteralongthepathuntilitreachesthedestinationhost,whereitisdelivered.Thismechanismisstore-and-forwardpacketswitching,aswehaveseeninpreviouschapters.

一个数据包的主机发送发送到相图T路由器,在自己的局域网或一个点至点链接到载体。

包是直到它完全是校验和可以验证有存储。

然后转发到下一个路由器沿路径,直到它到达目的主机,它是交付。

这种机制是存储转发分组交换,我们在前几章已经看到

5.1.2ServicesProvidedtotheTransportLayer

Thenetworklayerprovidesservicestothetransportlayeratthenetworklayer/transportlayerinterface.Animportantquestioniswhatkindofservicesthenetworklayerprovidestothetransportlayer.Thenetworklayerserviceshavebeendesignedwiththefollowinggoalsinmind.

网路层提供服务给传输层在网络层和传输层接口。

一个重要的问题是,什么样的服务提供的网络层到传输层。

网络层的服务在设计时考虑以下目标。

1.Theservicesshouldbeindependentoftheroutertechnology.

1。

服务应该是独立的路由器技术。

2.Thetransportlayershouldbeshieldedfromthenumber,type,andtopologyoftherouterspresent.

2。

传输层应该屏蔽的数量,类型,和路由器的当前拓扑。

3.Thenetworkaddressesmadeavailabletothetransportlayershoulduseauniformnumberingplan,evenacrossLANsandWANs.

3.网络地址提供给传输层应使用统一的编号方案,即使在局域网和广域网。

Onecamp(representedbytheInternetcommunity)arguesthattherouters'jobismovingpacketsaroundandnothingelse.Thisviewpointleadsquicklytotheconclusionthatthenetworkserviceshouldbeconnectionless,withprimitivesSENDPACKETandRECEIVEPACKETandlittleelse.Theothercamp(representedbythetelephonecompanies)arguesthatthesubnetshouldprovideareliable,connection-orientedservice.

一个阵营(由网络社区为代表)认为,路由器的工作正在绕包或者别的什么。

这个观点很快导致的结论是,网络服务应该是无连接的,与原语和发送数据包接收数据包和其他的小。

另一个阵营(由电话公司为代表)认为,子网应该提供一个可靠的,面向连接的服务。

5.1.3ImplementationofConnectionlessService

Havinglookedatthetwoclassesofservicethenetworklayercanprovidetoitsusers,itistimetoseehowthislayerworksinside.Twodifferentorganizationsarepossible,dependingonthetypeofserviceoffered.Ifconnectionlessserviceisoffered,packetsareinjectedintothesubnetindividuallyandroutedindependentlyofeachother.Noadvancesetupisneeded.Inthiscontext,thepacketsarefrequentlycalleddatagrams(inanalogywithtelegrams)andthesubnetiscalledadatagramsubnet.Ifconnection-orientedserviceisused,apathfromthesourceroutertothedestinationroutermustbeestablishedbeforeanydatapacketscanbesent.ThisconnectioniscalledaVC(virtualcircuit),inanalogywiththephysicalcircuitssetupbythetelephonesystem,andthesubnetiscalledavirtual-circuitsubnet.

看了这两类业务的网络层可以提供给它的用户,它是时间来看看这层作品里面。

两个不同的组织是可能的,这取决于所提供的服务类型。

如果提供了无连接的服务,数据包注入子网路由单独和彼此独立地。

没有预先的设置是必要的。

在这种情况下,数据包经常被称为数据包(类比与电报)和子网称为数据报子网。

如果使用面向连接的服务,一个路径从源到目的路由器路由器必须在任何数据包可以被发送了。

这种连接称为VC(虚拟电路),类似于通过电话系统建立物理电路,和子网称为虚电路子网。

Everyrouterhasaninternaltabletellingitwheretosendpacketsforeachpossibledestination.Eachtableentryisapairconsistingofadestinationandtheoutgoinglinetouseforthatdestination.Onlydirectly-connectedlinescanbeused.

每个路由器内部表告诉它那里发送的数据包的每个可能的目的地。

每个表项是由一个目的地,使用该目的地的输出线对。

只有直接连接线可以用。

5.1.4ImplementationofConnection-OrientedService

Forconnection-orientedservice,weneedavirtual-circuitsubnet.Theideabehindvirtualcircuitsistoavoidhavingtochooseanewrouteforeverypacketsent,asinFig.5-2.Instead,whenaconnectionisestablished,aroutefromthesourcemachinetothedestinationmachineischosenaspartoftheconnectionsetupandstoredintablesinsidetherouters.Thatrouteisusedforalltrafficflowingovertheconnection,exactlythesamewaythatthetelephonesystemworks.Whentheconnectionisreleased,thevirtualcircuitisalsoterminated.Withconnection-orientedservice,eachpacketcarriesanidentifiertellingwhichvirtualcircuititbelongsto.

面向连接的服务,我们需要一个虚拟电路子网。

虚电路的主要思想是避免选择的每一个数据包发送一个新的路径,如图5-2。

相反,当建立一个连接,一条从源到目标机机作为连接设置部分和存储在路由器表。

这条路线上的所有通信都使用相同的连接,与电话系统的工作方式。

当连接被释放,虚电路也终止了。

在面向连接的服务,每个包携带一个标识符告诉这虚电路属于。

5.5Internetworking

Untilnow,wehaveimplicitlyassumedthatthereisasinglehomogeneousnetwork,witheachmachineusingthesameprotocolineachlayer.Unfortunately,thisassumptioniswildlyoptimistic.Manydifferentnetworksexist,includingLANs,MANs,andWANs.Numerousprotocolsareinwidespreaduseineverylayer.Inthefollowingsectionswewilltakeacarefullookattheissuesthatarisewhentwoormorenetworksareconnectedtoformaninternet.

直到现在,我们已经隐含地假定有一个单一的网络,每台机器上使用相同的各层协议。

不幸的是,这个假设是过于乐观。

许多不同的网络存在,包括局域网,城域网和广域网。

许多协议是在每一层中广泛使用。

在下面的章节中我们将采取仔细看看问题时出现的两个或多个网络连接形成网络。

Figure5-42.Acollectionofinterconnectednetworks.

5.5.1HowNetworksDiffer

InFig.5-43welistsomeofthedifferencesthatcanoccurinthenetworklayer.

图为5-43我们列出一些可以在网络层中发生的差异。

Figure5-43.Someofthemanywaysnetworkscandiffer.

5.5.2HowNetworksCanBeConnected

Inthenetworklayer,wehaveroutersthatcanconnecttwonetworks.Iftwonetworkshavedissimilarnetworklayers,theroutermaybeabletotranslatebetweenthepacketformats,althoughpackettranslationisnowincreasinglyrare.Arouterthatcanhandlemultipleprotocolsiscalledamultiprotocolrouter.

在网络层,我们使用路由器连接两个网络。

如果两个网络的不同的网络层,路由器可以将包格式之间的数据包,虽然翻译是现在越来越少见。

一个路由器,可以处理多种协议称为多协议路由器。

5.5.3ConcatenatedVirtualCircuits

Twostylesofinternetworkingarepossible:

aconnection-orientedconcatenationofvirtual-circuitsubnets,andadatagraminternetstyle.

两种类型的网络是可能的:

一个面向连接的虚电路连接的子网,和一个数据报的网络方式。

Intheconcatenatedvirtual-circuitmodel,showninFig.5-45,aconnectiontoahostinadistantnetworkissetupinawaysimilartothewayconnectionsarenormallyestablished.Thesubnetseesthatthedestinationisremoteandbuildsavirtualcircuittotherouternearestthedestinationnetwork.Thenitconstructsavirtualcircuitfromthatroutertoanexternalgateway(multiprotocolrouter).Thisgatewayrecordstheexistenceofthevirtualcircuitinitstablesandproceedstobuildanothervirtualcircuittoarouterinthenextsubnet.Thisprocesscontinuesuntilthedestinationhosthasbeenreached.

在级联虚电路模型,图5-45所示,在一个遥远的网络主机的连接是在一种类似的连接建立方法建立。

子网看到的目的地是远程和建立一个虚拟电路到最近的目标网络的路由器。

然后构造一个虚拟电路从路由器到外部网关(多协议路由器)。

该网关记录虚拟电路中存在的表和收益建立另外一个虚拟电路在接下来的子网,路由器。

这个过程一直持续到目的主机已达到。

Figure5-45.Internetworkingusingconcatenatedvirtualcircuits.

5.5.4ConnectionlessInternetworking

Thealternativeinternetworkmodelisthedatagrammodel,showninFig.5-46.Inthismodel,theonlyservicethenetworklayerofferstothetransportlayeristheabilitytoinjectdatagramsintothesubnetandhopeforthebest.Thereisnonotionofavirtualcircuitatallinthenetworklayer,letaloneaconcatenationofthem.Thismodeldoesnotrequireallpacketsbelongingtooneconnectiontotraversethesamesequenceofgateways.InFig.5-46datagramsfromhost1tohost2areshowntakingdifferentroutesthroughtheinternetwork.Aroutingdecisionismadeseparatelyforeachpacket,possiblydependingonthetrafficatthemomentthepacketissent.Thisstrategycanusemultipleroutesandthusachieveahigherbandwidththantheconcatenatedvirtual-circuitmodel.Ontheotherhand,thereisnoguaranteethatthepacketsarriveatthedestinationinorder,assumingthattheyarriveatall.

选择网络模型的数据模型,在图5-46所示。

在这个模型中,唯一的服务网络层提供传输层将数据报进入子网和最好的希望的能力。

没有概念的虚拟电路在所有的网络层,更别说一个级联的。

该模型不需要所有的数据包属于一个连接到移动网关相同的序列。

在图5-46数据报从主机1向主机2示以不同的路线,通过互联网络。

路由决策是单独为每个数据包,可能取决于交通目前分组发送。

这种策略可以使用多条路线,从而实现比级联虚电路模型更高的带宽。

另一方面,也不能保证数据包到达目的地,假设他们到达。

Figure5-46.Aconnectionlessinternet.一个无连接的网络。

5.5.5Tunneling

Handlingthegeneralcaseofmakingtwodifferentnetworksinterworkisexceedinglydifficult.However,thereisacommonspecialcasethatismanageable.Thiscaseiswherethesourceanddestinationhostsareonthesametypeofnetwork,butthereisadifferentnetworkinbetween.

处理两种网络互通的一般情况下是非常困难的。

然而,有一个共同的特殊情况,是可以控制的。

这个案例是在源和目的主机的网络类型相同,但有一个不同的网络之间的。

Figure5-47.TunnelingapacketfromParistoLondon.隧道数据包从巴黎到伦敦的。

Thesolutiontothisproblemisatechniquecalledtunneling.解决这个问题的方法是一种称为隧道。

5.6TheNetworkLayerintheInternet

BeforegettingintothespecificsofthenetworklayerintheInternet,itisworthtakingatlookattheprinciplesthatdroveitsdesigninthepastandmadeitthesuccessthatitistoday.Alltoooften,nowadays,

在进入网络层的细节在互联网,值得在将其设计在过去的原则,以使它看起来和成功,这是今天。

太经常,如今,

5.6.1TheIPProtocol

AnIPdatagramconsistsofaheaderpartandatextpart.Theheaderhasa20-bytefixedpartandavariablelengthoptionalpart.TheheaderformatisshowninFig.5-53.

一个IP数据报包括头部分和正文部分。

头部有一个20字节的固定部分和可变长度可选部分。

报头格式显示在图5-53。

Figure5-53.TheIPv4(InternetProtocol)header.

5.6.2IPAddresses

EveryhostandrouterontheInternethasanIPaddress,whichencodesitsnetworknumberandhostnumber.Thecombinationisunique:

inprinciple,notwomachinesontheInternethavethesameIPaddress.Forseveraldecades,IPaddressesweredividedintothefivecategorieslistedinFig.5-55

每一个因特网上的主机和路由器的IP地址,它编码的网络号和主机号。

组合是独特的:

原则上,没有两个机器在互联网上有相同的IP地址。

几十年来,IP地址被

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 考试认证 > 其它考试

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1