Professional Documents
Culture Documents
Page1 of 2
IntroductiontoTCP/IP
SupernettingandClasslessInterdomainRouting
WiththerecentgrowthoftheInternet,itbecamecleartotheInternetauthoritiesthattheclassBnetworkIDswould soonbedepleted.Formostorganizations,aclassCnetworkIDdoesnotcontainenoughhostIDsandaclassB networkIDhasenoughbitstoprovideaflexiblesubnettingschemewithintheorganization. TheInternetauthoritiesdevisedanewmethodofassigningnetworkIDstopreventthedepletionofclassBnetwork IDs.RatherthanassigningaclassBnetworkID,InterNICassignsarangeofclassCnetworkIDsthatcontainenough networkandhostIDsfortheorganization'sneeds.Thisisknownassupernetting.Forexample,ratherthanallocating aclassBnetworkIDtoanorganizationthathasupto2,000hosts,theInterNICallocatesarangeofeightclassC networkIDs.EachclassCnetworkIDaccommodates254hosts,foratotalof2,032hostIDs. AlthoughthistechniquehelpsconserveclassBnetworkIDs,itcreatesanewproblem.Usingconventionalrouting techniques,theroutersontheInternetnowmusthaveeightclassCnetworkIDentriesintheirroutingtablestoroute IPpacketstotheorganization.TopreventInternetroutersfrombecomingoverwhelmedwithroutes,atechnique calledClasslessInterdomainRouting(CIDR)isusedtocollapsemultiplenetworkIDentriesintoasingleentry correspondingtoalloftheclassCnetworkIDsallocatedtothatorganization. Conceptually,CIDRcreatestheroutingtableentry:[StartingNetworkID,count],whereStartingNetworkIDisthe firstclassCnetworkIDandthecountisthenumberofclassCnetworkIDsallocated.Inpractice,asupernetted subnetmaskisusedtoconveythesameinformation.ToexpressthesituationwhereeightclassCnetworkIDsare allocatedstartingwithnetworkID220.78.168.0: StartingNetworkID EndingNetworkID 220.78.168.0 220.78.175.0 11011100010011101010100000000000 11011100010011101010111100000000
InnetworkprefixorCIDRnotation,theCIDRentryis220.78.168.0/21. AblockofaddressesusingCIDRisknownasaCIDRblock. Note Becausesubnetmasksareusedtoexpressthecount,classbasednetworkIDsmustbeallocatedingroups correspondingtopowersof2. InordertosupportCIDR,routersmustbeabletoexchangeroutinginformationintheformof[NetworkID,Network Mask]pairs.RIPforIPversion2,OSPFandBGPv4areroutingprotocolsthatsupportCIDR.RIPforIPversion1does notsupportCIDR. AddressSpacePerspective TheuseofCIDRtoallocateaddressespromotesanewperspectiveonIPnetworkIDs.Intheaboveexample,the CIDRblock[220.78.168.0,255.255.248.0]canbethoughtofintwoways:
l AblockofeightclassCnetworkIDs. l Anaddressspaceinwhich21bitsarefixedand11bitsareassignable.
SupernettingandClasslessInterdomainRouting
Page2 of 2
SendfeedbacktoMSDN 2002MicrosoftCorporation.Allrightsreserved.