数据通信与网络14-X25-1_第1页
数据通信与网络14-X25-1_第2页
数据通信与网络14-X25-1_第3页
数据通信与网络14-X25-1_第4页
数据通信与网络14-X25-1_第5页
已阅读5页,还剩17页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

Chapter14X.25第十四章X.2514.1X.25Layer14.2PacketLayerProtocol12.5SummaryContentsIntroductionofX.25X.25isapacketswitchingprotocol,developedbytheITU-Tin1976.TheformaldefinitionofX.25isaninterfacebetweenDTEandDCEforterminaloperationatthepacketmodeonpublicdatanetworks.Informally,wecansaythatX.25isapacketswitchingprotocolusedinawideareanetwork.X.25defineshowapacket-modeterminalcanbeconnectedtoapacketnetworkfortheexchangeofdata.ConceptualoverviewofX.25IntroductionofX.25AlthoughX.25isanend-to-endprotocol,theactualmovementofpacketsthroughthenetworkisinvisibletoit.IntroductionofX.25X.25isknownasasubscribernetworkinterface(SNI,用户网络接口)protocol.Itdefineshowtheuser’sDTEcommunicateswiththenetworkandhowpacketsaresentoverthatnetworkusingDCEs.X.25usesavirtualcircuitapproach(SVCorPVC)topacketswitching(包交换),andusesasynchronousTDM(异步时分复用)tomultiplexpackets(包复用).14.1X.25LayersTheX.25protocolisorganizedintothreelayers:

thephysicallayer,theframelayer,andthepacketlayer.Theselayersdefinefunctionsatthephysical,datalink,andnetworklayersoftheOSImodel.Atthephysicallayer,X.25specifiesaprotocolcalledX.21.X.21iscloseenoughtootherphysicallayerprotocols,suchasEIA-232,thatX.25isabletosupportthemaswell.X.25providesdatalinkcontrolsusingabit-orientedprotocolcalledlinkaccessprocedure,balanced(LAPB,平衡式链路访问规程)whichisasubsetofHDLC.14.1.1PhysicalLayer(物理层)14.1.2FrameLayer(Datalinklayer)14.1.3PacketLayer(Networklayer)ThenetworklayerinX.25iscalledPacketlayerprotocol(PLP).Itisresponsibleforestablishingtheconnection,transferringthedata,andterminatingtheconnection.X.25requireserrordetectionandcorrectioninBoththedatalinklayerandthenetworklayer.AtthePLP,aheadercontainingcontrolinformationisaddedtotransformthedataintoaPLPpacket.PLPpacketarepassedtotheLAPB,andareencapsulatedintoLAPBinformationframes(I-frame)andpassedtothephysicallayertobesent.14.1.3PacketLayer(Networklayer)14.2PacketLayerProtocolX.25usesTwotypesofPLPpackets

Informationpackets(I-packets) Controlpackets(C-packets)Theinformationpacketcontainsuserdata

comingfromtheupperlayers.Thecontrolpacketdoesnotcontainuserdata,butcontaininformationfieldnecessaryfortheoperationofthenetwork.14.2.1InformationpacketInformationpacketareusedtotransmituserdata.Thegeneralformatinclude: Aheader AuserdatafieldGeneralformatidentifier(GFI,通用格式标识符)field QNotdefined

DUsedinpacketsequencing

Mod

说明序列号字段的大小(01,序列号3比特

(0-7);10,序列号7比特

(0-127))Virtualcircuitidentificationfields(LCGNandLCN)

逻辑信道组号(LCGN),逻辑信道号(LCN)Controlfield P(R)packetreceived,Piggyback P(S)packetssent

MUsedinpacketsequencing(More)14.2.1Informationpacket14.2.2ControlpacketsTherearetwocategoriesofcontrolpackets:Thefirstcategoryisusedforflowanderrorcontrol.

ConsistofonlyaheaderThesecondcategoryisusedforconnection,termination,andmanagementcontrol.

这种类型的控制包在头部之外可以携带额外的信息,但是这些信息仅仅用于控制,不包含任何用户数据。14.2.3Completepacketsequence(安全包序列)Themaximumlengthofthedatafieldinaninformationpacketvariedfromnetworktonetwork,baseinpartonthelimitationsofthehardware.Itisimportanttobeabletobreakupalongmessageamongmultiplepacketsbutstillkeepthosepacketsidentifiableasasinglecontiguoustransmission.Acompletepacketsequenceinvolvestheuseoftwotypesofpackets:ApacketsandBpackets.Apacketisoneinwhichthedatafieldisfullandatleastoneadditionalpacketisneededtocarrytheremainderofthemessage. AnApacketisidentifiedbya1intheMore(M)fieldandbya0inthedataterminal(D)field. ~A包:M=1&D=0AnyApacketmustalwaysbefollowedbyatleastoneotherpacketanddonotrequireacknowledgment.14.2.3CompletepacketsequenceBpacketscaneitherstandalongoractasthefinalpacketinamultipacketsequence.ThedatafieldofaBpacketsdoesnothavetobecompletelyfull.Bpacketsalwayshave1intheDfieldtoindicatethatanacknowledgmentisrequired. ~B包:D=1AcompletepacketsequenceconsistsofoneBpacketfollowing0ormoreApacketsAcompletepacketsequence:B,AB,AABetc.14.2.3CompletepacketsequenceAcknowledgments: thecompletepacketsequencecanbedividedintosubsequencesofoneormoreApacketsandaBpacket.~对子序列确认,提高效率(可靠性)

D=1thepacketrequiresanacknowledgment.

D=0noacknowledgmentisneeded.

M=1morepacketaretofollow.

M=0Itisthelastpacketinthesequence.

14.2.3CompletepacketsequenceSequenceandsubsequence14.2.3CompletepacketsequenceAABAABAABA包:D=0&M=1

B包:D=1&(M=0orM=1)X.25allowsupto4096multiplexedchannelstobeidentifiedbetweeneachDTEandDCE.IDnumbersareassignedtoeachchanneltoidentifywhichpacketbelongstowhichchannel.Thesenumberarenotpermanent,butareallocateddynamically.Thecallingandcalledhostsusedifferentnumberstoidentifyavirtualcircuit.14.2.4VirtualchannelIDnumber14.2.4VirtualchannelIDnumberAllocationofvirtualchannelIDnumberSUMMARYX.25isthepacketswitchingprotocol.X.25definestheproceduresfordatatransmissionbe

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论