Podrobné vysvětlení
Eachnodereceivestheentiremessage,checkstheaddressofthetargetnode,andthenforwardsittothenextnodewhenappropriateaccordingtothetrafficsituationinthenetwork.Aftermanystore-and-forwards,itfinallyreachesthetarget,sosuchanetworkiscalledstore-and-forwardnetwork.Theexchangenodemusthaveenoughstoragespace(usuallyadisk)tobufferthelongmessagesreceived.
Theswitchingnodequeuesthemessagesreceivedinalldirections,comparesitwiththenextforwardingnode,andthenforwardsitout,allofwhichbringdelaysinqueuing.Theadvantageofmessageexchangeisthatnodedicatedlinkisestablished,butthelineutilizationrateishigher,whichisduetothewaitingtimedelayincommunication.
E-mailový systém (E-mail) je vhodný pro výměnu zpráv.
Výhody a nevýhody
Messageexchangeisbasedonmessagesastheunitofdataexchange.Messagescarryinformationsuchasdestinationaddressandsourceaddress.Storeandforwardareusedattheswitchingnode.Thetransmissionmethodhasthefollowingadvantagesanddisadvantages:
Výhody
①Themessageexchangedoesnotneedtoestablishadedicatedcommunicationlineforbothpartiesinadvance,andthereisnoconnectionestablishmentdelay,andtheusercanSendmessagesatanytime.
②Becauseoftheuseofstore-and-forwardtransmission,ithasthefollowingadvantages:a.Itiseasytosetupcodeinspectionanddataretransmissionfacilitiesinthemessageexchange,andtheexchangenodealsohaspathselection.Whenacertaintransmissionpathfails,anotherpathisselectedtotransmitdata,whichimprovesthereliabilityoftransmission;b.Itiseasytorealizecodeconversionandratematchinginstoreandforward,andeventhesendingandreceivingpartiescannotbeintheavailablestateatthesametime.Thisfacilitatescommunicationbetweencomputersofdifferenttypes,specificationsandspeeds;c.Providesmulti-targetservices,thatis,amessagecanbesenttomultipledestinationaddressesatthesametime,whichisdifficulttoachieveincircuitswitching;d.AllowedEstablishthepriorityofdatatransmissionsothatpacketswithhigherpriorityareconvertedfirst.
③Thecommunicationpartiesdonotoccupyacommunicationlinefixedly,butpartlyoccupythisphysicalpathatdifferenttimes,thusgreatlyimprovingtheutilizationrateofthecommunicationline.
Nevýhody
①Becausethedatahastogothroughtheprocessofstorageandforwardingafterenteringtheswitchingnode,itcausesforwardingdelay(includingreceivingmessages,checkingcorrectness,queuing,sendingTime,etc.),andthegreatertheamountofnetworkcommunication,thegreaterthedelaycaused,sothereal-timeperformanceofmessageexchangeispoor,anditisnotsuitablefortransmittingreal-timeorinteractiveservicedata.
②Výměna zpráv platí pouze pro digitální signály.
③Sincethemessagelengthisnotlimited,andeachintermediatenodemustreceivetheentiremessagecompletely,whentheoutputlineisnotidle,itmayalsostoreseveralcompletemessagestowaitForwardingrequireseachnodeinthenetworktohavealargerbuffer.Inordertoreducecostsandreducethecapacityofthenode'sbuffermemory,sometimesthemessageswaitingtobeforwardedarestoredonthedisk,whichfurtherincreasesthetransmissiondelay.
Přepínání okruhů
Becausecircuitswitchingneedstoestablishaphysicalpathbetweenthetwocommunicationpartiesbeforecommunication(bytheswitchingequipmentandlinkbetweenthetwocommunicationpartiessectionbysection)Connected),soithasthefollowingadvantagesanddisadvantages.
①Becausethecommunicationlineisdedicatedtobothusersofthecommunication,andthedataisdirect,thetimedelayofdatatransmissionisverysmall.
②Oncethephysicalpathbetweenthetwocommunicationpartiesisestablished,thetwopartiescancommunicateatanytimewithstrongreal-timeperformance.
③Whenthetwopartiescommunicate,thedataistransmittedintheorderofsending,andthereisnoproblemofout-of-sequence.
④Circuitswitchingisnotonlysuitablefortransmittinganalogsignals,butalsosuitablefortransmittingdigitalsignals.
⑤Spínací zařízení (spínače atd.) a ovládání spínání obvodů jsou poměrně jednoduché.
Nevýhody:
①Průměrná doba sestavení připojení přepínání obvodů je dlouhá pro počítačovou komunikaci.
②Afterthecircuit-switchedconnectionisestablished,thephysicalpathisexclusivelyoccupiedbybothpartiesinthecommunication.Evenifthecommunicationlineisidle,itcannotbeusedbyotherusers,sothechannelutilizationislow.
③Whenthecircuitisswitched,thedataisdirect,anditisdifficultforterminalsofdifferenttypes,specifications,andspeedstocommunicatewitheachother,anditisalsodifficulttocarryouterrorcontrolinthecommunicationprocess.
Přepínání paketů
Přepínání paketůstillusesstore-and-forwardtransmission,butalongmessageisfirstdividedintoseveralshorterpackets,andthenthesepackets(carryingsourceanddestination)Addressandnumberinformation)aresentoutonebyone.Therefore,inadditiontotheadvantagesofmessages,packetswitchinghasthefollowingadvantagesanddisadvantagescomparedwithmessageswitching:
①Speedsupthetransmissionofdatainthenetwork.Becausethepacketsaretransmittedonebyone,thestorageoperationofthenextpacketcanbeparalleledwiththeforwardingoperationofthepreviouspacket.Thispipelinetransmissionmodereducesthetransmissiontimeofthemessage.Inaddition,thebufferrequiredtotransmitapacketismuchsmallerthanthebufferrequiredtotransmitamessage,sotheprobabilityofwaitingfortransmissionandthewaitingtimeduetoinsufficientbuffersareinevitablymuchless.
②Simplifiedstoragemanagement.Becausethelengthofthepacketisfixed,andthesizeofthecorrespondingbufferisalsofixed,themanagementofthememoryintheswitchingnodeisusuallysimplifiedtothemanagementofthebuffer,whichisrelativelyeasy.
③Reducetheerrorprobabilityandtheamountofretransmissiondata.Becausethepacketisshorter,theerrorprobabilitywillinevitablydecrease,andtheamountofdataretransmittedeachtimeisalsogreatlyreduced.Thisnotonlyimprovesthereliability,butalsoreducesthetransmissiondelay.
④Becauseoftheshortpacketsize,itismoresuitableforadoptingprioritystrategiestofacilitatethetimelytransmissionofsomeurgentdata.Therefore,packetswitchingisobviouslymoresuitableforburstdatacommunicationbetweencomputers.
Nevýhody:
①Althoughpacketswitchinghaslesstransmissiondelaythanmessageswitching,itstillhasstore-and-forwarddelay,anditsnodeswitchmusthavestrongerprocessingcapabilities.
②Přepínání paketůisthesameasmessageswitching.Eachpacketmustbeaddedwithsource,destinationaddressandgroupnumberinformation,whichincreasestheamountofinformationtransmittedbyapproximately5%to10%,toacertainextentThecommunicationefficiencyisreduced,theprocessingtimeisincreased,thecontroliscomplicated,andthetimedelayisincreased.
③Whenpacketswitchingusesdatagramservices,out-of-sequence,lossorduplicatepacketsmayoccur.Whenthepacketsarriveatthedestinationnode,itisnecessarytosortthepacketsbynumber,whichincreasesthetrouble.Ifthevirtualcircuitserviceisadopted,althoughthereisnodisorderproblem,therearethreeprocessesofcallestablishment,datatransmissionandvirtualcircuitrelease.
Inshort,iftheamountofdatatobetransmittedislargeandthetransmissiontimeismuchlongerthanthecalltime,circuitswitchingismoreappropriate;whentheend-to-endpathconsistsofmanylinks,packetItismoreappropriatetoexchangeandtransmitdata.Fromtheperspectiveofimprovingthechannelutilizationoftheentirenetwork,messageswitchingandpacketswitchingarebetterthancircuitswitching.Amongthem,packetswitchinghasashorterdelaythanmessageswitching,andisespeciallysuitableforburstdatacommunicationbetweencomputers.