This invention relates to the field of network analysis, and in particular to network modeling.
The management of a complex network requires the use of tools that facilitate the analysis and diagnosis of network performance, and tools have been developed to ease this task. Many of the tools that have been developed for such analysis and diagnosis employ models of the networks to emulate/simulate the actual operations that occur within the network, or to predict performance parameters related to the expected performance of the network under a variety of conditions.
In order to effectively model the performance of a network, it is often necessary to model the physical topology of the network. For example, propagation delays are dependent on the geographic length of the communication paths, communications within local subnetworks avoid the access delays associated with wide-area networks, and so on.
In many cases, the ‘logical’ or ‘virtual’ connections that are created within a network obscure the physical topology of the network, and often the virtual structure of the network has little or no correspondence to the physical network.
Physical connections 120 provide connectivity between the routers 110, and virtual connections 150 allow nodes on different physical networks 111 to appear to be members of the same subnetwork. In the example of
In the Internet Protocol (IP) arena, IP tunnels are used to create virtual connections, to create Virtual Private Networks (VPN).
Using IP tunneling, a router is configured to recognize an address as corresponding to a defined tunnel. Packets that are addressed to a tunneled VPN address 210 are encapsulated within an IP packet 202 by adding a second IP header 220 before the original header 210 in the VPN-addressed packet. The added tunnel IP header 220 includes the tunnel endpoint addresses, and the packet 202 may also include other tunnel information 221. When the packet 202 reaches the tunnel endpoint, the tunnel's IP header 220 and any additional tunnel information 221 is stripped off, producing a copy of the original VPN packet 201 with the original VPN address 210. This copy of the packet 201 is thereafter propagated at the local network at the tunnel endpoint in the same manner as it would have been propagated had it originated in the local network at the tunnel endpoint.
A common difficulty in network modeling is the modeling of IP tunnels, because the virtual private network is specifically provided to appear to be a local network, and the physical topology is masked. For a typical IP tunnel, the tunnel physical source and/or destination network interface may not be explicitly stated in the device configuration, and the tunnel configuration may lack source interface information, or refer to a logical source or destination loopback interface.
Commonly, IP tunnels are used to provide a virtual path through a public network. In such a case, the actual physical path within the public network is unknown, and is generally modeled as a ‘black box’ or ‘cloud’, with physical input/output interfaces, but lacking details regarding the internals of the cloud. Although the physical model of the internals of such clouds is unavailable, the modeling of the network of interest, external to the clouds, often requires or benefits from knowing how the network is coupled to the clouds, including how each tunnel is physically coupled to each cloud.
It would be advantageous to provide a method and system that determines the actual physical source and destination interfaces used to carry tunnel data. It would also be advantageous to provide a method and system to determine the physical path between the tunnel endpoints.
These advantages, and others, are gained by tracing through the device configuration and routing tables at the routers in a network to determine the outbound interface associated with each tunnel endpoint, and then inferring a likely return interface associated with the opposite tunnel endpoint. Having determined the physical devices and interfaces at the source and destination of each tunnel, the physical path between these source and destination devices is traced from the source toward the destination until the path is terminated at the destination device, or at an interface to an external network. If the path ends at an external network, the path is traced from the destination device toward the source device until a corresponding interface to the external network is reached.
The invention is explained in further detail, and by way of example, with reference to the accompanying drawings wherein:
Throughout the drawings, the same reference numerals indicate similar or corresponding features or functions. The drawings are included for illustrative purposes and are not intended to limit the scope of the invention.
In the following description, for purposes of explanation rather than limitation, specific details are set forth such as the particular architecture, interfaces, techniques, etc., in order to provide a thorough understanding of the concepts of the invention. However, it will be apparent to those skilled in the art that the present invention may be practiced in other embodiments, which depart from these specific details. In like manner, the text of this description is directed to the example embodiments as illustrated in the Figures, and is not intended to limit the claimed invention beyond the limits expressly included in the claims. For purposes of simplicity and clarity, detailed descriptions of well-known devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
Also for the purposes of explanation rather than limitation, the invention is presented herein using the paradigm of an IP-Tunnel being used to provide a logical/virtual connection between devices. One of skill in the art will recognize that the principles presented herein are also applicable to other virtual connections, such as Frame-Relay and ATM Virtual Circuits (VCs), MPLS Label Switch Paths (LSPs), and the like.
To create an IP tunnel between two network devices, the tunnel must be defined at a source end point of the tunnel. At a minimum, the destination end point of the tunnel must be specified, or, if the tunnel is dynamic, determinable at some point. IP tunnels are often configured in pairs, to provide a bi-directional tunnel. Because the bi-directional tunnel is defined to provide routing out from each end, each end considers itself the ‘source’ end, and the ‘other end’ is the ‘destination’ end. Thus, at a minimum, the destination end of the tunnel from each source end must be defined or determinable. This tunnel destination is defined as an IP address residing on an interface of the destination device. Optionally, the local tunnel source may be specified as either an IP address or interface name. Because the source and destination interfaces referenced may be logical loopback interfaces, the physical interfaces associated with the tunnel are not immediately apparent.
Block 420 illustrates an extract of information from the routing table of Router1. As is known in the art, a routing table indicates a ‘next hop’ for routing a packet, based on the destination address of the packet. Alternatively, the routing of specific addresses to specific next hop may be included in the configuration data 410, if the routing is static. In this example, packets addressed to IP address 11.3.1.2 are routed to “Serial1”, which in this example defines the aforementioned physical connection R1S1 to the net N1 of
Thus, in accordance with one aspect of this invention, by tracing the tunnel information from the configuration data 410 and the routing table 420, it can be determined that packets that are routed to private address 10.1.1.1 will be encapsulated into packets addressed to the tunnel destination 11.3.1.2, which will be routed to physical interface Serial1 (R1 S1 of
Because the destination address is globally unique, the identity of the device corresponding to the tunnel destination 11.3.1.2 can be found from the network configuration data, using any of a variety of techniques common in the art. For example, most network analysis tools are configured to identify the global IP addresses that are local to each router in the modeled network, and a simple search of these addresses will identify that, in this example, Router3 includes IP address 11.3.1.2 as a local address. In this example, a search of Router3's sample configuration data indicates that IP address 11.3.1.2 is associated with Router3's Loopback2 interface, at 455. Thus, in accordance with another aspect of this invention, by processing the network configuration data, it is determined that the destination of Tunnel1 at Router1 is at Router3; however, at this point, the physical interface to Router3 for this tunnel has not yet been determined.
Because the interfaces at which inbound packets arrive are not explicitly defined, per se, the physical interface for packets from Tunnel1 at Router1 to Router3 cannot be absolutely determined. However, in accordance with another aspect of this invention, because most interfaces are symmetric, the above process is repeated in the reverse direction, from Router3 to Router1. At a symmetric interface, the same interface is used for incoming as well as outgoing packets from and to a given IP address. As such, the physical interface for packets from the tunnel to Router3 can be inferred from the physical interface defined for packets from the tunnel's determined destination, Router3, to the tunnel's source IP address, at Router1.
In this example, Tunnel1's source IP address at Router1 is defined as Loopback1414. Subsequent tracing for Loopback1 indicates that it has an IP address of 11.1.1.1/32, at 412. A search of Router3's routing table 460 indicates that this IP address 11.1.1.1/32 is routed to physical interface Serial2 on Router3. That is, packets from the Tunnel1's destination, Router3, to its source IP address on Router1 will be routed to physical interface Serial2 on Router3. Assuming a symmetric interface, it is thus inferred that packets from Tunnel1 on Router1 to Router3 will arrive at physical interface Serial2 on Router3.
As illustrated by this example, by tracing the configuration data and routing tables at a source end of a tunnel, the global destination IP address and the physical interface for packets addressed to this IP address are determined; and, by tracing the configuration data and routing tables at the determined global destination IP address, the physical interface for packets arriving at this IP address can be inferred.
The loop 510-519 processes the configuration and routing information at each router in the network. The loop 520-529 processes each tunnel defined in the configuration. For each defined tunnel end at each router, the tunnel source and destination IP addresses (SIP and DIP) are determined 530 from the tunnel definition in the configuration data at the source router. This may require tracing through the configuration data, if symbolic names are used, such as the use of “loopback1” and “loopback2” in
At 540, the physical interface P(DIP) associated with the destination IP address is determined from the routing table, if available, or, if the route is static, from the configuration data. As illustrated in
At 550, the destination router corresponding to the destination IP is determined, by identifying the router having this address as a local address, as discussed above. At 560, the routing table of the destination router is assessed to determine the physical interface P(SIP) that is used for sending packets from the destination router to the source IP address of the tunnel (SIP). In the example at 551 of
At 560, the determined and inferred physical interfaces, P(DIP) and P(SIP), respectively, corresponding to the tunnel are stored.
The above process is repeated for each tunnel being mapped. In this manner, as illustrated in the second row of
In the example of
In accordance with another aspect of this invention, having determined the physical interfaces at the source and destination of each tunnel, the physical path between these source and destination interfaces is determined. That is, in the example of
A number of techniques are commonly available to determine connectivity among devices in a network. Such techniques include, for example, CDP (Cisco Discovery Protocol), LLDP (Link Layer Discovery Protocol), EDP (Extreme Discovery Protocol), FDP (Foundry Discovery Protocol), ADP (Alcatel Discovery Protocol), and others. Generally, the techniques used to infer a physical topology are dependent upon IP subnet data, MAC address forwarding table data, or neighbor discovery protocols. Neighbor discovery protocols are typically vendor specific and are only compatible with devices from that vendor. Advances on these technologies continue to be developed. For example, copending U.S. patent application Ser. No. 11/829,925, “LINK INFERENCE IN LARGE NETWORKS BASED ON INCOMPLETE DATA”, filed 29 Jul. 2007 for Rajesh Balasubramaniam and James Mark Shaw, published as USPA 2008-0031156, teaches determining the physical topology of a network with less than complete connectivity information by partitioning a network into a hierarchy of partitions and determining the topology of each of these substantially smaller partitions, and is incorporated by reference herein. In like manner, copending U.S. patent application Ser. No. 11/844,765, “INFERRING CONNECTIVITY AMONG NETWORK SEGMENTS IN THE ABSENCE OF CONFIGURATION INFORMATION”, filed 24 Aug. 2007 for Pradeep Singh and Venuprakash Barathan, published as USPA 2008-0049645, teaches determining connections among external networks based on inferences from configuration data related to unconnected network segments coupled to these external networks, and is incorporated by reference herein.
If the physical connectivity among all of the devices has been previously determined, this information can be used directly to identify the determined physical path between the source and tunnel physical interfaces. In a network of moderate or large size, however, the available information is not complete, and the determination of the physical paths between device interfaces is often incomplete.
In another aspect of this invention, having determined the end points of each tunnel, the determination of the corresponding physical path is facilitated by conducting a directed search for the physical path between the source and destination of each tunnel. That is, as noted above, conventional topology determination techniques attempt to ‘discover’ connecting physical paths, typically with minimal knowledge of which devices actually communicate with each other. By coupling the information provided by this invention to these techniques, a synergy is achieved, because after determining the source and destination device for a tunnel, it is known that a physical path must exist between these devices, and when one technique fails to find a next-link in the path, one or more other techniques can be applied to further the search for this known-to-exist path.
Absent knowing that a path exists between a given source and a given destination, it would be infeasible to attempt to discover every possible physical path between each device and every other device in the network, and particularly infeasible to attempt to use alternative techniques each time a given technique indicates that it cannot determine whether a given link exists, because such a link may not, in fact, exist.
In accordance with this aspect of the invention, if the physical path between the determined source and destination device interfaces is unknown, the physical path between these interfaces at the source and destination of each tunnel is traced from the source device toward the destination device until the path reaches the destination device, or until the path terminates at an interface to an external network. If the path ends at an external network, the path tracing process is repeated in the opposite direction, from the destination device toward the source device until the reverse path terminates at a corresponding interface to the external network.
A hierarchy of path determination techniques is preferably used, such that when a higher-level technique fails to find a next-hop along the path, a lower-level technique is applied, starting with the path as thus far determined by the higher-level technique. When a next-hop device along the path is determined using the lower-level technique, the process continues from this next-hop device, preferably starting again with the tracing techniques of the highest applicable level.
At 720, the system attempts to find the next-hop based on other logical connections, such as ATM or Frame Relay Virtual Circuits (VCs). The system checks for any non-tunnel logical connections that may be configured to carry the traffic along the path for this tunnel. In a network consisting of ATM (Asynchronous Transfer Mode) devices, the outgoing interface on the current device may be physically connected using an ATM cloud or a multipoint link.
In a preferred embodiment of this invention, the system searches the available configuration data for any virtual circuits that are configured on the outgoing interface of the current device to find the next hop. Although the logical next-hop may bypass intermediate physical hops, the use of the next logical hop effectively partitions the path into manageable sub-paths. Upon completion of the trace from the start device to the end device for the virtual circuit corresponding to the tunnel, this process can be repeated for each of these detected virtual circuits along the path to determine the physical topology of these sub-sections of the path.
If, at 725, a virtual circuit is found to be configured on the outgoing interface of the current device, the system identifies the destination of the virtual circuit as the next-hop, and sets this next-hop as the new current device, at 730, and, at 715, if this new current device is not the end device, the search for a logical next hop is repeated.
If, at 725, a virtual circuit is not found, the system attempts to find the next-hop device based on layer-3 data-based physical connections on the outgoing interface on the current device, at 740. Typically, the layer-3 data-based connection information is found in routing table or static route data, although operational data, such as the status of each interface, may also provide such connection information. For brevity, the term ‘routing data’ is used hereinafter to refer to any source of layer-3 data-based connection information.
At, 740, the routing data of the current device is assessed to determine the outgoing interface corresponding to the tunnel path. Having identified the outgoing interface, the routing data of each of the other devices on the network are assessed to determine which device routes data to this outgoing interface on the current device. Again assuming a communications symmetry, the device that routes data to this interface on the current device is assumed to be the device to which the current devices routes outgoing data; i.e. the next-hop device.
If, at 745, only one device is found to be coupled to this interface on the current device, this next-hop device is set as the new current device, at 750, and, if this new current device is not the end device of the tunnel, the process is repeated, at 715.
If multiple devices are found to be coupled to the outgoing interface on the current device, the system assesses these devices in an attempt to determine a single device corresponding to the next-hop along the tunnel path. Obviously, if one of the candidate devices is the end device, it is the next-hop; in like manner, if only one of the candidate devices is configured to route data to the end device, it is selected as the next-hop. Also, to reduce the set of candidate next-hops, non-end devices that do not further route the data, i.e. terminal devices, are eliminated from consideration as candidate next-hops.
If multiple candidate devices still exist after the above determinations, the process is either terminated with a not-found determination, or continued by assessing the paths through each of the multiple candidate devices to determine whether the end device is coupled to the candidate device.
If a single candidate next-hop device is found, at 745, this next-hop device is set as the new current device, at 750. If, at 715, the current device is not the end-device, the process is repeated, searching for a logical next-hop device, at 720, and, if unsuccessful, searching level-3 configurations for a physical next-hop device, at 740.
If, at 745, a next-hop is not found based on level-3 configuration data, the current device must be a switch, and the system attempts to determine the next-hop based on level-2 Virtual LAN (VLAN) configuration data associated with this switch.
Although VLAN IDs are used to isolate paths through the switch from each other, if the switch is a combined switch and router, such as Cisco's Route Switch Module, the routing module may perform inter-VLAN routing. In this case, the routing data of the routing module is examined to determine the output port on the routing module that leads to the end device. If such a port cannot be found, the process at block 760 is terminated with a not-found determination. If the port is found, it will indicate a (new) VLAN ID associated with the path to the end device. Using this new VLAN ID, the output port/interface of the switch that includes this VLAN ID is determined, from which the next-hop device is found by again assuming a communications symmetry, and searching for a device that sends data to this determined output interface on the current device.
If the current device is a conventional non-routing switch, the VLAN IDs that are associated with the input interface of the current device are identified and all of the other interfaces on the current device having a VLAN ID in common with the VLAN IDs on the input interface are identified. If an interface having a common VLAN ID with the input interface is not found, the process of block 760 is terminated with a not-found determination.
If the set of interfaces having a common VLAN ID with the input interface includes only one interface, this interface is identified as the output interface of the current device. As detailed above, the next-hop device is found by assuming a communications symmetry, and searching for a device that sends data to this determined output interface on the current device.
If the set of interfaces having a common VLAN ID with the input interface includes multiple interfaces, the system assesses each interface in an attempt to find a single viable interface that leads to the end-device. The system first eliminates interfaces that do not correspond to a physical connection, and then attempts to find an interface from the remaining set that leads to a device that is on a path to the end-device. In a preferred device, a breadth-first search is performed until such an interface (and corresponding next-hop device) is found, or until the search is deemed infeasible and a not-found determination is made.
If the searches of blocks 720, 740, and 760 fail to find a next-hop device before the end-device is reached, the last determined output interface is identified as an assumed interface to an external/unknown network, at 780.
If, at 790, such an interface to an external/unknown network is reported, instead of a complete start-device to end-device path, the system is configured to reverse the start and end devices and repeat the process, starting at 710. For example, having searched from the tunnel source R1610 to the tunnel destination R2620 in
In most cases, if the search from the tunnel source to the tunnel destination ends at an external network, the search from the tunnel destination to the tunnel source will also end at an external network, resulting in a topology such as illustrated in
Optionally, even if the tracing from the source device to the destination device ends at the destination device, the process may be repeated by tracing from the destination device to the source device. If the determined paths are not equivalent, a measure of ambiguity will be determined for each path, and the path with least ambiguity will be selected as the physical path corresponding to the tunnel. That is, for example, if at some point along a path, multiple output interfaces may be feasible, the selection of one of these output interfaces will have a higher degree of ambiguity than when a single output interface is found. In like manner, the use of level-3 connectivity data to determine a next-hop can be considered to be less ambiguous than the use of level-2 connectivity data to determine a next-hop.
The foregoing merely illustrates the principles of the invention. It will thus be appreciated that those skilled in the art will be able to devise various arrangements which, although not explicitly described or shown herein, embody the principles of the invention and are thus within the spirit and scope of the following claims.
In interpreting these claims, it should be understood that:
a) the word “comprising” does not exclude the presence of other elements or acts than those listed in a given claim;
b) the word “a” or “an” preceding an element does not exclude the presence of a plurality of such elements;
c) any reference signs in the claims do not limit their scope;
d) several “means” may be represented by the same item or hardware or software implemented structure or function;
e) each of the disclosed elements may be comprised of hardware portions (e.g., including discrete and integrated electronic circuitry), software portions (e.g., computer programming), and any combination thereof, including non-transitory computer readable media for storing computer programs;
f) hardware portions may be comprised of one or both of analog and digital portions, including one or more processors configured to execute one or more computer programs;
g) any of the disclosed devices or portions thereof may be combined together or separated into further portions unless specifically stated otherwise;
h) no specific sequence of acts is intended to be required unless specifically indicated; and
i) the term “plurality of” an element includes two or more of the claimed element, and does not imply any particular range of number of elements; that is, a plurality of elements can be as few as two elements, and can include an immeasurable number of elements.
This application is a continuation-in-part of U.S. patent application Ser. No. 11/506,648, filed 18 Aug. 2006, incorporated by reference herein, which claims the benefit of U.S. Provisional Patent Application 60/709,769, filed 19 Aug. 2005. This application also claims the benefit of U.S. Provisional Patent Application 60/968,021, filed 24 Aug. 2007.
Number | Name | Date | Kind |
---|---|---|---|
6405248 | Wood | Jun 2002 | B1 |
7411965 | Chu et al. | Aug 2008 | B2 |
7430205 | Ota et al. | Sep 2008 | B2 |
7529243 | Sodder et al. | May 2009 | B2 |
20040037260 | Kakemizu et al. | Feb 2004 | A1 |
20040042402 | Galand et al. | Mar 2004 | A1 |
20050022189 | Proulx et al. | Jan 2005 | A1 |
20050030904 | Oom Temudo de Castro et al. | Feb 2005 | A1 |
20060059370 | Asnis et al. | Mar 2006 | A1 |
20060182034 | Klinker et al. | Aug 2006 | A1 |
Number | Date | Country | |
---|---|---|---|
20080310326 A1 | Dec 2008 | US |
Number | Date | Country | |
---|---|---|---|
60709769 | Aug 2005 | US | |
60968021 | Aug 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11506648 | Aug 2006 | US |
Child | 12192103 | US |