Въведение
Theprincipleofmessageexchangeisthatwhenthesender’sinformationarrivesatthecomputerusedformessageexchange,itisfirststoredintheexternalmemory,andthecentralprocessingunitanalyzestheheaderanddeterminestheforwardingroute.,Andselecttheoutputcircuitcorrespondingtothisrouteforqueuing,waitingforoutput.Oncethecircuitisidle,themessageisimmediatelytakenoutfromtheexternalmemoryandsentout,whichimprovestheutilizationofthiscircuit.Althoughthemessageexchangeimprovestheutilizationofthecircuit,themessagewillhavealargerdelayafterbeingstoredandforwarded.Превключване на пакетиisalsoastore-and-forwardswitchingmethod,butdifferentfrommessageswitching,itdividesmessagesintopacketsofacertainlength,andstoresandforwardstheminunitsofpackets.Thisnotonlyhastheadvantageofmessageexchangemodetoimprovecircuitutilization,butalsoovercomesthedisadvantageoflargetimedelay.
Класификация
Превключване на вериги
Whenuserswanttotransmitdata,theswitchingcenterestablishesatemporarydatacircuitbetweenusers.Afterthecircuitisconnected,bothuserscantransmitdata,anditwillbeoccupieduntilthetransmissioniscompletedandthecircuitisremoved.Thetimedelayintroducedbycircuitswitchingisverysmall,andtheswitchdoesnotprocessthedata,soitissuitablefortransmittingreal-timeandlarge-scaledata.
Характеристика
Circuitswitchingcanensurethatafterthephysicalchannelisestablished,thephysicalchannelbecomesadedicatedcircuit.Therefore,thereisnolongeradelayintransmittinginformation.However,becausethecomputertransmitsinformationintermittently,onlyashorttimeisactuallyusedtotransmitinformationduringtheentiretimeoccupiedbythephysicalpath,whichcausesawasteofcommunicationlines.Inaddition,thecallprocessofcircuitswitchingtoestablishapathistoolongforcomputercommunication.
Размяна на съобщения
Generally,itisrealizedbycomputer.Thesenderuserfirstcompilesthedatatobesentintoamessage,andsendsittothelocalswitchingcentertogetherwithauxiliarydatasuchastherecipientaddress,wheretheyarestoredintactandprocessedappropriately.Whentheoutputportofthelocalswitchingcenterisfree,themessageisforwardedtothenextswitchingcenter,andfinallythemessageisdeliveredtotheuserbytheswitchingcenteratthereceivingend.
Характеристика
Intheexchange,themessageisstoredandforwardedfromthesourcetothedestination.Theadvantagesare:①hightransmissionreliability,itcaneffectivelyuseerrorcheckingandretransmissiontechnology;②highlineutilization,itcanconcentratemultiplelow-speedcircuitsintohigh-speedcircuittransmission,andallowsmultipleuserstoshareachannel③Itisflexibletouse,itcancarryoutpreprocessingworksuchascodeconversionandrateconversion,soitcantransmitdatabetweenterminalsofdifferenttypes,rates,andprocedures.
However,messageexchangeisnotsuitableforconversationalandreal-timeservices.Generally,messageexchangesaredividedintodifferentprioritylevelsfortransmissionaccordingtotheimportanceandurgencyofthetransmitteddata.
Превключване на пакети
Splitthedataintoseveralshort-length(generallynomorethan128characters)packets.Inadditiontothedatainformation,eachpacketalsoincludescontrolinformation.TheyExchangeasawholewithintheswitch.Thetransmissionpathofeachpacketintheswitchingnetworkcanbedifferent.Превключване на пакетиalsousesstore-and-forwardtechnology,andperformserrorchecking,retransmission,andreturnresponseoperations.Finally,thereceivingendreassemblesallreceivedpacketsintodatainorder.
Характеристика
Comparedwiththemessageexchange,theadvantagesofpacketswitchingare:
①Inthemessageexchange,thetotaltransmissionDelayisthesumofthedelaysofreceivingandforwardingtheentiremessageoneachnode.Inpacketswitching,afterapacketissenttoanode,thenextpacketcanbesent,sothatthetotaldelayisreduced;
②Thebuffercapacityrequiredbyeachnodeisreduced,whichisconducivetoimprovingtheutilizationofthenode’sstorageresources;
③Whenthereisatransmissionerror,justretransmitoneormoreItisnotnecessarytoretransmittheentiremessage,whichcanimprovethetransmissionefficiency.Thedisadvantageofpacketswitchingisthateachpacketneedstobeaddedwithsomecontrolinformation,whichwillreducethetransmissionefficiency,especiallyforlongmessages.Generalpacketswitchingprovidestwobasicservices,virtualcircuitanddatagram.
Хибридно превключване
Thesimultaneoususeofcircuitswitchingandpacketswitchinginacomputernetworkiscalledhybridswitching.Thehybridmethodistodividethetransmissionchannelintodifferentbandwidths,allocateapartofthebandwidthforcircuitswitching,andallocateanotherpartofthebandwidthforpacketswitching.Theso-calledbandwidthherereferstothefrequencybandwidthallowedtotransmitinformationonatransmissionchannel,thatis,thehighestfrequencythroughwhichasignalcanpassthroughthechannel.