Úvod
Theprincipleofmessageexchangeisthatwhenthesender’sinformationarrivesatthecomputerusedformessageexchange,itisfirststoredintheexternalmemory,andthecentralprocessingunitanalyzestheheaderanddeterminestheforwardingroute.,Andselecttheoutputcircuitcorrespondingtothisrouteforqueuing,waitingforoutput.Oncethecircuitisidle,themessageisimmediatelytakenoutfromtheexternalmemoryandsentout,whichimprovestheutilizationofthiscircuit.Althoughthemessageexchangeimprovestheutilizationofthecircuit,themessagewillhavealargerdelayafterbeingstoredandforwarded.Přepínání paketůisalsoastore-and-forwardswitchingmethod,butdifferentfrommessageswitching,itdividesmessagesintopacketsofacertainlength,andstoresandforwardstheminunitsofpackets.Thisnotonlyhastheadvantageofmessageexchangemodetoimprovecircuitutilization,butalsoovercomesthedisadvantageoflargetimedelay.
Klasifikace
Přepínání okruhů
Whenuserswanttotransmitdata,theswitchingcenterestablishesatemporarydatacircuitbetweenusers.Afterthecircuitisconnected,bothuserscantransmitdata,anditwillbeoccupieduntilthetransmissioniscompletedandthecircuitisremoved.Thetimedelayintroducedbycircuitswitchingisverysmall,andtheswitchdoesnotprocessthedata,soitissuitablefortransmittingreal-timeandlarge-scaledata.
Funkce
Circuitswitchingcanensurethatafterthephysicalchannelisestablished,thephysicalchannelbecomesadedicatedcircuit.Therefore,thereisnolongeradelayintransmittinginformation.However,becausethecomputertransmitsinformationintermittently,onlyashorttimeisactuallyusedtotransmitinformationduringtheentiretimeoccupiedbythephysicalpath,whichcausesawasteofcommunicationlines.Inaddition,thecallprocessofcircuitswitchingtoestablishapathistoolongforcomputercommunication.
Výměna zpráv
Generally,itisrealizedbycomputer.Thesenderuserfirstcompilesthedatatobesentintoamessage,andsendsittothelocalswitchingcentertogetherwithauxiliarydatasuchastherecipientaddress,wheretheyarestoredintactandprocessedappropriately.Whentheoutputportofthelocalswitchingcenterisfree,themessageisforwardedtothenextswitchingcenter,andfinallythemessageisdeliveredtotheuserbytheswitchingcenteratthereceivingend.
Funkce
Intheexchange,themessageisstoredandforwardedfromthesourcetothedestination.Theadvantagesare:①hightransmissionreliability,itcaneffectivelyuseerrorcheckingandretransmissiontechnology;②highlineutilization,itcanconcentratemultiplelow-speedcircuitsintohigh-speedcircuittransmission,andallowsmultipleuserstoshareachannel③Itisflexibletouse,itcancarryoutpreprocessingworksuchascodeconversionandrateconversion,soitcantransmitdatabetweenterminalsofdifferenttypes,rates,andprocedures.
However,messageexchangeisnotsuitableforconversationalandreal-timeservices.Generally,messageexchangesaredividedintodifferentprioritylevelsfortransmissionaccordingtotheimportanceandurgencyofthetransmitteddata.
Přepínání paketů
Splitthedataintoseveralshort-length(generallynomorethan128characters)packets.Inadditiontothedatainformation,eachpacketalsoincludescontrolinformation.TheyExchangeasawholewithintheswitch.Thetransmissionpathofeachpacketintheswitchingnetworkcanbedifferent.Přepínání paketůalsousesstore-and-forwardtechnology,andperformserrorchecking,retransmission,andreturnresponseoperations.Finally,thereceivingendreassemblesallreceivedpacketsintodatainorder.
Funkce
Comparedwiththemessageexchange,theadvantagesofpacketswitchingare:
①Inthemessageexchange,thetotaltransmissionDelayisthesumofthedelaysofreceivingandforwardingtheentiremessageoneachnode.Inpacketswitching,afterapacketissenttoanode,thenextpacketcanbesent,sothatthetotaldelayisreduced;
②Thebuffercapacityrequiredbyeachnodeisreduced,whichisconducivetoimprovingtheutilizationofthenode’sstorageresources;
③Whenthereisatransmissionerror,justretransmitoneormoreItisnotnecessarytoretransmittheentiremessage,whichcanimprovethetransmissionefficiency.Thedisadvantageofpacketswitchingisthateachpacketneedstobeaddedwithsomecontrolinformation,whichwillreducethetransmissionefficiency,especiallyforlongmessages.Generalpacketswitchingprovidestwobasicservices,virtualcircuitanddatagram.
Hybridní přepínání
Thesimultaneoususeofcircuitswitchingandpacketswitchinginacomputernetworkiscalledhybridswitching.Thehybridmethodistodividethetransmissionchannelintodifferentbandwidths,allocateapartofthebandwidthforcircuitswitching,andallocateanotherpartofthebandwidthforpacketswitching.Theso-calledbandwidthherereferstothefrequencybandwidthallowedtotransmitinformationonatransmissionchannel,thatis,thehighestfrequencythroughwhichasignalcanpassthroughthechannel.