rfc963.SOME PROBLEMS WITH THE SPECIFICATION OF THE

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

NetworkWorkingGroupDeepinderP.SidhuRequestforComments:963IowaStateUniversityNovember1985SOMEPROBLEMSWITHTHESPECIFICATIONOFTHEMILITARYSTANDARDINTERNETPROTOCOLSTATUSOFTHISMEMOThepurposeofthisRFCistoprovidehelpfulinformationontheMilitaryStandardInternetProtocol(MIL-STD-1777)sothatonecanobtainareliableimplementationofthisprotocolstandard.Distributionofthisnoteisunlimited.ABSTRACTThispaperpointsoutseveralsignificantproblemsinthespecificationoftheMilitaryStandardInternetProtocol(MIL-STD-1777,datedAugust1983[MILS83a]).Theseresultsarebasedonaninitialinvestigationofthisprotocolstandard.Theproblemsare:(1)afailuretoreassemblefragmentedmessagescompletely;(2)amissingstatetransition;(3)errorsintestingforreassemblycompletion;(4)errorsincomputingfragmentsizes;(5)minorerrorsinmessagereassembly;(6)incorrectlycomputedlengthforcertaindatagrams.Thisnotealsoproposessolutionstotheseproblems.1.IntroductionInrecentyears,muchprogresshasbeenmadeincreatinganintegratedsetoftoolsfordevelopingreliablecommunicationprotocols.Thesetoolsprovideassistanceinthespecification,verification,implementationandtestingofprotocols.Severalprotocolshavebeenanalyzedanddevelopedusingsuchtools.Examplesofautomatedverificationandimplementationofseveralrealworldprotocolsarediscussedin[BLUT82][BLUT83][SIDD83][SIDD84].WearecurrentlyworkingontheautomaticimplementationoftheMilitaryStandardInternetProtocol(IP).Thisanalysiswillbebasedonthepublishedspecification[MILS83a]ofIPdated12August1983.WhilestudyingtheMILStandardIPspecification,wehavenoticednumerouserrorsinthespecificationofthisprotocol.Oneconsequenceoftheseerrorsisthattheprotocolwillneverdeliverfragmentedincomingdatagrams;ifthiserroriscorrected,suchdatagramswillbemissingsomedataandtheirlengthswillbeincorrectlyreported.Inaddition,outgoingdatagramsthataredividedintofragmentswillbemissingsomedata.TheproofofthesestatementsfollowsfromthespecificationofIP[MILS83a]asdiscussedbelow.Sidhu[Page1]RFC963November1985SomeProblemswithMIL-STDIP2.InternetProtocolTheInternetProtocol(IP)isanetworklayerprotocolintheDoDprotocolhierarchywhichprovidescommunicationacrossinterconnectedpacket-switchednetworksinaninternetworkenvironment.IPprovidesapuredatagramservicewithnomechanismforreliability,flowcontrol,sequencing,etc.Instead,thesefeaturesareprovidedbyaconnection-orientedprotocol,DoDTransmissionControlProtocol(TCP)[MILS83b],whichisimplementedinthelayeraboveIP.TCPisdesignedtooperatesuccessfullyoverchannelsthatareinherentlyunreliable,i.e.,whichcanlose,damage,duplicate,andreorderpackets.Overtheyears,DARPAhassupportedspecificationsofseveralversionsofIP;thelastoneappearedin[POSJ81].Afewyearsago,theDefenseCommunicationsAgencydecidedtostandardizeIPforuseinDoDnetworks.Forthispurpose,theDCAsupportedformalspecificationofthisprotocol,followingthedesigndiscussedin[POSJ81]andthetechniqueandorganizationdefinedin[SDC82].Adetailedspecificationofthisprotocol,givenin[MILS83a],hasbeenadoptedastheDoDstandardfortheInternetProtocol.ThespecificationofIPstatetransitionsisorganizedintodecisiontables;thedecisionfunctionsandactionproceduresarespecifiedinasubsetofAda[1],andmayemployasetofmachine-specificdatastructures.Decisiontablesaresuppliedforthepairsstatename,interfaceeventasfollows:inactive,sendfromupperlayer,inactive,receivefromlowerlayer,andreassembling,receivefromlowerlayer.Toprovideanerrorindicationinthecasethatsomefragmentsofadatagramarereceivedbutsomearemissing,adecisiontableisalsosuppliedforthepairreassembling,reassemblytimelimitelapsed.(TheeventnamesareEnglishdescriptionsandnotthenamesemployedby[MILS83a].)3.ProblemswithMILStandardIPOneofthemajorfunctionsofIPisthefragmentationofdatagramsthatcannotbetransmittedoverasubnetworkinonepiece,andtheirsubsequentreassembly.Thespecificationhasseveralproblemsinthisarea.Oneofthemostsignificantisthefailuretoinsertthelastfragmentofanincomingdatagram;thiswouldcausedatagramstobedeliveredtotheupper-levelprotocol(ULP)withsomedatamissing.AnothererrorinthisareaisthatanincorrectvalueofthedatalengthforreassembleddatagramsispassedtotheULP,withunpredictableconsequences.Asthespecification[MILS83a]isnowwritten,theseerrorsareofSidhu[Page2]RFC963November1985SomeProblemswithMIL-STDIPlittleconsequence,sincethetestforreassemblycompletionwillalwaysfail,withtheresultthatreassembleddatagramswouldneverbedeliveredatall.Inaddition,amissingrowinoneofthedecisiontablescreatestheproblemthatnetworkcontrol(ICMP)messagesthatarriveinfragmentswillneverbeprocessed.Amongtheothererrorsarethepossibilitythatafewbyteswillbediscardedfromeachfragmenttransmittedandcertainstatementsthatwillcreaterun-timeexceptionsinsteadofperformingtheirintendedfunctions.Ageneralproblemwiththisspecificationisthattheprogramlanguageandactiontableportionsofthespecificationwereclearlynotcheckedbyanyautomaticsyntaxcheckingprocess.Variableandprocedurenamesareoccasionallymisspelled,andthesyntaxoftheactionstatementsisoftenincorrect.Wehaveenumeratedsomeoftheseproblemsbelowasasetofcautionarynotestoimplementors,butwedonotclaimtohavelistedthemall.Inparticular,syntaxerrorsa

1 / 19
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功