TheabovecontentisreviewedandannouncedbytheNationalScienceandTechnologyTermReviewCommittee
Определение
AdvancedDataLinkcontrol(HDLC,High-levelDataLinkControl)isasetofprotocolsusedtotransmitdatabetweennetworknodes.InHDLC,dataisorganizedintoindividualunits(calledframes)tobesentoverthenetworkandreceivedbythereceiver.TheHDLCprotocolalsomanagesthedataflowandtheintervalbetweendatatransmissions.HDLCisoneofthemostwidelyusedprotocolsinthedatalinklayer.ThedatalinklayeristhesecondlayerintheOSIseven-layernetworkmodel.Thefirstlayeristhephysicallayer,whichisresponsibleforgeneratingandreceivingphysicalelectronicsignals.Thelayeristhenetworklayer,anditsфункцияincludesdeterminingtheroutebyaccessingtheroutingtable.Whentransmittingdata,thedataframeofthenetworklayercontainsthenetworkaddressesofthesourcenodeandthedestinationnode.Inthesecondlayer,thedataframeofthenetworklayerisencapsulatedthroughtheHDLCspecificationtoadddatalinkcontrolinformation.
AsanISOstandard,HDLCisbasedonIBM'sSDLCprotocol,andSDLCiswidelyusedinIBM'smainframeenvironment.InHDLC,SDLCiscallednormalresponsemode(NRM).Inthenormalresponsemode,thebasestation(usuallyamainframe)sendsdatatoalocalorremotesecondarystationthroughadedicatedlineinamulti-pathormulti-pointnetwork.Thiskindofnetworkisnotwhatweusuallysay,itisaclosednetworkthatisnotpublic,andthenetworkcommunicationadoptshalf-duplex.
DifferenttypesofHDLCareusedinnetworksandframerelaynetworksthatusetheX.25protocol.Thisprotocolcanbeusedinalocalareanetworkorawideareanetwork,regardlessofwhetherthenetworkispublicorprivate.
IntheX.25versionofHDLC,thedataframecontainsadatapacket.IntheX.25network,dataisdividedintoseveraldatapacketsbeforebeingsent,andthentherouterdetectsthenetworkconditionstodeterminetheroute.Eachdatapacketissenttothedestinationnode,andmergedintotheinitialdataatthedestinationnodeinthecorrectorder.HDLCofX.25versionadoptspoint-to-pointcommunication,andthecommunicationmodeadoptsfullduplexmode.ThistypeofHDLCcanensuretheerrorreleaseandcorrectorderingofframes,whichiscalledLAPB(LinkAccessProcessBalance).
Характеристика
1.Прозрачно предаване.Advanceddatalinkcontrolcantransparentlytransmitdataofanybitcombination."Transparency"isaveryimportantterm,whichmeansthatsomethingthatactuallyexistslookslikeitdoesn'texist."Прозрачно предаване"meansthatthedatainformationhasnotchangedafterbeingtransmittedbytheactualcircuit.Therefore,forthetransmitteddatainformation,sincethiscircuithasnoeffectonit,itcanbesaidthatthedatainformation"cannotsee"thiscircuit,orthatthecircuitistransparenttothedatainformation.Inthisway,anycombinationofdatainformationcanbetransmittedonthiscircuit.
2.Highreliability.Intheadvanceddatalinkcontrolprocedure,thescopeoferrorcontrolistheentireframeexceptfortheFflag,whilethebasictransmissioncontrolproceduredoesnotincludeprefixesandsomecontrolcharacters.Inaddition,advanceddatalinkcontrolperformsnumberedtransmissionofIframes,whicheffectivelypreventsframere-receptionandmissedreceipt.
3.Hightransmissionefficiency.Inadvanceddatalinkcontrol,theadditionaloverheadbitsaresmall,allowingefficienterrorcontrolandflowcontrol.
4.Strongadaptability.Advanceddatalinkcontrolprocedurescanadapttovariousbittypesofworkstationsandlinks.
5.Flexiblestructure.Inadvanceddatalinkcontrol,thetransmissioncontrolфункцияandtheprocessingфункцияareseparated,thehierarchyisclear,andtheapplicationisveryflexible.
Тип
Thedifferenttypesofhigh-leveldatalinkcontrol(HDLC)andtheirapplicationrangesarelistedbelow.
1. Режим на нормален отговор (NRM), обхват на приложение: многоточкова мрежа с използване на SDLC;
2.LinkAccessProtocol(LAP),applicationrange:earlyX.25Network;
3.Linkaccessprocessbalance(LAPB),applicationrange:X.25network;
4.ISDNlinkaccessprotocol-Dchannel(LAPD),applicationRange:ISDN-Dchannelandframerelay;
5. Процедура за достъп до модемна връзка (LAPM), обхват на приложение: проверка на грешки;
функция
FrameControl
Thebasicunitoftransmissiononthedatalinkistheframe.Theframecontrolфункцияrequiresthesendingstationtodividethedatainformationsentfromthenetworkintoseveralcodegroups,andaddtheaddressfield,controlfield,checkfieldandframestartandendflagstoeachcodegrouptoformaframetosend;Removetheflagfieldfromthereceivedframe,restoreittotheoriginaldatainformation,andsendittothenetworklayer.
Синхронизация на рамки
Синхронизация на рамкиmustbeachievedduringtransmissiontoensurethecorrectidentificationofeachfieldintheframe.
Контрол на грешките
Whenanerroroccursinthetransmissionofdatainformationonthephysicallink,thedatalinkcontrolprocedurerequiresthereceivingendtodetecttheerrorandrecoverit.TheusualmethodsareautomaticRequestforretransmissionofARQandforwarderrorcorrection.WhentheARQmethodisused,inordertopreventthere-receivingandmiss-receivingofframes,framesareoftensentandreceivedbynumbering.Whenanunrecoverableerrorisdetected,thenetworklayershouldbenotifiedtodealwithitaccordingly.
Контрол на потока
Контрол на потокаisusedtoovercomelinkcongestion.Itcanadjusttheinformationflowonthelinktoensurethatthedataratesentbythesenderiscompatiblewiththedataratethatthereceivercanreceive.Thecommonlyusedflowcontrolmethodistheslidingwindowcontrolmethod.
Управление на връзките
Theestablishment,maintenanceandterminationofdatalinks,thetransmissiondirectionofcontrolinformation,andthedisplayoftheworkingstatusofthestationareallwithinthescopeoflinkmanagement.
Прозрачно предаване
Theflagsandsomefieldsusedintheproceduremustbeindependentoftheinformationtobetransmitted,whichmeansthatthedatalinkcantransmitavarietyofdatainformation,namelyTransparencyoftransmission.
Адресиране
Inamultipointlink,theframemustbeabletoreachthecorrectreceivingstation.
Ненормално възстановяване на състоянието
Whenanabnormalconditionoccursonthelink,suchasreceivinganunclearsequenceorfailingtoreceivearesponseovertime,itcanautomaticallyrestartandreturntonormaloperationstate.
Оперативно поведение
TheoperationofHDLCistheprocessofexchangingthreetypesofframesbetweentwosites.Thecorrespondingsemanticsarecompletedaccordingtotheфункцияoftheframe.TherearethreemainoperationsofHDLC.Inthefirststage,oneofthetwopartiesmustinitializethedatalinksothatframescanbeexchangedinanorderlymanner.Atthisstage,thetwopartiesneedtoreachanagreementontheuseofvariousoptions.Afterthelinkisinitialized,thetwopartiesexchangedataandcontrolinformation,andimplementflowanderrorcontrol.Finally,oneofthetwopartiesmustsendasignaltoterminatetheoperation,thatis,disconnectthelink.
Установете връзка
HDLCmustbeabletoinitializethelink,thatis,completethelinkconnection.InHDLC,useoneofthesixmodesettingcommandstorequestinitialization.ThesecommandsareasfollowsRoleandresponse;
(1)Notifytherequestingpartytoinitialize;(2)Pointoutwhichofthethreemodesoftherequest;thesemodesdeterminewhetheroneendisthemasterstationandcontrolstheinteraction,orwhetheritisTherefore,theycooperatewitheachotherwheninteracting;(3)Pointouttheserialnumberused.
Ifonepartyacceptsthisrequest,itsHDLCmodulereturnsanUnnumberedAcknowledged(UA)totheinitialization.Iftherequestisrejected,itsendsaDisconnectedMode(DM)frame.IntheHDLCprotocolentity,AsendsaSABMcommandtotheotherpartyBandstartsatimer.IfAcannotreceivetheUAsentbyB,thenAwillresendtheSABMcommandifthetimerexpires.IfAhasnotreceivedB'sUAorDM,thenthisprocesswillberepeatedcontinuously,orafterthespecifiednumberofretries,theentityabandonstheattemptandreportstheoperationfailuretothemanagemententity.Inthiscase,ahigherlevelisrequiredIntervention.TheprocessofunlinkingisthatonepartysendsaDISCcommand,andtheotherpartyrespondswithaUAconfirmation.Thedelinkingiscompleted.
Предаване на данни
Предаване на данниisthetransmissionofframes,andthenormaldataexchangestateisafull-duplexexchangemode.WhenanentitysendsseveralI-framescontinuouslywithoutreceivinganydata,itsreceivingsequencenumberisonlyrepeatedcontinuously.IftheentitycontinuouslyreceivesseveralIframeswithoutsendinganyframes,thenthereceivingsequencenumberinthenextframeitsendsmustreflectthiscumulativeeffect.PleasenotethatinadditiontoIframes,dataexchangemayalsoinvolvemonitoringframes.Therewillalsobeabusystate.ThereasonforthisstatemaybethattherateatwhichtheHDLCentityprocessesIframescannotkeepupwiththerateatwhichtheseframesarrive,ortherateatwhichtheuserreceivesdataisnotasgoodastherateatwhichthedataintheIframesarrive.quick.Ineithercase,theentity'sreceivebufferwillfillup,anditmustusetheRNRcommandtopreventtheflowofIframesintothebuffer.Intheprocessofdatatransmission,theremayalsobeexamplesofusingREJcommandsforerrorrecovery.
Прекратяване на връзката
TheHDLCmoduleofanypartyintheconnectioncanstarttheunlinkingoperation,whichmaybecausedbytheinterruptionofthemoduleitselfduetosomeerror,oritmaybeduetothehigh-levelTheuser'srequest.HDLCannouncestheterminationoftheconnectionbysendingadisconnect(DISC)frame,andtheotherpartymustreplywithUAtoindicatethatthedisconnectionisreceived.