TheabovecontentisreviewedandannouncedbytheNationalScienceandTechnologyTermReviewCommittee
Definice
AdvancedDataLinkcontrol(HDLC,High-levelDataLinkControl)isasetofprotocolsusedtotransmitdatabetweennetworknodes.InHDLC,dataisorganizedintoindividualunits(calledframes)tobesentoverthenetworkandreceivedbythereceiver.TheHDLCprotocolalsomanagesthedataflowandtheintervalbetweendatatransmissions.HDLCisoneofthemostwidelyusedprotocolsinthedatalinklayer.ThedatalinklayeristhesecondlayerintheOSIseven-layernetworkmodel.Thefirstlayeristhephysicallayer,whichisresponsibleforgeneratingandreceivingphysicalelectronicsignals.Thelayeristhenetworklayer,anditsfunkceincludesdeterminingtheroutebyaccessingtheroutingtable.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).
Funkce
1.Transparentní přenos.Advanceddatalinkcontrolcantransparentlytransmitdataofanybitcombination."Transparency"isaveryimportantterm,whichmeansthatsomethingthatactuallyexistslookslikeitdoesn'texist."Transparentní přenos"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,thetransmissioncontrolfunkceandtheprocessingfunkceareseparated,thehierarchyisclear,andtheapplicationisveryflexible.
Typ
Thedifferenttypesofhigh-leveldatalinkcontrol(HDLC)andtheirapplicationrangesarelistedbelow.
1.Normálnírežim odezvy(NRM),rozsah aplikací:vícebodová síť pomocí SDLC;
2.LinkAccessProtocol(LAP),rozsah aplikace:earlyX.25Network;
3.Linkaccessprocessbalance(LAPB),aplikačnírozsah:X.25network;
4.ISDNlinkaccessprotocol-Dchannel(LAPD),aplikacni rozsah:ISDN-Dchannelandframerelay;
5.Procedura přístupu k modemu(LAPM),rozsah aplikace:kontrola chyb;
funkce
FrameControl
Thebasicunitoftransmissiononthedatalinkistheframe.Theframecontrolfunkcerequiresthesendingstationtodividethedatainformationsentfromthenetworkintoseveralcodegroups,andaddtheaddressfield,controlfield,checkfieldandframestartandendflagstoeachcodegrouptoformaframetosend;Removetheflagfieldfromthereceivedframe,restoreittotheoriginaldatainformation,andsendittothenetworklayer.
Synchronizace snímků
Synchronizace snímkůmustbeachievedduringtransmissiontoensurethecorrectidentificationofeachfieldintheframe.
Kontrola chyb
Whenanerroroccursinthetransmissionofdatainformationonthephysicallink,thedatalinkcontrolprocedurerequiresthereceivingendtodetecttheerrorandrecoverit.TheusualmethodsareautomaticRequestforretransmissionofARQandforwarderrorcorrection.WhentheARQmethodisused,inordertopreventthere-receivingandmiss-receivingofframes,framesareoftensentandreceivedbynumbering.Whenanunrecoverableerrorisdetected,thenetworklayershouldbenotifiedtodealwithitaccordingly.
Řízení toku
Řízení tokuisusedtoovercomelinkcongestion.Itcanadjusttheinformationflowonthelinktoensurethatthedataratesentbythesenderiscompatiblewiththedataratethatthereceivercanreceive.Thecommonlyusedflowcontrolmethodistheslidingwindowcontrolmethod.
Linkmanagement
Theestablishment,maintenanceandterminationofdatalinks,thetransmissiondirectionofcontrolinformation,andthedisplayoftheworkingstatusofthestationareallwithinthescopeoflinkmanagement.
Transparentní přenos
Theflagsandsomefieldsusedintheproceduremustbeindependentoftheinformationtobetransmitted,whichmeansthatthedatalinkcantransmitavarietyofdatainformation,namelyTransparencyoftransmission.
Adresování
Inamultipointlink,theframemustbeabletoreachthecorrectreceivingstation.
Abnormální obnova stavu
Whenanabnormalconditionoccursonthelink,suchasreceivinganunclearsequenceorfailingtoreceivearesponseovertime,itcanautomaticallyrestartandreturntonormaloperationstate.
Provozní chování
TheoperationofHDLCistheprocessofexchangingthreetypesofframesbetweentwosites.Thecorrespondingsemanticsarecompletedaccordingtothefunkceoftheframe.TherearethreemainoperationsofHDLC.Inthefirststage,oneofthetwopartiesmustinitializethedatalinksothatframescanbeexchangedinanorderlymanner.Atthisstage,thetwopartiesneedtoreachanagreementontheuseofvariousoptions.Afterthelinkisinitialized,thetwopartiesexchangedataandcontrolinformation,andimplementflowanderrorcontrol.Finally,oneofthetwopartiesmustsendasignaltoterminatetheoperation,thatis,disconnectthelink.
Navažte spojení
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.
Přenos dat
Přenos datisthetransmissionofframes,andthenormaldataexchangestateisafull-duplexexchangemode.WhenanentitysendsseveralI-framescontinuouslywithoutreceivinganydata,itsreceivingsequencenumberisonlyrepeatedcontinuously.IftheentitycontinuouslyreceivesseveralIframeswithoutsendinganyframes,thenthereceivingsequencenumberinthenextframeitsendsmustreflectthiscumulativeeffect.PleasenotethatinadditiontoIframes,dataexchangemayalsoinvolvemonitoringframes.Therewillalsobeabusystate.ThereasonforthisstatemaybethattherateatwhichtheHDLCentityprocessesIframescannotkeepupwiththerateatwhichtheseframesarrive,ortherateatwhichtheuserreceivesdataisnotasgoodastherateatwhichthedataintheIframesarrive.quick.Ineithercase,theentity'sreceivebufferwillfillup,anditmustusetheRNRcommandtopreventtheflowofIframesintothebuffer.Intheprocessofdatatransmission,theremayalsobeexamplesofusingREJcommandsforerrorrecovery.
Odpojování
TheHDLCmoduleofanypartyintheconnectioncanstarttheunlinkingoperation,whichmaybecausedbytheinterruptionofthemoduleitselfduetosomeerror,oritmaybeduetothehigh-levelTheuser'srequest.HDLCannouncestheterminationoftheconnectionbysendingadisconnect(DISC)frame,andtheotherpartymustreplywithUAtoindicatethatthedisconnectionisreceived.