⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rfc1245.txt

📁 著名的RFC文档,其中有一些文档是已经翻译成中文的的.
💻 TXT
📖 第 1 页 / 共 2 页
字号:
RFC 1245                 OSPF protocol analysis                July 1991three advertisements fit in a single packet. (This packet could beeither a Link State Update packet or a Link State Acknowledgment packet;in this analysis we select the Link State Update packet, which is thelarger). An AS external LSA is 36 bytes long.  Adding one third of apacket header (IP header plus OSPF Update packet) yields 52 bytes.Transmitting this amount of data every 30 minutes gives an average rateof 23/100 bits/second.If you want to limit your routing traffic to 5% of the link's totalbandwidth, you get the following maximums for database size:TABLE 2. Database size as a function of link speed (5% utilization)                 Speed    # external advertisements                 _____________________________________                 9.6 Kb   2087                 56 Kb    12,174Higher line speeds have not been included, because other factors willthen limit database size (like router memory) before line speed becomesa factor. Note that in the above calculation, the size of the data linkheader was not taken into account. Also, note that while the OSPFdatabase is likely to be mostly external LSAs, other LSAs have a sizealso. As a ballpark estimate, router links and network links aregenerally three times as large as an AS external link, with summary linkadvertisements being the same size as external link LSAs.OSPF consumes considerably less link bandwidth than RIP. This has beenshown experimentally in the NSI network. See Jeffrey Burgan's "NASASciences Internet" report in [3].3.3  Router memoryMemory requirements in OSPF are dominated by the size of the link statedatabase. As in the previous section, it is probably safe to assume thatmost of the advertisements in the database are external LSAs. While anexternal LSA is 36 bytes long, it is generally stored by an OSPFimplementation together with some support data. So a good estimate ofrouter memory consumed by an external LSA is probably 64 bytes. So adatabase having 10,000 external LSAs will consume 640K bytes of routermemory. OSPF definitely requires more memory than RIP.Using the Proteon P4200 implementation as an example, the P4200 has2Mbytes of memory. This is shared between instruction, data and packetbuffer memory. The P4200 has enough memory to store 10, 000 external[Moy]                                                           [Page 7]RFC 1245                 OSPF protocol analysis                July 1991LSAs, and still have enough packet buffer memory available to run areasonable number of interfaces.Also, note that while the OSPF database is likely to be mostly externalLSAs, other LSAs have a size also. As a ballpark estimate, router linksand network links consume generally three times as much memory as an ASexternal link, with summary link advertisements being the same size asexternal link LSAs.3.4  Router CPUAssume that, as the size of the OSPF routing domain grows, the number ofinterfaces per router stays bounded. Then the Dijkstra calculation is oforder (n * log (n)), where n is the number of routers in the routingdomain. (This is the complexity of the Dijkstra algorithm in a sparsenetwork). Of course, it is implementation specific as to how expensivethe Dijkstra really is.We have no experimental numbers for the cost of the Dijkstra calculationin a real OSPF implementation. However, Steve Deering presented resultsfor the Dijkstra calculation in the "MOSPF meeting report" in [3].Steve's calculation was done on a DEC 5000 (10 mips processor), usingthe Stanford internet as a model. His graphs are based on numbers ofnetworks, not number of routers. However, if we extrapolate that theratio of routers to networks remains the same, the time to run Dijkstrafor 200 routers in Steve's implementation was around 15 milliseconds.This seems a reasonable cost, particularly when you notice that theDijkstra calculation is run very infrequently in operationaldeployments. In the three networks presented in Section 3.1, Dijkstrawas run on average only every 13 to 50 minutes. Since the Dijkstra isrun so infrequently, it seems likely that OSPF overall consumes less CPUthan RIP (because of RIP's frequent updates, requiring routing tablelookups).As another example, the routing algorithm in MILNET is SPF-based.MILNET's current size is 230 nodes, and the routing calculation stillconsumes less than 5% of the MILNET switches' processor bandwidth [4].Because the routing algorithm in the MILNET adapts to network load, itruns the Dijkstra process quite frequently (on the order of seconds ascompared to OSPF's minutes). However, it should be noted that therouting algorithm in MILNET incrementally updates the SPF-tree, whileOSPF rebuilds it from scratch at each Dijkstra calculationOSPF's Area capability provides a way to reduce Dijkstra overhead, if itbecomes a burden. The routing domain can be split into areas. The extentof the Dijkstra calculation (and its complexity) is limited to a single[Moy]                                                           [Page 8]RFC 1245                 OSPF protocol analysis                July 1991area at a time.3.5  Role of Designated RouterThis section explores the number of routers that can be attached to asingle network. As the number of routers attached to a network grows, sodoes the amount of OSPF routing traffic seen on the network.  Some ofthis is Hello traffic, which is generally multicast by each router every10 seconds. This burden is borne by all routers attached to the network.However, because of its special role in the flooding process, theDesignated router ends up sending more Link State Updates than the otherrouters on the network. Also, the Designated Router receives Link StateAcknowledgments from all attached routers, while the other routers justreceive them from the DR. (Although it is important to note that therate of Link State Acknowledgments will generally be limited to one persecond from each router, because acknowledgments are generally delayed.)So, if the amount of protocol traffic on the LAN becomes a limitingfactor, the limit is likely to be detected in the Designated Routerfirst. However, such a limit is not expected to be reached in practice.The amount of routing protocol traffic generated by OSPF has been shownto be small (see Section 3.2). Also, if need be OSPF's hello timers canbe configured to reduce the amount of protocol traffic on the network.Note that more than 50 routers have been simulated attached to a singleLAN (see [1]). Also, in interoperability testing 13 routers have beenattached to a single ethernet with no problems encountered.Another factor in the number of routers attached to a single network isthe cutover time when the Designated Router fails. OSPF has a BackupDesignated Router so that the cutover does not have to wait for the newDR to synchronize (the adjacency bring-up process mentioned earlier)with all the other routers on the LAN; as a Backup DR it had alreadysynchronized. However, in those rare cases when both DR and Backup DRcrash at the same time, the new DR will have to synchronize (via theadjacency bring-up process) with all other routers before becomingfunctional. Field experience show that this synchronization processtakes place in a timely fashion (see the OARnet report in [1]). However,this may be an issue in systems that have many routers attached to asingle network.In the unlikely event that the number of routers attached to a LANbecomes a problem, either due to the amount of routing protocol trafficor the cutover time, the LAN can be split into separate pieces (similarto splitting up the AS into separate areas).[Moy]                                                           [Page 9]RFC 1245                 OSPF protocol analysis                July 19913.6  SummaryIn summary, it seems like the most likely limitation to the size of anOSPF system is available router memory. We have given as 10,000 as thenumber of external LSAs that can be supported by the memory available inone configuration of a particular implementation (the Proteon P4200).Other implementations may vary; nowadays routers are being built withmore and more memory.  Note that 10,000 routes is considerably largerthan the largest field implementation (BARRNet; which at 1816 externalLSAs is still very large).Note that there may be ways to reduce database size in a routing domain.First, the domain can make use of default routing, reducing the numberof external routes that need to be imported. Secondly, an EGP can beused that will transport its own information through the AS instead ofrelying on the IGP (OSPF in this case) to do transfer the informationfor it (the EGP). Thirdly, routers having insufficient memory may beable to be assigned to stub areas (whose databases are drasticallysmaller). Lastly, if the Internet went away from a flat address spacethe amount of external information imported into an OSPF domain could bereduced drastically.While not as likely, there could be other issues that would limit thesize of an OSPF routing domain. If there are slow lines (like 9600baud), the size of the database will be limited (see Section 3.2).Dijkstra may get to be expensive when there are hundreds of routers inthe OSPF domain; although at this point the domain can be split intoareas. Finally, when there are many routers attached to a singlenetwork, there may be undue burden imposed upon the Designated Router;although at that point a LAN can be split into separate LANs.4.0  Suitable environmentsSuitable environments for the OSPF protocol range from large to small.OSPF is particular suited for transit Autonomous Systems for thefollowing reasons. OSPF can accommodate a large number of externalroutes. In OSPF the import of external information is very flexible,having provisions for a forwarding address, two levels of externalmetrics, and the ability to tag external routes with their AS number foreasy management. Also OSPF's ability to do partial updates when externalinformation changes is very useful on these networks.OSPF is also suited for smaller, either stand alone or stub AutonomousSystems, because of its wide array of features: fast convergence,equal-cost-multipath, TOS routing, areas, etc.[Moy]                                                          [Page 10]RFC 1245                 OSPF protocol analysis                July 19915.0  Unsuitable environmentsOSPF has a very limited ability to express policy. Basically, its onlypolicy mechanisms are in the establishment of a four level routinghierarchy: intra-area, inter-area, type 1 and type 2 external routes.  Asystem wanting more sophisticated policies would have to be split upinto separate ASes, running a policy-based EGP between them.6.0  Reference DocumentsThe following documents have been referenced by this report:[1] Moy, J., "Experience with the OSPF protocol", RFC 1246, July 1991.[2] Moy, J., "OSPF Version 2", RFC 1247, July 1991.[3] Corporation for National Research Initiatives, "Proceedings of the    Eighteenth Internet Engineering Task Force", University of British    Columbia, July 30-August 3, 1990.[Moy]                                                          [Page 11]RFC 1245                 OSPF protocol analysis                July 1991Security ConsiderationsSecurity issues are not discussed in this memo.Author's AddressJohn MoyProteon Inc.2 Technology DriveWestborough, MA 01581Phone: (508) 898-2800Email:  jmoy@proteon.com[Moy]                                                          [Page 12]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -