CN116389350A - Route detection method and device for data center network - Google Patents

Route detection method and device for data center network Download PDF

Info

Publication number
CN116389350A
CN116389350A CN202211578696.7A CN202211578696A CN116389350A CN 116389350 A CN116389350 A CN 116389350A CN 202211578696 A CN202211578696 A CN 202211578696A CN 116389350 A CN116389350 A CN 116389350A
Authority
CN
China
Prior art keywords
routing device
data center
routing
center network
internet protocol
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.)
Pending
Application number
CN202211578696.7A
Other languages
Chinese (zh)
Inventor
王家富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jingdong Technology Information Technology Co Ltd
Original Assignee
Jingdong Technology Information Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Jingdong Technology Information Technology Co Ltd filed Critical Jingdong Technology Information Technology Co Ltd
Priority to CN202211578696.7A priority Critical patent/CN116389350A/en
Publication of CN116389350A publication Critical patent/CN116389350A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/72Routing based on the source address

Abstract

The application discloses a route detection method and device of a data center network, and relates to the technical fields of cloud computing, big data, intelligent supply chains and the like. One embodiment of the method comprises the following steps: determining a destination internet protocol address in a route related to each routing device in the data center network according to the equivalent multi-path routing information in the data center network; for each routing device in the data center network, taking the Internet protocol address of the routing device as the source Internet protocol address of the detection message, taking the destination Internet protocol address corresponding to the routing device as the destination Internet protocol address of the detection message, and sending the detection message to the next-hop routing device of the routing device; and determining a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device. The method and the device improve the comprehensiveness and accuracy of the obtained route detection result.

Description

Route detection method and device for data center network
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to the technical fields of cloud computing, big data, intelligent supply chains and the like, and particularly relates to a route detection method and device of a data center network.
Background
In a data center network, a plurality of redundant links are accessed between network devices to provide load balancing of traffic, and when some links fail, other links can automatically replace the links to complete traffic forwarding. In large data center networks, the number of devices is large and the scale is also increasing. In daily management operation and maintenance, it is required to discover network anomalies early and to perform network loss prevention in time, so that periodic detection of network connectivity is required every day. Currently, a common probing method is to initiate probing between servers in a data center, and ping or TCP (Transmission Control Protocol ) messages may be used. However, this method cannot guarantee that the detected traffic can cover all ECMP (Equal Cost Multi Path, equal cost multi-path routing) links, and when an ECMP link is abnormal, it is very likely that the detected traffic cannot be detected in time.
Disclosure of Invention
The embodiment of the application provides a route detection method and device of a data center network, a computer readable medium and electronic equipment.
In a first aspect, an embodiment of the present application provides a route detection method of a data center network, including: determining a destination internet protocol address in a route related to each routing device in the data center network according to the equivalent multi-path routing information in the data center network; for each routing device in the data center network, taking the Internet protocol address of the routing device as the source Internet protocol address of the detection message, taking the destination Internet protocol address corresponding to the routing device as the destination Internet protocol address of the detection message, and sending the detection message to the next-hop routing device of the routing device; and determining a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
In some examples, for each routing device in the data center network, the sending the probe packet to the next hop routing device of the routing device with the internet protocol address of the routing device as the source internet protocol address of the probe packet and the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe packet includes: for each routing device in the data center network, taking the internet protocol address of the routing device as the source internet protocol address of the probe message, taking the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe message, taking the port number in the preset port number set as the source port number and the destination port number of the probe message, and sending the probe message to the next hop routing device of the routing device.
In some examples, the time-to-live field value of the probe message sent by each routing device in the data center network is 1; the method further comprises the following steps: for each routing device in the data center network, responding to the next hop routing device of the routing device, receiving a detection message sent by the routing device, adjusting a survival time field value in the received detection message to 0, and discarding the detection message; and sending the timeout message to the routing equipment through the next-hop routing equipment of the routing equipment.
In some examples, the determining the route detection result according to whether each routing device in the data center network receives the timeout message returned by the next hop routing device of the routing device includes: and determining a route detection result which represents that the routes in the data center network are normal in response to determining that each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
In some examples, the determining the route detection result according to whether each routing device in the data center network receives the timeout message returned by the next hop routing device of the routing device includes: and determining a route detection result representing a fault route between the routing equipment and the next-hop routing equipment of the routing equipment in the data center network in response to determining that the routing equipment does not receive the timeout message returned by the next-hop routing equipment of the routing equipment in the data center network.
In some examples, the above method further comprises: and responding to the determined route detection result to represent the fault route in the data center network, and sending fault information representing the fault route to a monitoring platform.
In some examples, the sending the probe packet to the next hop routing device of the routing device includes: and in response to determining that the detection message is sent to the next-hop routing equipment of the routing equipment for a preset time from the routing equipment last time, sending the detection message to the next-hop routing equipment of the routing equipment again.
In a second aspect, an embodiment of the present application provides a route detection device of a data center network, including: a first determining unit configured to determine a destination internet protocol address in a route to which each routing device in the data center network relates, based on the equal cost multi-path route information in the data center network; the first sending unit is configured to send the detection message to the next hop routing equipment of the routing equipment by taking the internet protocol address of the routing equipment as the source internet protocol address of the detection message and taking the destination internet protocol address corresponding to the routing equipment as the destination internet protocol address of the detection message for each routing equipment in the data center network; and the second determining unit is configured to determine a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
In some examples, the first transmitting unit is further configured to: for each routing device in the data center network, taking the internet protocol address of the routing device as the source internet protocol address of the probe message, taking the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe message, taking the port number in the preset port number set as the source port number and the destination port number of the probe message, and sending the probe message to the next hop routing device of the routing device.
In some examples, the time-to-live field value of the probe message sent by each routing device in the data center network is 1; the above apparatus further comprises: a second transmission unit configured to: for each routing device in the data center network, responding to the next hop routing device of the routing device, receiving a detection message sent by the routing device, adjusting a survival time field value in the received detection message to 0, and discarding the detection message; and sending the timeout message to the routing equipment through the next-hop routing equipment of the routing equipment.
In some examples, the second determining unit is further configured to: and determining a route detection result which represents that the routes in the data center network are normal in response to determining that each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
In some examples, the second determining unit is further configured to: and determining a route detection result representing a fault route between the routing equipment and the next-hop routing equipment of the routing equipment in the data center network in response to determining that the routing equipment does not receive the timeout message returned by the next-hop routing equipment of the routing equipment in the data center network.
In some examples, the apparatus further comprises: and a third sending unit configured to send fault information representing the fault route to the monitoring platform in response to determining that the fault route is represented in the data center network by the route detection result.
In some examples, the first transmitting unit is further configured to: and in response to determining that the detection message is sent to the next-hop routing equipment of the routing equipment for a preset time from the routing equipment last time, sending the detection message to the next-hop routing equipment of the routing equipment again.
In a third aspect, embodiments of the present application provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements a method as described in any of the implementations of the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method as described in any of the implementations of the first aspect.
According to the route detection method and device for the data center network, the destination Internet protocol address in the route related to each routing device in the data center network is determined according to the equivalent multipath route information in the data center network; for each routing device in the data center network, taking the Internet protocol address of the routing device as the source Internet protocol address of the detection message, taking the destination Internet protocol address corresponding to the routing device as the destination Internet protocol address of the detection message, and sending the detection message to the next-hop routing device of the routing device; and determining a route detection result according to whether each routing device in the data center network receives the overtime message returned by the next-hop routing device of the routing device or not, so that the detection flow based on the detection message can cover all links of the equal-cost multipath route, and the comprehensiveness and accuracy of the obtained route detection result are improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 is an exemplary system architecture diagram in which an embodiment of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a route probing method of a data center network according to the present application;
FIG. 3 is a network architecture schematic of a data center network according to the present application;
FIG. 4 is a schematic diagram of equal cost multi-path routing according to the present application;
FIG. 5 is a schematic diagram of a topology of a data center network according to the present application;
FIG. 6 is a schematic diagram of messaging in equal cost multi-path routing in a data center network according to the present application;
fig. 7 is a schematic diagram of an application scenario of a route probing method of a data center network according to the present embodiment;
FIG. 8 is a flow chart of yet another embodiment of a route probing method of a data center network according to the present application;
FIG. 9 is a block diagram of one embodiment of a route detection device of a data center network according to the present application;
FIG. 10 is a schematic diagram of a computer system suitable for use in implementing embodiments of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary architecture 100 to which the route probing methods and apparatus of the data center networks of the present application may be applied.
As shown in fig. 1, a system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The communication connection between the terminal devices 101, 102, 103 constitutes a topology network, the network 104 being the medium for providing the communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with a data center deployed in a server 105 through a network 104 using terminal devices 101, 102, 103 to receive or send messages, etc. The terminal devices 101, 102, 103 may be hardware devices or software supporting network connections for data interaction and data processing. When the terminal device 101, 102, 103 is hardware, it may be various electronic devices supporting network connection, information acquisition, interaction, display, processing, etc., including but not limited to smartphones, tablet computers, electronic book readers, laptop and desktop computers, etc. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein.
The server 105 may be a server providing various services, for example, a background processing server that detects whether or not an equal cost multi-path route of the data center network is normal in response to receiving a route detection request issued by the terminal devices 101, 102, 103. As an example, the server 105 may be a cloud server.
The server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., software or software modules for providing distributed services), or as a single software or software module. The present invention is not particularly limited herein.
It should be further noted that, the route detection method of the data center network provided by the embodiment of the present application may be executed by a server, may be executed by a terminal device, or may be executed by the server and the terminal device in cooperation with each other. Accordingly, each part (for example, each unit) included in the route detection device of the data center network may be all disposed in the server, may be all disposed in the terminal device, or may be disposed in the server and the terminal device respectively.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. When the electronic device on which the route detection method of the data center network operates does not need to perform data transmission with other electronic devices, the system architecture may include only the electronic device (e.g., a server or a terminal device) on which the route detection method of the data center network operates.
With continued reference to fig. 2, a flow 200 of one embodiment of a route probing method for a data center network is shown, comprising the steps of:
step 201, determining a destination internet protocol address in a route related to each routing device in the data center network according to the equal cost multi-path routing information in the data center network.
In this embodiment, the execution body of the route probing method of the data center network (for example, the terminal device or the server in fig. 1) may determine, according to the equivalent multipath route information in the data center network, the destination internet protocol address in the route related to each routing device in the data center network.
In a data center network, multiple redundant links are connected between network devices to provide load balancing of traffic, and when some links fail, other links can automatically replace the failed links to complete traffic forwarding.
With continued reference to fig. 3, a network architecture schematic of a data center network 300 is shown. The switch devices in the data center network use ECMP (Equal Cost Multi Path, equal cost multi-path routing, also called load balancing routing) routing technology, i.e., there may be multiple different links on the switch devices that can reach the same destination address. These equivalent links can be simultaneously effective, which not only increases the transmission bandwidth of the data center network, but also can backup the data transmission of the failed link without delay and packet loss.
With continued reference to fig. 4, a schematic diagram of an equal cost multi-path route 400 is shown. A plurality of load balancing links 405, 406, 407, and 408 are included between switches 403, 404 providing communication links for server 401 and server 402. When the IP address of an entry is 2.2.2.2 (server 402 address) of the traffic arrives at the switch 403, the switch 403 looks up the routing table according to the destination address, and the queried equal-cost multi-path routes have 4 link outlets corresponding to 405, 406, 407 and 408 in turn, and finally selects which outlet is determined by the flow-based hash operation of the equal-cost multi-path routing technique. The switch 403 may calculate the egress link by selecting some fields in the message as inputs to the hash algorithm, including the five-tuple of the message, the destination MAC (Media Access Control Address ) address, the source MAC address, the VLAN ID (Virtual Local Area Network Identity document, virtual local area network identification number), etc., or any combination of the above fields. The five-tuple of the message includes a destination IP (Internet Protocol ) address, a source IP address, an IP protocol number, a destination port number, and a source port number. The same flow (flow with the same field value) will be shared on the same link.
In this embodiment, the data center network is configured based on the equal cost multipath routing technique. The data center network includes a plurality of routing devices (e.g., switches), and the execution body determines a destination internet protocol address in a route related to the routing device for the routing device. It will be appreciated that the destination internet protocol address of the routing device in the equivalent multipath route is the same. With continued reference to fig. 4, the destination internet protocol addresses of the routing devices on the load balancing links 405, 406, 407, and 408 are the same, all being the internet protocol address of the server 402.
Step 202, for each routing device in the data center network, taking the internet protocol address of the routing device as the source internet protocol address of the probe message, taking the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe message, and sending the probe message to the next hop routing device of the routing device.
In this embodiment, for each routing device in the data center network, the executing body may send the probe packet to the next hop routing device of the routing device by using the ip address of the routing device as the source ip address of the probe packet and using the destination ip address corresponding to the routing device as the destination ip address of the probe packet.
In this embodiment, the probe packet may be a UDP (User Datagram Protocol ) packet. For each routing device in the data center network, the source internet protocol address of the probe message to be sent by the routing device is the internet protocol address of the routing device, and the destination internet protocol address is the destination internet protocol address of the link of the equal cost multi-path route matched by the routing device.
With continued reference to fig. 5, a schematic diagram of a topology of a data center network 500 is shown. An equal cost multi-path route exists between routing devices 503 and 504 between servers 501 and 502. The equal cost multipath route includes routing devices 505-512 thereon. Each routing device has an ECMP path and therefore if each link of the ECMP is to be probed, all routing devices are required to initiate probing. For routing devices 503, 505, 506, 507, and 508, the internet protocol address 2.2.2.2 of server 502 may be used as the destination internet protocol address for the probe message; whereas for routing devices 504, 509, 510, 511 and 512 the internet protocol address 1.1.1.1 of server 501 may be used as the destination internet protocol address for the probe message. After the detection flow is confirmed, each routing device in the data center network can send out a detection message, and the detection flow of each outlet covering the ECMP route can be found out by continuously attempting to change the source port number and the destination port number of the detection message, so that the full coverage detection of the data center network is realized. As an example, assuming that the ECMP route has 8 links, only the corresponding 8 probe messages need to be sent periodically in the following.
The detection flow based on the detection message and the number of links in the whole data center network are of a level, and compared with the bandwidths of the network equipment ports 25G, 100G and 400G in the existing data center, the flows are completely negligible, so that a large amount of extra load is not brought to the network, and the forwarding of normal service flow is not influenced.
In some optional implementations of this embodiment, the executing body may execute the step 202 as follows: for each routing device in the data center network, taking the internet protocol address of the routing device as the source internet protocol address of the probe message, taking the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe message, taking the port number in the preset port number set as the source port number and the destination port number of the probe message, and sending the probe message to the next hop routing device of the routing device.
The port numbers in the preset port number set are generally larger and cannot be used by the application programs corresponding to the data center network. As an example, the preset port number set is [49152, 65535].
In the implementation manner, the port number which is not used by the application program corresponding to the data center network is selected from the preset port number set to serve as the source port number and the destination port number of the detection message, and on the basis that the detection flow can cover each link of the equal-cost multipath route, the influence of the detection process on the application program is avoided, and the suitability of the detection process and the data center network is improved.
Step 203, determining a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
In this embodiment, the executing body may determine the route detection result according to whether each routing device in the data center network receives the timeout message returned by the next-hop routing device of the routing device.
For each routing device in the data center network, when the link between the routing device and the next-hop routing device is normal, the next-hop routing device of the routing device receives the detection message of the routing device and sends a timeout message to the routing device as a response. When the initiating terminal of the detection message receives the timeout message, the timeout message is analyzed, a forwarding path of the detection flow of the detection message can be obtained, and the path between the routing equipment and the next-hop routing equipment is proved to be normal; otherwise, the path is proved to be abnormal, so that a route detection result is obtained.
Among them, the timeout message may be an ICMP (Internet Control Message Protocol ) timeout message, that is, ICMP timeout notification (ICMP Time Exceeded Message).
In some optional implementations of this embodiment, the executing body may execute the step 203 as follows: and determining a route detection result which represents that the routes in the data center network are normal in response to determining that each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
In the implementation manner, when the routing equipment sending the detection message receives the overtime message returned by the next-hop routing equipment, the routing equipment indicates that the routing in the whole data center network is normal, and the routing detection result indicating that the routing in the data center network is normal is obtained, so that the accuracy of the routing detection result is improved.
In some optional implementations of this embodiment, the executing body may execute the step 203 as follows: in response to determining that there is a timeout message in the data center network that the routing device did not receive the return of the next-hop routing device of the routing device, determining a route probing result that characterizes a failure route between the routing device and the next-hop routing device of the routing device in the data center network
In the implementation manner, when the timeout message returned by the next-hop routing equipment is not received in the routing equipment sending the detection message, the abnormal routing between the routing equipment and the next-hop routing equipment is indicated, the routing detection result of the fault routing between the routing equipment and the next-hop routing equipment in the data center network is represented, and the accuracy of the routing detection result is improved.
In some optional implementations of this embodiment, a Time-To-Live (TTL) field value of the probe packet sent by each routing device in the data center network is 1, that is, a TTL (Time To Live) field value of the probe packet is 1.
In this implementation manner, the execution body may further execute the following operations: for each routing device in the data center network, responding to the next hop routing device of the routing device, receiving a detection message sent by the routing device, adjusting a survival time field value in the received detection message to 0, and discarding the detection message; and sending the timeout message to the routing equipment through the next-hop routing equipment of the routing equipment.
With continued reference to fig. 6, a messaging diagram 600 in equal cost multi-path routing in a data center network is shown. The equal cost multipath routes include routing devices 601, 602, 603, 604, and 605. For routing device 601, routing devices 602, 603, 604, and 605 are their next hop routing devices. The routing device 601 sends probe packets with TTL values of 1 to the routing devices 602, 603, 604 and 605, respectively, after the routing devices 602, 603 and 604 receive the corresponding probe packets, the TTL values of the probe packets are reduced by 1 to be 0, the packets are discarded, and meanwhile, the routing devices 602, 603 and 604 return an ICMP timeout notification (timeout packet) to the source address (i.e. the address of the routing device 602), which indicates that the link between the routing device 601 and the routing devices 602, 603 and 604 is normal. And the routing device 605 does not return a timeout message or does not receive a probe message from the routing device 601, indicating that the link between the routing device 601 and the routing device 605 is abnormal.
In some optional implementations of this embodiment, the foregoing execution body may further perform the following operations: and responding to the determined route detection result to represent the fault route in the data center network, and sending fault information representing the fault route to a monitoring platform.
In the implementation manner, by sending the fault information to the monitoring platform, related personnel (such as operation and maintenance personnel) can quickly find out the faults of the data center network so as to process the faults in time, and the timeliness of fault processing is improved.
In some optional implementations of this embodiment, the executing body may send the probe packet to the next hop routing device of the routing device by executing the following operations: and in response to determining that the detection message is sent to the next-hop routing equipment of the routing equipment for a preset time from the routing equipment last time, sending the detection message to the next-hop routing equipment of the routing equipment again.
In this implementation manner, the preset duration may be specifically set according to actual situations, which is not limited herein. Based on the preset time length, the execution main body can periodically perform route detection, so that the flexibility of the detection process is improved.
With continued reference to fig. 7, fig. 7 is a schematic diagram 700 of an application scenario of the route probing method of the data center network according to the present embodiment. In the application scenario of fig. 7, the data center network 701 is constructed based on equal cost multi-path routing techniques, including a large number of routing devices. The server first determines a destination internet protocol address in a route related to each routing device in the data center network according to the equal cost multi-path routing information in the data center network 701; then, for each routing device 702 in the data center network, the internet protocol address of the routing device is used as the source internet protocol address of the probe message, and the destination internet protocol address corresponding to the routing device is used as the destination internet protocol address of the probe message, and the probe message is sent to the next hop routing device of the routing device; finally, a route probing result 704 is determined according to whether each routing device in the data center network receives a timeout message returned by the next hop routing device 703 of the routing device.
The method provided by the above embodiment of the present application determines, according to the equal-cost multi-path routing information in the data center network, a destination internet protocol address in a route related to each routing device in the data center network; for each routing device in the data center network, taking the Internet protocol address of the routing device as the source Internet protocol address of the detection message, taking the destination Internet protocol address corresponding to the routing device as the destination Internet protocol address of the detection message, and sending the detection message to the next-hop routing device of the routing device; and determining a route detection result according to whether each routing device in the data center network receives the overtime message returned by the next-hop routing device of the routing device or not, so that the detection flow based on the detection message can cover all links of the equal-cost multipath route, and the comprehensiveness and accuracy of the obtained route detection result are improved.
With continued reference to FIG. 8, there is shown a schematic flow 800 of one embodiment of a method of development, publication of a remote plug-in according to the present application, including the steps of:
step 801, determining a destination internet protocol address in a route related to each routing device in the data center network according to the equal cost multi-path routing information in the data center network.
Step 802, for each routing device in the data center network, taking the internet protocol address of the routing device as the source internet protocol address of the probe message, taking the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe message, taking the port number in the preset port number set as the source port number and the destination port number of the probe message, responding to determining that the probe message is sent to the next hop routing device of the routing device for a preset time from the routing device, and sending the probe message to the next hop routing device of the routing device again.
The life time field value of the detection message sent by each routing device in the data center network is 1.
Step 803, for each routing device in the data center network, in response to determining the next hop routing device of the routing device, receiving a detection message sent by the routing device, adjusting a survival time field value in the received detection message to 0, and discarding the detection message; and sending the timeout message to the routing equipment through the next-hop routing equipment of the routing equipment.
Step 804, determining a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
In step 805, in response to determining that the route detection result indicates that a fault route exists in the data center network, fault information that indicates the fault route is sent to the monitoring platform.
As can be seen from this embodiment, compared with the embodiment corresponding to fig. 2, the flow 800 of the route detection method of the data center network in this embodiment specifically illustrates a route detection process based on the detection packet, and a process of sending fault information representing the fault route to the monitoring platform.
With continued reference to fig. 9, as an implementation of the method shown in the foregoing drawings, the present application provides an embodiment of a route detection device of a data center network, where the embodiment of the device corresponds to the embodiment of the method shown in fig. 2, and the device may be specifically applied to various electronic devices.
As shown in fig. 9, the route detection device of the data center network includes: a first determining unit 901 configured to determine a destination internet protocol address in a route involved in each routing device in the data center network according to the equal cost multi-path route information in the data center network; a first sending unit 902, configured to, for each routing device in the data center network, send a probe packet to a next hop routing device of the routing device, with an internet protocol address of the routing device as a source internet protocol address of the probe packet, and a destination internet protocol address corresponding to the routing device as a destination internet protocol address of the probe packet; the second determining unit 903 is configured to determine a route detection result according to whether each routing device in the data center network receives a timeout message returned by a next hop routing device of the routing device.
In some optional implementations of this embodiment, the first sending unit 902 is further configured to: for each routing device in the data center network, taking the internet protocol address of the routing device as the source internet protocol address of the probe message, taking the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe message, taking the port number in the preset port number set as the source port number and the destination port number of the probe message, and sending the probe message to the next hop routing device of the routing device.
In some examples, the time-to-live field value of the probe message sent by each routing device in the data center network is 1; the above apparatus further comprises: a second transmitting unit (not shown in the figure) configured to: for each routing device in the data center network, responding to the next hop routing device of the routing device, receiving a detection message sent by the routing device, adjusting a survival time field value in the received detection message to 0, and discarding the detection message; and sending the timeout message to the routing equipment through the next-hop routing equipment of the routing equipment.
In some examples, the second determining unit 903 is further configured to: and determining a route detection result which represents that the routes in the data center network are normal in response to determining that each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
In some examples, the second determining unit 903 is further configured to: and determining a route detection result representing a fault route between the routing equipment and the next-hop routing equipment of the routing equipment in the data center network in response to determining that the routing equipment does not receive the timeout message returned by the next-hop routing equipment of the routing equipment in the data center network.
In some examples, the apparatus further comprises: a third sending unit (not shown in the figure) is configured to send, in response to determining that the route detection result indicates that a fault route exists in the data center network, fault information indicating the fault route to the monitoring platform.
In some examples, the first transmitting unit 902 is further configured to: and in response to determining that the detection message is sent to the next-hop routing equipment of the routing equipment for a preset time from the routing equipment last time, sending the detection message to the next-hop routing equipment of the routing equipment again.
In this embodiment, a first determining unit in a route detection device of a data center network determines a destination internet protocol address in a route related to each routing device in the data center network according to the equal-cost multi-path route information in the data center network; the first sending unit sends a detection message to the next hop routing equipment of the routing equipment by taking the internet protocol address of the routing equipment as the source internet protocol address of the detection message and taking the destination internet protocol address corresponding to the routing equipment as the destination internet protocol address of the detection message for each routing equipment in the data center network; the second determining unit determines a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device, so that the detection flow based on the detection message can cover all links of the equal-cost multi-path route, and the comprehensiveness and accuracy of the obtained route detection result are improved.
Referring now to FIG. 10, there is illustrated a schematic diagram of a computer system 1000 suitable for use in implementing the apparatus of embodiments of the present application (e.g., apparatus 101, 102, 103, 105 illustrated in FIG. 1). The apparatus shown in fig. 10 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 10, the computer system 1000 includes a processor (e.g., CPU, central processing unit) 1001 which can execute various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 1002 or a program loaded from a storage section 1008 into a Random Access Memory (RAM) 1003. In the RAM1003, various programs and data required for the operation of the system 1000 are also stored. The processor 1001, the ROM1002, and the RAM1003 are connected to each other by a bus 1004. An input/output (I/O) interface 1005 is also connected to bus 1004.
The following components are connected to the I/O interface 1005: an input section 1006 including a keyboard, a mouse, and the like; an output portion 1007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), etc., and a speaker, etc.; a storage portion 1008 including a hard disk or the like; and a communication section 1009 including a network interface card such as a LAN card, a modem, or the like. The communication section 1009 performs communication processing via a network such as the internet. The drive 1010 is also connected to the I/O interface 1005 as needed. A removable medium 1011, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like, is installed as needed in the drive 1010, so that a computer program read out therefrom is installed as needed in the storage section 1008.
In particular, according to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1009, and/or installed from the removable medium 1011. The above-described functions defined in the method of the present application are performed when the computer program is executed by the processor 1001.
It should be noted that the computer readable medium of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the client computer, partly on the client computer, as a stand-alone software package, partly on the client computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the client computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes a first determination unit, a first transmission unit, and a second determination unit. The names of these units do not limit the unit itself in some cases, for example, the first sending unit may also be described as "for each routing device in the data center network, a unit that sends the probe packet to the next hop routing device of the routing device, with the internet protocol address of the routing device as the source internet protocol address of the probe packet, and the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe packet".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the computer device to: determining a destination internet protocol address in a route related to each routing device in the data center network according to the equivalent multi-path routing information in the data center network; for each routing device in the data center network, taking the Internet protocol address of the routing device as the source Internet protocol address of the detection message, taking the destination Internet protocol address corresponding to the routing device as the destination Internet protocol address of the detection message, and sending the detection message to the next-hop routing device of the routing device; and determining a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (10)

1. A route probing method for a data center network, comprising:
determining a destination internet protocol address in a route related to each routing device in a data center network according to the equivalent multi-path routing information in the data center network;
for each routing device in the data center network, taking the internet protocol address of the routing device as the source internet protocol address of the detection message, taking the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the detection message, and sending the detection message to the next-hop routing device of the routing device;
And determining a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
2. The method according to claim 1, wherein for each routing device in the data center network, the sending the probe packet to the next hop routing device of the routing device with the internet protocol address of the routing device as the source internet protocol address of the probe packet and the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe packet includes:
for each routing device in the data center network, taking the internet protocol address of the routing device as the source internet protocol address of the probe message, taking the destination internet protocol address corresponding to the routing device as the destination internet protocol address of the probe message, taking the port numbers in the preset port number set as the source port number and the destination port number of the probe message, and sending the probe message to the next hop routing device of the routing device.
3. The method of claim 1, wherein a time-to-live field value of a probe message sent by each routing device in the data center network is 1; and
Further comprises:
for each routing device in the data center network, responding to the determination of the next-hop routing device of the routing device, receiving a detection message sent by the routing device, adjusting the survival time field value in the received detection message to 0, and discarding the detection message;
and sending the timeout message to the routing equipment through the next-hop routing equipment of the routing equipment.
4. The method of claim 1, wherein the determining the route probing result according to whether each routing device in the data center network receives a timeout message returned by a next hop routing device of the routing device comprises:
and determining a route detection result which characterizes that the routes in the data center network are normal in response to determining that each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
5. The method of claim 1, wherein the determining the route probing result according to whether each routing device in the data center network receives a timeout message returned by a next hop routing device of the routing device comprises:
And determining a route detection result representing that a fault route exists between the routing equipment and the next-hop routing equipment of the routing equipment in the data center network in response to determining that the routing equipment does not receive a timeout message returned by the next-hop routing equipment of the routing equipment in the data center network.
6. The method of claim 5, further comprising:
and in response to determining that the route detection result represents that a fault route exists in the data center network, sending fault information representing the fault route to a monitoring platform.
7. The method according to claim 1 or 2, wherein said sending the probe message to the next hop routing device of the routing device comprises:
and in response to determining that the detection message is sent to the next-hop routing equipment of the routing equipment for a preset time from the routing equipment last time, sending the detection message to the next-hop routing equipment of the routing equipment again.
8. A route detection device of a data center network, comprising:
a first determining unit configured to determine a destination internet protocol address in a route to which each routing device in a data center network relates, based on equal cost multi-path route information in the data center network;
The first sending unit is configured to send the detection message to the next hop routing equipment of the routing equipment by taking the internet protocol address of the routing equipment as the source internet protocol address of the detection message and taking the destination internet protocol address corresponding to the routing equipment as the destination internet protocol address of the detection message for each routing equipment in the data center network;
and the second determining unit is configured to determine a route detection result according to whether each routing device in the data center network receives a timeout message returned by the next-hop routing device of the routing device.
9. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any of claims 1-7.
10. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, causes the one or more processors to implement the method of any of claims 1-7.
CN202211578696.7A 2022-12-05 2022-12-05 Route detection method and device for data center network Pending CN116389350A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211578696.7A CN116389350A (en) 2022-12-05 2022-12-05 Route detection method and device for data center network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211578696.7A CN116389350A (en) 2022-12-05 2022-12-05 Route detection method and device for data center network

Publications (1)

Publication Number Publication Date
CN116389350A true CN116389350A (en) 2023-07-04

Family

ID=86964358

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211578696.7A Pending CN116389350A (en) 2022-12-05 2022-12-05 Route detection method and device for data center network

Country Status (1)

Country Link
CN (1) CN116389350A (en)

Similar Documents

Publication Publication Date Title
US10044581B1 (en) Network traffic tracking using encapsulation protocol
US11082308B2 (en) Multi-path aware tracing and probing functionality at service topology layer
US11277341B2 (en) Resilient segment routing service hunting with TCP session stickiness
CN113315682A (en) Method, system and apparatus for generating information transmission performance warning
US8756339B2 (en) IP traffic redirection for purposes of lawful intercept
CN112788060B (en) Data packet transmission method and device, storage medium and electronic equipment
US10033602B1 (en) Network health management using metrics from encapsulation protocol endpoints
CN112039796B (en) Data packet transmission method and device, storage medium and electronic equipment
US10771363B2 (en) Devices for analyzing and mitigating dropped packets
US10044770B2 (en) Method and apparatus for managing a plurality of sessions in a multi-path routing based network
US11855876B2 (en) BMP route detection method and network device
CN112737871B (en) Link fault detection method and device, computer equipment and storage medium
EP3624401B1 (en) Systems and methods for non-intrusive network performance monitoring
US20200328957A1 (en) Network performance monitoring using an active measurement protocol and relay mechanism
CN111682989A (en) Method, device and system for detecting port link state
CN116112426A (en) Intelligent network card assembly, physical machine, cloud service system and message sending method
CN107332793B (en) Message forwarding method, related equipment and system
CN115277504B (en) Network traffic monitoring method, device and system
CN116389350A (en) Route detection method and device for data center network
CN117882340A (en) Coordinated reconnection for roll-unknown to clients of network nodes
CN113949651B (en) Network transmission method, device, equipment and storage medium
CN115225634B (en) Data forwarding method, device and computer program product under virtual network
CN115277506B (en) Load balancing equipment testing method and system
EP4221098A1 (en) Integrated broadband network gateway (bng) device for providing a bng control plane for one or more distributed bng user plane devices
US20070237084A1 (en) Data communication using multiple input/output devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination