The present invention generally relates to enabling routing of data packets. The invention relates more specifically to a method and apparatus for enabling routing of label switched data packets.
The approaches described in this section could be pursued, but are not necessarily approaches that have been previously conceived or pursued. Therefore, unless otherwise indicated herein, the approaches described in this section are not prior art to the claims in this application and are not admitted to be prior art by inclusion in this section.
In computer networks such as the Internet, packets of data are sent from a source to a destination via a network of elements including links (communication paths such as telephone or optical lines) and nodes (for example, routers directing the packet along one or more of a plurality of links connected to it) according to one of various routing protocols.
In some instances networks are capable of supporting multi-topology routing. Multi-topology routing is described in “MT-OSPF: Multi-topology (MT) routing in OSPF” by Pseniak et al, which is available at the time of writing from the file “draft-ietf-ospf-mt-04.txt” in the directory “internet-drafts” of the domain “ietf.org” on the World Wide Web.
In multi-topology routing one or more additional topologies is overlaid on a base or default topology and different classes of data are assigned to different topologies and classified accordingly during the forwarding operation. For example the base or default topology will be the entire network and an additional topology will be a subset of the default topology. It will be appreciated that the physical components of the network are common to both topologies but that for various reasons it may be desirable to assign certain classes of traffic to only a certain subset of the entire network as a result of which the multi-topology concept provides a useful approach to providing this functionality. Alternatively, links may have different metric values in different topologies (and all links may be included in all topologies).
One example of the use of multiple topologies is where one class of data requires low latency links, for example Voice over Internet Protocol (VoIP) data. As a result such data may be sent preferably via physical landlines rather than, for example, high latency links such as satellite links. As a result an additional topology is defined as all low latency links on the network and VoIP data packets are assigned to the additional topology. Another example is security-critical traffic which may be assigned to an additional topology of non-radiative links. Further possible examples are file transfer protocol (FTP) or SMTP (simple mail transfer protocol) traffic which can be assigned to an additional topology comprising high latency links, Internet Protocol version 4 (IPv4) versus Internet Protocol version 6 (IPv6) traffic which may be assigned to different topologies or data to be distinguished by the quality of service (QoS) assigned to it.
Multi-topology routing is supported in the context, for example, of internet protocol (IP) link state routing protocols such as OSPF and IS-IS. The link state protocol relies on a routing algorithm resident at each node. Each node on the network advertises, throughout the network, links to neighboring nodes and provides a cost associated with each link, which can be based on any appropriate metric such as link bandwidth or delay and is typically expressed as an integer value. A link may have an asymmetric cost, that is, the cost in the direction AB along a link may be different from the cost in a direction BA. Based on the advertised information in the form of a link state packet (LSP) each node constructs a link state database (LSDB), which is a map of the entire network topology, and from that constructs generally a single optimum route to each available node based on an appropriate algorithm such as, for example, a shortest path first (SPF) algorithm. As a result a “spanning tree” (SPT) is constructed, rooted at the node and showing an optimum path including intermediate nodes to each available destination node. The results of the SPF are stored in a routing information base (RIB) and based on these results the forwarding information base (FIB) or forwarding table is updated to control forwarding of packets appropriately. When there is a network change an advertisement representing the change is flooded through the network by each node adjacent the change, each node receiving the advertisement sending it to each adjacent node.
As a result, when a data packet for a destination node arrives at a node (the “first node”), the first node identifies the optimum route to that destination and forwards the packet to the next node along that route. The next node repeats this step and so forth.
In the case of MTR, each advertisement is topology specific and includes a field identifying the topology (field MT-ID). As a result each router runs a separate SPF for each MT-ID and, from that, constructs a separate RIB and corresponding FIB. When a packet arrives at a multi-topology capable router it is classified in order to identify its MT-ID and the relevant next hop derived from the corresponding RIB/FIB.
However no solutions are currently proposed for supporting multi-topology routing in the multi protocol switching (MPLS) forwarding environment.
MPLS is a protocol that is well known to the skilled reader and which is described in document “Multi Protocol Label Switching Architecture” which is available at the time of writing on the file “rfc3031.txt” in the directory “rfc” of the domain “ietf.org” on the World Wide Web (“RFC3031”). According to MPLS, a complete path for a source-destination pair is established, and values required for forwarding a packet between adjacent routers in the path together with headers or “labels” are pre-pended to the packet. The labels are used to direct the packet to the correct interface and next hop. The labels precede the IP or other header allowing smaller outer headers.
The path for the source-destination pair, termed a Label Switched Path (LSP) can be established according to various different approaches. One such approach is Label Distribution Protocol (LDP) in which each router in the path sends its label to an adjacent router on the path as determined from its IP routing table. Alternatively Resource Reservation Protocol (RSVP) can be invoked in which case, for example, a network administrator can engineer a path, providing strict source routing.
For each LSP created, a forwarding equivalent class (FEC) is associated with the path specifying which packets are mapped to it. For example all packets for destinations served by a given prefix may be assigned to the same FEC. Assignment of the packet to an FEC is carried out at the ingress router to the MPLS network which attaches the appropriate label for the packet for the next hop router in the MPLS path.
In MPLS therefore adjacent routers swap ingress and egress labels. Adjacent routers, in particular, bind a label to an FEC and advertise the binding information to the adjacent router such that when a packet is received at the router with the advertised label as ingress label, the router is able to identify the FEC and replace the ingress label with an egress label for that FEC which it, in turn, has been received from the next downstream router. The ingress and egress label for a given FEC are then associated with one another in a label forwarding information base (LFIB) together with the next hop for that FEC derived from the RIB.
However the MPLS control plane and MPLS forwarding plane are not currently MTR-aware and therefore cannot take advantage of MTR class based routing.
The present invention is illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which like reference numerals refer to similar elements and in which:
a shows an RIB at a router for a first topology;
b shows an RIB at the same router for a second topology;
A method and apparatus for enabling routing of label switched data packets is described. In the following description, for the purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the present invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and devices are shown in block diagram form in order to avoid unnecessarily obscuring the present invention.
Embodiments are described herein according to the following outline:
The needs identified in the foregoing Background, and other needs and objects that will become apparent for the following description, are achieved in the present invention, which comprises, in one aspect, a method of enabling routing of label switched data packets in a data communications network comprising a plurality of nodes and supporting multiple topologies. The method comprises processing a label value advertisement comprising an association between a label value and a corresponding forwarding class and topology, and carrying out a routing enabling step in relation to the label value advertisement.
In other aspects, the invention encompasses a computer apparatus and a computer-readable medium configured to carry out the foregoing steps.
2.0 Structural and Functional Overview
In overview a method for enabling routing of label switched data packets can be understood with reference to
According to the method described herein, to enable routing of label switched packets such as MPLS packets per topology an advertising node acting as enabling node sends a label value advertisement, in the form of a binding comprising an association between a label and a corresponding forwarding class, such as an FEC, and topology. For example an enabling node such as router R3 may construct such an advertisement for receiving node R2 for an FEC corresponding to packets for destination B, together with the corresponding first topology identifier. Similarly node R5 sends to node R2 an advertisement with its label and a binding with the FEC for B and the corresponding second topology. Prior to sending, as a routing enabling step, the advertisement each router populates its forwarding table, i.e. LFIB with the respective label as ingress label together with the next hop for the FEC and topology ID and the corresponding egress label, that is, the label received for that FEC from the next hop router.
Similarly the upstream router, in this case R2, will, as a routing enabling step, populate its LFIB with its ingress labels for each FEC and topology together with the corresponding egress labels and next hops. In particular at router R2, different labels are assigned for the respective <FEC, MT-ID> tuple. Accordingly upon arrival of a packet from R1 with an FEC and topology dependent the appropriate egress label is added and the packet is forwarded to the corresponding topology.
As a result a single LFIB is established and maintained as with existing MTR-unaware MPLS. By assigning one different label per topology, MTR-aware distribution is enabled, the LFIB being populated by combining information from MTR-aware routing protocols and the MTR-aware label distribution protocol described here allowing the use of existing MTR-unaware MPLS label switching data path mechanisms whereby a received MPLS packet is simply forwarded by a direct label lookup into a single LFIB. Accordingly traffic can be forwarded through the MPLS cloud along class-based paths established by MTR routing without modification of the MPLS data path, that is the label switching operation and hence without hardware/firmware upgrade, simply from population of a single LFIB from multiple RIBs using label binding per topology. Classification of the packet to identify the correct topology is carried out only at the ingress router which then switches the packet into the relevant FEC and forwards it using the label switching mechanism described herein.
3.0 Method of Enabling Routing of Label Switched Data Packets
For purposes of illustrating a clear example, the method described herein in some instances refers to its applicability in relation to a network of the type shown in
Turning now to
In step 302 the router identifies the topology from the T-IDm of the received label binding. Then at step 304 the router looks up the corresponding RIB for the topology and finds the next hop for FEC Fn. In particular, referring to
In step 306 router R2 populates in the single LFIB, in correspondence to the entry with the ingress label which has the label value advertised by R2 for the same <FEC, T-ID> tuple, a next hop which is the next hop for that FEC in the RIB corresponding to that T-ID, and an egress label which is the label received from the next hop router for that <FEC, T-IDi> tuple. For example referring to
Referring now to
It will be seen, on a given router, a given label value can not be bound to a given FEC in more than one topology. This ensures that the label values advertised for a given FEC in different topologies for a given router are distinguishable as a result of which the router can create two different ingress label entries in its single LFIB allowing the router to distinguish between different topologies.
It will further be seen that in relation to the ingress and egress label edge routers to the MPLS network R1, R4 respectively, the steps described above with reference to
It will be appreciated that, as an alternative to extending the label distribution to advertising binding on a per <FEC,T-ID> tuple basis, a separate instance of label distribution protocol can be run per topology. In this case, one LDP instance would be run between neighbors per topology. Then the associated topology, i.e. T-IDm, can be inferred from the actual label distribution instance instead of being explicitly conveyed inside the label binding advertisement. For example, referring to
The mechanisms by which the method and optimizations discussed above are implemented will be well known to the skilled reader and do not require detailed discussion here. For example the manner in which the repair paths are computed, the MPLS labels pushed and exchanged and packets forwarded along the repair path can be implemented in any appropriate manner such as hardware or software and using for example micro-code.
In particular it will be seen that a single instance of the label distribution protocol can be used by extending the label distribution protocol to signal the topology associated with the label binding which modification can be made in any appropriate manner as will be known to the skilled reader. The method described herein can be implemented in any appropriate network for example on any IOS (Internet Operating System) and IOS-XR routers that support MPLS. On hardware platforms, support of the method described does not require hardware/firmware upgrade of the MPLS data path as it relies on the same label switching data path mechanism as existing MPLS forwarding. One possible use, for example, is to support an MPLS-VPN (Virtual Private Network) service using MTR to deploy class-based routing.
As a result of the approach described above class-based forwarding is supported in an MPLS network along class-based paths established by MTR routing even where MPLS label switching implementation is in non-modifiable hardware and without any modification to the MPLS label switching data path, requiring only control plane changes.
4.0 Implementation Mechanisms—Hardware Overview
Computer system 140 includes a bus 142 or other communication mechanism for communicating information, and a processor 144 coupled with bus 142 for processing information. Computer system 140 also includes a main memory 146, such as a random access memory (RAM), flash memory, or other dynamic storage device, coupled to bus 142 for storing information and instructions to be executed by processor 144. Main memory 146 may also be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor 144. Computer system 140 further includes a read only memory (ROM) 148 or other static storage device coupled to bus 142 for storing static information and instructions for processor 144. A storage device 150, such as a magnetic disk, flash memory or optical disk, is provided and coupled to bus 142 for storing information and instructions.
A communication interface 158 may be coupled to bus 142 for communicating information and command selections to processor 144. Interface 158 is a conventional serial interface such as an RS-232 or RS-422 interface. An external terminal 152 or other computer system connects to the computer system 140 and provides commands to it using the interface 158. Firmware or software running in the computer system 140 provides a terminal interface or character-based command interface so that external commands can be given to the computer system.
A switching system 156 is coupled to bus 142 and has an input interface and a respective output interface (commonly designated 159) to external network elements. The external network elements may include a plurality of additional routers 160 or a local network coupled to one or more hosts or routers, or a global network such as the Internet having one or more servers. The switching system 156 switches information traffic arriving on the input interface to output interface 159 according to pre-determined protocols and conventions that are well known. For example, switching system 156, in cooperation with processor 144, can determine a destination of a packet of data arriving on the input interface and send it to the correct destination using the output interface. The destinations may include a host, server, other end stations, or other routing and switching devices in a local network or Internet.
The computer system 140 implements as a router acting as an enabling node the above described method of enabling routing. The implementation is provided by computer system 140 in response to processor 144 executing one or more sequences of one or more instructions contained in main memory 146. Such instructions may be read into main memory 146 from another computer-readable medium, such as storage device 150. Execution of the sequences of instructions contained in main memory 146 causes processor 144 to perform the process steps described herein. One or more processors in a multi-processing arrangement may also be employed to execute the sequences of instructions contained in main memory 146. In alternative embodiments, hard-wired circuitry may be used in place of or in combination with software instructions to implement the method. Thus, embodiments are not limited to any specific combination of hardware circuitry and software.
The term “computer-readable medium” as used herein refers to any medium that participates in providing instructions to processor 144 for execution. Such a medium may take many forms, including but not limited to, non-volatile media, volatile media, and transmission media. Non-volatile media includes, for example, optical or magnetic disks, such as storage device 150. Volatile media includes dynamic memory, such as main memory 146. Transmission media includes coaxial cables, copper wire and fiber optics, including the wires that comprise bus 142. Transmission media can also take the form of wireless links such as acoustic or electromagnetic waves, such as those generated during radio wave and infrared data communications.
Common forms of computer-readable media include, for example, a floppy disk, a flexible disk, hard disk, magnetic tape, or any other magnetic medium, a CD-ROM, any other optical medium, punch cards, paper tape, any other physical medium with patterns of holes, a RAM, a PROM, and EPROM, a FLASH-EPROM, any other memory chip or cartridge, a carrier wave as described hereinafter, or any other medium from which a computer can read.
Various forms of computer readable media may be involved in carrying one or more sequences of one or more instructions to processor 144 for execution. For example, the instructions may initially be carried on a magnetic disk of a remote computer. The remote computer can load the instructions into its dynamic memory and send the instructions over a telephone line using a modem. A modem local to computer system 140 can receive the data on the telephone line and use an infrared transmitter to convert the data to an infrared signal. An infrared detector coupled to bus 142 can receive the data carried in the infrared signal and place the data on bus 142. Bus 142 carries the data to main memory 146, from which processor 144 retrieves and executes the instructions. The instructions received by main memory 146 may optionally be stored on storage device 150 either before or after execution by processor 144.
Interface 159 also provides a two-way data communication coupling to a network link that is connected to a local network. For example, the interface 159 may be an integrated services digital network (ISDN) card or a modem to provide a data communication connection to a corresponding type of telephone line. As another example, the interface 159 may be a local area network (LAN) card to provide a data communication connection to a compatible LAN. Wireless links may also be implemented. In any such implementation, the interface 159 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.
The network link typically provides data communication through one or more networks to other data devices. For example, the network link may provide a connection through a local network to a host computer or to data equipment operated by an Internet Service Provider (ISP). The ISP in turn provides data communication services through the world wide packet data communication network now commonly referred to as the “Internet”. The local network and the Internet both use electrical, electromagnetic or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link and through the interface 159, which carry the digital data to and from computer system 140, are exemplary forms of carrier waves transporting the information.
Computer system 140 can send messages and receive data, including program code, through the network(s), network link and interface 159. In the Internet example, a server might transmit a requested code for an application program through the Internet, ISP, local network and communication interface 158. One such downloaded application provides for the method as described herein.
The received code may be executed by processor 144 as it is received, and/or stored in storage device 150, or other non-volatile storage for later execution. In this manner, computer system 140 may obtain application code in the form of a carrier wave.
5.0 Extensions and Alternatives
It will be appreciated that the method described herein can be implemented for any combination of MPLS and MTR functionality, not limited to MPLS-VPN or class-based routing, for example allowing partitioning of a network into multiple topologies, one for voice and one for data while also providing an MPLS-VPN service. The method described can be implemented in relation to FECs defined in any appropriate manner, any form of label switched data and any form of RIB and LFIB derived or constructed according to any appropriate method. Furthermore any label distribution method can be implemented including downstream unsolicited/independent and downstream on-demand/independent without modification of the label distribution procedures.
In the foregoing specification, the invention has been described with reference to specific embodiments thereof. It will, however, be evident that various modifications and changes may be made thereto without departing from the broader spirit and scope of the invention. The specification and drawings are, accordingly, to be regarded in an illustrative rather than a restrictive sense.
Any appropriate routing protocol and mechanism can be adopted to implement the invention. The method steps set out can be carried out in any appropriate order and aspects from the examples and embodiments described juxtaposed or interchanged as appropriate.
Any appropriate implementation of MPLS and any appropriate label distribution protocol can be adopted to implement the invention. Similarly, where required, any appropriate link state protocol such as intermediate system-intermediate system (IS-IS) or open shortest path first (OSPF) can be implemented. Link state protocols of this type are well understood by the skilled reader and well documented in pre-existing documentation, and therefore are not described in detail here. Similarly any appropriate network can provide the platform for implementation of the method.
This application is related to a co-pending application entitled “Method and Apparatus for Enabling Routing of Label Switched Data Packets,” of Mark Szczesniak et al., filed on even date herewith, Attorney Docket No. 50325-1123, the entire contents of which is hereby incorporated by reference as if fully set forth herein.