rfc2328.txt

来自「中、英文RFC文档大全打包下载完全版 .」· 文本 代码 · 共 1,379 行 · 第 1/5 页

TXT
1,379
字号
                I5|          |I6        O  RT5| X |   |   | X |                +---+      +---+        *  RT6| X | X | X |   |                |RT5|      |RT6|        *   I3| X |   |   |   |                +---+      +---+            I4|   | X |   |   |                                            I5|   |   | X |   |                                            I6|   |   |   | X |                    Figure 1b: Network map components                       Point-to-MultiPoint networks             All routers can communicate directly over N2, except                routers RT4 and RT5. I3 through I6 indicate IP                           interface addressesMoy                         Standards Track                    [Page 17]RFC 2328                     OSPF Version 2                   April 1998        2.1.2.  An example link-state database            Figure 2 shows a sample map of an Autonomous System.  The            rectangle labelled H1 indicates a host, which has a SLIP            connection to Router RT12.  Router RT12 is therefore            advertising a host route.  Lines between routers indicate            physical point-to-point networks.  The only point-to-point            network that has been assigned interface addresses is the            one joining Routers RT6 and RT10.  Routers RT5 and RT7 have            BGP connections to other Autonomous Systems.  A set of BGP-            learned routes have been displayed for both of these            routers.            A cost is associated with the output side of each router            interface.  This cost is configurable by the system            administrator.  The lower the cost, the more likely the            interface is to be used to forward data traffic.  Costs are            also associated with the externally derived routing data            (e.g., the BGP-learned routes).            The directed graph resulting from the map in Figure 2 is            depicted in Figure 3.  Arcs are labelled with the cost of            the corresponding router output interface.  Arcs having no            labelled cost have a cost of 0.  Note that arcs leading from            networks to routers always have cost 0; they are significant            nonetheless.  Note also that the externally derived routing            data appears on the graph as stubs.            The link-state database is pieced together from LSAs            generated by the routers.  In the associated graphical            representation, the neighborhood of each router or transit            network is represented in a single, separate LSA.  Figure 4            shows these LSAs graphically. Router RT12 has an interface            to two broadcast networks and a SLIP line to a host.            Network N6 is a broadcast network with three attached            routers.  The cost of all links from Network N6 to its            attached routers is 0.  Note that the LSA for Network N6 is            actually generated by one of the network's attached routers:            the router that has been elected Designated Router for the            network.Moy                         Standards Track                    [Page 18]RFC 2328                     OSPF Version 2                   April 1998                 +                 | 3+---+                     N12      N14               N1|--|RT1|\ 1                    \ N13 /                 |  +---+ \                     8\ |8/8                 +         \ ____                 \|/                            /    \   1+---+8    8+---+6                           *  N3  *---|RT4|------|RT5|--------+                            \____/    +---+      +---+        |                  +         /   |                  |7         |                  | 3+---+ /    |                  |          |                N2|--|RT2|/1    |1                 |6         |                  |  +---+    +---+8            6+---+        |                  +           |RT3|--------------|RT6|        |                              +---+              +---+        |                                |2               Ia|7         |                                |                  |          |                           +---------+             |          |                               N4                  |          |                                                   |          |                                                   |          |                       N11                         |          |                   +---------+                     |          |                        |                          |          |    N12                        |3                         |          |6 2/                      +---+                        |        +---+/                      |RT9|                        |        |RT7|---N15                      +---+                        |        +---+ 9                        |1                   +     |          |1                       _|__                  |   Ib|5       __|_                      /    \      1+----+2   |  3+----+1   /    \                     *  N9  *------|RT11|----|---|RT10|---*  N6  *                      \____/       +----+    |   +----+    \____/                        |                    |                |                        |1                   +                |1             +--+   10+----+                N8              +---+             |H1|-----|RT12|                                |RT8|             +--+SLIP +----+                                +---+                        |2                                    |4                        |                                     |                   +---------+                            +--------+                       N10                                    N7Moy                         Standards Track                    [Page 19]RFC 2328                     OSPF Version 2                   April 1998                    Figure 2: A sample Autonomous System                                **FROM**                 |RT|RT|RT|RT|RT|RT|RT|RT|RT|RT|RT|RT|                 |1 |2 |3 |4 |5 |6 |7 |8 |9 |10|11|12|N3|N6|N8|N9|              ----- ---------------------------------------------              RT1|  |  |  |  |  |  |  |  |  |  |  |  |0 |  |  |  |              RT2|  |  |  |  |  |  |  |  |  |  |  |  |0 |  |  |  |              RT3|  |  |  |  |  |6 |  |  |  |  |  |  |0 |  |  |  |              RT4|  |  |  |  |8 |  |  |  |  |  |  |  |0 |  |  |  |              RT5|  |  |  |8 |  |6 |6 |  |  |  |  |  |  |  |  |  |              RT6|  |  |8 |  |7 |  |  |  |  |5 |  |  |  |  |  |  |              RT7|  |  |  |  |6 |  |  |  |  |  |  |  |  |0 |  |  |          *   RT8|  |  |  |  |  |  |  |  |  |  |  |  |  |0 |  |  |          *   RT9|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |0 |          T  RT10|  |  |  |  |  |7 |  |  |  |  |  |  |  |0 |0 |  |          O  RT11|  |  |  |  |  |  |  |  |  |  |  |  |  |  |0 |0 |          *  RT12|  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |0 |          *    N1|3 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  |               N2|  |3 |  |  |  |  |  |  |  |  |  |  |  |  |  |  |               N3|1 |1 |1 |1 |  |  |  |  |  |  |  |  |  |  |  |  |               N4|  |  |2 |  |  |  |  |  |  |  |  |  |  |  |  |  |               N6|  |  |  |  |  |  |1 |1 |  |1 |  |  |  |  |  |  |               N7|  |  |  |  |  |  |  |4 |  |  |  |  |  |  |  |  |               N8|  |  |  |  |  |  |  |  |  |3 |2 |  |  |  |  |  |               N9|  |  |  |  |  |  |  |  |1 |  |1 |1 |  |  |  |  |              N10|  |  |  |  |  |  |  |  |  |  |  |2 |  |  |  |  |              N11|  |  |  |  |  |  |  |  |3 |  |  |  |  |  |  |  |              N12|  |  |  |  |8 |  |2 |  |  |  |  |  |  |  |  |  |              N13|  |  |  |  |8 |  |  |  |  |  |  |  |  |  |  |  |              N14|  |  |  |  |8 |  |  |  |  |  |  |  |  |  |  |  |              N15|  |  |  |  |  |  |9 |  |  |  |  |  |  |  |  |  |               H1|  |  |  |  |  |  |  |  |  |  |  |10|  |  |  |  |                     Figure 3: The resulting directed graph                 Networks and routers are represented by vertices.                 An edge of cost X connects Vertex A to Vertex B iff                 the intersection of Column A and Row B is marked                                     with an X.Moy                         Standards Track                    [Page 20]RFC 2328                     OSPF Version 2                   April 1998                     **FROM**                       **FROM**                  |RT12|N9|N10|H1|                 |RT9|RT11|RT12|N9|           *  --------------------          *  ----------------------           *  RT12|    |  |   |  |          *   RT9|   |    |    |0 |           T    N9|1   |  |   |  |          T  RT11|   |    |    |0 |           O   N10|2   |  |   |  |          O  RT12|   |    |    |0 |           *    H1|10  |  |   |  |          *    N9|   |    |    |  |           *                                *                RT12's router-LSA              N9's network-LSA                  Figure 4: Individual link state components              Networks and routers are represented by vertices.              An edge of cost X connects Vertex A to Vertex B iff              the intersection of Column A and Row B is marked                                  with an X.    2.2.  The shortest-path tree        When no OSPF areas are configured, each router in the Autonomous        System has an identical link-state database, leading to an        identical graphical representation.  A router generates its        routing table from this graph by calculating a tree of shortest        paths with the router itself as root.  Obviously, the shortest-        path tree depends on the router doing the calculation.  The        shortest-path tree for Router RT6 in our example is depicted in        Figure 5.        The tree gives the entire path to any destination network or        host.  However, only the next hop to the destination is used in        the forwarding process.  Note also that the best route to any        router has also been calculated.  For the processing of external        data, we note the next hop and distance to any router        advertising external routes.  The resulting routing table for        Router RT6 is pictured in Table 2.  Note that there is a        separate route for each end of a numbered point-to-point network        (in this case, the serial line between Routers RT6 and RT10).        Routes to networks belonging to other AS'es (such as N12) appear        as dashed lines on the shortest path tree in Figure 5.  Use ofMoy                         Standards Track                    [Page 21]RFC 2328                     OSPF Version 2                   April 1998                                RT6(origin)                    RT5 o------------o-----------o Ib                       /|\    6      |\     7                     8/8|8\          | \                     /  |  \        6|  \                    o   |   o        |   \7                   N12  o  N14       |    \                       N13        2  |     \                            N4 o-----o RT3  \                                    /        \    5                                  1/     RT10 o-------o Ia                                  /           |\                       RT4 o-----o N3        3| \1                                /|            |  \ N6     RT7                               / |         N8 o   o---------o                              /  |            |   |        /|                         RT2 o   o RT1        |   |      2/ |9                            /    |            |   |RT8   /  |                           /3    |3      RT11 o   o     o   o                          /      |            |   |    N12 N15                      N2 o       o N1        1|   |4                                              |   |                                           N9 o   o N7                                             /|                                            / |                        N11      RT9       /  |RT12                         o--------o-------o   o--------o H1                             3                |   10                                              |2                                              |                                              o N10                     Figure 5: The SPF tree for Router RT6              Edges that are not marked with a cost have a cost of              of zero (these are network-to-router links). Routes              to networks N12-N15 are external information that is                         considered in Section 2.3Moy                         Standards Track                    [Page 22]RFC 2328                     OSPF Version 2                   April 1998

⌨️ 快捷键说明

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