CN102316004B - Method and device for determining routing information between nodes in communication network - Google Patents
Method and device for determining routing information between nodes in communication network Download PDFInfo
- Publication number
- CN102316004B CN102316004B CN201010216459.7A CN201010216459A CN102316004B CN 102316004 B CN102316004 B CN 102316004B CN 201010216459 A CN201010216459 A CN 201010216459A CN 102316004 B CN102316004 B CN 102316004B
- Authority
- CN
- China
- Prior art keywords
- node
- information
- path
- nodes
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/42—Centralised routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0805—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
- H04L43/0811—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0823—Errors, e.g. transmission errors
- H04L43/0829—Packet loss
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0876—Network utilisation, e.g. volume of load or congestion level
- H04L43/0882—Utilisation of link capacity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/26—Route discovery packet
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提出了一种在通信网络的服务器中用于确定节点间路由路径的方法,包括步骤:接收来自客户端的节点指定信息,所述节点指定信息用于指定至少一个节点;基于所述节点指定信息,根据所述通信网络的拓扑信息,确定所述节点指定信息所指定的至少一个节点之间的路由路径;将所述至少一个节点之间的路由路径发送至所述客户端。通过采用本发明的方法,可以一次性提供多个指定通信节点中的任意两个节点之间的双向的路由路径信息以及将该信息以订阅服务的形式提供给终端。
The present invention proposes a method for determining a routing path between nodes in a server of a communication network, comprising the steps of: receiving node specifying information from a client, the node specifying information is used to specify at least one node; specifying based on the node information, according to the topology information of the communication network, determine a routing path between at least one node specified by the node specifying information; and send the routing path between the at least one node to the client. By adopting the method of the present invention, bidirectional routing path information between any two nodes among multiple specified communication nodes can be provided at one time, and the information can be provided to the terminal in the form of subscription service.
Description
技术领域 technical field
本发明涉及通信网络,尤其涉及有线网络中的用于确定节点间的路由信息的方法和装置。The present invention relates to a communication network, in particular to a method and a device for determining routing information between nodes in a wired network.
背景技术 Background technique
用户在上网时,常感兴趣于其主机或者其他的网络节点在链接入网络时所经由的路由路径,例如,该用户所接入的网络服务提供商(ISP)如何连接入一个或者多个网络接入点。在英特网中,两个被关注的通信网络节点之间进行包交换时所经由的路由路径,例如,网络管理员通常关心其网络用户是否能接入其网络站点以及在一些被关注的网络路径上的数据包的传输速度。网络管理员也可以根据上述信息以为其网络站点选择一个合适的网络服务提供商。When users surf the Internet, they are often interested in the routing path through which their hosts or other network nodes connect to the network, for example, how the Internet Service Provider (ISP) that the user accesses connects to one or more networks Access Point. In the Internet, the routing path through which packets are exchanged between two concerned communication network nodes, for example, network administrators usually care whether their network users can access their network sites and The transmission speed of packets on the path. Network administrators can also choose a suitable network service provider for their network site based on the above information.
目前,可以实现上述功能的技术手段有很多种形式,例如,“路由跟踪”(Traceroute)是一种用于获知在运行Traceroute命令的主机和英特网上的其他主机之间的路由路径的常用工具。在视窗系统(Windows)中,该命令具体为tracert,在Linux系统中,该命令具体为tracepath,基于NT技术的Windows系统也提供了具有相似功能的“PathPing”命令,然而,所有的上述工具都是检测从运行该命令的本机到目标主机这个方向上的单向的路由路径。At present, there are many technical means that can realize the above functions. For example, "Traceroute" (Traceroute) is a common tool used to learn the routing path between the host running the Traceroute command and other hosts on the Internet. In the Windows system (Windows), the command is specifically tracert. In the Linux system, the command is specifically tracepath. The Windows system based on NT technology also provides a "PathPing" command with similar functions. However, all of the above-mentioned tools are It is to detect the one-way routing path in the direction from the host running the command to the target host.
具体地,Traceroute依赖于普通的路由器执行下述动作而完成:路由器在有最大跳限(TTL)失效发生时将控制报文协议(InternetControl Message Protocol,ICMP)超时消息返回至发送方。通过使用会尽快失效的较小的TTL值,Traceroute使得路由器沿着数据包的通常的传送路径上产生这些可以对该路由器进行标识的ICMP消息。因此,Traceroute不可避免地存在下列缺陷。Specifically, Traceroute relies on ordinary routers to perform the following actions: the router returns an Internet Control Message Protocol (ICMP) timeout message to the sender when a maximum hop limit (TTL) failure occurs. By using small TTL values that expire as quickly as possible, Traceroute causes routers to generate these ICMP messages that identify the router along the packet's usual path. Therefore, Traceroute inevitably has the following defects.
首先,该工具只能在单向上探测路由路径,即在从本机至目标主机的“去”的方向上,而不能探测从目标主机至本机的“来”的方向上的路由路径。使用Traceroute只可以探测到从发起Traceroute命令的本机至目标主机之间的路由路径,但通常无法满足获取其他主机至本机之间的路由路径的需求。First of all, this tool can only detect the routing path in one direction, that is, in the "going" direction from the local machine to the target host, but cannot detect the routing path in the "coming" direction from the target host to the local machine. Using Traceroute can only detect the routing path from the local machine that initiated the Traceroute command to the target host, but usually cannot meet the requirement of obtaining the routing path between other hosts and the local machine.
其次,Traceroute类工具/命令只能完成两个通信节点之间的路由路径的探测。在很多实际的场景中,通常需要一次性地了解在多个网络节点之间的双向通信,而不是分多次地了解其中的任两个节点之间的路由路径然后再将多次的结果合并起来。Secondly, Traceroute tools/commands can only complete the detection of routing paths between two communication nodes. In many practical scenarios, it is usually necessary to understand the two-way communication between multiple network nodes at one time, instead of understanding the routing path between any two nodes in multiple times and then combining the results of multiple times stand up.
另外,Traceroute类工具额外增加了通信网络的通信载荷。并且需要来自路由路径上的每个路由器ICMP回应,这些都占用了不少的网络资源。In addition, Traceroute tools additionally increase the communication load of the communication network. And it needs an ICMP response from each router on the routing path, which takes up a lot of network resources.
发明内容 Contents of the invention
在上述背景技术中,无法一次性获取一个或多个指定的网络节点中的所有节点的两两组合之间的双向的路由路径,针对该技术问题,本发明提出了一种在通信网络中用于确定节点间路由信息的方法及装置。In the above-mentioned background technology, it is impossible to acquire the bidirectional routing paths between all pairs of all nodes in one or more specified network nodes at one time. Aiming at this technical problem, the present invention proposes a A method and device for determining routing information between nodes.
根据本发明的一个实施例,提供了一种通信网络中用于确定节点间路由信息的方法包括:接收来自客户端的节点指定信息,节点指定信息用于指定至少一个节点;基于节点指定信息,根据通信网络的拓扑信息,确定节点指定信息所指定的至少一个节点之间的路由路径;将至少一个节点之间的路由路径发送至客户端。According to an embodiment of the present invention, a method for determining routing information between nodes in a communication network is provided, including: receiving node designation information from a client, where the node designation information is used to designate at least one node; based on the node designation information, according to The topology information of the communication network determines the routing path between at least one node specified by the node specifying information; and sends the routing path between the at least one node to the client.
其中,服务器可以为路径跟踪服务器、垂直服务器或二者的联合/组合。Wherein, the server may be a path tracing server, a vertical server or a combination/combination of the two.
在本发明的另一个实施例中,服务器为路径跟踪服务器。确定节点指定信息所指定的至少一个节点之间的路由路径的步骤,还包括:根据节点指定信息,从垂直服务器中获取节点指定信息所指定的至少一个节点中的一个节点的拓扑信息;以及,根据节点的拓扑信息,确定该节点至至少一个节点中的另一个节点之间的路由路径。In another embodiment of the present invention, the server is a path tracing server. The step of determining a routing path between at least one node specified by the node specification information further includes: obtaining topology information of one of the at least one node specified by the node specification information from the vertical server according to the node specification information; and, A routing path between the node and another node of the at least one node is determined according to the topology information of the node.
在本发明的另一个实施例中,服务器为垂直服务器,确定节点指定信息所指定的至少一个节点之间的路由路径的步骤,还包括:基于节点指定信息,从本垂直服务器中存储的通信网络的拓扑信息中获取节点指定信息所指定的至少一个节点中的一个节点的拓扑信息;根据节点的拓扑信息,确定该节点至至少一个节点中的另一个节点之间的路由路径。In another embodiment of the present invention, the server is a vertical server, and the step of determining the routing path between at least one node designated by the node designation information further includes: based on the node designation information, from the communication network stored in the vertical server Obtain the topology information of one of the at least one node specified by the node specification information in the topology information of the node; determine the routing path between the node and another node of the at least one node according to the topology information of the node.
在本发明的另一个实施例中,通信网络还包括路径跟踪服务器,接收来自客户端的节点指定信息的步骤,还包括:接收由路径跟踪服务器转发的来自客户端的节点指定信息;以及将至少一个节点之间的路由路径发送至客户端的步骤还包括,将至少一个节点之间的路由路径经由路径跟踪服务器转发至客户端。In another embodiment of the present invention, the communication network further includes a path tracing server, and the step of receiving the node designation information from the client further includes: receiving the node designation information from the client forwarded by the path tracing server; and connecting at least one node The step of sending the routing path between the nodes to the client further includes forwarding the routing path between at least one node to the client via the path tracing server.
本发明的方法中所接收的来自客户端的节点指定信息可包含对一个或多个通信节点的指定,并且根据通信网络的拓扑信息,可以一次性地确定所指定的一个或多个节点中所有的节点的两两组合之间的路由路径。The node designation information received from the client in the method of the present invention may include the designation of one or more communication nodes, and according to the topology information of the communication network, all of the designated one or more nodes can be determined at one time. Routing paths between pairwise combinations of nodes.
另外,执行本发明方法的服务器可以为路径跟踪服务器或者垂直服务器,或者二者的联合,这在通信网络拓扑中的功能上实现了低耦合,网络结构清晰,执行效率高。同时,如果路径跟踪服务器和垂直服务器二者联合执行上述方法,则一定程度上降低了垂直服务器受网络攻击的危险。In addition, the server executing the method of the present invention can be a path tracing server or a vertical server, or a combination of the two, which realizes low coupling in terms of functions in the communication network topology, clear network structure, and high execution efficiency. At the same time, if the path tracing server and the vertical server jointly execute the above method, the danger of the vertical server being attacked by the network is reduced to a certain extent.
再者,本发明中的方法还获取路由路径的通信载荷信息并将之发送至客户端,以帮助客户端了解除路由路径本身之外的其他的关于该路径的通信相关信息。Moreover, the method in the present invention also acquires the communication load information of the routing path and sends it to the client, so as to help the client understand other communication-related information about the path except the routing path itself.
可选地,上述实施例中的节点指定信息中还包括订阅周期值,将至少一个节点之间的路由路径发送至客户端的步骤还包括,根据该订阅周期值,将路由路径周期地发送至客户端。Optionally, the node designation information in the above embodiment also includes a subscription period value, and the step of sending the routing path between at least one node to the client further includes, according to the subscription period value, periodically sending the routing path to the client end.
本发明的方法还根据节点指定信息中的订阅周期值,将路由路径周期地发送至客户端,以免客户端对该信息主动的频繁查询,减轻了网络通信载荷。The method of the present invention also periodically sends the routing path to the client according to the subscription cycle value in the node designation information, so as to prevent the client from actively and frequently inquiring about the information and reduce the network communication load.
根据本发明的另一实施例,提供了一种在通信网络中用于确定节点间路由路径的第一装置,该第一装置包括:第一指定信息接收模块,用于接收来自客户端的节点指定信息,节点指定信息用于指定至少一个节点;第一拓扑信息获取模块,用于根据节点指定信息,从垂直服务器中获取节点指定信息所指定的至少一个节点中的一个节点的拓扑信息;第一路由路径确定模块,用于根据节点的拓扑信息,确定该节点至至少一个节点中的另一个节点之间的路由路径。第一路由路径信息发送模块,用于将至少一个节点之间的路由路径发送至客户端。According to another embodiment of the present invention, there is provided a first device for determining an inter-node routing path in a communication network, the first device includes: a first designation information receiving module, configured to receive a node designation from a client information, the node designation information is used to designate at least one node; the first topology information acquisition module is used to obtain the topology information of a node in the at least one node designated by the node designation information from the vertical server according to the node designation information; the first A routing path determining module, configured to determine a routing path between the node and another node of the at least one node according to the topology information of the node. The first routing path information sending module is configured to send the routing path between at least one node to the client.
根据本发明的另一实施例,还提供了一种在通信网络中用于确定节点间路由路径的第二装置,该第二装置包括:第二指定信息接收模块,用于接收来自客户端的节点指定信息,节点指定信息用于指定至少一个节点;第二拓扑信息获取模块,用于基于节点指定信息,从本垂直服务器中存储的通信网络的拓扑信息中获取节点指定信息所指定的至少一个节点中的一个节点的拓扑信息;第二路由路径确定模块,用于根据节点的拓扑信息,确定该节点至至少一个节点中的另一个节点之间的路由路径。第二路由路径信息发送模块,用于将至少一个节点之间的路由路径发送至客户端。According to another embodiment of the present invention, there is also provided a second device for determining an inter-node routing path in a communication network, the second device includes: a second designation information receiving module, configured to receive node information from a client specifying information, the node specifying information is used to specify at least one node; the second topology information acquisition module is used to obtain at least one node specified by the node specifying information from the topology information of the communication network stored in the vertical server based on the node specifying information The topology information of one of the nodes; the second routing path determining module, configured to determine a routing path between the node and another node of the at least one node according to the topology information of the node. The second routing path information sending module is configured to send the routing path between at least one node to the client.
附图说明 Description of drawings
通过阅读以下参照附图对非限制性实施例所作的详细描述,本发明的其它特征、目的和优点将会变得更明显。Other characteristics, objects and advantages of the present invention will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings.
图1为根据本发明的一实施例的客户端和服务器构成的通信网络系统拓扑结构图;Fig. 1 is a topological structure diagram of a communication network system composed of a client and a server according to an embodiment of the present invention;
图2为根据本发明的一实施例的在通信网络的服务器中用于确定节点间路由路径的方法流程图;FIG. 2 is a flowchart of a method for determining a routing path between nodes in a server of a communication network according to an embodiment of the present invention;
图3为根据本发明的另一实施例的在通信网络的服务器中用于确定节点间路由路径的方法流程图;FIG. 3 is a flowchart of a method for determining a routing path between nodes in a server of a communication network according to another embodiment of the present invention;
图4示出了根据本发明的又一实施例的在通信网络的服务器中用于确定节点间路由路径的方法流程图;FIG. 4 shows a flowchart of a method for determining inter-node routing paths in a server of a communication network according to yet another embodiment of the present invention;
图5示出了根据本发明的一实施例的在通信网络中用于确定节点间路由路径的第一确定装置的结构示意图;FIG. 5 shows a schematic structural diagram of a first determining device for determining inter-node routing paths in a communication network according to an embodiment of the present invention;
图6示出了根据本发明的另一实施例的在通信网络中用于确定节点间路由路径的第二确定装置的结构示意图;FIG. 6 shows a schematic structural diagram of a second determining device for determining inter-node routing paths in a communication network according to another embodiment of the present invention;
其中,相同或相似的附图标记表示相同或相似的步骤特征或装置(模块)。Wherein, the same or similar reference numerals represent the same or similar step features or devices (modules).
具体实施方式 Detailed ways
有些用户常常还需要网络通信节点之间的路由路径状态的订阅服务。除此之外,有些用户需要始终对所关注的节点间的路由路径以及通信载荷(traffic load)或者其他路径相关信息保持关注。该类业务需求类似于易信息聚合(Really Simple Syndication,RSS),可被称为路径信息订阅(path status subscription)。通过该类业务,终端用户可以订阅路径和通信载荷情况,以及其他相关的该路径的状态信息。该类业务对运营商来说也是可以增强其竞争力的。运营商可以将这些订阅信息周期性地发送至用户或者在被订阅信息发生变化的时候发送给用户,这可以增大其业务流量以及提高其产品附加值。因此,需要一个针对通信网络的路由路径探测工具以一次性地提供多节点间的双向路由路径和相关信息。进而,该工具也应支持上述的路径状态订阅业务。Some users often also need the subscription service of the routing path state between network communication nodes. In addition, some users need to always keep an eye on the routing path between the concerned nodes, as well as the traffic load or other path-related information. This type of business requirement is similar to Really Simple Syndication (RSS), which can be called path status subscription. Through this type of service, end users can subscribe to the path and communication load conditions, as well as other related state information of the path. This type of business can also enhance the competitiveness of operators. The operator can send the subscription information to the user periodically or when the subscribed information changes, which can increase its service flow and increase the added value of its products. Therefore, a routing path detection tool for communication networks is needed to provide bidirectional routing paths and related information between multiple nodes at one time. Furthermore, the tool should also support the above-mentioned path state subscription service.
以下结合附图对本发明的具体实施例进行详细的示例性描述。Specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
图1示出了根据本发明的一实施例的客户端和服务器构成的通信网络系统拓扑结构图。其中,客户端20将其采集的节点指定信息发送至服务器10。例如但不限于,服务器10具体可以为路径跟踪服务器11或垂直服务器12或二者的组合。当然,本领域技术人员可以理解,在某些应用场景下,其中的垂直服务器12也可以由简单网络管理协议(SNMP)服务器代替。Fig. 1 shows a topological structure diagram of a communication network system composed of a client and a server according to an embodiment of the present invention. Wherein, the client 20 sends the node designation information collected by it to the server 10 . For example but not limited thereto, the server 10 may specifically be a path tracing server 11 or a vertical server 12 or a combination of both. Of course, those skilled in the art can understand that in some application scenarios, the vertical server 12 can also be replaced by a Simple Network Management Protocol (SNMP) server.
除此之外,通信网络中还配置有通信节点A、B、C、D,以及若干个路由器router1、router2、router3、router4、router5,均未在图中示出。In addition, communication nodes A, B, C, and D, and several routers router1, router2, router3, router4, and router5 are also configured in the communication network, all of which are not shown in the figure.
图2为根据本发明的一实施例的在通信网络的服务器中用于确定节点间路由路径的方法流程图。该用于确定节点间路由路径的方法包括节点指定信息接收步骤S11、路由路径确定步骤S12,以及路由路径发送S13。Fig. 2 is a flowchart of a method for determining inter-node routing paths in a communication network server according to an embodiment of the present invention. The method for determining an inter-node routing path includes a node designation information receiving step S11, a routing path determining step S12, and a routing path sending step S13.
在步骤S11中,服务器10接收来自客户端20的节点指定信息,该节点指定信息用于指定至少一个节点。In step S11, the server 10 receives node specifying information from the client 20, the node specifying information is used to specify at least one node.
例如,用户通过客户端20以域名的形式指定了通信节点A、B、C,客户端20将对通信节点A、B、C的指定信息,以路由路径查询消息(Pathquery message)的形式发送至服务器10。服务器10一侧接收来自客户端20的路由路径查询消息,该消息中的节点指定信息用于指定需要确定其间路由路径的通信节点A、通信节点B、通信节点C。For example, the user specifies communication nodes A, B, and C in the form of a domain name through the client 20, and the client 20 sends the specified information to the communication nodes A, B, and C in the form of a routing path query message (Pathquery message) to server 10. The server 10 side receives the routing path query message from the client 20, and the node designation information in the message is used to designate the communication node A, communication node B, and communication node C among which routing paths need to be determined.
在步骤S 12中,服务器10基于上述节点指定信息,根据通信网络的拓扑信息,确定节点指定信息所指定的至少一个节点之间的路由路径。In step S12, the server 10 determines a routing path between at least one node specified in the node specifying information based on the node specifying information and topology information of the communication network.
基于对通信节点A、B、C的节点指定信息,服务器10根据通信网络中通信节点A、B、C之间的连接拓扑信息,确定通信节点A、B、C之间的路由路径。例如,A、B之间的路由路径被确定为A→router2→router3→router5→B,以及B、C之间的路由路径被确定为B→router5→router1→C。优选地,服务器10确定通信节点A、B、C之间的所有的路由路径,即A→B、B→A、A→C、C→A、C→B、B→C。Based on the node designation information for the communication nodes A, B, C, the server 10 determines the routing path between the communication nodes A, B, C according to the connection topology information between the communication nodes A, B, C in the communication network. For example, the routing path between A and B is determined as A→router2→router3→router5→B, and the routing path between B and C is determined as B→router5→router1→C. Preferably, the server 10 determines all routing paths between communication nodes A, B, C, ie A→B, B→A, A→C, C→A, C→B, B→C.
在步骤S13中,服务器10将至少一个节点之间的路由路径发送至客户端。In step S13, the server 10 sends the routing path between at least one node to the client.
例如,步骤S12中确定得到的通信节点A至B之间的路由路径为A→router2→router3→router5→B以及通信节点B至A之间的路由路径为B→router5→router3→router1→A,同样地,步骤S12中的路由路径的确定结果还可包括通信节点A和C以及通信节点B和C之间的路由路径。则优选地,服务器10可将上述确定得到通信节点A,B,C中的所有通信节点的两两组合之间的路由路径信息以路由路径反馈消息(Path Reply message)的形式发送至客户端20。此处,本领域技术人员应当了解:如果路由路径反馈消息过长而无法封装于一个数据包中,则可被分割后封装于若干个不同的数据包中以发送至客户端20。For example, the routing path determined in step S12 between communication nodes A to B is A→router2→router3→router5→B and the routing path between communication nodes B to A is B→router5→router3→router1→A, Likewise, the determination result of the routing path in step S12 may also include routing paths between communication nodes A and C and communication nodes B and C. Then preferably, the server 10 can send the routing path information between the pairwise combinations of all communication nodes in the communication nodes A, B, and C determined above to the client 20 in the form of a routing path feedback message (Path Reply message) . Here, those skilled in the art should understand that: if the routing path feedback message is too long to be encapsulated in one data packet, it can be divided and encapsulated in several different data packets to be sent to the client 20 .
图3为根据本发明的另一实施例的在通信网络的服务器中用于确定节点间路由路径的方法流程图。其中,服务器10为一个路径跟踪服务器11。如图3所示,图2所对应的实施例中的路由路径确定步骤S12包括两个子步骤S121和S122。Fig. 3 is a flowchart of a method for determining an inter-node routing path in a server of a communication network according to another embodiment of the present invention. Wherein, the server 10 is a path tracing server 11 . As shown in FIG. 3, the routing path determination step S12 in the embodiment corresponding to FIG. 2 includes two sub-steps S121 and S122.
在步骤S121中,路径跟踪服务器11根据节点指定信息,从垂直服务器12中获取节点指定信息所指定的至少一个节点中的一个节点的拓扑信息。In step S121 , the path tracing server 11 obtains from the vertical server 12 topology information of at least one node specified by the node specification information according to the node specification information.
在该实施例中,节点指定信息指定了网络节点A、B、C,则路径跟踪服务器11可以从垂直服务器12中获取所指定的网络节点中的,例如节点A的拓扑信息。In this embodiment, the node specifying information specifies network nodes A, B, and C, and the path tracing server 11 may obtain topology information of the specified network nodes, such as node A, from the vertical server 12 .
在步骤S122中,路径跟踪服务器11根据该节点A的拓扑信息,确定该节点至所指定的至少一个节点中的另一个节点,例如网络节点B之间的路由路径。即根据在步骤S121中所获得的网络节点A的拓扑信息,路径跟踪服务器11确定网络节点A至网络节点B的路由路径,例如,所确定的路由路径的结果为,A→router2→router3→router5→B。In step S122, the path tracking server 11 determines the routing path between the node A and another node in at least one specified node, such as network node B, according to the topology information of the node A. That is, according to the topology information of network node A obtained in step S121, the path tracking server 11 determines the routing path from network node A to network node B, for example, the result of the determined routing path is, A→router2→router3→router5 →B.
图4示出了根据本发明的又一实施例的在通信网络的服务器中用于确定节点间路由路径的方法流程图。其中,服务器10为一个垂直服务器12,在该实施例中,如图4所示,图2所对应的实施例中的路由路径确定步骤S12包括步骤S121’和S122’。Fig. 4 shows a flowchart of a method for determining an inter-node routing path in a server of a communication network according to yet another embodiment of the present invention. Wherein, the server 10 is a vertical server 12. In this embodiment, as shown in FIG. 4, the routing path determination step S12 in the embodiment corresponding to FIG. 2 includes steps S121' and S122'.
在步骤S11中,垂直服务器12可以直接接收来自客户端20的节点指定信息,该节点指定信息用于指定至少一个节点,例如通信节点A、B、C。In step S11 , the vertical server 12 may directly receive node designation information from the client 20 , the node designation information is used to designate at least one node, such as communication nodes A, B, and C.
在步骤S121’中,基于节点指定信息,垂直服务器12从本机中存储的所述通信网络的拓扑信息中获取上述节点指定信息所指定的至少一个节点中的一个节点的拓扑信息。在该实施例中,节点指定信息指定了网络节点A、B、C,则垂直服务器12可以从其本机中获取所指定的网络节点中的例如网络节点A的拓扑信息。In step S121', based on the node designation information, the vertical server 12 obtains the topology information of one of the at least one node specified by the node designation information from the topology information of the communication network stored in the local machine. In this embodiment, the node designation information designates network nodes A, B, and C, and the vertical server 12 can acquire topology information of, for example, network node A among the designated network nodes from its local machine.
在步骤S122’中,根据该节点的拓扑信息,确定该节点至上述至少一个节点中的另一个节点,例如网络节点B之间的路由路径。即根据在步骤S121’中所获得的网络节点A的拓扑信息,确定该网络节点A至网络节点B之间的路由路径,其路由路径的确定结果为,例如A→router2→router3→router5→B。In step S122', according to the topology information of the node, a routing path between the node and another node of the at least one node, such as network node B, is determined. That is, according to the topology information of network node A obtained in step S121', the routing path between the network node A and the network node B is determined, and the determination result of the routing path is, for example, A→router2→router3→router5→B .
图7示出了根据本发明的另一实施例的在通信网络的服务器中用于确定节点间路由路径的方法流程图。可选地,在该实施例中,通信网络还包括一个路径跟踪服务器11,如图7所示,首先,客户端20将对至少一个节点,例如通信节点A、B、C的指定信息,以路由路径查询消息(Path query message)的形式发送至路径跟踪服务器11。路径跟踪服务器11接收来自客户端20的节点指定信息,该节点指定信息用于指定通信节点A、B、C。Fig. 7 shows a flowchart of a method for determining an inter-node routing path in a server of a communication network according to another embodiment of the present invention. Optionally, in this embodiment, the communication network further includes a path tracing server 11, as shown in FIG. The routing path query message (Path query message) is sent to the path tracking server 11. The path tracing server 11 receives node specifying information from the client 20 for specifying the communication nodes A, B, and C.
随后,在步骤S11’中,垂直服务器12接收由路径跟踪服务器11转发的来自客户端20的上述对于节点A、B、C的指定信息。在步骤S121’和S122’完成之后,在步骤S13’中,垂直服务器12将至少一个节点之间的路由路径经由路径跟踪服务器11转发至所述客户端。接着,路径跟踪服务器11一侧,响应于垂直服务器12的指示,将该至少一个节点之间的路由路径转发至客户端20。例如,将上述通信节点A、B、C之间的所有存在的路由路径A→B、B→A、A→C、C→A、C→B、B→C,通过路由路径反馈消息(Path Reply message)的形式发送至路径跟踪服务器11并指示路径跟踪服务器11将该路由路径信息转发至客户端20。随后,路径跟踪服务器11将上述的通信节点A、B、C之间的路由路径发送至客户端20,其中,具体的路由路径可能因具体的通信网络状态的区别而不同,在本实施例中,A→B之间的路由路径为,例如A→router2→router3→router5→B。Subsequently, in step S11', the vertical server 12 receives the above-mentioned specifying information for nodes A, B, and C from the client 20 forwarded by the path tracing server 11. After steps S121' and S122' are completed, in step S13', the vertical server 12 forwards the routing path between at least one node to the client via the path tracing server 11. Next, the path tracking server 11 side forwards the routing path between the at least one node to the client 20 in response to the instruction of the vertical server 12 . For example, all existing routing paths A→B, B→A, A→C, C→A, C→B, B→C among the above-mentioned communication nodes A, B and C are fed back through the routing path feedback message (Path Reply message) is sent to the path tracking server 11 and instructs the path tracking server 11 to forward the routing path information to the client 20. Subsequently, the path tracking server 11 sends the above-mentioned routing path between communication nodes A, B, and C to the client 20, wherein the specific routing path may be different due to the difference of the specific communication network status, in this embodiment , the routing path between A→B is, for example, A→router2→router3→router5→B.
可选地,在本发明另一实施例中,服务器10进一步获取路由路径的通信载荷信息,并将通信载荷信息发送至客户端20。其中,通信载荷信息包括但不限于数据吞吐量、传输时延、带宽、丢包率等一切可反映通信载荷情况的信息。具体地,上述通信载荷信息可以根据,例如该实施例的通信网络的转发信息库中的路由表属性中测量(metric)信息得到。本领域技术人员应当理解,在上述发送步骤中,路径跟踪服务器11在获取路由路径,例如A→B之间的路由路径A→router2→router3→router5→B的通信载荷信息之后,可以直接发送该路由路径的通信载荷信息给客户端20,或者垂直服务器12在获取上述A→B之间的路由路径的通信载荷信息之后,也可以通过路径跟踪服务器11转发该通信载荷信息至客户端20。Optionally, in another embodiment of the present invention, the server 10 further acquires communication load information of the routing path, and sends the communication load information to the client 20 . Wherein, the communication load information includes but not limited to data throughput, transmission delay, bandwidth, packet loss rate and other information that can reflect the communication load. Specifically, the above communication load information may be obtained according to, for example, metric information in the routing table attribute in the forwarding information database of the communication network in this embodiment. Those skilled in the art should understand that, in the above sending steps, the path tracking server 11 can directly send the routing path after obtaining the routing path, for example, the communication load information of the routing path A→router2→router3→router5→B between A→B. The communication load information of the routing path is sent to the client 20, or the vertical server 12 may forward the communication load information to the client 20 through the path tracking server 11 after obtaining the communication load information of the routing path between A→B.
可选地,在本发明另一实施例中,首先,客户端20将对至少一个节点,例如通信节点A、B、C的指定信息和一个订阅周期值的信息,以路由路径查询消息的形式发送至路径跟踪服务器11。对应地,在该实施例中的方法还包括步骤:服务器10,例如路径跟踪服务器11或垂直服务器12根据所述订阅周期值,将路由路径周期地发送至客户端20。例如,在步骤S11中所接收到的节点指定信息中,除了对通信节点A、B、C的指定信息之外,还包括适用于节点A、B、C的数值为5s的一个订阅周期值。则路径跟踪服务器11将上述的通信节点A、B、C之间的路由路径信息,以5s为周期循环地发送至客户端20,以保持该路由路径信息在客户端20上的持续更新。或者,垂直服务器12也可通过路径跟踪服务器11将上述的通信节点A、B、C之间的路由路径信息,以5s为周期循环地转发至客户端20。Optionally, in another embodiment of the present invention, firstly, the client 20 will send the designated information of at least one node, such as communication nodes A, B, and C, and information of a subscription period value in the form of a routing path query message sent to the path tracking server 11. Correspondingly, the method in this embodiment further includes a step: the server 10, such as the path tracking server 11 or the vertical server 12, periodically sends the routing path to the client 20 according to the subscription period value. For example, in the node designation information received in step S11, in addition to the designation information for communication nodes A, B and C, it also includes a subscription period value of 5s applicable to nodes A, B and C. Then the path tracking server 11 sends the above-mentioned routing path information between communication nodes A, B, and C to the client 20 in a cycle of 5 s, so as to keep the routing path information continuously updated on the client 20 . Alternatively, the vertical server 12 may also cyclically forward the above-mentioned routing path information between communication nodes A, B, and C to the client 20 via the path tracking server 11 at a period of 5 s.
可选地,在本发明另一实施例中,首先,客户端20将对至少一个节点,例如通信节点A、B、C的指定信息和一个实时更新标志信息,以路由路径查询消息的形式发送至路径跟踪服务器11。其中的实时更新标志信息,用于指示服务器10端在检测到通信节点A、B、C之间的路由路径情况发生变化时,实时地将更新后的路由路径信息发送至客户端20。对应地,在该实施例中的方法还包括步骤:服务器10,例如路径跟踪服务器11或垂直服务器12当检测到的至少一个节点之间的路由路径发生变化时,则实时地将该至少一个节点之间的更新的路由路径发送至客户端20。例如,在步骤S11中所接收到的节点指定信息中,除了对通信节点A、B、C的指定信息之外,还包括适用于节点A、B、C的一个实时更新标志信息,则路径跟踪服务器11保持对节点A、B、C之间的路由路径进行实时地监测和计算状态,当其检测到节点A、B、C之间的路由路径情况发生变化时,实时地将更新后的节点A、B、C之间的路由路径信息发送至客户端20,以保持该路由路径信息在客户端20上的持续更新。或者,垂直服务器12也可通过路径跟踪服务器11,实时地将上述的更新的通信节点A、B、C之间的路由路径信息,转发至客户端20。Optionally, in another embodiment of the present invention, firstly, the client 20 sends the specified information of at least one node, such as communication nodes A, B, and C, and a real-time update flag information in the form of a routing path query message to the path tracing server 11. The real-time update flag information is used to instruct the server 10 to send the updated routing path information to the client 20 in real time when it detects that the routing path between communication nodes A, B, and C changes. Correspondingly, the method in this embodiment also includes a step: when the server 10, such as the path tracking server 11 or the vertical server 12, detects that the routing path between at least one node changes, the at least one node will be detected in real time. The updated routing paths between are sent to the client 20. For example, in the node designation information received in step S11, in addition to the designation information to communication nodes A, B, C, also includes a real-time update flag information applicable to nodes A, B, C, then the path tracing The server 11 keeps monitoring and calculating the routing path between nodes A, B, and C in real time. When it detects that the routing path between nodes A, B, and C changes, the updated node The routing path information between A, B, and C is sent to the client 20 to keep the routing path information continuously updated on the client 20 . Alternatively, the vertical server 12 may also forward the updated routing path information between the communication nodes A, B, and C to the client 20 in real time through the path tracking server 11 .
此处,本领域技术人员应当理解:本发明的实施例中,用于指定至少一个节点的节点指定信息中包括该至少一个节点的网络接入标识,或者其域名,或者其IP地址等任意一种形式或其组合,对通信节点的指定信息的具体标识形式,并不构成对本发明的限制。例如,在该实施例中,对通信节点A、B、C的指定信息中可以包括通信节点A的IP地址162.105.74.55以及通信节点B的网址www.sina.com.cn以及通信节点C的网络接入标识符。Here, those skilled in the art should understand that: in the embodiment of the present invention, the node designation information used to designate at least one node includes the network access identifier of the at least one node, or its domain name, or its IP address, etc. The specific identification form of the specified information of the communication node does not constitute a limitation to the present invention. For example, in this embodiment, the specified information for communication nodes A, B, and C may include the IP address 162.105.74.55 of communication node A, the website www.sina.com.cn of communication node B, and the network address of communication node C. access identifier.
在本发明的另一个实施例中,用户通过客户端20以域名的形式指定了通信节点A,则客户端20将对通信节点A以及客户端20所在的本机的指定信息,以路由路径查询消息(Path query message)的形式发送至服务器10。对应地,在步骤S11中所接收到的节点指定信息中包括了对通信节点A以及客户端20所在的本机的指定信息。此时,在步骤S12中,基于该节点指定信息,路径跟踪服务器11或垂直服务器12根据通信网络的拓扑信息,获取该节点指定信息所指定的A节点与客户端20所在的本机之间的路由路径,即客户端20所在的本机host→A和/或A→host的路由路径,例如host→router1→router2→A,A→router2→router1→host。In another embodiment of the present invention, the user specifies the communication node A in the form of a domain name through the client 20, then the client 20 will query the specified information of the communication node A and the local machine where the client 20 is located by routing path The form of message (Path query message) is sent to server 10. Correspondingly, the node designation information received in step S11 includes the designation information of the communication node A and the local machine where the client 20 is located. At this time, in step S12, based on the node designation information, the path tracking server 11 or the vertical server 12 obtains the connection between the node A designated by the node designation information and the local machine where the client 20 is located according to the topology information of the communication network. The routing path is the routing path of the host→A and/or A→host of the client 20, for example, host→router1→router2→A, A→router2→router1→host.
在上述各实施例中的拓扑信息,可以包括,例如转发信息库(Forwording Information Base,FIB),相应地,步骤S12可进一步包括,基于节点指定信息,根据通信网络的该转发信息库,通过最长前缀匹配方式获取节点指定信息所指定的至少一个节点之间的路由路径。The topology information in the above-mentioned embodiments may include, for example, a forwarding information base (Forwording Information Base, FIB). The long prefix matching method obtains the routing path between at least one node specified by the node specification information.
当然,本领域技术人员应当理解,上述拓扑信息并不限于转发信息库,还可以包括至少一个节点,例如通信节点A、B、C的链路状态,端口状态,或者通信节点A、B、C之间的距离或相邻关系等有助于对路由路径的通信状态的进行确定的信息。Of course, those skilled in the art should understand that the above-mentioned topology information is not limited to the forwarding information library, and may also include at least one node, such as the link status and port status of communication nodes A, B, and C, or the communication nodes A, B, and C Information that helps determine the communication status of routing paths, such as the distance or neighbor relationship between them.
例如,在本实施例中节点指定信息指定了通信节点A、B、C,则首先根据所获得的节点A的单播FIB,在另一个网络节点,例如B的IP单播地址和通信节点A的FIB的目标前缀之间进行最长前缀匹配。如果不存在匹配的FIB表项(entry),则从A至B不存在路由路径。失败信息将被记录并终止此次操作。接着确定从B至A之间的路由路径。如果上述的最长前缀匹配存在匹配的FIB表项,例如entry2,则匹配表项中的“下一跳路由器”项指示了下一跳路由器,例如router2。同时,记录router2的IP地址。For example, in this embodiment, if the node designation information specifies communication nodes A, B, and C, then firstly, according to the obtained unicast FIB of node A, another network node, such as B's IP unicast address and communication node A The longest prefix match is performed between the target prefixes of the FIBs. If there is no matching FIB entry (entry), then there is no routing path from A to B. Failure messages will be logged and the operation terminated. Then determine the routing path from B to A. If there is a matching FIB entry in the above longest prefix match, such as entry2, then the "next-hop router" item in the matching entry indicates the next-hop router, such as router2. At the same time, record the IP address of router2.
接着获取router2的FIB,并在B的IP单播地址和router2的FIB的目的前缀之间进行最长前缀匹配。如果不存在匹配的FIB表项,则从router2至B之间不存在路由路径。失败信息将被记录并终止此次操作。如果存在匹配的FIB表项,例如entry3,则记录entry3所指示的下一跳路由器的IP地址值。获取在此匹配的表项中“下一跳路由器”项,如此重复地进行上述的在“下一跳路由器”与节点B之间的最长前缀匹配,直至最终得到的表项中的“下一跳路由器”项指向通信节点B自身。Then obtain the FIB of router2, and perform the longest prefix match between the IP unicast address of B and the destination prefix of the FIB of router2. If there is no matching FIB entry, there is no routing path from router2 to B. Failure messages will be logged and the operation terminated. If there is a matching FIB entry, such as entry3, record the IP address value of the next-hop router indicated by entry3. Obtain the "next hop router" item in this matched table entry, and repeat the above-mentioned longest prefix match between "next hop router" and node B until the "next hop router" in the finally obtained table entry The "one-hop router" item points to the correspondent node B itself.
当然,所有指定的节点中的两两组合,即A→B、B→A、A→C、C→A、C→B、B→C之间的路由路径信息都可依照上述步骤获得,其中,具体的最长前缀匹配过程,在此不再赘述。Of course, the pairwise combinations of all specified nodes, that is, the routing path information between A→B, B→A, A→C, C→A, C→B, and B→C can be obtained according to the above steps, where , the specific longest prefix matching process will not be repeated here.
在本发明的另一实施例中,网络拓扑信息包括FIB,此时,在步骤S121中,根据所述节点指定信息,路径跟踪服务器11从垂直服务器12中获取节点指定信息所指定的至少一个节点(例如节点A,B,C)中的一个节点,例如A的转发信息库。接着,在步骤S122中,根据所述节点的转发信息库,路径跟踪服务器11通过最长前缀匹配方式确定该节点A至至少一个节点中的另一个节点,例如B之间的路由路径,此处不再赘述。In another embodiment of the present invention, the network topology information includes FIB. At this time, in step S121, according to the node designation information, the path tracking server 11 acquires at least one node specified by the node designation information from the vertical server 12 One of the nodes (such as nodes A, B, and C), such as A's forwarding information base. Next, in step S122, according to the forwarding information library of the node, the path tracking server 11 determines the routing path between the node A and at least one node, such as B, in the longest prefix matching manner, where No longer.
在本发明的另一实施例中,网络拓扑信息包括FIB,此时,在步骤S121’中,基于节点指定信息,垂直服务器12从其本机中所存储的通信网络的FIB中获取节点指定信息所指定的至少一个节点(例如节点A,B,C)中的一个节点,例如A的转发信息库。接着,在步骤S122’中,根据节点A的FIB,通过最长前缀匹配方式确定该节点A至至少一个节点中的另一个节点,例如B之间的路由路径,其中,具体的最长前缀匹配过程此处不再赘述。In another embodiment of the present invention, the network topology information includes FIB. At this time, in step S121', based on the node designation information, the vertical server 12 obtains the node designation information from the FIB of the communication network stored in its own machine. One of the specified at least one node (for example, nodes A, B, and C), for example, A's forwarding information base. Next, in step S122', according to the FIB of node A, the routing path between the node A and at least one of the other nodes, such as B, is determined through the longest prefix matching method, wherein the specific longest prefix matching The process will not be repeated here.
图5示出了根据本发明的一实施例的在通信网络中用于确定节点间路由路径的第一确定装置的结构示意图。如图所示,第一确定装置100包括:第一指定信息接收模块101,第一拓扑信息获取模块102,第一路由路径确定模块103,第一路由路径信息发送模块104。Fig. 5 shows a schematic structural diagram of a first determining device for determining an inter-node routing path in a communication network according to an embodiment of the present invention. As shown in the figure, the first determining device 100 includes: a first specified information receiving module 101 , a first topology information acquiring module 102 , a first routing path determining module 103 , and a first routing path information sending module 104 .
第一确定装置100通常可以设置于一个路径跟踪服务器11中,其中,第一指定信息接收模块101,用于接收来自客户端20的节点指定信息,该节点指定信息用于指定至少一个节点,例如该节点指定信息指定了节点A、B、C。第一拓扑信息获取模块102,用于根据节点指定信息,从垂直服务器12中获取节点指定信息所指定的至少一个节点中的一个节点,例如,节点A的拓扑信息。第一路由路径确定模块103,用于根据该节点A的拓扑信息,确定该节点至至少一个节点中的另一个节点,例如节点B,之间的路由路径。优选地,第一路由路径确定模块103确定上述节点A、B、C中所有的两两节点之间的路由路径,例如:A→B、B→A、A→C、C→A、C→B以及B→C。第一路由路径信息发送模块104,用于将至少一个节点之间的路由路径发送至所述客户端20,其中的路由路径信息包括以下各项中的任一项或任多项:A→B、B→A、A→C、C→A、C→B、B→C。优选地,该路由路径信息包括上述的至少一个节点之间的全部路由路径,即A→B、B→A、A→C、C→A、C→B以及B→C。The first determining means 100 can usually be set in a path tracing server 11, wherein the first designation information receiving module 101 is configured to receive node designation information from the client 20, the node designation information is used to designate at least one node, for example The node specifying information specifies nodes A, B, and C. FIG. The first topology information obtaining module 102 is configured to obtain, from the vertical server 12 , one of at least one node specified by the node specification information, for example, the topology information of node A according to the node specification information. The first routing path determining module 103 is configured to determine, according to the topology information of the node A, a routing path between the node A and another node of at least one node, such as node B. Preferably, the first routing path determination module 103 determines the routing paths between all the nodes A, B, and C, for example: A→B, B→A, A→C, C→A, C→ B and B→C. The first routing path information sending module 104 is configured to send the routing path between at least one node to the client 20, wherein the routing path information includes any one or more of the following items: A→B , B→A, A→C, C→A, C→B, B→C. Preferably, the routing path information includes all routing paths between the above at least one node, namely A→B, B→A, A→C, C→A, C→B and B→C.
在本发明的另一实施例中,拓扑信息包括转发信息库,相应地,其中的第一拓扑信息获取模块102具体包括一个第一FIB获取模块(图中未示出),第一路由路径确定模块103具体包括一个第一最长前缀匹配模块(图中未示出)。In another embodiment of the present invention, the topology information includes a forwarding information base. Correspondingly, the first topology information acquisition module 102 specifically includes a first FIB acquisition module (not shown in the figure), and the first routing path determination Module 103 specifically includes a first longest prefix matching module (not shown in the figure).
在该实施例中,第一FIB获取模块,用于根据节点指定信息,从垂直服务器中获取节点指定信息所指定的至少一个节点中的一个节点的转发信息库。例如,节点指定信息指定了节点A、B、C,第一FIB获取模块根据该节点指定信息,从垂直服务器12中获取节点A的转发信息库。第一最长前缀匹配模块,用于根据节点的转发信息库,通过最长前缀匹配方式确定该节点至至少一个节点中的另一个节点之间的路由路径。在该实施例中,第一最长前缀匹配模块根据上述节点A的转发信息库,通过最长前缀匹配方式确定节点A至另一节点B之间的路由路径,例如,该路由路径为A→router2→router3→router5→B。同样地,第一FIB获取模块和第一最长前缀匹配模块还可以联合地确定通信节点A、B、C之间的存在的其他的路由路径B→A、A→C、C→A、C→B、B→C。In this embodiment, the first FIB acquiring module is configured to acquire, from the vertical server, a forwarding information base of at least one node specified by the node specifying information according to the node specifying information. For example, the node specifying information specifies nodes A, B, and C, and the first FIB acquiring module acquires the forwarding information base of node A from the vertical server 12 according to the node specifying information. The first longest prefix matching module is configured to determine a routing path between the node and another node in the at least one node by means of longest prefix matching according to the forwarding information base of the node. In this embodiment, the first longest prefix matching module determines the routing path between node A and another node B through the longest prefix matching method according to the forwarding information base of node A, for example, the routing path is A → router2→router3→router5→B. Similarly, the first FIB acquisition module and the first longest prefix matching module can also jointly determine other routing paths B→A, A→C, C→A, C that exist between communication nodes A, B, and C →B, B→C.
图6示出了根据本发明的另一实施例的在通信网络中用于确定节点间路由路径的第二确定装置的结构示意图。如图所示,第二确定装置200包括:第二指定信息接收模块201,第二拓扑信息获取模块202,第二路由路径确定模块203,第二路由路径信息发送模块204。Fig. 6 shows a schematic structural diagram of a second determining device for determining inter-node routing paths in a communication network according to another embodiment of the present invention. As shown in the figure, the second determining device 200 includes: a second specified information receiving module 201 , a second topology information acquiring module 202 , a second routing path determining module 203 , and a second routing path information sending module 204 .
第二确定装置200通常可以设置于一个垂直服务器12中,其中,第二指定信息接收模块201,用于接收来自客户端20的节点指定信息,该节点指定信息用于指定至少一个节点,例如,节点A、B、C。第二拓扑信息获取模块202,用于基于上述的节点指定信息,从本垂直服务器12中存储的通信网络的拓扑信息中获取节点指定信息所指定的至少一个节点中的一个节点,例如节点A的拓扑信息。第二路由路径确定模块203,用于根据该节点A的拓扑信息,确定该节点至至少一个节点中的另一个节点,例如节点B之间的路由路径。优选地,第二路由路径确定模块203确定上述节点A、B、C中所有的两两节点之间的路由路径,例如:A→B、B→A、A→C、C→A、C→B以及B→C。第二路由路径信息发送模块204,用于将至少一个节点之间的路由路径发送至客户端20。其中的路由路径信息包括以下各项中的任一项或任多项:A→B、B→A、A→C、C→A、C→B、B→C。优选地,该路由路径信息包括上述的至少一个节点之间的全部路由路径,即A→B、B→A、A→C、C→A、C→B以及B→C。The second determining means 200 can generally be set in a vertical server 12, wherein the second designation information receiving module 201 is configured to receive node designation information from the client 20, the node designation information is used to designate at least one node, for example, Nodes A, B, C. The second topology information obtaining module 202 is configured to obtain one of at least one node specified by the node specification information from the topology information of the communication network stored in the vertical server 12 based on the above node specification information, such as node A topology information. The second routing path determining module 203 is configured to determine a routing path between the node A and another node in at least one node, such as node B, according to the topology information of the node A. Preferably, the second routing path determination module 203 determines the routing paths between all the nodes A, B, and C, for example: A→B, B→A, A→C, C→A, C→ B and B→C. The second routing path information sending module 204 is configured to send the routing path between at least one node to the client 20 . The routing path information includes any one or multiple of the following items: A→B, B→A, A→C, C→A, C→B, B→C. Preferably, the routing path information includes all routing paths between the above at least one node, namely A→B, B→A, A→C, C→A, C→B and B→C.
在本发明的另一实施例中,拓扑信息包括转发信息库,相应地,其中的第二拓扑信息获取模块102具体包括一个第二FIB获取模块(图中未示出),第二路由路径确定模块103具体包括一个第二最长前缀匹配模块(图中未示出)。In another embodiment of the present invention, the topology information includes a forwarding information base. Correspondingly, the second topology information acquisition module 102 specifically includes a second FIB acquisition module (not shown in the figure), and the second routing path determination Module 103 specifically includes a second longest prefix matching module (not shown in the figure).
在该实施例中,第二FIB获取模块,用于根据节点指定信息,从本垂直服务器中存储的通信网络的转发信息库中获取该节点指定信息所指定的至少一个节点中的一个节点的转发信息库。例如,节点指定信息指定了节点A、B、C,第二FIB获取模块根据该节点指定信息,从该第二FIB获取模块所在的垂直服务器12中获取节点A的转发信息库。第二最长前缀匹配模块,用于根据节点的转发信息库,通过最长前缀匹配方式确定该节点至至少一个节点中的另一个节点之间的路由路径。在该实施例中,第二最长前缀匹配模块根据上述节点A的转发信息库,通过最长前缀匹配方式确定节点A至另一节点B之间的路由路径,例如,该路由路径为A→router2→router3→router5→B。同样地,第二FIB获取模块和第二最长前缀匹配模块还可以联合地确定通信节点A、B、C之间的存在的其他的路由路径B→A、A→C、C→A、C→B、B→C。In this embodiment, the second FIB obtaining module is configured to obtain the forwarding information of one of the at least one node specified by the node specifying information from the forwarding information database of the communication network stored in the vertical server according to the node specifying information. database. For example, the node specifying information specifies nodes A, B, and C, and the second FIB acquiring module acquires the forwarding information base of node A from the vertical server 12 where the second FIB acquiring module is located according to the node specifying information. The second longest prefix matching module is configured to determine a routing path between the node and another node of the at least one node through the longest prefix matching method according to the forwarding information base of the node. In this embodiment, the second longest prefix matching module determines the routing path between node A and another node B through the longest prefix matching method according to the forwarding information base of node A, for example, the routing path is A → router2→router3→router5→B. Similarly, the second FIB acquisition module and the second longest prefix matching module can also jointly determine other routing paths B→A, A→C, C→A, C that exist between communication nodes A, B, and C →B, B→C.
本领域技术人员应能理解,本发明中所称的各装置既可以由硬件模块实现,也可以由软件中的功能模块实现,还可以由集成了软件功能模块的硬件模块实现。Those skilled in the art should understand that each device mentioned in the present invention can be implemented by hardware modules, functional modules in software, or hardware modules integrated with software functional modules.
本领域技术人员应能理解,上述实施例均是示例性而非限制性的。在不同实施例中出现的不同技术特征可以进行组合,以取得有益效果。本领域技术人员在研究附图、说明书及权利要求书的基础上,应能理解并实现所揭示的实施例的其他变化的实施例。在权利要求书中,术语“包括”并不排除其他装置或步骤;不定冠词“一个”不排除多个;术语“第一”、“第二”用于标示名称而非用于表示任何特定的顺序。权利要求中的任何附图标记均不应被理解为对保护范围的限制。权利要求中出现的多个部分的功能可以由一个单独的硬件或软件模块来实现。某些技术特征出现在不同的从属权利要求中并不意味着不能将这些技术特征进行组合以取得有益效果。Those skilled in the art should understand that the above-mentioned embodiments are illustrative rather than restrictive. Different technical features in different embodiments can be combined to achieve beneficial effects. Those skilled in the art should be able to understand and implement other modified embodiments of the disclosed embodiments on the basis of studying the drawings, specification and claims. In the claims, the term "comprising" does not exclude other means or steps; the indefinite article "a" does not exclude a plurality; the terms "first" and "second" are used to indicate names rather than to indicate any specific Order. Any reference signs in the claims should not be construed as limiting the scope. The functions of several parts appearing in the claims can be realized by a single hardware or software module. The appearance of certain technical features in different dependent claims does not mean that these technical features cannot be combined to obtain beneficial effects.
Claims (15)
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010216459.7A CN102316004B (en) | 2010-06-29 | 2010-06-29 | Method and device for determining routing information between nodes in communication network |
| PCT/IB2011/001720 WO2012001511A1 (en) | 2010-06-29 | 2011-06-15 | A method for determining the routing information among nodes in a communication network and a device thereof |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201010216459.7A CN102316004B (en) | 2010-06-29 | 2010-06-29 | Method and device for determining routing information between nodes in communication network |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN102316004A CN102316004A (en) | 2012-01-11 |
| CN102316004B true CN102316004B (en) | 2015-04-29 |
Family
ID=44720915
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201010216459.7A Active CN102316004B (en) | 2010-06-29 | 2010-06-29 | Method and device for determining routing information between nodes in communication network |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN102316004B (en) |
| WO (1) | WO2012001511A1 (en) |
Families Citing this family (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP2680512B1 (en) * | 2012-06-25 | 2019-07-24 | Alcatel Lucent | Network entity of a communication network |
| CN109218363B (en) * | 2017-07-03 | 2021-06-08 | 中国移动通信有限公司研究院 | Content distribution method, network node and storage medium |
| CN109088765B (en) * | 2018-08-15 | 2021-10-29 | 无锡江南计算技术研究所 | Interconnection network routing fault diagnosis method and device |
| CN114513416A (en) * | 2020-10-28 | 2022-05-17 | 华为技术有限公司 | Method, network node and system for determining path |
| CN115225721A (en) * | 2021-03-29 | 2022-10-21 | 华为技术有限公司 | Method, device, system and storage medium for subscribing path |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1529454A (en) * | 2003-09-26 | 2004-09-15 | 清华大学 | Parallel route lookup method and system for eliminating longest prefix match lookup |
| CN1561050A (en) * | 2004-02-20 | 2005-01-05 | The method of sending the hardware LPM table of the three-layer forwarding information | |
| EP2063585A1 (en) * | 2007-11-22 | 2009-05-27 | Alcatel Lucent | Method and apparatus for computing a path in a network |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR101309544B1 (en) * | 2005-07-20 | 2013-09-24 | 파이어타이드, 인코포레이티드 | Route optimization for on-demand routing protocols for mesh networks |
| CN101304384B (en) * | 2008-06-06 | 2011-02-16 | 南京邮电大学 | Safety routing method for amalgamation network of honeycomb network and self-organization network with enhanced security |
| US7929557B2 (en) * | 2008-11-14 | 2011-04-19 | Juniper Networks, Inc. | Summarization and longest-prefix match within MPLS networks |
-
2010
- 2010-06-29 CN CN201010216459.7A patent/CN102316004B/en active Active
-
2011
- 2011-06-15 WO PCT/IB2011/001720 patent/WO2012001511A1/en active Application Filing
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1529454A (en) * | 2003-09-26 | 2004-09-15 | 清华大学 | Parallel route lookup method and system for eliminating longest prefix match lookup |
| CN1561050A (en) * | 2004-02-20 | 2005-01-05 | The method of sending the hardware LPM table of the three-layer forwarding information | |
| EP2063585A1 (en) * | 2007-11-22 | 2009-05-27 | Alcatel Lucent | Method and apparatus for computing a path in a network |
Non-Patent Citations (2)
| Title |
|---|
| 《Network topologies: inference, modeling, and generation》;Hamed Haddadi and Miguel Rio, Gianluca Iannaccone, Andrew Moore;《IEEE Communications Surveys,www.comsoc.org/pubs/surveys》;20080401;第10卷(第2期);全文 * |
| 《RFC 3222,Terminology for Forwarding Information Base (FIB) based Router Performance》;G.Trotter;《IETF,http://tools.ietf.org/html/rfc3222》;20011231;全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| WO2012001511A1 (en) | 2012-01-05 |
| CN102316004A (en) | 2012-01-11 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10565001B2 (en) | Distributed virtual network controller | |
| CN101247321B (en) | Method, device and system for routing diagnosis in network based on diameter protocol | |
| US7639625B2 (en) | Tracing connection paths through transparent proxies | |
| EP3764594B1 (en) | Network device management method, apparatus and system | |
| CN106992891B (en) | A method and system for detecting abnormality in routing configuration of OSPF network | |
| US7821966B2 (en) | Method and apparatus for network topology discovery using closure approach | |
| US20100042837A1 (en) | Method and device for service tracking | |
| WO2013184846A1 (en) | Physical path determination for virtual network packet flows | |
| US8971195B2 (en) | Querying health of full-meshed forwarding planes | |
| JPWO2012081549A1 (en) | Computer system, controller, controller manager, communication path analysis method | |
| CN102316004B (en) | Method and device for determining routing information between nodes in communication network | |
| EP3188408B1 (en) | Method and apparatus for determining network topology, and centralized network state information storage device | |
| CN103051477A (en) | Network topology automatic acquisition method and system, and network management system | |
| WO2022257854A1 (en) | Message publishing method and apparatus, and forwarding path processing method and apparatus | |
| Femminella et al. | Gossip-based signaling dissemination extension for next steps in signaling | |
| US11799779B1 (en) | Session-based packet capture | |
| CN110380966B (en) | Method for discovering forwarding path and related equipment thereof | |
| CN105227334B (en) | A kind of Fabric method for discovering network topology and device | |
| WO2015070763A1 (en) | Self-establishing method and apparatus for x2 interface | |
| CN106452963A (en) | Network path sensing method and system | |
| Matties | Distributed responder ARP: Using SDN to re-engineer ARP from within the network | |
| CN100502352C (en) | Method and device for preventing users from obtaining operator network information | |
| CN105765903B (en) | A kind of topology discovery method and equipment | |
| CN103503383B (en) | Communication system, router, switching hub and communication method | |
| US20250150376A1 (en) | Path tracing applied to internet protocol version 6 (ipv6) fabrics |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CP01 | Change in the name or title of a patent holder |
Address after: 201206 Pudong Jinqiao Ning Road, Shanghai, No. 388 Patentee after: Shanghai NOKIA Baer Limited by Share Ltd Address before: 201206 Pudong Jinqiao Ning Road, Shanghai, No. 388 Patentee before: Shanghai Alcatel-Lucent Co., Ltd. |
|
| CP01 | Change in the name or title of a patent holder |