TheabovecontentisreviewedandannouncedbytheNationalScienceandTechnologyTermReviewCommittee
Määritelmä
AdvancedDataLinkcontrol(HDLC,High-levelDataLinkControl)isasetofprotocolsusedtotransmitdatabetweennetworknodes.InHDLC,dataisorganizedintoindividualunits(calledframes)tobesentoverthenetworkandreceivedbythereceiver.TheHDLCprotocolalsomanagesthedataflowandtheintervalbetweendatatransmissions.HDLCisoneofthemostwidelyusedprotocolsinthedatalinklayer.ThedatalinklayeristhesecondlayerintheOSIseven-layernetworkmodel.Thefirstlayeristhephysicallayer,whichisresponsibleforgeneratingandreceivingphysicalelectronicsignals.Thelayeristhenetworklayer,anditstoimintoincludesdeterminingtheroutebyaccessingtheroutingtable.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).
ominaisuudet
1.Läpinäkyvä voimansiirto.Advanceddatalinkcontrolcantransparentlytransmitdataofanybitcombination."Transparency"isaveryimportantterm,whichmeansthatsomethingthatactuallyexistslookslikeitdoesn'texist."Läpinäkyvä voimansiirto"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,thetransmissioncontroltoimintoandtheprocessingtoimintoareseparated,thehierarchyisclear,andtheapplicationisveryflexible.
Tyyppi
Thedifferenttypesofhigh-leveldatalinkcontrol(HDLC)andtheirapplicationrangesarelistedbelow.
1.Normalresponsemode (NRM),sovellusalue:monipisteverkko SDLC:tä käyttäen;
2.LinkAccessProtocol(LAP),sovellusalue:earlyX.25Network;
3.Linkaccessprocessbalance (LAPB),sovellusalue:X.25verkko;
4.ISDN-yhteysprotokolla-Dchannel(LAPD),sovellusalue:ISDN-Dchannelandframerelay;
5. Modeemilinkin käyttömenettely (LAPM), sovellusalue: virheiden tarkistus;
toiminto
FrameControl
Thebasicunitoftransmissiononthedatalinkistheframe.Theframecontroltoimintorequiresthesendingstationtodividethedatainformationsentfromthenetworkintoseveralcodegroups,andaddtheaddressfield,controlfield,checkfieldandframestartandendflagstoeachcodegrouptoformaframetosend;Removetheflagfieldfromthereceivedframe,restoreittotheoriginaldatainformation,andsendittothenetworklayer.
Kehyssynkronointi
Kehyssynkronointimustbeachievedduringtransmissiontoensurethecorrectidentificationofeachfieldintheframe.
Virheenhallinta
Whenanerroroccursinthetransmissionofdatainformationonthephysicallink,thedatalinkcontrolprocedurerequiresthereceivingendtodetecttheerrorandrecoverit.TheusualmethodsareautomaticRequestforretransmissionofARQandforwarderrorcorrection.WhentheARQmethodisused,inordertopreventthere-receivingandmiss-receivingofframes,framesareoftensentandreceivedbynumbering.Whenanunrecoverableerrorisdetected,thenetworklayershouldbenotifiedtodealwithitaccordingly.
Virtauksen ohjaus
Virtauksen ohjausisusedtoovercomelinkcongestion.Itcanadjusttheinformationflowonthelinktoensurethatthedataratesentbythesenderiscompatiblewiththedataratethatthereceivercanreceive.Thecommonlyusedflowcontrolmethodistheslidingwindowcontrolmethod.
Linkinhallinta
Theestablishment,maintenanceandterminationofdatalinks,thetransmissiondirectionofcontrolinformation,andthedisplayoftheworkingstatusofthestationareallwithinthescopeoflinkmanagement.
Läpinäkyvä voimansiirto
Theflagsandsomefieldsusedintheproceduremustbeindependentoftheinformationtobetransmitted,whichmeansthatthedatalinkcantransmitavarietyofdatainformation,namelyTransparencyoftransmission.
Osoittaminen
Inamultipointlink,theframemustbeabletoreachthecorrectreceivingstation.
Epänormaali tilan toipuminen
Whenanabnormalconditionoccursonthelink,suchasreceivinganunclearsequenceorfailingtoreceivearesponseovertime,itcanautomaticallyrestartandreturntonormaloperationstate.
Toimintakäyttäytyminen
TheoperationofHDLCistheprocessofexchangingthreetypesofframesbetweentwosites.Thecorrespondingsemanticsarecompletedaccordingtothetoimintooftheframe.TherearethreemainoperationsofHDLC.Inthefirststage,oneofthetwopartiesmustinitializethedatalinksothatframescanbeexchangedinanorderlymanner.Atthisstage,thetwopartiesneedtoreachanagreementontheuseofvariousoptions.Afterthelinkisinitialized,thetwopartiesexchangedataandcontrolinformation,andimplementflowanderrorcontrol.Finally,oneofthetwopartiesmustsendasignaltoterminatetheoperation,thatis,disconnectthelink.
Luo linkkiyhteys
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.
Tiedonsiirto
Tiedonsiirtoisthetransmissionofframes,andthenormaldataexchangestateisafull-duplexexchangemode.WhenanentitysendsseveralI-framescontinuouslywithoutreceivinganydata,itsreceivingsequencenumberisonlyrepeatedcontinuously.IftheentitycontinuouslyreceivesseveralIframeswithoutsendinganyframes,thenthereceivingsequencenumberinthenextframeitsendsmustreflectthiscumulativeeffect.PleasenotethatinadditiontoIframes,dataexchangemayalsoinvolvemonitoringframes.Therewillalsobeabusystate.ThereasonforthisstatemaybethattherateatwhichtheHDLCentityprocessesIframescannotkeepupwiththerateatwhichtheseframesarrive,ortherateatwhichtheuserreceivesdataisnotasgoodastherateatwhichthedataintheIframesarrive.quick.Ineithercase,theentity'sreceivebufferwillfillup,anditmustusetheRNRcommandtopreventtheflowofIframesintothebuffer.Intheprocessofdatatransmission,theremayalsobeexamplesofusingREJcommandsforerrorrecovery.
Linkityksen poistaminen
TheHDLCmoduleofanypartyintheconnectioncanstarttheunlinkingoperation,whichmaybecausedbytheinterruptionofthemoduleitselfduetosomeerror,oritmaybeduetothehigh-levelTheuser'srequest.HDLCannouncestheterminationoftheconnectionbysendingadisconnect(DISC)frame,andtheotherpartymustreplywithUAtoindicatethatthedisconnectionisreceived.