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

📄 rfc1247.txt

📁 著名的RFC文档,其中有一些文档是已经翻译成中文的的.
💻 TXT
📖 第 1 页 / 共 5 页
字号:
Network Working Group                                             J. MoyRequest for Comments: 1247                                 Proteon, Inc.Obsoletes: RFC 1131                                            July 1991                             OSPF Version 2Status of this MemoThis RFC specifies an IAB standards track protocol for the Internetcommunity, and requests discussion and suggestions for improvements.Please refer to the current edition of the ``IAB Official ProtocolStandards'' for the standardization state and status of this protocol.Distribution of this memo is unlimited.AbstractThis memo documents version 2 of the OSPF protocol.  OSPF is a link-state based routing protocol.  It is designed to be run internal to asingle Autonomous System.  Each OSPF router maintains an identicaldatabase describing the Autonomous System's topology.  From thisdatabase, a routing table is calculated by constructing a shortest-pathtree.OSPF recalculates routes quickly in the face of topological changes,utilizing a minimum of routing protocol traffic.  OSPF provides supportfor equal-cost multipath.  Separate routes can be calculated for each IPtype of service.  An area routing capability is provided, enabling anadditional level of routing protection and a reduction in routingprotocol traffic.  In addition, all OSPF routing protocol exchanges areauthenticated.Version 1 of the OSPF protocol was documented in RFC 1131.  Thedifferences between the two versions are explained in Appendix F.Please send comments to ospf@trantor.umd.edu.1. IntroductionThis document is a specification of the Open Shortest Path First (OSPF)internet routing protocol.  OSPF is classified as an Internal GatewayProtocol (IGP).  This means that it distributes routing informationbetween routers belonging to a single Autonomous System.  The OSPFprotocol is based on SPF or link-state technology.  This is a departure[Moy]                                                           [Page 1]RFC 1247                     OSPF Version 2                    July 1991from the Bellman-Ford base used by traditional internet routingprotocols.The OSPF protocol was developed by the OSPF working group of theInternet Engineering Task Force.  It has been designed expressly for theinternet environment, including explicit support for IP subnetting,TOS-based routing and the tagging of externally-derived routinginformation.  OSPF also provides for the authentication of routingupdates, and utilizes IP multicast when sending/receiving the updates.In addition, much work has been done to produce a protocol that respondsquickly to topology changes, yet involves small amounts of routingprotocol traffic.The author would like to thank Rob Coltun, Milo Medin, Mike Petry andthe rest of the OSPF working group for the ideas and support they havegiven to this project.1.1 Protocol overviewOSPF routes IP packets based solely on the destination IP address and IPType of Service found in the IP packet header.  IP packets are routed"as is" -- they are not encapsulated in any further protocol headers asthey transit the Autonomous System.  OSPF is a dynamic routing protocol.It quickly detects topological changes in the AS (such as routerinterface failures) and calculates new loop-free routes after a periodof convergence.  This period of convergence is short and involves aminimum of routing traffic.In an SPF-based routing protocol, each router maintains a databasedescribing the Autonomous System's topology.  Each participating routerhas an identical database.  Each individual piece of this database is aparticular router's local state (e.g., the router's usable interfacesand reachable neighbors).  The router distributes its local statethroughout the Autonomous System by flooding.All routers run the exact same algorithm, in parallel.  From thetopological database, each router constructs a tree of shortest pathswith itself as root.  This shortest-path tree gives the route to eachdestination in the Autonomous System.  Externally derived routinginformation appears on the tree as leaves.OSPF calculates separate routes for each Type of Service (TOS).  Whenseveral equal-cost routes to a destination exist, traffic is distributedequally among them.  The cost of a route is described by a singledimensionless metric.OSPF allows sets of networks to be grouped together.  Such a grouping is[Moy]                                                           [Page 2]RFC 1247                     OSPF Version 2                    July 1991called an area.  The topology of an area is hidden from the rest of theAutonomous System.  This information hiding enables a significantreduction in routing traffic.  Also, routing within the area isdetermined only by the area's own topology, lending the area protectionfrom bad routing data.  An area is a generalization of an IP subnettednetwork.OSPF enables the flexible configuration of IP subnets.  Each routedistributed by OSPF has a destination and mask.  Two different subnetsof the same IP network number may have different sizes (i.e., differentmasks).  This is commonly referred to as variable length subnets.  Apacket is routed to the best (i.e., longest or most specific) match.Host routes are considered to be subnets whose masks are "all ones"(0xffffffff).All OSPF protocol exchanges are authenticated.  This means that onlytrusted routers can participate in the Autonomous System's routing.  Avariety of authentication schemes can be used; a single authenticationscheme is configured for each area.  This enables some areas to use muchstricter authentication than others.Externally derived routing data (e.g., routes learned from the ExteriorGateway Protocol (EGP)) is passed transparently throughout theAutonomous System.  This externally derived data is kept separate fromthe OSPF protocol's link state data.  Each external route can also betagged by the advertising router, enabling the passing of additionalinformation between routers on the boundaries of the Autonomous System.1.2 Definitions of commonly used termsHere is a collection of definitions for terms that have a specificmeaning to the protocol and that are used throughout the text.  Thereader unfamiliar with the Internet Protocol Suite is referred to [RS-85-153] for an introduction to IP.Router    A level three Internet Protocol packet switch.  Formerly called a    gateway in much of the IP literature.Autonomous System    A group of routers exchanging routing information via a common    routing protocol.  Abbreviated as AS.Internal Gateway Protocol    The routing protocol spoken by the routers belonging to an    Autonomous system.  Abbreviated as IGP.  Each Autonomous System has[Moy]                                                           [Page 3]RFC 1247                     OSPF Version 2                    July 1991    a single IGP.  Different Autonomous Systems may be running different    IGPs.Router ID    A 32-bit number assigned to each router running the OSPF protocol.    This number uniquely identifies the router within an Autonomous    System.Network    In this paper, an IP network or subnet.  It is possible for one    physical network to be assigned multiple IP network/subnet numbers.    We consider these to be separate networks.  Point-to-point physical    networks are an exception - they are considered a single network no    matter how many (if any at all) IP network/subnet numbers are    assigned to them.Network mask    A 32-bit number indicating the range of IP addresses residing on a    single IP network/subnet.  This specification displays network masks    as hexadecimal numbers.  For example, the network mask for a class C    IP network is displayed as 0xffffff00.  Such a mask is often    displayed elsewhere in the literature as 255.255.255.0.Multi-access networks    Those physical networks that support the attachment of multiple    (more than two) routers.  Each pair of routers on such a network is    assumed to be able to communicate directly (e.g., multi-drop    networks are excluded).Interface    The connection between a router and one of its attached networks.    An interface has state information associated with it, which is    obtained from the underlying lower level protocols and the routing    protocol itself.  An interface to a network has associated with it a    single IP address and mask (unless the network is an unnumbered    point-to-point network).  An interface is sometimes also referred to    as a link.Neighboring routers    Two routers that have interfaces to a common network.  On multi-    access networks, neighbors are dynamically discovered by OSPF's    Hello Protocol.Adjacency    A relationship formed between selected neighboring routers for the    purpose of exchanging routing information.  Not every pair of    neighboring routers become adjacent.[Moy]                                                           [Page 4]RFC 1247                     OSPF Version 2                    July 1991Link state advertisement    Describes to the local state of a router or network.  This includes    the state of the router's interfaces and adjacencies.  Each link    state advertisement is flooded throughout the routing domain.  The    collected link state advertisements of all routers and networks    forms the protocol's topological database.Hello protocol    The part of the OSPF protocol used to establish and maintain    neighbor relationships.  On multi-access networks the Hello protocol    can also dynamically discover neighboring routers.Designated Router    Each multi-access network that has at least two attached routers has    a Designated Router.  The Designated Router generates a link state    advertisement for the multi-access network and has other special    responsibilities in the running of the protocol.  The Designated    Router is elected by the Hello Protocol.    The Designated Router concept enables a reduction in the number of    adjacencies required on a multi-access network.  This in turn    reduces the amount of routing protocol traffic and the size of the    topological database.Lower-level protocols    The underlying network access protocols that provide services to the    Internet Protocol and in turn the OSPF protocol.  Examples of these    are the X.25 packet and frame levels for PDNs, and the ethernet data    link layer for ethernets.1.3 Brief history of SPF-based routing technologyOSPF is an SPF-based routing protocol.  Such protocols are also referredto in the literature as link-state or distributed-database protocols.This section gives a brief description of the developments in SPF-basedtechnology that have influenced the OSPF protocol.The first SPF-based routing protocol was developed for use in theARPANET packet switching network.  This protocol is described in[McQuillan].  It has formed the starting point for all other SPF-basedprotocols.  The homogeneous Arpanet environment, i.e., single-vendorpacket switches connected by synchronous serial lines, simplified thedesign and implementation of the original protocol.Modifications to this protocol were proposed in [Perlman].  Thesemodifications dealt with increasing the fault tolerance of the routingprotocol through, among other things, adding a checksum to the link[Moy]                                                           [Page 5]RFC 1247                     OSPF Version 2                    July 1991state advertisements (thereby detecting database corruption).  The paperalso included means for reducing the routing traffic overhead in anSPF-based protocol.  This was accomplished by introducing mechanismswhich enabled the interval between link state advertisements to beincreased by an order of magnitude.An SPF-based algorithm has also been proposed for use as an ISO IS-ISrouting protocol.  This protocol is described in [DEC].  The protocolincludes methods for data and routing traffic reduction when operatingover broadcast networks.  This is accomplished by election of aDesignated Router for each broadcast network, which then originates alink state advertisement for the network.The OSPF subcommittee of the IETF has extended this work in developingthe OSPF protocol.  The Designated Router concept has been greatlyenhanced to further reduce the amount of routing traffic required.Multicast capabilities are utilized for additional routing bandwidthreduction.  An area routing scheme has been developed enablinginformation hiding/protection/reduction.  Finally, the algorithm hasbeen modified for efficient operation in the internet environment.1.4 Organization of this documentThe first three sections of this specification give a general overviewof the protocol's capabilities and functions.  Sections 4-16 explain theprotocol's mechanisms in detail.  Packet formats, protocol constants,configuration items and required management statistics are specified inthe appendices.

⌨️ 快捷键说明

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