版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
Chapter3SwitchTechnologyFundamentalsRequiredreading:Garcia1.14.14.47.1&7.33.1CircuitSwitching3.2MessageSwitching3.3PacketSwitching
3.3.1virtualcircuit 3.3.2datagram3.4TheDelayAnalysisinNetworks
TheNetworkCoremeshofinterconnectedroutersthefundamentalquestion:howisdatatransferredthroughnet?circuitswitching:dedicatedcircuitpercall:telephonenetpacket-switching:datasentthrunetindiscrete“chunks”VirtualCircuitDatagram3.1CircuitSwitchingEnd-endresourcesreservedfor“call”●linkbandwidth,switchcapacity●dedicatedresources:nosharing●circuit-like(guaranteed)performance●callsetuprequiredCircuitSwitchingnetworkresources(e.g.,bandwidth)dividedinto“pieces”●piecesallocatedtocalls●resourcepieceidleifnotusedbyowningcall(nosharing)●dividinglinkbandwidthinto“pieces”frequencydivisiontimedivisionCircuitSwitching:FDMandTDMFDMfrequencytimeTDMfrequencytime4usersExample:TiminginCircuitSwitchingDATACircuit
EstablishmentData
Transmission
Circuit
TerminationHost1Host2Node1Node2propagationdelaybetweenHost1andNode1propagationdelaybetweenHost2andhost1processingdelayatNode1CircuitSwitchingAnode(switch)inacircuitswitchingnetworkincominglinksoutgoinglinksNodeCircuitSwitching:Multiplexing/DemultiplexingTimedividedinframesandframesdividedinslotsRelativeslotpositioninsideaframedetermineswhichconversationthedatabelongstoNeedssynchronizationbetweensenderandreceiverIncaseofnon-permanentconversationsneedstodynamicallybindaslottoaconservationhowtodothis?Ifaconversationdoesnotuseitscircuitthecapacityis
lost!3.2MessageSwitchingeachend-enddatastreamasmessagesuserA,Bmessagesharenetworkresourceseachmessageusesfulllinkbandwidthresourcesusedasneeded,Bandwidthdivisioninto“pieces”DedicatedallocationResourcereservationresourcecontention:
●aggregateresourcedemandcanexceedamountavailable●congestion:messagesqueue,waitforlinkuse●storeandforward:messagesmoveonehopatatimetransmitoverlinkwaitturnatnextlinkTiminginMessageSwitchingDATAHost1Host2Node1Node2DATADATA3.3PacketSwitchingeachend-enddatastreamdividedintopacketsuserA,Bpacketssharenetworkresourceseachpacketusesfulllinkbandwidthresourcesusedasneeded,resourcecontention:
●aggregateresourcedemandcanexceedamountavailable●congestion:packetsqueue,waitforlinkuse●storeandforward:packetsmoveonehopatatimetransmitoverlinkwaitturnatnextlinkBandwidthdivisioninto“pieces”DedicatedallocationResourcereservationPacketSwitchingAnodeinapacketswitchingnetworkincominglinksoutgoinglinksNodeMemoryPacket-switching:store-and-forwardCEFABDCsendpacketstoERouterpacket-switchednetworksPacket1Packet2Packet3Packet1Packet2Packet3TimingofDatagramPacketSwitchingPacket1Packet2Packet3processing
delayofPacket1atNode2Host1Host2Node1Node2propagationdelaybetweenHost1andNode2transmissiontimeofPacket1atHost1Packet-switching:store-and-forward●TakesL/Rsecondstotransmit(pushout)packetofLbitsontolinkorRbps●Entirepacketmustarriveatrouterbeforeitcanbetransmittedonnextlink:storeandforward●delay=3L/R(assumingzeropropagationdelay)Example:L=7.5MbitsR=1.5Mbpstransmissiondelay=15secRRRLPacketSwitching:MessageSegmentingNowbreakupthemessageinto5000packetsstoreandforwardbehaviorEachpacket1,500bits,1msectotransmitapacketononelinkpipelining:eachlinkworksinparallelDelayreducedfrom3*5=15secto5.002secPacketSwitching:Multiplexing/DemultiplexingDatafromanyconversationcanbetransmittedatanygiventimeAsingleconversationcanusetheentirelinkcapacityifitisaloneHowtotellthemapart?usemeta-data(header)todescribedataHeaderDataTrailerPacketsStructurePacketSwitching:StatisticalMultiplexingSequenceofA&Bpacketsdoesnothavefixedpattern,bandwidthsharedondemandstatisticalmultiplexing.TDM:eachhostgetssameslotinrevolvingTDMframe.ABC100Mb/sEthernet1.5Mb/sDEstatisticalmultiplexingqueueofpacketswaitingforoutputlink45MbsHowdolossanddelayoccur?packetsqueueinrouterbuffers
●packetsqueue,waitforturn
●packetarrivalratetolinkexceedsoutputlinkcapacityABpacketbeingtransmitted(delay)packetsqueueing(delay)free(available)buffers:arrivingpacketsdropped(loss)ifnofreebuffersDelayinpacket-switchednetworkspacketsexperiencedelayonend-to-endpath●foursourcesofdelayateachhopnodalprocessing:
checkbiterrorsdetermineoutputlinkqueuingtimewaitingatoutputlinkfortransmissiondependsoncongestionlevelofrouterABpropagationtransmissionnodalprocessingqueuingDelayinpacket-switchednetworksTransmissiondelay:R=linkbandwidth(bps)L=packetlength(bits)timetosendbitsintolink=L/RPropagationdelay:d=lengthofphysicallinks=propagationspeedinmedium(~2x108m/sec)propagationdelay=d/sABpropagationtransmissionnodalprocessingqueueingNote:sandRareverydifferentquantities!Nodaldelaytproc=processingdelaytypicallyafewmicrosecsorlesstqueue
=queuingdelaydependsoncongestionttrans=transmissiondelay=L/R,significantforlow-speedlinkstprop
=propagationdelayafewmicrosecstohundredsofmsecsQueueingdelay(revisited)R=linkbandwidth(bps)L=packetlength(bits)a=averagepacketarrivalratetrafficintensity=La/RLa/R~0:averagequeueingdelaysmallLa/R->1:delaysbecomelargeLa/R>1:more“work”arrivingthancanbeserviced,averagedelayinfinite!“Real”InternetdelaysandroutesWhatdo“real”Internetdelay&losslooklike?Tracerouteprogram:providesdelaymeasurementfromsourcetorouteralongend-endInternetpathtowardsdestination.Foralli:sendsthreepacketsthatwillreachrouterionpathtowardsdestinationrouteriwillreturnpacketstosendersendertimesintervalbetweentransmissionandreply.3probes3probes3probesPacketswitchingversuscircuitswitching1Mbpslinkeachuser:100Kbpswhen“active”active10%oftimecircuit-switching:10userspacketswitching:10usersorlessnoproblem>10usersqueuingdelaybutstillpossibletosupportwith35users,probability>10%activelessthan.004Nusers1MbpslinkPacketswitchingversuscircuitswitchingGreatforburstydataresourcesharingsimplercongestion:packetdelayandlossprotocolsneededforreliabledatatransfer,congestioncontrolQ:Howtoprovidecircuit-likebehavior?bandwidthguaranteesneededforaudio/videoappsVC(VirtualCircuit虚电路)所谓虚电路是面向连接的服务,在数据传输之前需要先建立一条逻辑链路;数据交换后,必须释放这个连接。同一呼叫的数据分组只需标识逻辑电路号,并沿着虚电路按序传输,提供可靠的报文服务。它不同于电路交换中的物理连接,而是逻辑连接。DG(Datagram数据报)是无连接的服务,无需要预先建立连接,网络随时接受主机发送的分组;每个数据报需要标识出完整的目标地址;每个分组独立的选择路由,因此不能防止报文的丢失、重复或失序,它提供“尽最大努力交付”的服务,是一种不可靠的服务。分组交换提供两种不同形式的服务:虚电路和数据报。3.3.1Virtualcircuitscallsetupforeachcallbeforedatacanflow,andteardownaftereachpacketcarriesVCidentifier(notdestinationhostID)everyrouteronsource-destpathmaintains“state”foreachpassingconnectiontransport-layerconnectiononlyinvolvedtwoendsystemslink,routerresources(bandwidth,buffers)maybeallocatedtoVCtogetcircuit-likeperf.“source-to-destpathbehavesmuchliketelephonecircuit”performance-wisenetworkactionsalongsource-to-destpathVirtualcircuits:signalingprotocolsusedtosetup,maintainteardownVCusedinATM,frame-relay,X.25notusedintoday’sInternetapplicationtransportnetworkdatalinkphysicalapplicationtransportnetworkdatalinkphysical1.Initiatecall2.incomingcall3.Acceptcall4.Callconnected5.Dataflowbegins6.Receivedata子网采用虚电路方式,只需在建立连接时做一次路由选择。VirtualCircuitDelayPacket1TransmissiontimeVirtualCircuit
EstablishmentPacket2Packet1Packet3Packet2Packet1Packet3Packet2Packet3VirtualCircuit
Termination3.3.2Datagramnetworks:theInternetmodelnocallsetupatnetworklayerrouters:nostateaboutend-to-endconnectionsnonetwork-levelconceptof“connection”packetsforwardedusingdestinationhostaddresspacketsbetweensamesource-destpairmaytakedifferentpathsapplicationtransportnetworkdatalinkphysicalapplicationtransportnetworkdatalinkphysical1.Senddata2.Receivedata子网采用数据报方式,每个包都要做路由选择DatagramnetworksH1H5H6H4H2H3H1send
packets
toH5H2sendpacketstoH6RouterABCDEpacket-switchednetworksThereisnoroundtriptimedelaywaitingforconnectionsetup;ahostcansenddataassoonasitisready.Sourcehosthasnowayofknowingifthenetworkiscapableofdeliveringapacketorifthedestinationhostisevenup.Sincepacketsaretreatedindependently,itispossibletoroutearoundlinkandnodefailures.Sinceeverypacketmustcarrythefulladdressofthedestination,theoverheadperpacketishigherthanfortheconnection-orientedmodel.Packet1Packet2Packet3Packet1Packet2Packet3DatagramDelayPacket1Packet2Packet3processing
delayofPacket1atNode2Host1Host2Node1Node2propagationdelaybetweenHost1andNode2transmissiontimeofPacket1atHost1DatagramorVCnetwork:why?Internet*dataexchangeamongcomputers“elastic”service,nostricttimingreq.*“smart”endsystems(computers)canadapt,performcontrol,errorrecoverysimpleinsidenetwork,complexityat“edge”*manylinktypesdifferentcharacteristicsuniformservicedifficultATMevolvedfromtelephonyhumanconversation:stricttiming,reliabilityrequirementsneedforguaranteedservice“dumb”endsystemstelephonescomplexityinsidenetworkVirtualCircuitPK.Datagram(1)分组头:DG方式的每个分组头中要包含详细的目的地址VC方式由于预先已建立逻辑连接,分组头中只要含有对应于所建立的VC的逻辑信道标识选路:VC方式预先有建立过程,但一旦虚电路建立,在端到端之间所选定的路由上的各个交换节点都具有映象表,存放出入逻辑信道的对应关系,每个分组到来时只要查找映象表,而不需要进行复杂的选路。DG方式则不需要有建立过程,但对每个分组都要独立地进行选路。分组顺序:VC方式中,属于同一呼叫的各个分组在同一条虚电路上传送,分组会按原有顺序到达终点,不会产生失序现象。DG方式中,各个分组由于是独立选路,可以从不同的路由转送,会引起失序VirtualCircuitPK.Datagram(2)故障敏感性VC方式对故障较为敏感,当传输链路或交换节点发生故障时可能引起虚电路的中断,需要重新建立。(有些分组网具有再连接功能,出现故障时可自动建立新的虚电路,并做到不丢失用户数据)DG方式中各个分组可选择不同路由,对故障的防卫能力较强,从而可靠性较高。应用VC方式适用于较连续的数据流传送,其持续时间应显著地大于呼叫建立的时间,如文件传送、传真业务等。DG方式则适用于面向事务的询问/响应型数据业务。
DelayComparison采用存储转发方式的分组交换兼有电路交换和报文交换的优点,它与报文交换的不同在于:分组交换将用户要传送的信息分割为若干个分组(packet),每个分组中有一个分组头,含有可供选路的信息和其他控制信息。3.4ThedelayanalysisinNetworksDelay
inCircuitSwitchingAssume:Numberofhops=MPer-hopprocessingdelay=PLinkpropagationdelay=LTransmissionspeed=Wbit/sMessagesize=BbitsTotalDelay=totalpropagation
+totaltransmission
+totalprocessing=4ML+B/W+(M-1)PPLB/WTotalDelayDelayginDatagramPacketSwitchingAssume:Numberofhops=MPer-hopprocessingdelay=PLinkpropagationdelay=LPackettransmissiondelay=TMessagesize=NpacketsTotalDelay=totalpropagation
+totaltransmission
+
totalstore&forward+totalprocessing=ML+NT+(M-1)T+(M-1)PPTLTotalDelayPTDelayVirt.Circ.PacketSwitchingAssume:Numberofhops=MPer-hopprocessingdelay=PLinkpropagationdelay=LPackettransmissiondelay=TMessagesize=NpacketsTotalDelay=totalpropagation
+totaltransmission
+
totalstore&forward+totalprocessing=4ML+NT+(M
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026广东广州体育学院第二批招聘非事业编制人员4人备考题库含答案详解(培优)
- 2026湖北武汉市华中农业大学园艺林学学院设施与智慧园艺方向专任教师招聘备考题库含答案详解(黄金题型)
- 2026年福建泉州石狮市行政服务中心管理委员会公开招聘工作人员备考题库及答案详解(典优)
- 2026贵州毕节大方富民村镇银行招聘备考题库含答案详解(培优a卷)
- 2026年河南省三门峡市陕州区事业单位联考招聘备考题库附答案详解(突破训练)
- 2026年咸阳高新区管委会及下属公司招聘备考题库(32人)含答案详解(满分必刷)
- 2026广西百色市西林县水利局招聘编外聘用人员1人备考题库含答案详解(综合卷)
- 2026贵州黔东南州天柱县招聘乡镇政府专职消防员19人备考题库及答案详解(历年真题)
- 2026广东江门市台山市卫生健康系统事业单位招聘43人备考题库含答案详解(典型题)
- 2026上半年广西梧州市苍梧县引进急需紧缺专业人才11人备考题库完整答案详解
- 2025年专升本药学综合能力测试试卷(含答案)
- 李咏梅音标课件双元音ei
- 数字IC设计工程师面试题及答案
- 广西农村信用社考试历年真题
- 2025年郑州工业安全职业学院单招职业技能考试题库附参考答案详解黄金
- 饭店冷库施工方案
- 建设工程设计合同补充协议(GF-2015-0209)2025版
- 医疗美容设备售后服务质量提升工作方案
- 小班英语试题及答案
- 中国银行2025长春市结构化面试15问及话术
- 2025年社区工作者招聘考试(公共基础知识)试题及答案
评论
0/150
提交评论