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

📄 rfc1247.txt

📁 著名的RFC文档,其中有一些文档是已经翻译成中文的的.
💻 TXT
📖 第 1 页 / 共 5 页
字号:
when external routes are examined:                     Destination   Next  Hop   Distance                     __________________________________                     N12           RT10        10                     N13           RT5         14                     N14           RT5         14                     N15           RT10        17    Table 3: The portion of router RT6's routing table listing external                               destinations.Processing of Type 2 external metrics is simpler.  The AS boundaryrouter advertising the smallest external metric is chosen, regardless ofthe internal distance to the AS boundary router.  Suppose in our exampleboth router RT5 and router RT7 were advertising Type 2 external routes.Then all traffic destined for network N12 would be forwarded to routerRT7, since 2 < 8.  When several equal-cost Type 2 routes exist, theinternal distance to the advertising routers is used to break the tie.Both Type 1 and Type 2 external metrics can be present in the AS at thesame time.  In that event, Type 1 external metrics always takeprecedence.This section has assumed that packets destined for external destinationsare always routed through the advertising AS boundary router.  This isnot always desirable.  For example, suppose in Figure 2 there is anadditional router attached to network N6, called Router RTX.  Supposefurther that RTX does not participate in OSPF routing, but does exchangeEGP information with the AS boundary router RT7.  Then, router RT7 wouldend up advertising OSPF external routes for all destinations that shouldbe routed to RTX.  An extra hop will sometimes be introduced if packetsfor these destinations need always be routed first to router RT7 (theadvertising router).To deal with this situation, the OSPF protocol allows an AS boundary[Moy]                                                          [Page 12]RFC 1247                     OSPF Version 2                    July 1991router to specify a "forwarding address" in its external advertisements.In the above example, Router RT7 would specify RTX's IP address as the"forwarding address" for all those destinations whose packets should berouted directly to RTX.The "forwarding address" has one other application.  It enables routersin the Autonomous System's interior to function as "route servers".  Forexample, in Figure 2 the router RT6 could become a route server, gainingexternal routing information through a combination of staticconfiguration and external routing protocols.  RT6 would then startadvertising itself as an AS boundary router, and would originate acollection of OSPF external advertisements.  In each externaladvertisement, router RT6 would specify the correct Autonomous Systemexit point to use for the destination through appropriate setting of theadvertisement's "forwarding address" field.2.3 Equal-cost multipathThe above discussion has been simplified by considering only a singleroute to any destination.  In reality, if multiple equal-cost routes toa destination exist, they are all discovered and used.  This requires noconceptual changes to the algorithm, and its discussion is postponeduntil we consider the tree-building process in more detail.With equal cost multipath, a router potentially has several availablenext hops towards any given destination.2.4 TOS-based routingOSPF can calculate a separate set of routes for each IP Type of Service.The IP TOS values are represented in OSPF exactly as they appear in theIP packet header.  This means that, for any destination, there canpotentially be multiple routing table entries, one for each IP TOS.Up to this point, all examples shown have assumed that routes do notvary on TOS.  In order to differentiate routes based on TOS, separateinterface costs can be configured for each TOS.  For example, in Figure2 there could be multiple costs (one for each TOS) listed for eachinterface.  A cost for TOS 0 must always be specified.When interface costs vary based on TOS, a separate shortest path tree iscalculated for each TOS (see Section 2.1).  In addition, external costscan vary based on TOS.  For example, in Figure 2 router RT7 couldadvertise a separate type 1 external metric for each TOS.  Then, whencalculating the TOS X distance to network N15 the cost of the shortestTOS X path to RT7 would be added to the TOS X cost advertised by RT7[Moy]                                                          [Page 13]RFC 1247                     OSPF Version 2                    July 1991(see Section 2.2).All OSPF implementations must be capable of calculating routes based onTOS.  However, OSPF routers can be configured to route all packets onthe TOS 0 path (see Appendix C), eliminating the need to calculate non-zero TOS paths.  This can be used to conserve routing table space andprocessing resources in the router.  These TOS-0-only routers can bemixed with routers that do route based on TOS.  TOS-0-only routers willbe avoided as much as possible when forwarding traffic requesting anon-zero TOS.It may be the case that no path exists for some non-zero TOS, even ifthe router is calculating non-zero TOS paths.  In that case, packetsrequesting that non-zero TOS are routed along the TOS 0 path (seeSection 11.1).3. Splitting the AS into AreasOSPF allows collections of contiguous networks and hosts to be groupedtogether.  Such a group, together with the routers having interfaces toany one of the included networks, is called an area.  Each area runs aseparate copy of the basic SPF routing algorithm.  This means that eacharea has its own topological database and corresponding graph, asexplained in the previous section.The topology of an area is invisible from the outside of the area.Conversely, routers internal to a given area know nothing of thedetailed topology external to the area.  This isolation of knowledgeenables the protocol to effect a marked reduction in routing traffic ascompared to treating the entire Autonomous System as a single SPFdomain.With the introduction of areas, it is no longer true that all routers inthe AS have an identical topological database.  A router actually has aseparate topological database for each area it is connected to.(Routers connected to multiple areas are called area border routers).Two routers belonging to the same area have, for that area, identicalarea topological databases.Routing in the Autonomous System takes place on two levels, depending onwhether the source and destination of a packet reside in the same area(intra-area routing is used) or different areas (inter-area routing isused).  In intra-area routing, the packet is routed solely oninformation obtained within the area; no routing information obtainedfrom outside the area can be used.  This protects intra-area routingfrom the injection of bad routing information.  We discuss inter-arearouting in Section 3.2.[Moy]                                                          [Page 14]RFC 1247                     OSPF Version 2                    July 19913.1 The backbone of the Autonomous SystemThe backbone consists of those networks not contained in any area, theirattached routers, and those routers that belong to multiple areas.  Thebackbone must be contiguous.It is possible to define areas in such a way that the backbone is nolonger contiguous.  In this case the system administrator must restorebackbone connectivity by configuring virtual links.Virtual links can be configured between any two backbone routers thathave an interface to a common non-backbone area.  Virtual links belongto the backbone.  The protocol treats two routers joined by a virtuallink as if they were connected by an unnumbered point-to-point network.On the graph of the backbone, two such routers are joined by arcs whosecosts are the intra-area distances between the two routers.  The routingprotocol traffic that flows along the virtual link uses intra-arearouting only.The backbone is responsible for distributing routing information betweenareas.  The backbone itself has all of the properties of an area.  Thetopology of the backbone is invisible to each of the areas, while thebackbone itself knows nothing of the topology of the areas.3.2 Inter-area routingWhen routing a packet between two areas the backbone is used.  The paththat the packet will travel can be broken up into three contiguouspieces: an intra-area path from the source to an area border router, abackbone path between the source and destination areas, and then anotherintra-area path to the destination.  The algorithm finds the set of suchpaths that have the smallest cost.Looking at this another way, inter-area routing can be pictured asforcing a star configuration on the Autonomous System, with the backboneas hub and and each of the areas as spokes.The topology of the backbone dictates the backbone paths used betweenareas.  The topology of the backbone can be enhanced by adding virtuallinks.  This gives the system administrator some control over the routestaken by inter-area traffic.The correct area border router to use as the packet exits the sourcearea is chosen in exactly the same way routers advertising externalroutes are chosen.  Each area border router in an area summarizes forthe area its cost to all networks external to the area.  After the SPFtree is calculated for the area, routes to all other networks are[Moy]                                                          [Page 15]RFC 1247                     OSPF Version 2                    July 1991calculated by examining the summaries of the area border routers.3.3 Classification of routersBefore the introduction of areas, the only OSPF routers having aspecialized function were those advertising external routinginformation, such as router RT5 in Figure 2.  When the AS is split intoOSPF areas, the routers are further divided according to function intothe following four overlapping categories:Internal routers    A router with all directly connected networks belonging to the same    area.  Routers with only backbone interfaces also belong to this    category.  These routers run a single copy of the basic routing    algorithm.Area border routers    A router that attaches to multiple areas.  Area border routers run    multiple copies of the basic algorithm, one copy for each attached    area and an additional copy for the backbone.  Area border routers    condense the topological information of their attached areas for    distribution to the backbone.  The backbone in turn distributes the    information to the other areas.Backbone routers    A router that has an interface to the backbone.  This includes all    routers that interface to more than one area (i.e., area border    routers).  However, backbone routers do not have to be area border    routers.  Routers with all interfaces connected to the backbone are    considered to be internal routers.AS boundary routers    A router that exchanges routing information with routers belonging    to other Autonomous Systems.  Such a router has AS external routes    that are advertised throughout the Autonomous System.  The path to    each AS boundary router is known by every router in the AS.  This    classification is completely independent of the previous    classifications: AS boundary routers may be internal or area border    routers, and may or may not participate in the backbone.3.4 A sample area configurationFigure 6 shows a sample area configuration.  The first area consists ofnetworks N1-N4, along with their attached routers RT1-RT4.  The secondarea consists of networks N6-N8, along with their attached routers RT7,[Moy]                                                          [Page 16]RFC 1247                     OSPF Version 2                    July 1991RT8, RT10, RT11.  The third area consists of networks N9-N11 and hostH1, along with their attached routers RT9, RT11, RT12.  The third areahas been configured so that networks N9-N11 and host H1 will all begrouped into a single route, when advertised external to the area (seeSection 3.5 for more details).In Figure 6, routers RT1, RT2, RT5, RT6, RT8, RT9 and RT12 are internalrouters.  Routers RT3, RT4, RT7, RT10 and RT11 are area border routers.Finally as before, routers RT5 and RT7 are AS boundary routers.Figure 7 shows the resulting topological database for the Area 1.  Thefigure completely describes that area's intra-area routing.  It alsoshows the complete view of the internet for the two internal routers RT1and RT2.  It is the job of the area border routers, RT3 and RT4, toadvertise into Area 1 the distances to all destinations external to thearea.  These are indicated in Figure 7 by the dashed stub routes.  Also,RT3 and RT4 must advertise into Area 1 the location of the AS boundaryrouters RT5 and RT7.  Finally, external advertisements from RT5 and RT7are flooded throughout the entire AS, and in particular throughout Area1.  These advertisements are included in Area 1's database, and yieldroutes to networks N12-N15.Routers RT3 and RT4 must also summarize Area 1's topology fordistribution to the backbone.  Their backbone advertisements are shownin Table 4.  These summaries show which networks are contained in Area 1(i.e., networks N1-N4), and the distance to these networks from therouters RT3 and RT4 respectively.The topological database for the backbone is shown in Figure 8.  The setof routers pictured are the backbone routers.  Router RT11 is a backbonerouter because it belongs to two areas.  In order to make the backboneconnected, a virtual link has been configured between routers R10 andR11.               __________________________________________                 (Figure not included in text version.)

⌨️ 快捷键说明

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