WO2019233179A1 - 一种数据报文的检测方法、设备及系统 - Google Patents

一种数据报文的检测方法、设备及系统 Download PDF

Info

Publication number
WO2019233179A1
WO2019233179A1 PCT/CN2019/082358 CN2019082358W WO2019233179A1 WO 2019233179 A1 WO2019233179 A1 WO 2019233179A1 CN 2019082358 W CN2019082358 W CN 2019082358W WO 2019233179 A1 WO2019233179 A1 WO 2019233179A1
Authority
WO
WIPO (PCT)
Prior art keywords
detection
network device
information
data
detection information
Prior art date
Application number
PCT/CN2019/082358
Other languages
English (en)
French (fr)
Inventor
周天然
宋浩宇
李振斌
顾钰楠
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP19814653.2A priority Critical patent/EP3817298A4/en
Priority to JP2020567844A priority patent/JP7035227B2/ja
Priority to KR1020207037374A priority patent/KR102569305B1/ko
Publication of WO2019233179A1 publication Critical patent/WO2019233179A1/zh
Priority to US17/113,104 priority patent/US11228515B2/en
Priority to US17/535,560 priority patent/US20220086073A1/en
Priority to JP2022031907A priority patent/JP7375068B2/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0895Configuration of virtualised networks or elements, e.g. virtualised network function or OpenFlow elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/40Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks using virtualisation of network functions or resources, e.g. SDN or NFV entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • H04L43/028Capturing of monitoring data by filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • H04L43/065Generation of reports related to network devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/20Arrangements for monitoring or testing data switching networks the monitoring system or the monitored elements being virtualised, abstracted or software-defined entities, e.g. SDN or NFV
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/20Hop count for routing purposes, e.g. TTL
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralised routing

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method, a device, and a system for detecting data packets.
  • Operation, management and maintenance is a technology that provides transmission path status detection for the network.
  • the network devices that communicate with each other detect whether the path for transmitting data packets is in a normal state by using the sent OAM packets.
  • the first network device may construct an OAM detection message based on the OAM technology, and the first network device sends the OAM detection message to the second network device via a transmission path to be detected.
  • the second network device determines the state of the transmission path by analyzing the OAM detection message.
  • the transmission path of the traditional OAM detection packet cannot be guaranteed to be the same as the transmission path of the data stream.
  • the situation that the OAM detection packet is inconsistent with the data stream transmission path is more serious.
  • IP FPM Internet Protocol
  • IP FPM technology carries out the detection information carrying and transmission by coloring the data packets included in the data stream. Specifically, the first network device dyes a specific data bit included in the data message in the data stream, and then the first network device sends a data message with a dyed flag to the second network device. The second network device identifies and counts the received data packets with colored flags, thereby determining the performance of the transmission path.
  • IP FPM technology only provides coloring for data messages. Therefore, the IP FPM technology cannot realize the identification of the data transmission path, and the IP FPM technology can only realize the flow-by-flow detection and cannot the packet-by-packet detection.
  • embodiments of the present application provide a method, a device, and a system for detecting a data message.
  • detection information in a data message on a transmission path, information telemetry of the data message on the transmission path is achieved, thereby
  • information collection of data messages on the transmission path is realized.
  • a method for detecting a data message includes: a first network device receiving first control information sent by a controller, the first control information including a detection task type, and the detection task type Instruct the controller to perform a detection task requested by the first network device.
  • the first network device receives a first data packet sent by a network device of a previous hop of the first network device, the first data packet includes first detection information, and the first detection information includes a first A detection node identifier, a first serial number, and first collection information, wherein the first detection node identifier indicates a position of a network device that processes the first detection information in a detection domain, and the first sequence number indication includes The serial number of the first data message of the first detection information, the first collection information indicates the collection information corresponding to the detection task type, and the detection domain is a detection range determined by the controller.
  • the detection domain includes multiple network devices, and the multiple network devices include the first network device.
  • the first network device determines the first collection data corresponding to the first collection information according to the first collection information, and the first network device updates the first detection node identifier. Sending, by the first network device, the first data packet carrying the updated first detection information to a next-hop network device of the first network device.
  • each network device in the detection domain can use the detection information included in the data message to implement information collection for the detection task required by the controller according to the control information issued by the controller.
  • data packets on the transmission path can be collected along the path and the transmission path can be detected.
  • the first network device is a head node device of the detection domain, and the first network device receives a last-hop network device sent by the first network device. After the first data message, the method further includes that the first network device encapsulates the first detection information in the first data message.
  • the first network device is a tail node device of the detection domain, and the first network device sends a next-hop network device to the first network device. Before sending the first data message carrying the updated first detection information, the method further includes that the first network device deletes the first detection information in the first data message.
  • the method further includes that the first network device sends first report detection information to the controller, and the first report detection information includes the updated A first detection node identifier, the first serial number, and the first collected data.
  • the detection task type is packet loss detection
  • the first control information further includes a detection start time and a detection end time
  • the first network device is the detection The first node device of the domain
  • the first data message is the first data message sent by the first network device to the next-hop network device of the first network device from the detection start time
  • the first collected data includes a device identifier of the first network device
  • the method further includes the first network device receiving a second data packet sent by a network device of a previous hop of the first network device.
  • the first network device encapsulates second detection information in the second data message, and the second detection information includes a second detection node identifier, a second serial number, and second collection information.
  • Determining, by the first network device, second collection data corresponding to the second collection information according to the second collection information, and updating the second detection node identifier by the first network device, the second collection data includes The device identification of the first network device, the second serial number is greater than the first serial number, and the second detection node identification is the same as the first detection node identification.
  • the first reporting detection information includes the updated first detection node identifier, the first serial number And the first collected data
  • the second reported detection information includes the updated second detection node identifier, the second serial number, and the second collected data.
  • the detection task type is packet loss detection
  • the first control information further includes a detection start time and a detection end time
  • the first network device is the detection An intermediate node device or a tail node device of the domain
  • the first collected data includes a device identifier of the first network device
  • the method further includes increasing, by the first network device, a value of the detection end time by a predetermined duration And update the value of the detection end time.
  • the first network device Receiving, by the first network device, a second data packet sent by a previous-hop network device of the first network device within a time period between the detection start time and the updated detection end time, the The second data message includes second detection information, and the second detection information includes a second detection node identifier, a second serial number, and second collection information.
  • the second collection data includes A device identifier of the first network device, the second serial number is a maximum serial number among a serial number of multiple data packets received by the first network device within the time period, and the first The data message is a data message received by the first network device within the time period, and the first sequence number is the plurality of data received by the first network device within the time period The smallest sequence number in the sequence number of the message. Sending, by the first network device, the second data message carrying the updated second detection information to the next-hop network device of the first network device.
  • the first network device generates third reported detection information, where the third reported detection information includes a third detection node identifier, a third serial number, and third collected data, and the third detection node identifier and the updated first
  • the third collected data includes the device identifier of the first network device
  • the third serial number is the plurality of data received by the first network device within the time period The missing sequence number in the sequence number of the message, the third sequence number is greater than the first sequence number and less than the second sequence number.
  • first reporting detection information includes the updated first detection node The identifier, the first serial number, and the first collected data
  • second reported detection information includes the updated second detection node identifier, the second serial number, and the second collected data
  • a method for detecting a data packet includes: a controller determines a detection domain, where the detection domain is a detection range determined by the controller, and the detection domain includes multiple network devices. Then, the controller sends first control information to the plurality of network devices, the first control information includes a detection task type, and the detection task type instructs the controller to request detection performed by the plurality of network devices. task.
  • the controller receives the first report detection information sent by the first network device, where the first report detection information is determined by the first network device according to the first detection information, and the first detection information is all
  • the first network device obtains detection information obtained from the first data packet before sending the first data packet to the next-hop network device of the first network device, and the first report detection information includes the first A detection node identifier, a first serial number, and a first collection data, wherein the first detection node identifier indicates a position of a network device that processes the first detection information in the detection domain, and the first sequence number indicates A serial number of the first data message including the first detection information, and the first collected data is the first determined by the first network device according to the first collection information in the first detection information. Acquisition data corresponding to acquisition information, the first acquisition information indicating acquisition information corresponding to the detection task type, and the plurality of network devices including the first network device.
  • each network device in the detection domain can use the detection information included in the data message to implement information collection for the detection task required by the controller according to the control information issued by the controller.
  • data packets on the transmission path can be collected along the path and the transmission path can be detected.
  • the detection task type is packet loss detection
  • the first control information further includes a detection start time and a detection end time
  • the first network device is the detection domain.
  • the first data packet is the first data packet sent by the first network device to the next-hop network device of the first network device from the detection start time
  • the first collected data includes a device identifier of the first network device
  • the method further includes that the controller receives second report detection information sent by the first network device, and the second report detection information is the The first network device determines and obtains according to the second detection information, where the first detection information is sent from the first network device to the next-hop network device of the first network device from the first network device.
  • the second report detection information includes a second detection node identifier, a second serial number, and second collection data
  • the second collection data includes the A device identifier of a first network device
  • the second serial number is greater than the first serial number
  • the second detection node identifier is the same as the first detection node identifier
  • the second data packet is the first The last data message sent by a network device to the next-hop network device of the first network device before the detection end time.
  • the method further includes that the controller receives third report detection information sent by a second network device, and the third report detection information includes a third detection node identifier And third collection data, the third detection node identifier indicates the position of the second network device in the detection domain, the third collection data includes the device identification of the second network device, and the third report detection
  • the information further includes a third serial number, a fourth serial number, and a fifth serial number, wherein the third serial number is obtained by the second network device after the detection start time and the detection end time are increased by a predetermined time.
  • the fourth sequence number is the plurality of data received by the second network device within the time period
  • the fifth sequence number is the largest of the sequence numbers of the plurality of data messages received by the second network device within the time period
  • the second network device is an intermediate node or a tail node device detecting apparatus of the domain
  • the network device comprises a plurality of the second network device.
  • the method further includes: the controller determines the loss according to the first report detection information, the second report detection information, and the third report detection information. Packet rate.
  • the method further includes: the controller determines fourth reporting detection information according to the fourth serial number, and the fourth reporting detection information included in the fourth reporting detection information
  • the value of the detection node identification is the smallest among all the reported detection information including the fourth serial number received by the controller.
  • the controller determines a packet loss location node according to the fourth collected data included in the fourth reported detection information.
  • the first detection information further includes a flow identifier, and the flow identifier indicates a data flow to which the first data packet belongs.
  • the first detection information further includes a first length and a first version number, wherein the first length indicates a length of the first detection information, and the first version number indicates a protocol of the first detection information. version.
  • a first network device has a function of implementing the behavior of the first network device in the foregoing method.
  • the functions may be implemented based on hardware, or corresponding software implementation may be performed based on hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the structure of the first network device includes a processor and an interface, and the processor is configured to support the first network device to perform a corresponding function in the foregoing method.
  • the interface is used to support communication between the first network device and the second network device, and send the information or instructions involved in the method to the second network device, or receive the information involved in the method from the second network device.
  • the first network device may further include a memory, which is used for coupling with the processor, and stores program instructions and data necessary for the first network device.
  • the first network device includes: a processor, a transmitter, a receiver, a random access memory, a read-only memory, and a bus.
  • the processor is respectively coupled to the transmitter, the receiver, the random access memory, and the read-only memory through a bus.
  • the booting system booted by the basic input / output system or embedded system embedded in the read-only memory is used to boot the first network device into a normal operating state.
  • the application program and the operating system are run in the random access memory, so that the processor executes the first aspect or the method in any possible implementation manner of the first aspect.
  • a first network device includes: a main control board and an interface board, and further may include a switching network board.
  • the first network device is configured to execute the first aspect or the method in any possible implementation manner of the first aspect.
  • the first network device includes a module for executing the first aspect or the method in any possible implementation manner of the first aspect.
  • a first network device including a controller and a first forwarding sub-device.
  • the first forwarding sub-device includes: an interface board, and further, may further include a switching network board.
  • the first forwarding sub-device is configured to perform a function of an interface board in the fourth aspect, and further, may also perform a function of a switching network board in the fourth aspect.
  • the controller includes a receiver, a processor, a transmitter, a random access memory, a read-only memory, and a bus.
  • the processor is respectively coupled to the receiver, the transmitter, the random access memory, and the read-only memory through a bus.
  • the booting system is booted by a basic input / output system fixed in a read-only memory or a bootloader in an embedded system to boot the controller into a normal operating state.
  • the application program and the operating system are run in the random access memory, so that the processor performs the functions of the main control board in the fourth aspect.
  • a computer storage medium for storing programs, codes, or instructions used by the foregoing first network device.
  • the processor or hardware device executes these programs, codes, or instructions, the first aspect of the foregoing aspect may be completed.
  • the function or procedure of a network device is provided for storing programs, codes, or instructions used by the foregoing first network device.
  • a controller is provided, and the controller has a function of implementing the controller behavior in the foregoing method.
  • the functions may be implemented based on hardware, or corresponding software implementation may be performed based on hardware.
  • the hardware or software includes one or more modules corresponding to the functions described above.
  • the structure of the controller includes a processor and an interface, and the processor is configured to support the controller to perform a corresponding function in the foregoing method.
  • the interface is used to support communication between the controller and the second network device, and send the information or instructions involved in the method to the second network device, or receive the information or instructions involved in the method from the second network device.
  • the controller may further include a memory, which is used for coupling with the processor, and stores program instructions and data necessary for the controller.
  • the controller includes: a processor, a transmitter, a receiver, a random access memory, a read-only memory, and a bus.
  • the processor is respectively coupled to the transmitter, the receiver, the random access memory, and the read-only memory through a bus.
  • the booting system is booted by a basic input / output system fixed in a read-only memory or a bootloader in an embedded system to boot the controller into a normal operating state.
  • the application program and the operating system are run in the random access memory, so that the processor executes the method in the first aspect or any possible implementation manner of the first aspect.
  • a controller includes a main control board and an interface board. Further, the controller may further include a switching network board. The controller is configured to execute the method in the first aspect or any possible implementation manner of the first aspect. Specifically, the controller includes a module for executing the first aspect or the method in any possible implementation manner of the first aspect.
  • a controller includes a main control device and a first forwarding sub-device.
  • the first forwarding sub-device includes: an interface board, and further, may further include a switching network board.
  • the first forwarding sub-device is configured to perform a function of an interface board in the fourth aspect, and further, may also perform a function of a switching network board in the fourth aspect.
  • the main control device includes a receiver, a processor, a transmitter, a random access memory, a read-only memory, and a bus.
  • the processor is respectively coupled to the receiver, the transmitter, the random access memory, and the read-only memory through a bus.
  • the basic input / output system fixed in the read-only memory or the bootloader in the embedded system is used to boot the system, and the main control device is guided to enter a normal operating state.
  • the application program and the operating system are run in the random access memory, so that the processor performs the functions of the main control board in the fourth aspect.
  • a computer storage medium for storing programs, codes, or instructions used by the controller, and the functions of the controller in the above aspect can be completed when a processor or a hardware device executes these programs, codes, or instructions Or steps.
  • a network system including a first network device and a controller, and the first network device is the first network device in the third aspect or the fourth aspect or the fifth aspect,
  • the controller is the controller in the aforementioned seventh or eighth or ninth aspect.
  • the method for detecting a data packet provided in the embodiment of the present application.
  • the embodiment of the present application provides an in-situ flow information measurement (in-situ flow information measurement or in-band flow information measurement method).
  • each network device in the detection domain can use the detection information included in the data packet to implement information collection for the detection task required by the controller. Therefore, while ensuring packet forwarding performance, Realize the on-line collection of data packets on the transmission path and the detection of the transmission path.
  • FIG. 1 is a schematic diagram of a network structure according to an embodiment of the present application.
  • FIG. 2 is a schematic diagram of another network structure according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a method for detecting a data message according to an embodiment of the present application
  • FIG. 4 is a diagram of a detection information format according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a first network device according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a hardware structure of a first network device according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a hardware structure of another first network device according to an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of a controller according to an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a hardware structure of a controller according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of a network structure according to an embodiment of the present application.
  • the network includes a controller and a plurality of network devices.
  • the multiple network devices are connected through a communication link for transmitting a data stream.
  • the external node device 1, the head node device, the intermediate node device 1, the intermediate node device 2, the tail node device, and the external node device 2 are sequentially connected through a communication link.
  • the data flow can reach the external node device 2 from the external node device 1 via the head node device, the intermediate node device 1, the intermediate node device 2, and the tail node device.
  • the controller may be configured to perform information collection and transmission path performance detection on data packets on the transmission paths between the multiple network devices, and the transmission path performance detection includes detection of a packet loss rate and packet loss positioning.
  • the transmission path may include a path through which a data stream flows.
  • the controller may determine a detection domain, which is a detection range determined by the controller.
  • a network engineer sends device information of a transmission path to be detected to a controller through a network management device or a user device, where the device information includes a head node device identifier and a tail node device of the transmission path to be detected.
  • logo The controller may receive the device information through, for example, a northbound interface (NBI).
  • NBI northbound interface
  • the controller determines a head node device identifier and a tail node device identifier of the transmission path to be detected according to a predetermined control strategy.
  • the controller can obtain the topology of multiple network devices in the network, so that the controller determines the head node device identifier and the tail node device identifier of the transmission path to be detected according to the topology of the multiple network devices.
  • the predetermined control strategy is to collect detection information and perform performance detection on a transmission path between forwarding devices included in a data center (DC).
  • the controller determines the head node device identifier and the tail node device identifier of the transmission path to be detected according to the topology of the DC.
  • the controller determines a detection domain according to the head node device identifier and the tail node device identifier, and determines a head node device and a tail node device of the detection domain.
  • the network device located between the head node device and the tail node device is an intermediate node device, such as the intermediate node device 1 and the intermediate node device 2 in FIG. 1.
  • the controller may determine the flow identification.
  • the network engineer may send the flow identifier to the controller through the network management device or the user equipment, or the controller determines the flow identifier according to a predetermined control policy.
  • the flow identification is used to identify a data flow.
  • the controller determines, through the flow identifier, which data flow on the transmission path to be detected collects detection information.
  • the head node device, the intermediate node device 1, the intermediate node device 2, and the tail node device communicate through a transmission path.
  • the detection domain in FIG. 1 may include multiple transmission paths.
  • the intermediate node device 1 is connected to the intermediate node device 3 (not shown) through a link
  • the intermediate node device 3 is connected to the tail node device through a link. In this way, the data flow can be sent to the intermediate node device 2 and the intermediate node device 3 in a load sharing manner at the intermediate node device 1.
  • FIG. 2 is a schematic diagram of another network structure according to an embodiment of the present application.
  • FIG. 2 adds a tail node device 2 on the basis of the network structure shown in FIG. 1.
  • the tail node device in FIG. 1 is represented as a tail node device 1 in FIG. 2.
  • the tail node device 2 is connected to the intermediate node device 1 through a link, and the tail node device 2 is also connected to the external node device 2 through a link.
  • the detection domain shown in FIG. 2 the detection domain has multiple transmission path exits (two in FIG. 2), that is, the tail node device 1 is connected to the external node device 2 through the port of the tail node device 1, and the tail node device 2 passes The port of the tail node device 2 is connected to the external node device 2. In this way, the data flow can be sent to the intermediate node device 2 and the tail node device 2 in a load sharing manner at the intermediate node device 1.
  • the controller communicates with various network devices in the detection domain through a communication link.
  • the controller can send control information to the head node device, intermediate node device, and tail node device in the detection domain (as shown in the dotted lines with arrows pointing to the network devices in the detection domain as shown in Figures 1 and 2).
  • the control information includes a detection task type, and the detection task type instructs the controller to request a detection task performed by a network device in the detection domain.
  • the detection task type is packet loss detection.
  • the head node device in the detection domain determines the collection information in the detection information included in the data packet for the detection task type of the packet loss detection, and the collection information indicates that the device identifier is collected.
  • the head node device collects a device identifier of the head node device according to an indication of the collection information.
  • the head node device generates report detection information, the report detection information corresponds to the detection information, and the report detection information includes a device identifier of the head node device.
  • the head node device sends the data message carrying the detection information to a next hop network device (intermediate node device) of the head node device.
  • the detection information further includes a detection node identifier and a serial number, where the detection node identifier indicates a position of a network device (for example, a head node device) that processes the detection information in a detection domain, and the sequence number indication includes the detection The serial number of the data message.
  • both the intermediate node device and the tail node device in the detection domain collect the device identifier according to the indication of the collection information in the detection information, and update the detection node identifier in the detection information according to the foregoing implementation manner.
  • the detection information is transmitted along the transmission path in the detection domain, and the network device through which the data packet flows can perform data collection according to the detection information in the data packet.
  • the controller also sends information carrying the first node identification to the head node device determined by the controller.
  • the first node identifier may be represented by a device identifier or an IP address of the device. After the head node device receives the head node identifier, it can determine that it is the head node device according to the head node identifier. Therefore, the head node device can perform an operation of encapsulating detection information in a data message.
  • the head node identifier may be carried in the aforementioned control information sent by the controller to the head node device.
  • the controller also sends information carrying the tail node identification to the tail node device determined by the controller.
  • the tail node identifier may be represented by a device identifier or an IP address of the device. After receiving the tail node identifier, the tail node device may determine that it is a tail node device according to the tail node identifier. Therefore, the tail node device can perform the operation of encapsulating the detection information in the data message.
  • the tail node identifier may be carried in the aforementioned control information sent by the controller to the tail node device.
  • the control information may further include a flow identifier, so that a network device in the detection domain detects the data flow indicated by the flow identifier.
  • the data stream can be distinguished according to the type of service that transmits the data, such as video stream and voice stream, and the data stream can also be distinguished according to some or all information in the quintuple information.
  • the flow identification may be identification information directly configured by the controller or the network management device, or may be identification information determined by the controller or the network management device according to the quintuple information.
  • Each network device in the detection domain may send the reported detection information to the controller (as shown in FIG. 1 and FIG. 2, each network device in the detection domain points to the controller with a solid arrow line).
  • the intermediate node device in the detection domain performs an information collection operation according to the indication of the detection information in the data packet received from the previous hop node device of the intermediate node device. After the intermediate node device completes the collection, the generated report detection information is sent to the controller.
  • the controller determines the performance of the transmission path according to the received report detection information.
  • Each network device in the detection domain may separately report the detection information corresponding to each data packet to the controller, or may combine the report detection information corresponding to multiple data packets to the controller.
  • the intermediate node device in the detection domain after processing the detection information 1 corresponding to the data packet 1, the intermediate node device in the detection domain sends the report detection information 1 generated according to the detection information 1 to the controller; the intermediate node device is processing the data packet. After the detection information 2 corresponding to 2, the report detection information 2 generated according to the detection information 2 is sent to the controller. Alternatively, after processing the detection information 1 corresponding to the data packet 1 and the detection information 2 corresponding to the processing data packet 2, the intermediate node device combines the reported detection information 1 and the reported detection information 2 to generate the reported detection information 3 and sends the detected detection information 3 Controller.
  • FIG. 3 is a flowchart of a method for detecting a data packet according to an embodiment of the present application. Specifically, FIG. 3 relates to a flowchart of an in-situ flow information measurement or in-band flow information measurement method. The method shown in FIG. 3 can be applied to the network structure shown in FIG. 1 or FIG. 2. The method includes:
  • the controller determines a detection domain, where the detection domain is a detection range determined by the controller, and the detection domain includes multiple network devices.
  • the controller may receive device information of a transmission path to be detected sent by a network management device or user equipment, where the device information includes a head node device identifier and Tail node device identification.
  • a network engineer requires detection of a transmission path between a first network device and a second network device.
  • the network engineer sends the device identifier of the first network device and the device identifier of the second network device to the controller through a network management device or a user device.
  • the controller uses the first network device as a head node device of a transmission path to be detected and uses the second network device.
  • the device serves as the tail node device of the transmission path to be detected, thereby determining the detection domain.
  • the controller uses the first network device as a first node device of a transmission path to be detected and the second network device as a transmission to be detected according to a topology of multiple network devices.
  • the transmission path to be detected between the first network device and the second network device includes at least one intermediate node device.
  • the controller may determine the head node device of the detection domain according to the source address of the data flow, and determine the tail node device of the detection domain according to the destination address of the data flow, so that the controller determines the detection domain.
  • the detection domain determined by the controller includes a head node device, an intermediate node device 1, an intermediate node device 2, and a tail node device.
  • the detection domain determined by the controller includes a head node device, an intermediate node device 1, an intermediate node device 2, a tail node device 1, and a tail node device 2.
  • the controller may also determine the flow identification.
  • the flow identification is used to identify a data flow.
  • the controller determines, through the flow identifier, which data flow on the transmission path to be detected collects detection information. For example, the flow identifier determined by the controller is 01, and when the controller detects the transmission path to be detected, the controller detects the data flow 01.
  • the controller sends first control information to the multiple network devices, where the first control information includes a detection task type, and the detection task type instructs the controller to perform a detection performed by the multiple network devices. task.
  • the first network device receives the first control information sent by the controller.
  • the controller may send the first control information to multiple network devices in a detection domain.
  • the detection task type included in the first control information indicates a detection task that the controller requires the multiple network devices to perform.
  • the controller sends the first control information to a first node device, an intermediate node device, and a tail node device in the detection domain, and the type of detection task included in the first control information is packet loss detection.
  • the head node device, the intermediate node device, and the tail node device in the detection domain may determine that the detection task to be performed is packet loss detection according to the detection task type. .
  • the first control information may further include a flow identifier.
  • the head node device, the intermediate node device, and the tail node device in the detection domain may perform a corresponding detection task on a data stream indicated by the controller.
  • the controller may send information carrying the head node identifier to the first network device.
  • the first node identifier may be represented by a device identifier or an IP address of the device.
  • the first network device may determine that it is the first node device. Therefore, the first network device may perform an operation of encapsulating detection information in a data message.
  • the controller does not separately send the information carrying the identification of the first node, but the controller may carry the first node in the control information sent to the first network device serving as the first node device. Identification so as to notify that the first network device is a head node device.
  • the controller may send information carrying the tail node identifier to the first network device.
  • the tail node identifier may be represented by a device identifier or an IP address of the device.
  • the first network device may determine that it is a tail node device. Therefore, the first network device may perform an operation of deleting detection information in a data packet.
  • the controller does not separately send the information carrying the tail node identifier, but the controller may carry the tail node in the control information sent to the first network device that is the tail node device. Identification so as to notify that the first network device is a tail node device.
  • the first network device receives a first data packet sent by a first-hop network device of the first network device, where the first data packet includes first detection information, and the first detection information includes a first A detection node identifier, a first serial number, and first collection information, wherein the first detection node identifier indicates a position of a network device that processes the first detection information in a detection domain, and the first sequence number indication includes The serial number of the first data message of the first detection information, the first collection information indicates the collection information corresponding to the detection task type, and the detection domain is a detection range determined by the controller.
  • the detection domain includes multiple network devices, and the multiple network devices include the first network device.
  • the first detection information includes a first detection node identifier, a first serial number, and first collection information.
  • FIG. 4 is a diagram of a detection information format according to an embodiment of the present application. Specifically, the first detection node identifier corresponds to a next hop field in FIG. 4. The first detection node identifier indicates a position of a network device that processes the first detection information in a detection domain. For example, in conjunction with FIG.
  • the value of the first detection node identifier (next hop) is 0; in the intermediate node device 1, the value of the first detection node identifier is updated to 1; In the intermediate node device 2, the value of the first detection node identifier is updated to 2; in the tail node device, the value of the first detection node identifier is updated to 3. That is, when the first data packet carrying the first detection information is processed by a network device in a detection domain, the network device increases the value of the first detection node identifier by a step value, such as , The step value is 1. Similarly, the network device in the detection domain in FIG.
  • the value of the first detection node identifier is If it is updated to 1, then in the intermediate node device 2 and the tail node device 2, the value of the first detection node identifier is updated to 2.
  • the first serial number corresponds to the serial number field in FIG. 4.
  • the first sequence number indicates a sequence number of the first data message including the first detection information.
  • the value of the first serial number is determined by the head node device in the detection domain, and the start value of the first serial number is determined by the head node device. For example, suppose data stream 01 includes a total of 1000 data messages. The initial value of the first serial number determined by the head node device is 0.
  • the head node device When the head node device receives the first control information sent by the controller, and encapsulates the first detection information in a data packet in the data stream 01 according to the first control information, it is assumed that the The data message is the 100th data message (recorded as data message 100) in the data stream 01, and the first node device sets the value of the serial number of the data message 100 to 0. Subsequently, the value of the sequence number of the 101st data message (denoted as data message 101) in the data stream 01 is set to 100.
  • the first collection information corresponds to the collection information field in FIG. 4.
  • the first collection information indicates collection information corresponding to the detection task type.
  • the network device in the detection domain collects corresponding information according to the indication of the first collection information.
  • the type of the detection task is packet loss detection
  • the content of the first collected information is a device identifier of a network device.
  • the value of the first collection information is 01, and 01 indicates that the device identifier of the network device is collected.
  • an intermediate node device in a detection domain is detected, and a device identifier of the intermediate node device is collected according to an indication of the first collection information (a device identifier of a network device is required to be collected).
  • the device identifier may be a loopback IP address of a network device.
  • the first detection information may further include a length field and a version field.
  • the length field indicates the length of the first detection information, so that when the network device processes the first detection information, the first detection information can be located according to the indication of the length field.
  • the version field indicates a version in which the first detection information is generated, so that network devices in a detection domain can process the first detection information according to a unified version.
  • the length of the version field is 2 bits
  • the length of the length field is 4 bits
  • the length of the next hop field is 6 bits
  • the length of the sequence number field is 16 bits
  • the length of the collection information field is 32 bits.
  • FIG. 4 shows one collection information field.
  • the first detection information may include more than one collection information field, so that a network device in the detection domain can process multiple collection information fields simultaneously. And collecting multiple information.
  • the first network device may perform step S1041: S1041, the first network device encapsulates the first data packet in the first data packet. Detection information.
  • the first network device serving as the head node device executes a detection task indicated by the first control information.
  • the first network device performs an operation of encapsulating the first detection information on a data packet processed through the first network device.
  • the first data message is a data message processed during the detection task performed by the first network device, and the first network device encapsulates the first detection information into the first data message in.
  • the first network device sets the first detection node identifier, the first serial number, and the first collection information.
  • the first network device receives a data packet 01 from a previous-hop network device of the first network device (detecting a network device connected to the first network device outside the domain), and the data packet 01 is a data message received by the first network device at the start time of performing the detection task.
  • the first network device encapsulates detection information 01 in a data message 01.
  • the detection node identification value of the detection information 01 is 0, the serial number value is 0, and the collected information value is 01 (indicating the Equipment Identity).
  • the first network device After the first network device encapsulates the detection information 01 in the data message 01, it may perform a corresponding collection operation according to the subsequent S105.
  • the first network device receives a data packet 02 from a previous-hop network device of the first network device, and the data packet 02 is a next data packet of the data packet 01.
  • the first network device encapsulates detection information 02 in a data message 02.
  • the detection node identification value of the detection information 02 is 0, the serial number value is 1, and the collected information value is 01.
  • the first network device may perform a corresponding collection operation according to the subsequent S105.
  • the first network device may determine the first detection information according to the type of the data packet. Package location.
  • the first network device may add a type-length-value (TLV) field to the first data packet, so that the first network device passes the TLV A field locates the first detection information.
  • TLV type-length-value
  • the first data message is an MPLS message.
  • the first network device adds a generic associated channel header label (GAL) to the MPLS packet, and the first network device adds the first detection information after the GAL.
  • GAL generic associated channel header label
  • the first data message is a sixth version of an Internet Protocol (Internet Protocol, IPv6) message
  • IPv6 message includes a hop-by-hop (HBH) extension header. Adding, by the first network device, a TLV in the HBH extension header to locate the first detection information.
  • HBH hop-by-hop
  • the first network device may receive a last hop network device of the first network device (assuming the last hop of the first network device).
  • the first data packet sent by the network device is the first node device
  • the first data packet includes the first detection information.
  • the first network device may perform a subsequent collection operation indicated by S105 according to the first detection information.
  • the first network device may receive a last hop network device of the first network device (assuming the last hop of the first network device
  • the first data message sent by the network device is an intermediate node device), and the first data message includes the first detection information.
  • the first network device may perform a subsequent collection operation indicated by S105 according to the first detection information. After the first network device performs the collection operation, the following operation indicated by S1051 may also be performed: S1051, the first network device deletes the first detection information in the first data packet.
  • the first network device transmits a first data packet that deletes the first detection information to a next-hop network device outside the detection domain. In this way, network devices outside the detection domain cannot be prevented from identifying the first detection information in the first data packet.
  • the first network device determines a first collection data corresponding to the first collection information according to the first collection information, and the first network device updates the first detection node identifier.
  • the first network device sends the first data packet carrying the updated first detection information to a next-hop network device of the first network device.
  • the first network device when the first network device is the first node device in the detection domain, the first network device receives the data packet 01 and encapsulates the detection information in the data packet 01 01, the value of the detection node identifier of the detection information 01 is 0, the value of the serial number is 0, and the value of the collected information is 01 (representing the device identification of the collected network device).
  • the device identifier of the first network device for example, the device identifier of the first node device is 001
  • the value of is updated to 0 (still on the hop device).
  • the first network device stores the collected collection data, where a value of the collected data is a device identifier of the first network device. Specifically, the first network device generates report detection information 01 corresponding to the detection information 01 according to the detection information 01.
  • the report detection information 01 includes a detection node identifier with a value of 0, a sequence number and a value of 0.
  • the collected data is 001.
  • the first network device stores the report detection information 01. After processing the data message 01, the first network device sends a data message carrying the updated detection information 01 to the intermediate node device in the detection domain according to the original transmission path of the data message 01. 01. For the same reason, the first network device performs the same operation on the detection information 02 in the data packet 02.
  • the first network device When the first network device is an intermediate node device in a detection domain, the first network device receives the data message 01 from the first node device, and the data message 01 includes the detection information 01, so The detection node identification value of detection information 01 is 0, the serial number value is 0, and the collected information value is 01. Collecting, by the first network device, the device identifier of the first network device (for example, the device identifier of the intermediate node device is 002) according to an indication of the value 01 of the collected information in the detection information 01, and detecting the node identifier Is updated to 1. Then, the first network device stores the collected collection data, where a value of the collected data is a device identifier of the first network device.
  • the first network device generates report detection information 01 corresponding to the detection information 01 according to the detection information 01.
  • the report detection information 01 includes a detection node identifier having a value of 1, a sequence number and a value of 0.
  • the collected data is 002.
  • the first network device stores the report detection information 01. After the first network device has processed the data message 01, it follows the original transmission path of the data message 01 to the next hop network device (such as the tail node device) of the intermediate node device in the detection domain. Send a data message 01 carrying the updated detection information 01. For the same reason, the first network device performs the same operation on the detection information 02 in the data packet 02.
  • the first network device When the first network device is a tail node device in a detection domain, the first network device receives the data packet 01 from an intermediate node device, and the data packet 01 includes the detection information 01.
  • the detection node identification value of detection information 01 is 1, the serial number value is 0, and the collected information value is 01.
  • the value is updated to 2.
  • the first network device stores the collected collection data, where a value of the collected data is a device identifier of the first network device.
  • the first network device generates report detection information 01 corresponding to the detection information 01 according to the detection information 01.
  • the report detection information 01 includes a detection node identifier with a value of 2, a sequence number and a value of 0.
  • the collected data is 003.
  • the first network device stores the report detection information 01.
  • the first network device deletes the detection information 01 in the data message 01, and follows the original transmission path of the data message 01 to the end of the detection domain.
  • the next-hop network device of the node device (for example, a network device connected to the tail node device outside the detection domain) sends a data packet 01 not including the detection information 01. For the same reason, the first network device performs the same operation on the detection information 02 in the data packet 02.
  • the first network device and controller may also perform the following S107 and S108 operations:
  • the first network device sends first reporting detection information to the controller, where the first reporting detection information includes the updated first detection node identifier, the first serial number, and the first collection. data.
  • the controller receives the first report detection information sent by a first network device.
  • the first network device may send the first report detection information collected and stored to the controller.
  • the controller may perform performance detection on the transmission path in the detection domain according to the received first reported detection information. For example, the controller calculates the packet loss rate and packet positioning based on the collected detection information reported by each network device in the detection domain.
  • the first network device may send report detection information corresponding to each data packet collected and stored to the controller, or the first network device may send the data according to all the reports issued by the controller.
  • the first control information is described, and the detection detection information corresponding to each data message collected and stored is selected, and then a part of the detection detection information is sent to the controller.
  • the first network device may also combine multiple reporting detection information into one reporting detection information, and send it to the controller.
  • the method for detecting a data packet specifically relates to a method for remotely detecting information along a route.
  • Each network device in a detection domain may implement the control information issued by the controller using the detection information included in the data packet.
  • Information collection for detection tasks required by the controller so as to ensure the performance of message forwarding, realize the on-the-spot collection of data messages on the transmission path and the detection of the transmission path.
  • the detection task type is packet loss detection
  • the first control information further includes a detection start time and a detection end time
  • the first network device is a head node device of the detection domain
  • the first data The message is the first data message sent by the head node device to the next hop network device of the head node device from the detection start time
  • the first collected data includes the device of the head node device Identification
  • the method further includes:
  • the head node device receives a second data packet sent by a previous hop network device of the head node device.
  • the head node device encapsulates second detection information in the second data message, where the second detection information includes a second detection node identifier, a second serial number, and second collection information.
  • the first node device determines second collection data corresponding to the second collection information according to the second collection information, and the first node device updates the second detection node identifier, and the second collection data includes The second node number is greater than the first node number, and the second node ID is the same as the first node ID.
  • the head node device sends the second data packet carrying the updated second detection information to a next hop network device of the head node device, where the second data packet is the first data packet.
  • the first node device sends first report detection information and second report detection information to the controller, wherein the first report detection information includes the updated first detection node identifier, the first sequence And the first collected data, and the second reported detection information includes the updated second detection node identifier, the second serial number, and the second collected data.
  • the controller receives the first report detection information and the second report detection information sent by the head node device.
  • the head node device may determine that the detection task performed by the head node device is a packet loss according to a detection task type in the first control information. Detection. In addition, the head node device may also determine a detection start time and a detection end time of the packet loss detection according to the first control information. It is assumed that the data packet 01 (corresponding to the above-mentioned first data packet) is the first data packet sent by the head node device to the next hop network device of the head node device from the detection start time.
  • the head node device may encapsulate the detection information 01 in the data packet 01 according to the foregoing embodiment, and obtain the reported detection information 01 according to the detection information 01.
  • the value of the detection node identifier of the detection information 01 is 0, the value of the serial number is 0, and the value of the collected information is 01 (representing the device identification of the collected network device).
  • the detection node identification value of the reported detection information 01 is 0, the serial number value is 0, and the collected data value is 001 (for example, the device identification of the first node device is 001).
  • the head node device processes a plurality of data packets according to the foregoing embodiment, thereby obtaining and storing a plurality of reported detection information, and transmitting a plurality of processed data packets.
  • the text is sent to the next-hop network device of the head node device.
  • the head node device also receives a data packet 101 (corresponding to the second data packet) sent by a previous hop network device of the head node device, where the data packet 101 is the first node device detecting the The last data message sent to the next-hop network device of the head node device before the end time. It can be seen that, within a time period between the detection start time and the detection end time, 100 data packets are sent to the next hop network device of the head node device.
  • the head node device encapsulates detection information 101 in the data message 101.
  • the detection information 101 includes a detection node identifier value of 0, a serial number value of 100, and a collection information value of 01.
  • the head node device determines the corresponding reporting detection information 101 according to the collected information of the detection information 101, and updates the detection node identifier.
  • the value of the detection node identifier included in the detection information 101 is 0, the value of the serial number is 100, and the value of the collected data is 001.
  • the first-node device After the first-node device obtains the reported detection information 01, the first-node device stores the reported detection information 01 in a buffer area of the first-node device, and then the first-node device carries a data message carrying the updated detection information 01 01 is sent to the next hop network device of the head node device.
  • the head node device After the head node device obtains the reported detection information 101, the head node device stores the reported detection information 101 in a buffer area of the head node device, and then the head node device carries a data message carrying the updated detection information 101 101 is sent to a next hop network device of the head node device.
  • the head node device also sends report detection information 01 and report detection information 101 to the controller.
  • the controller receives the reported detection information 01 and the reported detection information 101, so that the controller can perform packet loss detection on the transmission path in the detection domain according to the reported detection information 01 and the reported detection information 101. It should be understood that the head node device may send the report detection information corresponding to the first data packet and the report detection information corresponding to the last data packet to the controller in the detection period. The head node device may also send report detection information corresponding to all data packets in the detection period to the controller.
  • the first network device is an intermediate node device in the detection domain
  • the first data message is a data message received by the intermediate node device from the first node device from the detection start time.
  • the first collected data includes a device identifier of the first node device, and the method further includes:
  • the intermediate node device increases a value of the detection end time by a predetermined duration, and updates the value of the detection end time.
  • the intermediate node device receives a second data packet sent by a previous hop network device of the intermediate node device within a time period between the detection start time and the updated detection end time.
  • the second data message includes second detection information, and the second detection information includes a second detection node identifier, a second serial number, and second collection information.
  • the intermediate node device determines the second collection data corresponding to the second collection information according to the second collection information, and the intermediate node device updates the second detection node identifier.
  • the second collection data includes A device identifier of the intermediate node device, the second sequence number is a maximum sequence number among a sequence number of multiple data packets received by the intermediate node device within the time period, and the first datagram
  • the message is a data message received by the intermediate node device within the time period, and the first sequence number is a sequence number of a plurality of data messages received by the intermediate node device within the time period. The smallest serial number.
  • the intermediate node device sends the second data message carrying the updated second detection information to a next hop network device of the intermediate node device.
  • the intermediate node device generates third reported detection information, where the third reported detection information includes a third detection node identifier, a third serial number, and third collected data, and the third detection node identifier updates the first
  • the third collected data includes the device identifier of the intermediate node device
  • the third serial number is a sequence of multiple data packets received by the intermediate node device within the time period The missing serial number in the number, the third serial number is larger than the first serial number and smaller than the second serial number.
  • the intermediate node device sends the first reported detection information, the second reported detection information, and the third reported detection information to the controller, wherein the first reported detection information includes the updated first detection.
  • the controller receives the first report detection information, the second report detection information, and the third report detection information sent by the intermediate node device.
  • the intermediate node device may determine that the detection task performed by the first node device is a packet loss according to the detection task type in the first control information. Detection.
  • the intermediate node device may further determine a detection start time and a detection end time of the packet loss detection according to the first control information.
  • the intermediate node device increases the value of the detection end time by a predetermined duration, and updates the value of the detection end time. For example, the detection start time is 10:00 on May 7, 2018, and the detection end time is 10:02 on May 7, 2018.
  • the intermediate node device updates the detection end time to 10:05 on May 7, 2018, so that the intermediate node device can receive all data packets sent by the first node device within the detection period.
  • the intermediate node device receives the data packet 01 sent by the first node device, determines to report the detection information 01 according to the detection information 01, and updates the detection node identifier. Therefore, after processing by the intermediate node device, the value of the detection node identifier included in the detection information 01 is 1, the value of the serial number is 0, and the value of the collected information is 01; the value of the detection node identifier of the reported detection information 01 is 1. , The value of the serial number is 0, and the value of the collected data is 002 (for example, the device ID of the intermediate node device is 002).
  • the intermediate node device processes multiple data packets sent by the head node device after the data packet 01 according to the foregoing embodiment.
  • the intermediate node device receives the data packet 101 sent by the head node device, determines to report the detection information 101 according to the detection information 101, and updates the detection node identifier. Therefore, after processing by the intermediate node device, the value of the detection node identifier included in the detection information 101 is 1, the value of the serial number is 100, and the value of the collected information is 01; the value of the detection node identifier of the reported detection information 101 is 1. , The value of the serial number is 100, and the value of the collected data is 002 (for example, the device ID of the intermediate node device is 002).
  • the intermediate node device After the intermediate node device obtains the reported detection information 01, the intermediate node device stores the reported detection information 01 in the buffer area of the intermediate node device, and then, the intermediate node device carries the updated detection information 01 data packet 01 Sending to the next-hop network device of the intermediate node device.
  • the intermediate node device After the intermediate node device obtains the reported detection information 101, the intermediate node device stores the reported detection information 101 in the buffer area of the intermediate node device, and then, the intermediate node device carries the updated detection information 101 data packet 101 Sending to the next-hop network device of the intermediate node device.
  • the intermediate node device may determine that the sequence number included in the detection information 01 is the smallest of the sequence numbers of the multiple data packets received by the intermediate node device within the time period. Sequence number, the sequence number in the report detection information 101 is the largest sequence number among the sequence numbers of a plurality of data packets received by the intermediate node device within the time period.
  • the intermediate node device may be based on the minimum sequence number data message and the maximum sequence number data message received from the head node device, and the data message corresponding to the sequence number between the minimum sequence number and the maximum sequence number. It is determined that a data packet 51 with a sequence number of 50 has not been received.
  • the intermediate node device generates report detection information 51.
  • the report detection information 51 includes a detection node identification value of 1, a serial number value of 50, and a collected data value of 002.
  • the intermediate node device stores reporting detection information 51.
  • the intermediate node device also sends report detection information 01 and report detection information 101, and report detection information 51 corresponding to a data packet 51 that has not been received, to the controller.
  • the controller may determine the total number of data packets sent by the first node device according to the report detection information sent by the first node device, and the controller may determine the transmission path from the first node device to the intermediate node device according to the report detection information sent by the intermediate node device. (For example, it is determined according to the above method that data packet 21, data packet 45, and data packet 51 are lost). In this way, the controller can determine and determine the packet loss rate of the transmission path from the first node device to the intermediate node device.
  • the intermediate node device is used as an example for description.
  • the above S301-S307 can also be applied to tail node devices.
  • the tail node device may also perform deletion of the detection information in the data message, and restore the data message to a data message that does not carry the detection information.
  • the minimum sequence number data message and the maximum sequence number data message received by the intermediate node device are the first data message (first Data message) and the last data message (second data message) are used as examples for illustration.
  • packet loss may occur during transmission, or a network device in the detection domain sends data packets to two network devices in a load sharing manner (such as tail node device 2 and intermediate node device in Figure 2). 2). Therefore, each network device in the detection domain only needs to determine the report detection information corresponding to the data message with the smallest sequence number and the report detection information corresponding to the data message with the largest sequence number in the detection period. Then, the network device The detection information corresponding to the data packet with a packet loss between the data packet with the smallest sequence number and the data packet with the largest sequence number is determined.
  • the network device in the detection domain may combine multiple reported detection information, and report the combined reported detection information to the controller.
  • the intermediate node device generates fourth report detection information according to the first report detection information, the second report detection information, and the third report detection information, and the fourth report detection information Including the detection node identification (the position of the intermediate node device in the detection domain), the device identification of the intermediate node device, and the serial number included in the first reported detection information, and the serial number included in the second reported detection information, and The serial number included in the third report detection information.
  • the controller may further determine a packet loss position of a data packet lost in the detection domain according to the reported detection information received from each network device in the detection domain. For example, as shown in FIG. 1, the controller may determine that a data packet with a fifth sequence number value of 50 is lost according to the report detection information reported by the tail node device. According to the value of the fifth sequence number, the controller searches for the detection node information included in the reported detection information reported by the intermediate node device 1 and the intermediate node device 2 to have a minimum value, and includes the fifth sequence Report detection information. Assume that the controller determines that the fifth reported detection information in the intermediate node device 1 includes the fifth serial number, and that the fifth reported detection information includes a value of a fifth detection node identifier that is the smallest. The controller determines a packet loss location node according to the fifth collected data (the device identifier of the intermediate node device 1) included in the fifth reported detection information.
  • the network device in the detection domain does not report the detection information of all data packets in the detection period to the controller, but instead reports the detection information with the smallest serial number and the detection information with the largest serial number, and it is missing. Report detection information corresponding to the data packet.
  • the network equipment in the detection domain can report the detection information of all data packets in the detection period to the controller. In this way, the controller can directly calculate the packet loss rate and locate the packet loss according to the reported detection information reported by each node, without requiring each network node to perform pre-processing.
  • the controller when the controller implements packet loss positioning, the controller first determines the lost sequence number, and then looks for the lost sequence number in the collected detection detection information. And the detection node identification value is the largest reported detection information (for example, the sixth reported detection information). The controller determines a packet loss location node according to the sixth collected data included in the sixth reported detection information.
  • FIG. 5 is a schematic structural diagram of a first network device 1000 according to an embodiment of the present application.
  • the first network device 1000 shown in FIG. 5 may perform corresponding steps performed by the first network device in the method in the foregoing embodiment.
  • the first network device 1000 includes a receiving unit 1002, a processing unit 1004, and a sending unit 1006.
  • the receiving unit 1002 is configured to receive first control information sent by a controller, where the first control information includes a detection task type, and the detection task type instructs the controller to request a detection task performed by the first network device. ;
  • the receiving unit 1002 is further configured to receive a first data packet sent by a network device of a previous hop of the first network device, where the first data packet includes first detection information, and the first detection information includes first A detection node identifier, a first serial number, and first collection information, wherein the first detection node identifier indicates a position of a network device that processes the first detection information in a detection domain, and the first sequence number indication includes The serial number of the first data message of the first detection information, the first collection information indicates the collection information corresponding to the detection task type, and the detection domain is a detection range determined by the controller.
  • the detection domain includes multiple network devices, and the multiple network devices include the first network device;
  • the processing unit 1004 is configured to determine the first collection data corresponding to the first collection information according to the first collection information, and the processing unit 1004 is further configured to update the first detection node identifier;
  • the sending unit 1006 is configured to send the first data packet carrying the updated first detection information to a next-hop network device of the first network device.
  • the processing unit 1004 is further configured to: after the receiving unit 1002 receives a first data packet sent by a network device of a previous hop of the first network device, in the first data packet Encapsulating the first detection information.
  • the processing unit 1004 is further configured to delete the first data packet before the sending unit 1006 sends the first data packet to a next-hop network device of the first network device.
  • the first detection information in.
  • the sending unit 1006 is further configured to send the first reported detection information to the controller, where the first reported detection information includes the updated first detection node identifier, the first serial number, and all The first acquisition data is described.
  • the detection task type is packet loss detection
  • the first control information further includes a detection start time and a detection end time
  • the first network device is a head node device of the detection domain
  • the first The data packet is the first data packet sent by the sending unit 1006 to the next-hop network device of the first network device from the detection start time
  • the first collected data includes the first network The device ID of the device.
  • the receiving unit 1002 is further configured to receive a second data packet sent by a previous-hop network device of the first network device.
  • the processing unit 1004 is further configured to encapsulate second detection information in the second data message, where the second detection information includes a second detection node identifier, a second serial number, and second collection information.
  • the processing unit 1004 is further configured to determine a second collection data corresponding to the second collection information according to the second collection information, and the processing unit 1004 is further configured to update the second detection node identifier, and the first The second collected data includes a device identifier of the first network device, the second serial number is greater than the first serial number, and the second detection node identifier is the same as the first detection node identifier.
  • the sending unit 1006 is further configured to send the second data packet carrying the updated second detection information to a next-hop network device of the first network device, where the second data packet is The sending unit 1006 sends a last data packet to the next-hop network device of the first network device before the detection end time.
  • the sending unit 1006 is further configured to send the first reported detection information and the second reported detection information to the controller, wherein the first reported detection information includes the updated first detection node identifier, the first The serial number and the first collected data, and the second reported detection information includes the updated second detection node identifier, the second serial number, and the second collected data.
  • the detection task type is packet loss detection
  • the first control information further includes a detection start time and a detection end time
  • the first network device is an intermediate node device or a tail node device of the detection domain
  • the first collected data includes a device identifier of the first network device.
  • the processing unit 1004 is further configured to increase the value of the detection end time by a predetermined duration, and update the value of the detection end time.
  • the receiving unit 1002 is further configured to receive a second data packet sent by a first-hop network device of the first network device within a time period between the detection start time and the updated detection end time,
  • the second data message includes second detection information
  • the second detection information includes a second detection node identifier, a second serial number, and second collection information.
  • the processing unit 1004 is further configured to determine a second collection data corresponding to the second collection information according to the second collection information, and the processing unit 1004 is further configured to update the second detection node identifier, and the first
  • the second collected data includes a device identifier of the first network device, and the second serial number is a maximum serial number among a serial number of multiple data packets received by the receiving unit 1002 within the time period.
  • the first data message is a data message received by the receiving unit 1002 within the time period
  • the first sequence number is the plurality of data messages received by the receiving unit 1002 within the time period. The smallest sequence number in the sequence number of the data message.
  • the sending unit 1006 is further configured to send the second data message carrying the updated second detection information to the next-hop network device of the first network device.
  • the processing unit 1004 is further configured to generate third reporting detection information, where the third reporting detection information includes a third detection node identifier, a third serial number, and third collection data, and the third detection node identifier and the updated information
  • the second detection node identifier is the same, the third collected data includes the device identifier of the first network device, and the third serial number is the plurality of received by the receiving unit 1002 within the time period.
  • the missing sequence number in the sequence number of the data message, and the third sequence number is greater than the first sequence number and smaller than the second sequence number.
  • the sending unit 1006 is further configured to send the first report detection information, the second report detection information, and the third report detection information to the controller, wherein the first report detection information includes the updated first report information.
  • a detection node identifier, the first serial number, and the first collected data, and the second reported detection information includes the updated second detection node identifier, the second serial number, and the second collected data.
  • the first network device shown in FIG. 5 may perform corresponding steps performed by the first network device in the method in the foregoing embodiment.
  • each network device in the detection domain can use the detection information included in the data packet to implement information collection for the detection task required by the controller. Therefore, while ensuring packet forwarding performance, Realize the on-line collection of data packets on the transmission path and the detection of the transmission path.
  • FIG. 6 is a schematic diagram of a hardware structure of a first network device 1100 according to an embodiment of the present application.
  • the first network device 1100 shown in FIG. 6 may perform corresponding steps performed by the first network device in the method in the foregoing embodiment.
  • the first network device 1100 includes a processor 1101, a memory 1102, an interface 1103, and a bus 1104.
  • the interface 1103 may be implemented in a wireless or wired manner, and specifically may be a network card.
  • the processor 1101, the memory 1102, and the interface 1103 are connected through a bus 1104.
  • the interface 1103 may specifically include a transmitter and a receiver, which are used to send and receive information between the first network device and a previous-hop network device or a next-hop network device of the first network device in the foregoing embodiment; and / or Information is transmitted and received between the controllers in the above embodiments.
  • the interface 1103 is configured to support receiving first control information sent by the controller; used to receive a first data packet sent by a first-hop network device of the first network device; and / or used to The next-hop network device of the first network device sends the first data message carrying the updated first detection information.
  • the interface 1103 is used to support processes S103, S104, and S106 in FIG.
  • the processor 1101 is configured to execute processing performed by the first network device in the foregoing embodiment. For example, the processor 1101 is configured to determine first collection data corresponding to the first collection information; used to update a first detection node identifier; and / or other processes used in the techniques described herein. As an example, the processor 1101 is configured to support process S105 in FIG. 3.
  • the memory 1102 includes an operating system 11021 and an application program 11022, and is configured to store programs, codes, or instructions. When the processor or the hardware device executes these programs, codes, or instructions, the processing process involving the first network device in the method embodiment may be completed.
  • the memory 1102 may include a read-only memory (English: Read-only Memory (abbreviation: ROM)) and a random access memory (English: Random Access Memory (abbreviation: RAM)).
  • the ROM includes a basic input / output system (English: Basic Input / Output System (abbreviation: BIOS)) or an embedded system; and the RAM includes an application program and an operating system.
  • BIOS Basic Input / Output System
  • the RAM includes an application program and an operating system.
  • FIG. 6 only shows a simplified design of the first network device 1100.
  • the first network device may include any number of interfaces, processors, or memories.
  • FIG. 7 is a schematic diagram of a hardware structure of another first network device 1200 according to an embodiment of the present application.
  • the first network device 1200 shown in FIG. 7 may perform corresponding steps performed by the first network device in the method in the foregoing embodiment.
  • the first network device 1200 includes: a main control board 1210, an interface board 1230, a switching network board 1220, and an interface board 1240.
  • the main control board 1210, the interface boards 1230 and 1240, and the switching network board 1220 are connected to the system backplane through a system bus to implement interworking.
  • the main control board 1210 is used to complete functions such as system management, equipment maintenance, and protocol processing.
  • the switching network board 1220 is used to complete data exchange between interface boards (the interface board is also called a line card or a service board).
  • the interface boards 1230 and 1240 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.) and implement data packet forwarding.
  • the interface board 1230 may include a central processor 1231, a forwarding entry memory 1234, a physical interface card 1233, and a network processor 1232.
  • the central processing unit 1231 is used for controlling and managing the interface board and communicating with the central processing unit on the main control board.
  • the forwarding entry memory 1234 is configured to store a forwarding entry.
  • the physical interface card 1233 is used for receiving and sending traffic.
  • the network processor 1232 is configured to control the physical interface card 1233 to send and receive traffic according to the forwarding entry.
  • the physical interface card 1233 is configured to receive a data packet sent by a first-hop network device of the first network device; used to send a data packet to a next-hop network device of the first network device; and / Or used to interact with the controller.
  • the physical interface card 1233 After receiving the data message, the physical interface card 1233 sends the data message to the central processor 1211 via the central processor 1231, and the central processor 1211 processes the data message.
  • the central processing unit 1211 is configured to determine first collection data corresponding to the first collection information.
  • the central processing unit 1211 is further configured to update the first detection node identifier.
  • the central processing unit 1231 is also used to control the network processor 1232 to obtain the forwarding entries in the forwarding entry storage 1234, and the central processor 1231 is also used to control the network processor 1232 to complete the receiving and sending of traffic via the physical interface card 1233.
  • the operation on the interface board 1240 in the embodiment of the present invention is consistent with the operation of the interface board 1230, and for the sake of brevity, details are not described again.
  • the first network device 1200 in this embodiment may correspond to the functions and / or various steps implemented by the foregoing method embodiments, and details are not described herein again.
  • main control boards there may be one or more main control boards. When there are multiple, the main control board and the standby main control board may be included. There may be one or more interface boards. The stronger the data processing capability of the first network device, the more interface boards are provided. There can also be one or more physical interface cards on the interface board. The switching network board may not be available, or there may be one or more. When there are multiple, the load sharing redundancy backup can be implemented together. Under the centralized forwarding architecture, the first network device may not need to exchange the network board, and the interface board is responsible for the service data processing function of the entire system.
  • the first network device can have at least one switching network board, and the data exchange between multiple interface boards can be realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of the first network device in the distributed architecture are greater than those in the centralized architecture. Which architecture is used depends on the specific network deployment scenario and is not limited here.
  • an embodiment of the present application provides a computer storage medium for storing computer software instructions used by the first network device, which includes a program designed to execute the foregoing method embodiment.
  • FIG. 8 is a schematic structural diagram of a controller 2000 according to an embodiment of the present application.
  • the controller 2000 shown in FIG. 8 may perform corresponding steps performed by the controller in the method of the foregoing embodiment.
  • the controller 2000 includes a receiving unit 2002, a processing unit 2004, and a sending unit 2006.
  • a processing unit 2004, configured to determine a detection domain, where the detection domain is a detection range determined by the processing unit 2004, and the detection domain includes multiple network devices;
  • the sending unit 2006 is configured to send first control information to the multiple network devices, where the first control information includes a detection task type, and the detection task type instructs the controller to perform a detection performed by the multiple network devices. task;
  • the receiving unit 2002 is configured to receive first reported detection information sent by a first network device, where the first reported detection information is determined by the first network device according to the first detection information, and the first detection information is all
  • the first network device obtains detection information obtained from the first data packet before sending the first data packet to the next-hop network device of the first network device, and the first report detection information includes the first A detection node identifier, a first serial number, and a first collection data, wherein the first detection node identifier indicates a position of a network device that processes the first detection information in the detection domain, and the first sequence number indicates A serial number of the first data message including the first detection information, and the first collected data is the first determined by the first network device according to the first collection information in the first detection information. Acquisition data corresponding to acquisition information, the first acquisition information indicating acquisition information corresponding to the detection task type, and the plurality of network devices including the first network device.
  • the detection task type is packet loss detection
  • the first control information further includes a detection start time and a detection end time
  • the first network device is a head node device of the detection domain
  • the first The data packet is the first data packet sent by the first network device to the next-hop network device of the first network device from the detection start time
  • the first collected data includes the first The device identification of the network device.
  • the receiving unit 2002 is further configured to receive second report detection information sent by the first network device, where the second report detection information is determined and obtained by the first network device according to the second detection information.
  • the second detection information is detection information obtained from the second data packet before the first network device sends a second data packet to the next-hop network device of the first network device
  • the second reported detection information includes a second detection node identifier, a second serial number, and second acquisition data
  • the second acquisition data includes a device identifier of the first network device
  • the second The serial number is greater than the first serial number
  • the second detection node identifier is the same as the first detection node identifier
  • the second data packet is sent to the first network device before the detection end time.
  • the last data message sent by the next-hop network device of the first network device is described.
  • the receiving unit 2002 is further configured to receive third reporting detection information sent by a second network device, where the third reporting detection information includes a third detection node identifier and third collection data, and the third detection node The identifier indicates a position of the second network device in the detection domain, the third collected data includes a device identifier of the second network device, and the third reported detection information further includes a third serial number and a fourth serial number And a fifth serial number, wherein the third serial number is a plurality of data received by the second network device within a time period obtained by adding a predetermined time to the detection start time and the detection end time.
  • the smallest sequence number in the sequence number of the message, and the fourth sequence number is a missing sequence number in the sequence numbers of the plurality of data messages received by the second network device within the time period
  • the fifth serial number is a maximum serial number among the serial numbers of the plurality of data packets received by the second network device within the time period
  • the second network device is the detection An intermediate node device or a tail node device in the domain
  • the plurality of network devices include the second network device.
  • the processing unit 2004 is further configured to determine a packet loss rate according to the first reported detection information, the second reported detection information, and the third reported detection information.
  • the processing unit 2004 is further configured to determine fourth reporting detection information according to the fourth serial number, and a value of a fourth detection node identifier included in the fourth reporting detection information is received by the receiving unit 2002 The smallest of all reported detection information including the fourth serial number.
  • the processing unit 2004 is further configured to determine a packet loss location node according to the fourth collected data included in the fourth reported detection information.
  • the controller shown in FIG. 8 may perform corresponding steps performed by the controller in the method in the foregoing embodiment.
  • each network device in the detection domain can use the detection information included in the data message to implement information collection and reporting for the detection task required by the controller, thereby ensuring the message forwarding performance. Next, realize the on-the-spot collection of data packets on the transmission path and the detection of the transmission path.
  • FIG. 9 is a schematic diagram of a hardware structure of a controller 2100 according to an embodiment of the present application.
  • the controller 2100 shown in FIG. 9 may perform corresponding steps performed by the controller in the method of the foregoing embodiment.
  • the controller 2100 includes a processor 2101, a memory 2102, an interface 2103, and a bus 2104.
  • the interface 2103 may be implemented in a wireless or wired manner, and specifically may be a network card.
  • the processor 2101, the memory 2102, and the interface 2103 are connected through a bus 2104.
  • the interface 2103 may specifically include a transmitter and a receiver, and is configured to send and receive information between the controller and the first network device in the foregoing embodiment.
  • the interface 2103 is configured to support control information sent to the first network device; and / or used to receive report detection information sent by the first network device.
  • the interface 2103 is used to support processes S102 and S108 in FIG. 3.
  • the processor 2101 is configured to execute processing performed by a controller in the foregoing embodiment.
  • the processor 2101 is used to determine a detection domain; and / or other processes used in the techniques described herein.
  • the processor 2101 is configured to support the process S101 in FIG. 3.
  • the memory 2102 includes an operating system 21021 and an application program 21022, which are used to store programs, codes, or instructions. When a processor or a hardware device executes these programs, codes, or instructions, a processing process involving a controller in a method embodiment may be completed.
  • the memory 2102 may include a read-only memory (English: Read-only Memory (abbreviation: ROM)) and a random access memory (English: Random Access Memory (abbreviation: RAM)).
  • the ROM includes a basic input / output system (English: Basic Input / Output System (abbreviation: BIOS)) or an embedded system; and the RAM includes an application program and an operating system.
  • the system is booted through the BIOS fixed in ROM or the bootloader in the embedded system to boot the controller 2100 into a normal operating state.
  • the application programs and the operating system running in the RAM complete the processing process related to the controller in the method embodiment.
  • FIG. 9 only shows a simplified design of the controller 2100.
  • the controller can contain any number of interfaces, processors, or memories.
  • an embodiment of the present application provides a computer storage medium for storing computer software instructions used by the controller, which includes a program designed to execute the foregoing method embodiment.
  • the first detection information further includes a flow identifier, and the flow identifier indicates that the first data packet belongs to data flow.
  • the first detection information further includes a first length and a first version number, wherein the first length indicates The length of the first detection information, and the first version number indicates a protocol version of the first detection information.
  • An embodiment of the present application further includes a network system, where the network system includes a first network device and a controller, and the first network device is the first network device in the foregoing FIG. 5 or FIG. 6 or FIG.
  • the controller is the controller in FIG. 8 or FIG. 9.
  • the steps of the method or algorithm described in combination with the disclosure of this application may be implemented in a hardware manner, or may be implemented in a manner that a processor executes software instructions.
  • Software instructions can be composed of corresponding software modules, which can be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, mobile hard disk, CD-ROM, or any other form of storage known in the art Media.
  • An exemplary storage medium is coupled to the processor such that the processor can read information from, and write information to, the storage medium.
  • the storage medium may also be an integral part of the processor.
  • the processor and the storage medium may reside in an ASIC.
  • the ASIC may reside in a user equipment.
  • the processor and the storage medium may also exist in the user equipment as discrete components.
  • Computer-readable media includes computer storage media and communication media including any medium that facilitates transfer of a computer program from one place to another.
  • a storage media may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种数据报文的检测方法、设备及系统。所述方法包括:第一网络设备接收控制器发送的第一控制信息。所述第一网络设备接收所述第一网络设备的上一跳网络设备发送的第一数据报文,所述第一数据报文包括第一检测信息,所述第一检测信息包括第一检测节点标识、第一序列号和第一采集信息。所述第一网络设备根据所述第一采集信息确定所述第一采集信息对应的第一采集数据,并且所述第一网络设备更新所述第一检测节点标识。所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文。从而,实现传输路径上的数据报文的信息遥测。

Description

一种数据报文的检测方法、设备及系统
本申请要求于2018年06月6日提交中国国家知识产权局、申请号为201810574118.3、发明名称为“一种数据报文的检测方法、设备及系统”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种数据报文的检测方法、设备及系统。
背景技术
操作、管理和维护(operation administration and maintenance,OAM)是一种为网络提供传输路径状态检测的技术。相互通信的网络设备,通过所发送的OAM报文,检测用于传输数据报文的路径是否处于正常状态。具体的,第一网络设备可以基于OAM技术,构造OAM检测报文,并且,所述第一网络设备经由待检测的传输路径向第二网络设备发送所述OAM检测报文。所述第二网络设备接收到所述OAM检测报文后,通过分析所述OAM检测报文,从而确定传输路径的状态。
然而,无法保证传统的OAM检测报文的传输路径与数据流的传输路径一致。当待测的传输路径存在负载分担的情况下,OAM检测报文与数据流传输路径不一致的情况更加严重。
互联网协议(Internet Protocol,IP)流性能测量(Flow Performance Measurement,FPM)是一种对多点间数据流进行直接测量,得到网络的丢包统计、业务路径时延等性能指标的测量方法。IP FPM技术通过对数据流包括的数据报文进行染色的方式,实现检测信息的携带和传输。具体的,第一网络设备对数据流中的数据报文包括的特定数据位进行染色,然后,所述第一网络设备向第二网络设备发送带有染色标志的数据报文。所述第二网络设备识别和统计接收到的带有染色标志的数据报文,从而确定传输路径的性能。
然而,IP FPM技术只提供了针对数据报文的染色。因此,IP FPM技术无法实现数据传输路径的识别,并且,IP FPM技术只能实现逐流的检测,不能实现逐包的检测。
发明内容
有鉴于此,本申请实施例提供了一种数据报文的检测方法、设备及系统,通过在传输路径上的数据报文中封装检测信息,实现传输路径上的数据报文的信息遥测,从而,在确保报文转发性能的情况下,实现传输路径上的数据报文的信息采集。
本申请实施例提供的技术方案如下。
第一方面,提供了一种数据报文的检测方法,所述方法包括:第一网络设备接收控制器发送的第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述第一网络设备执行的检测任务。并且,所述第一网络设备接收所述第一网络设备的上一跳网络设备发送的第一数据报文,所述第一数据报文包括第一检测信息,所述第一检测信息包括第一检测节点标识、第一序列号和第一采集信息,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集信息指示所述检测任务类型对应的采集信息,所述检测域是所述控制器确定的检测范围,所述检测域包括多个网络设备,所述多个网络设备包括所述第一网络设备。然后,所述第一网络设备根据所述第一采集信息确定所述第一采集信息对应 的第一采集数据,并且所述第一网络设备更新所述第一检测节点标识。所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文。
基于实施例提供的方案,检测域中的各个网络设备可以根据控制器下发的控制信息,利用数据报文中包括的检测信息实现针对控制器要求的检测任务的信息采集,从而,在确保报文转发性能的情况下,实现传输路径上的数据报文的随路采集和对传输路径的检测。
在第一方面的一种可能的实现方式中,所述第一网络设备是所述检测域的首节点设备,在所述第一网络设备接收所述第一网络设备的上一跳网络设备发送的第一数据报文之后,所述方法还包括,所述第一网络设备在所述第一数据报文中封装所述第一检测信息。
在第一方面的再一种可能的实现方式中,所述第一网络设备是所述检测域的尾节点设备,在所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文之前,所述方法还包括,所述第一网络设备删除所述第一数据报文中的所述第一检测信息。
在第一方面的又一种可能的实现方式中,所述方法还包括,所述第一网络设备向所述控制器发送第一上报检测信息,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据。
在第一方面的又一种可能的实现方式中,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述第一网络设备从所述检测开始时刻起向所述第一网络设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述第一网络设备的设备标识,所述方法还包括,所述第一网络设备接收所述第一网络设备的上一跳网络设备发送的第二数据报文。所述第一网络设备在所述第二数据报文中封装第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息。所述第一网络设备根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述第一网络设备更新所述第二检测节点标识,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同。所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第二检测信息的所述第二数据报文,所述第二数据报文是所述第一网络设备在所述检测结束时刻前向所述第一网络设备的下一跳网络设备发送的最后一个数据报文。所述第一网络设备向所述控制器发送第一上报检测信息和第二上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
在第一方面的又一种可能的实现方式中,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的中间节点设备或尾节点设备,所述第一采集数据包括所述第一网络设备的设备标识,所述方法还包括,所述第一网络设备将所述检测结束时刻的值增加预定时长,并更新所述检测结束时刻的值。所述第一网络设备在所述检测开始时刻和更新的所述检测结 束时刻之间的时间周期内,接收所述第一网络设备的上一跳网络设备发送的第二数据报文,所述第二数据报文包括第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息。所述第一网络设备根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述第一网络设备更新所述第二检测节点标识,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号是所述第一网络设备在所述时间周期内接收到的多个数据报文的序列号中的最大序列号,所述第一数据报文是所述第一网络设备在所述时间周期内接收到的数据报文,所述第一序列号是所述第一网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的最小序列号。所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第二检测信息所述第二数据报文。所述第一网络设备生成第三上报检测信息,所述第三上报检测信息包括第三检测节点标识、第三序列号和第三采集数据,所述第三检测节点标识与更新的所述第二检测节点标识相同,所述第三采集数据包括所述第一网络设备的设备标识,所述第三序列号是所述第一网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的缺少的序列号,所述第三序列号大于所述第一序列号且小于所述第二序列号。所述第一网络设备向所述控制器发送第一上报检测信息、第二上报检测信息和所述第三上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
第二方面,提供了一种数据报文的检测方法,所述方法包括:控制器确定检测域,所述检测域是所述控制器确定的检测范围,所述检测域包括多个网络设备。然后,所述控制器向所述多个网络设备发送第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述多个网络设备执行的检测任务。并且,所述控制器接收第一网络设备发送的第一上报检测信息,所述第一上报检测信息是所述第一网络设备根据第一检测信息确定得到的,所述第一检测信息是所述第一网络设备向所述第一网络设备的下一跳网络设备发送第一数据报文前从所述第一数据报文中获取得到的检测信息,所述第一上报检测信息包括第一检测节点标识、第一序列号和第一采集数据,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在所述检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集数据是所述第一网络设备根据所述第一检测信息中的第一采集信息确定的所述第一采集信息对应的采集数据,所述第一采集信息指示所述检测任务类型对应的采集信息,所述多个网络设备包括所述第一网络设备。
基于实施例提供的方案,检测域中的各个网络设备可以根据控制器下发的控制信息,利用数据报文中包括的检测信息实现针对控制器要求的检测任务的信息采集,从而,在确保报文转发性能的情况下,实现传输路径上的数据报文的随路采集和对传输路径的检测。
在第二方面的一种可能的实现方式中,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述第一网络设备从所述检测开始时刻起向所述第一网络设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述第一网络设备的设备标识,所述方法还包括,所述控制器接收所述第一网络设备发送的第 二上报检测信息,所述第二上报检测信息是所述第一网络设备根据第二检测信息确定得到的,所述第二检测信息是所述第一网络设备向所述第一网络设备的下一跳网络设备发送第二数据报文前从所述第二数据报文中获取得到的检测信息,所述第二上报检测信息包括第二检测节点标识、第二序列号和第二采集数据,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同,所述第二数据报文是所述第一网络设备在所述检测结束时刻前向所述第一网络设备的下一跳网络设备发送的最后一个数据报文。
在第二方面的再一种可能的实现方式中,所述方法还包括,所述控制器接收第二网络设备发送的第三上报检测信息,所述第三上报检测信息包括第三检测节点标识和第三采集数据,所述第三检测节点标识指示所述第二网络设备在检测域中的位置,所述第三采集数据包括所述第二网络设备的设备标识,所述第三上报检测信息还包括第三序列号、第四序列号和第五序列号,其中,所述第三序列号是所述第二网络设备在所述检测开始时刻与所述检测结束时刻增加预定时长后得到的时刻的时间周期内接收到的多个数据报文的序列号中的最小序列号,所述第四序列号是所述第二网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的缺少的序列号,所述第五序列号是所述第二网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的最大序列号,所述第二网路设备是所述检测域中的中间节点设备或尾节点设备,所述多个网络设备包括所述第二网络设备。
在第二方面的又一种可能的实现方式中,所述方法还包括:所述控制器根据所述第一上报检测信息、所述第二上报检测信息和所述第三上报检测信息确定丢包率。
在第二方面的又一种可能的实现方式中,所述方法还包括:所述控制器根据所述第四序列号确定第四上报检测信息,所述第四上报检测信息中包括的第四检测节点标识的值在所述控制器接收到的包括所述第四序列号的所有上报检测信息中最小。所述控制器根据所述第四上报检测信息包括的第四采集数据确定丢包定位节点。
在所述第一方面和所述第一方面的任一一种可能的实现方式中,或者在所述第二方面和所述第二方面的任一一种可能的实现方式中,可选的,所述第一检测信息还包括流标识,所述流标识指示所述第一数据报文属于的数据流。
在所述第一方面和所述第一方面的任一一种可能的实现方式中,或者在所述第二方面和所述第二方面的任一一种可能的实现方式中,可选的,所述第一检测信息还包括第一长度和第一版本号,其中,所述第一长度指示所述第一检测信息的长度,所述第一版本号指示所述第一检测信息的协议版本。
第三方面,提供了一种第一网络设备,所述第一网络设备具有实现上述方法中第一网络设备行为的功能。所述功能可以基于硬件实现,也可以基于硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
在一个可能的设计中,第一网络设备的结构中包括处理器和接口,所述处理器被配置为支持第一网络设备执行上述方法中相应的功能。所述接口用于支持第一网络设备与第二网络设备之间的通信,向第二网络设备发送上述方法中所涉及的信息或者指令,或者从第二网络设备接收上述方法中所涉及的信息或者指令。所述第一网络设备还可以包括存储器,所述存储器用于与处理器耦合,其保存第一网络设备必要的程序指令和数据。
在另一个可能的设计中,所述第一网络设备包括:处理器、发送器、接收器、随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接发送器、接收器、随机存取存储器以及只读存储器。其中,当需要运行第一网络设备时,通过固化在只读存储器中的基本输入/输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导第一网络设备进入正常运行状态。在第一网络设备进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第一方面或第一方面的任意可能的实现方式中的方法。
第四方面,提供一种第一网络设备,所述第一网络设备包括:主控板和接口板,进一步,还可以包括交换网板。所述第一网络设备用于执行第一方面或第一方面的任意可能的实现方式中的方法。具体地,所述第一网络设备包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的模块。
第五方面,提供一种第一网络设备,所述第一网络设备包括控制器和第一转发子设备。所述第一转发子设备包括:接口板,进一步,还可以包括交换网板。所述第一转发子设备用于执行第四方面中的接口板的功能,进一步,还可以执行第四方面中交换网板的功能。所述控制器包括接收器、处理器、发送器、随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接接收器、发送器、随机存取存储器以及只读存储器。其中,当需要运行控制器时,通过固化在只读存储器中的基本输入/输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导控制器进入正常运行状态。在控制器进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第四方面中主控板的功能。
第六方面,提供了一种计算机存储介质,用于储存为上述第一网络设备所用的程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成上述方面中第一网络设备的功能或步骤。
第七方面,提供了一种控制器,所述控制器具有实现上述方法中控制器行为的功能。所述功能可以基于硬件实现,也可以基于硬件执行相应的软件实现。所述硬件或软件包括一个或多个与上述功能相对应的模块。
在一个可能的设计中,控制器的结构中包括处理器和接口,所述处理器被配置为支持控制器执行上述方法中相应的功能。所述接口用于支持控制器与第二网络设备之间的通信,向第二网络设备发送上述方法中所涉及的信息或者指令,或者从第二网络设备接收上述方法中所涉及的信息或者指令。所述控制器还可以包括存储器,所述存储器用于与处理器耦合,其保存控制器必要的程序指令和数据。
在另一个可能的设计中,所述控制器包括:处理器、发送器、接收器、随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接发送器、接收器、随机存取存储器以及只读存储器。其中,当需要运行控制器时,通过固化在只读存储器中的基本输入/输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导控制器进入正常运行状态。在控制器进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第一方面或第一方面的任意可能的实现方式中的方法。
第八方面,提供一种控制器,所述控制器包括:主控板和接口板,进一步,还可以包括交换网板。所述控制器用于执行第一方面或第一方面的任意可能的实现方式中的 方法。具体地,所述控制器包括用于执行第一方面或第一方面的任意可能的实现方式中的方法的模块。
第九方面,提供一种控制器,所述控制器包括主控设备和第一转发子设备。所述第一转发子设备包括:接口板,进一步,还可以包括交换网板。所述第一转发子设备用于执行第四方面中的接口板的功能,进一步,还可以执行第四方面中交换网板的功能。所述主控设备包括接收器、处理器、发送器、随机存取存储器、只读存储器以及总线。其中,处理器通过总线分别耦接接收器、发送器、随机存取存储器以及只读存储器。其中,当需要运行主控设备时,通过固化在只读存储器中的基本输入/输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导主控设备进入正常运行状态。在主控设备进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,使得该处理器执行第四方面中主控板的功能。
第十方面,提供了一种计算机存储介质,用于储存为上述控制器所用的程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成上述方面中控制器的功能或步骤。
第十一方面,提供一种网络系统,所述网络系统包括第一网络设备和控制器,所述第一网络设备为前述第三方面或第四方面或第五方面中的第一网络设备,所述控制器为前述第七方面或第八方面或第九方面中的控制器。
本申请实施例提供的数据报文的检测方法,具体的,本申请实施例提供了一种随路流信息遥测(in-situ flow information telemetry或in-band flow information telemetry)方法。检测域中的各个网络设备可以根据控制器下发的控制信息,利用数据报文中包括的检测信息实现针对控制器要求的检测任务的信息采集,从而,在确保报文转发性能的情况下,实现传输路径上的数据报文的随路采集和对传输路径的检测。
附图说明
图1为本申请实施例的一种网络结构示意图;
图2为本申请实施例的另一种网络结构示意图;
图3为本申请实施例的一种数据报文的检测方法流程图;
图4为本申请实施例的一种检测信息格式图;
图5为本申请实施例的第一网络设备的结构示意图;
图6为本申请实施例的第一网络设备的硬件结构示意图;
图7为本申请实施例的另第一网络设备的硬件结构示意图;
图8为本申请实施例的控制器的结构示意图;
图9为本申请实施例的控制器的硬件结构示意图。
具体实施方式
下面通过具体实施例,分别进行详细的说明。
图1为本申请实施例的一种网络结构示意图。所述网络包括控制器和多个网络设备。所述多个网络设备之间通过通信链路连接,用于传输数据流。如图1所示,外部节点设备1、首节点设备、中间节点设备1、中间节点设备2、尾节点设备和外部节点设备2依次通过通信链路连接。数据流可以从外部节点设备1经由首节点设备、中间节点设备1、中间节点设备2和尾节点设备,到达外部节点设备2。
控制器可以用于对上述多个网络设备之间的传输路径上的数据报文进行信息的采 集和传输路径性能检测,所述传输路径性能检测包括丢包率和丢包定位的检测。在本申请的实施例中,传输路径可以包括数据流流经的路径。控制器可以确定检测域,所述检测域是所述控制器确定的检测范围。具体的,在一种可能的实现方式中,网络工程师通过网管设备或用户设备向控制器发送待检测传输路径的设备信息,所述设备信息包括待检测传输路径的首节点设备标识和尾节点设备标识。控制器可以通过例如北向接口(northbound interface,NBI)接收所述设备信息。在另一种可能的实现方式中,控制器根据预定的控制策略确定待检测传输路径的首节点设备标识和尾节点设备标识。控制器可以获取网络中多个网络设备的拓扑,从而,控制器根据多个网络设备的拓扑确定待检测传输路径的首节点设备标识和尾节点设备标识。例如,所述预定的控制策略是对数据中心(data center,DC)包括的转发设备之间的传输路径进行检测信息的收集和性能检测。控制器根据DC的拓扑确定出待检测传输路径的首节点设备标识和尾节点设备标识。
控制器根据所述首节点设备标识和所述尾节点设备标识确定检测域,并且确定检测域的首节点设备和尾节点设备。在所述检测域中的传输路径上,位于首节点设备和尾节点设备之间的网络设备是中间节点设备,例如图1中的中间节点设备1和中间节点设备2。
可选的,控制器还可以确定流标识。网络工程师通过网管设备或用户设备可以向控制器发送所述流标识,或者,控制器根据预定的控制策略确定所述流标识。所述流标识用于标识数据流。控制器通过流标识确定对待检测传输路径上的哪条数据流进行检测信息的收集。
图1示出的检测域中,首节点设备、中间节点设备1、中间节点设备2和尾节点设备通过一条传输路径进行通信。在一种可能的实现方式中,图1的检测域可能包括多条传输路径。例如,中间节点设备1通过链路连接中间节点设备3(未示出),中间节点设备3通过链路连接尾节点设备。这样,数据流可以在中间节点设备1以负载分担的方式向中间节点设备2和中间节点设备3发送。
图2为本申请实施例的另一种网络结构示意图。图2在图1所示的网络结构基础上,增加了尾节点设备2,相应的,图1中的尾节点设备在图2中表示为尾节点设备1。尾节点设备2通过链路与中间节点设备1连接,并且尾节点设备2还通过链路与外部节点设备2连接。在图2所示的检测域中,检测域具有多个传输路径出口(图2中为2个),即尾节点设备1通过尾节点设备1的端口连接外部节点设备2,尾节点设备2通过尾节点设备2的端口连接外部节点设备2。这样,数据流可以在中间节点设备1以负载分担的方式向中间节点设备2和尾节点设备2发送。
控制器通过通信链路与检测域中的各个网络设备通信。控制器可以向检测域中的首节点设备、中间节点设备和尾节点设备发送控制信息(如图1和图2中,控制器指向检测域中各个网络设备的带箭头的虚线所示),所述控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述检测域中的网络设备执行的检测任务。例如,检测任务类型是丢包检测。这样,检测域中的首节点设备针对丢包检测的检测任务类型确定数据报文包括的检测信息中的采集信息,所述采集信息指示对设备标识进行采集。所述首节点设备根据采集信息的指示采集首节点设备的设备标识。首节点设备生成上报检测信息,所述上报检测信息与所述检测信息对应,所述上报检测信息包 括所述首节点设备的设备标识。首节点设备向首节点设备的下一跳网络设备(中间节点设备)发送携带有所述检测信息的所述数据报文。所述检测信息还包括检测节点标识和序列号,所述检测节点标识指示处理所述检测信息的网络设备(例如,首节点设备)在检测域中的位置,所述序列号指示包括所述检测信息的所述数据报文的序列号。如此这样,检测域中的中间节点设备和尾节点设备都根据上述实现方式,根据所述检测信息中的采集信息的指示采集设备标识,并且更新所述检测信息中的所述检测节点标识。这样,检测信息随着数据报文在检测域中的传输路径上传输,数据报文流经的网络设备可以根据数据报文中的检测信息进行数据采集。
控制器还向所述控制器确定的首节点设备发送携带有首节点标识的信息。所述首节点标识可以用设备标识或设备的IP地址等表示。首节点设备接收到所述首节点标识后,可以根据所述首节点标识确定自己为首节点设备。从而,首节点设备可以执行在数据报文中封装检测信息的操作。可选的,首节点标识可以携带在控制器发送给首节点设备的前述提及的控制信息中。
控制器还向所述控制器确定的尾节点设备发送携带有尾节点标识的信息。所述尾节点标识可以用设备标识或设备的IP地址等表示。尾节点设备接收到所述尾节点标识后,可以根据所述尾节点标识确定自己为尾节点设备。从而,尾节点设备可以执行在数据报文中封装检测信息的操作。可选的,尾节点标识可以携带在控制器发送给尾节点设备的前述提及的控制信息中。
所述控制信息中还可以包括流标识,以便检测域中的网络设备针对所述流标识指示的数据流进行检测。在本申请实施例中,数据流可以根据传输数据的业务类型进行区分,例如视频流和语音流等,数据流也可以根据五元组信息中的部分信息或全部信息进行区分。流标识可以是控制器或网管设备直接配置的标识信息,也可以是控制器或网管设备根据五元组信息确定的标识信息。
检测域中的各个网络设备可以将上报检测信息发送到所述控制器中(如图1和图2中,检测域中各个网络设备指向控制器的带箭头的实线所示)。例如,检测域中的中间节点设备根据从所述中间节点设备的上一跳节点设备接收的数据报文中的检测信息的指示,执行信息采集操作。所述中间节点设备完成采集后,将生成的上报检测信息发送到所述控制器中。所述控制器根据接收的上报检测信息确定传输路径的性能。检测域中的各个网络设备可以将每个数据报文对应的上报检测信息单独上送所述控制器,也可以将多个数据报文对应的上报检测信息合并后上送所述控制器。例如,检测域中的中间节点设备在处理数据报文1对应的检测信息1后,将根据所述检测信息1生成的上报检测信息1上送所述控制器;中间节点设备在处理数据报文2对应的检测信息2后,将根据所述检测信息2生成的上报检测信息2上送所述控制器。或者,中间节点设备在处理数据报文1对应的检测信息1和处理数据报文2对应的检测信息2后,将上报检测信息1和上报检测信息2合并生成上报检测信息3后上送所述控制器。
通过上述实现方式,通过在传输路径上的数据报文中封装检测信息,实现传输路径上的数据报文的信息采集,从而,在确保报文转发性能的情况下,实现传输路径上的数据报文的采集。
图3为本申请实施例的一种数据报文的检测方法流程图。具体的,图3涉及一种随路流信息遥测(in-situ flow information telemetry或in-band flow information  telemetry)方法的流程图。图3所示的方法可以应用在图1或图2所示的网络结构中。该方法包括:
S101、控制器确定检测域,所述检测域是所述控制器确定的检测范围,所述检测域包括多个网络设备。
根据前述实施方式,在一种可能的实现方式中,所述控制器可以接收网管设备或用户设备发送的待检测传输路径的设备信息,所述设备信息包括待检测传输路径的首节点设备标识和尾节点设备标识。例如,网络工程师要求检测第一网络设备和第二网络设备之间的传输路径。网络工程师通过网管设备或用户设备向所述控制器发送所述第一网络设备的设备标识和所述第二网络设备的设备标识。所述控制器在接收所述第一网络设备的设备标识和所述第二网络设备的设备标识后,将所述第一网络设备作为待检测传输路径的首节点设备和将所述第二网络设备作为待检测传输路径的尾节点设备,从而确定检测域。在另一种可能的实现方式中,所述控制器根据多个网络设备的拓扑,将所述第一网络设备作为待检测传输路径的首节点设备和将所述第二网络设备作为待检测传输路径的尾节点设备。其中,所述第一网络设备和所述第二网络设备之间的待检测传输路径上包括至少一个中间节点设备。在又一种可能的实现方式中,控制器可以根据数据流的源地址确定检测域的首节点设备,并且根据数据流的目的地址确定检测域的尾节点设备,从而控制器确定检测域。
如图1所示,所述控制器确定的检测域包括首节点设备、中间节点设备1、中间节点设备2和尾节点设备。又如图2所示,所述控制器确定的检测域包括首节点设备、中间节点设备1、中间节点设备2、尾节点设备1和尾节点设备2。
根据前述实施方式,控制器还可以确定流标识。所述流标识用于标识数据流。控制器通过流标识确定对待检测传输路径上的哪条数据流进行检测信息的收集。例如,控制器确定的流标识为01,控制器在对待检测传输路径进行检测时,针对数据流01进行检测。
S102、所述控制器向所述多个网络设备发送第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述多个网络设备执行的检测任务。
S103、第一网络设备接收控制器发送的所述第一控制信息。
所述控制器可以向检测域中的多个网络设备发送所述第一控制信息。所述第一控制信息包括的检测任务类型指示了所述控制器要求所述多个网络设备执行的检测任务。例如,所述控制器向所述检测域中的首节点设备、中间节点设备和尾节点设备发送所述第一控制信息,所述第一控制信息包括的检测任务类型为丢包检测。这样,所述检测域中的首节点设备、中间节点设备和尾节点设备在接收到所述控制器发送的所述第一控制信息后,可以根据检测任务类型确定执行的检测任务为丢包检测。
可选的,所述第一控制信息中还可以包括流标识。这样,所述检测域中的首节点设备、中间节点设备和尾节点设备在接收到所述控制器发送的所述第一控制信息后,可以针对控制器指示的数据流执行相应的检测任务。
当所述第一网络设备是检测域中的首节点设备时,控制器可以向所述第一网络设备发送携带有首节点标识的信息。所述首节点标识可以用设备标识或设备的IP地址等表示。所述第一网络设备接收到携带有首节点标识的信息后,可以确定自己为首节点 设备。从而,所述第一网络设备可以执行在数据报文中封装检测信息的操作。在一种可能的实现方式中,所述控制器不单独发送携带有首节点标识的信息,而是所述控制器可以在发往作为首节点设备的第一网络设备的控制信息中携带首节点标识,以便通知所述第一网络设备是首节点设备。
当所述第一网络设备是检测域中的尾节点设备时,控制器可以向所述第一网络设备发送携带有尾节点标识的信息。所述尾节点标识可以用设备标识或设备的IP地址等表示。所述第一网络设备接收到携带有尾节点标识的信息后,可以确定自己为尾节点设备。从而,所述第一网络设备可以执行在数据报文中删除检测信息的操作。在一种可能的实现方式中,所述控制器不单独发送携带有尾节点标识的信息,而是所述控制器可以在发往作为尾节点设备的第一网络设备的控制信息中携带尾节点标识,以便通知所述第一网络设备是尾节点设备。
S104、所述第一网络设备接收所述第一网络设备的上一跳网络设备发送的第一数据报文,所述第一数据报文包括第一检测信息,所述第一检测信息包括第一检测节点标识、第一序列号和第一采集信息,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集信息指示所述检测任务类型对应的采集信息,所述检测域是所述控制器确定的检测范围,所述检测域包括多个网络设备,所述多个网络设备包括所述第一网络设备。
所述第一检测信息包括第一检测节点标识、第一序列号和第一采集信息。图4为本申请实施例的一种检测信息格式图。具体的,所述第一检测节点标识对应图4中的下一跳字段。所述第一检测节点标识指示处理所述第一检测信息的网络设备在检测域中的位置。例如,结合图1,在首节点设备中,所述第一检测节点标识(下一跳)的值为0;在中间节点设备1中,所述第一检测节点标识的值被更新为1;在中间节点设备2中,所述第一检测节点标识的值被更新为2;在尾节点设备中,所述第一检测节点标识的值被更新为3。也就是说,当携带所述第一检测信息的所述第一数据报文被检测域中的网络设备处理时,该网络设备将所述第一检测节点标识的值增加一个步长值,例如,步长值为1。类似的,图2中的检测域中的网络设备采用上述同样的方法更新所述第一检测节点标识,需要注意的地方是:如果在中间节点设备1中,所述第一检测节点标识的值被更新为1,那么,在中间节点设备2和尾节点设备2中,所述第一检测节点标识的值均被更新为2。
第一序列号对应图4中的序列号字段。所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号。所述第一序列号的值是由检测域中的首节点设备确定的,并且,所述第一序列号的起始值由首节点设备确定。例如,假设数据流01共计包括1000个数据报文。首节点设备确定的所述第一序列号的初始值为0。当首节点设备接收控制器发送的所述第一控制信息,并根据所述第一控制信息对数据流01中的数据报文封装所述第一检测信息时,假设位于所述首节点设备的数据报文为数据流01中的第100个数据报文(记为数据报文100),所述首节点设备将数据报文100的序列号的值设置为0。随后,将数据流01中的第101个数据报文(记为数据报文101)的序列号的值设置为100。
所述第一采集信息对应图4中的采集信息字段。所述第一采集信息指示所述检测 任务类型对应的采集信息。检测域中的网络设备根据所述第一采集信息的指示采集相应的信息。例如,所述检测任务类型为丢包检测,所述第一采集信息的内容为网络设备的设备标识。具体的,所述第一采集信息的值为01,01表示对网络设备的设备标识进行采集。例如,检测域中的中间节点设备,根据所述第一采集信息的指示(要求采集网络设备的设备标识),采集所述中间节点设备的设备标识。在本申请实施方式中,可选的,设备标识可以是网络设备的还回(loopback)IP地址。
可选的,所述第一检测信息还可以包括长度字段和版本字段。如图4所示,所述长度字段指示了所述第一检测信息的长度,以便网络设备在处理所述第一检测信息时,能够根据长度字段的指示定位所述第一检测信息。所述版本字段指示了生成所述第一检测信息的版本,以便检测域中的网络设备能够根据统一的版本处理所述第一检测信息。
可选的,版本字段的长度为2位,长度字段的长度为4位,下一跳字段的长度为6位,序列号字段的长度为16位,采集信息字段的长度为32位。另外,图4中示出了一个采集信息字段,在实际应用中,所述第一检测信息可以包括多于一个的采集信息字段,从而,检测域中的网络设备可以同时处理多个采集信息字段和对多个信息进行采集。
当所述第一网络设备是检测域中的首节点设备时,所述第一网络设备可以执行S1041步骤:S1041、所述第一网络设备在所述第一数据报文中封装所述第一检测信息。
具体的,作为首节点设备的所述第一网络设备,在接收到控制器发送的所述第一控制信息后,执行所述第一控制信息指示的检测任务。在所述第一网络设备执行检测任务期间,所述第一网络设备对经由所述第一网络设备处理的数据报文执行封装所述第一检测信息的操作。例如,所述第一数据报文是所述第一网络设备执行检测任务期间处理的数据报文,所述第一网络设备将所述所述第一检测信息封装到所述第一数据报文中。并且,所述第一网络设备设置所述第一检测节点标识、所述第一序列号和所述第一采集信息。举例说明,所述第一网络设备从所述第一网络设备的上一跳网络设备(检测域外的与所述第一网络设备连接的网络设备)接收到数据报文01,并且,数据报文01是所述第一网络设备在执行检测任务开始时刻接收到的数据报文。所述第一网络设备在数据报文01中封装检测信息01,所述检测信息01的检测节点标识的值为0,序列号的值为0,采集信息的值为01(表示采集网络设备的设备标识)。所述第一网络设备在数据报文01中封装检测信息01后,可以根据后续的S105执行相应的采集操作。然后,所述第一网络设备从所述第一网络设备的上一跳网络设备接收到数据报文02,数据报文02是数据报文01的下一个数据报文。所述第一网络设备在数据报文02中封装检测信息02,所述检测信息02的检测节点标识的值为0,序列号的值为1,采集信息的值为01。所述第一网络设备在数据报文02中封装检测信息02后,可以根据后续的S105执行相应的采集操作。
可选的,作为首节点设备的所述第一网络设备在所述第一数据报文中封装所述第一检测信息时,可以根据所述数据报文的类型确定所述第一检测信息的封装位置。在一种可能的实现方式中,所述第一网络设备可以在所述第一数据报文中增加类型长度值(type-length-value,TLV)字段,从而,所述第一网络设备通过TLV字段定位所述第一检测信息。例如,所述第一数据报文是MPLS报文。所述第一网络设备在MPLS 报文中添加通用关联通道头标签(generic associated channel header label,GAL),并且,所述第一网络设备将所述所述第一检测信息添加在GAL之后。又例如,所述第一数据报文为第六版因特网协议(Internet Protocol version 6,IPv6)报文,所述IPV6报文包括逐跳(hop by hop,HBH)扩展头。所述第一网络设备在所述HBH扩展头中增加TLV以定位所述第一检测信息。
当所述第一网络设备是检测域中的中间节点设备时,所述第一网络设备可以接收到所述第一网络设备的上一跳网络设备(假设所述第一网络设备的上一跳网络设备是首节点设备)发送的所述第一数据报文,所述第一数据报文中包括所述第一检测信息。所述第一网络设备可以根据所述第一检测信息执行后续的S105指示的采集操作。
当所述第一网络设备是检测域中的尾节点设备时,所述第一网络设备可以接收到所述第一网络设备的上一跳网络设备(假设所述第一网络设备的上一跳网络设备是中间节点设备)发送的所述第一数据报文,所述第一数据报文中包括所述第一检测信息。所述第一网络设备可以根据所述第一检测信息执行后续的S105指示的采集操作。当所述第一网络设备执行完采集操作后,还可以执行以下S1051指示的操作:S1051、所述第一网络设备删除所述第一数据报文中的所述第一检测信息。所述第一网络设备将删除所述第一检测信息的第一数据报文传输到检测域以外的下一跳网络设备。如此这样,可以避免检测域以外的网络设备无法识别所述第一数据报文中的所述第一检测信息。
S105、所述第一网络设备根据所述第一采集信息确定所述第一采集信息对应的第一采集数据,并且所述第一网络设备更新所述第一检测节点标识。
S106、所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文。
结合上述S104中的解释,举例说明,当所述第一网络设备为检测域中的首节点设备时,所述第一网络设备接收到数据报文01,并且在数据报文01中封装检测信息01,所述检测信息01的检测节点标识的值为0,序列号的值为0,采集信息的值为01(表示采集网络设备的设备标识)。所述第一网络设备根据所述检测信息01中的采集信息的值01的指示,采集所述第一网络设备的设备标识(例如首节点设备的设备标识为001),并且,将检测节点标识的值更新为0(仍然在本跳设备上)。然后,所述第一网络设备存储采集后的采集数据,其中采集数据的值为所述第一网络设备的设备标识。具体的,所述第一网络设备根据检测信息01生成与所述检测信息01对应的上报检测信息01,所述上报检测信息01包括值为0的检测节点标识,值为0的序列号和值为001的采集数据。所述第一网络设备存储所述上报检测信息01。所述第一网络设备,在处理完所述数据报文01后,按照所述数据报文01原有的传输路径向检测域中的中间节点设备发送携带有更新的检测信息01的数据报文01。同样道理,所述第一网络设备对数据报文02中的检测信息02执行相同的操作。
当所述第一网络设备是检测域中的中间节点设备时,所述第一网络设备从首节点设备接收到所述数据报文01,所述数据报文01包括所述检测信息01,所述检测信息01的检测节点标识的值为0,序列号的值为0,采集信息的值为01。所述第一网络设备根据所述检测信息01中的采集信息的值01的指示,采集所述第一网络设备的设备标识(例如中间节点设备的设备标识为002),并且,将检测节点标识的值更新为1。然后,所述第一网络设备存储采集后的采集数据,其中采集数据的值为所述第一网络 设备的设备标识。具体的,所述第一网络设备根据检测信息01生成与所述检测信息01对应的上报检测信息01,所述上报检测信息01包括值为1的检测节点标识,值为0的序列号和值为002的采集数据。所述第一网络设备存储所述上报检测信息01。所述第一网络设备,在处理完所述数据报文01后,按照所述数据报文01原有的传输路径向检测域中的中间节点设备的下一跳网络设备(例如尾节点设备)发送携带有更新的检测信息01的数据报文01。同样道理,所述第一网络设备对数据报文02中的检测信息02执行相同的操作。
当所述第一网络设备是检测域中的尾节点设备时,所述第一网络设备从中间节点设备接收到所述数据报文01,所述数据报文01包括所述检测信息01,所述检测信息01的检测节点标识的值为1,序列号的值为0,采集信息的值为01。所述第一网络设备根据所述检测信息01中的采集信息的值01的指示,采集所述第一网络设备的设备标识(例如尾节点设备的设备标识为003),并且,将检测节点标识的值更新为2。然后,所述第一网络设备存储采集后的采集数据,其中采集数据的值为所述第一网络设备的设备标识。具体的,所述第一网络设备根据检测信息01生成与所述检测信息01对应的上报检测信息01,所述上报检测信息01包括值为2的检测节点标识,值为0的序列号和值为003的采集数据。所述第一网络设备存储所述上报检测信息01。所述第一网络设备,在处理完所述数据报文01后,删除所述数据报文01中的检测信息01,并且按照所述数据报文01原有的传输路径向检测域中的尾节点设备的下一跳网络设备(例如检测域外与尾节点设备连接的网络设备)发送不包括检测信息01的数据报文01。同样道理,所述第一网络设备对数据报文02中的检测信息02执行相同的操作。
可选的,所述第一网络设备和控制器还可以执行以下S107和S108操作:
S107、所述第一网络设备向所述控制器发送第一上报检测信息,所述第一上报检测信息包括所述更新的第一检测节点标识、所述第一序列号和所述第一采集数据。
S108、所述控制器接收第一网络设备发送的所述第一上报检测信息。
所述第一网络设备可以将采集到并存储的第一上报检测信息发送到控制器中。相应的,控制器可以根据接收的所述第一上报检测信息对检测域中的传输路径进行性能检测。例如,控制器根据收集到的、检测域中各个网络设备的上报检测信息,进行丢包率和丢包定位的计算。可选的,所述第一网络设备可以将采集到并存储的每个数据报文对应的上报检测信息发送到控制器,或者,所述第一网络设备可以根据所述控制器下发的所述第一控制信息,对采集到并存储的每个数据报文对应的上报检测信息进行选择,然后,将部分上报检测信息发送到控制器。另外,所述第一网络设备也可以将多个上报检测信息合并为一个上报检测信息,并发送到控制器。
本实施例提供的数据报文的检测方法,具体涉及一种随路流信息遥测方法,检测域中的各个网络设备可以根据控制器下发的控制信息,利用数据报文中包括的检测信息实现针对控制器要求的检测任务的信息采集,从而,在确保报文转发性能的情况下,实现传输路径上的数据报文的随路采集和对传输路径的检测。
下面的实施方式是在上述S101-S106的基础上,并且,以所述第一控制信息中的所述检测任务类型是丢包检测为例进行说明。具体的,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述首节点设备从所述检测开始时刻起向所 述首节点设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述首节点设备的设备标识,所述方法还包括:
S201、所述首节点设备接收所述首节点设备的上一跳网络设备发送的第二数据报文。
S202、所述首节点设备在所述第二数据报文中封装第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息。
S203、所述首节点设备根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述首节点设备更新所述第二检测节点标识,所述第二采集数据包括所述首节点设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同。
S204、所述首节点设备向所述首节点设备的下一跳网络设备发送携带有更新的所述第二检测信息的所述第二数据报文,所述第二数据报文是所述首节点设备在所述检测结束时刻前向所述首节点设备的下一跳网络设备发送的最后一个数据报文。
S205、所述首节点设备向所述控制器发送第一上报检测信息和第二上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
S206、所述控制器接收所述首节点设备发送的所述第一上报检测信息和所述第二上报检测信息。
根据前述实施方式,首节点设备接收控制器发送的第一控制信息后,所述首节点设备可以根据所述第一控制信息中的检测任务类型确定所述首节点设备执行的检测任务是丢包检测。并且,所述首节点设备还可以根据所述第一控制信息,确定丢包检测的检测开始时刻和检测结束时刻。假设数据报文01(对应上述第一数据报文)是所述首节点设备从所述检测开始时刻起向所述首节点设备的下一跳网络设备发送的第一个数据报文。所述首节点设备可以根据前述实施方式在数据报文01中封装检测信息01,并且根据检测信息01获得上报检测信息01。其中,所述检测信息01的检测节点标识的值为0,序列号的值为0,采集信息的值为01(表示采集网络设备的设备标识)。所述上报检测信息01的检测节点标识的值为0,序列号的值为0,采集数据的值为001(例如首节点设备的设备标识为001)。
在检测开始时刻和检测结束时刻之间的时间周期内,所述首节点设备根据前述实施方式处理多个数据报文,从而获得并存储多个上报检测信息,并且将多个处理后的数据报文发送到所述首节点设备的下一跳网络设备中。
所述首节点设备还接收所述首节点设备的上一跳网络设备发送的数据报文101(对应上述第二数据报文),所述数据报文101是所述首节点设备在所述检测结束时刻前向所述首节点设备的下一跳网络设备发送的最后一个数据报文。可见,在检测开始时刻和检测结束时刻之间的时间周期内向所述首节点设备的下一跳网络设备发送了100个数据报文。所述首节点设备在所述数据报文101中封装检测信息101,所述检测信息101包括的检测节点标识的值为0、序列号的值为100和采集信息值为01。所述首节点设备根据检测信息101的采集信息确定对应的上报检测信息101,并且更新检测节点标识。上报检测信息101包括的检测节点标识的值为0,序列号的值为100,采 集数据的值为001。
所述首节点设备在获得的上报检测信息01后,将上报检测信息01存储到所述首节点设备的缓存区内,然后,所述首节点设备将携带有更新的检测信息01的数据报文01向所述首节点设备的下一跳网络设备发送。所述首节点设备在获得的上报检测信息101后,将上报检测信息101存储到所述首节点设备的缓存区内,然后,所述首节点设备将携带有更新的检测信息101的数据报文101向所述首节点设备的下一跳网络设备发送。所述首节点设备还将上报检测信息01和上报检测信息101发送到所述控制器。所述控制器接收上报检测信息01和上报检测信息101,以便控制器可以根据上报检测信息01和上报检测信息101对检测域中的传输路径进行丢包检测。应当理解,首节点设备可以将检测周期内的第一个数据报文对应的上报检测信息和最后一个数据报文对应的上报检测信息发送给控制器。首节点设备也可以将检测周期内的全部数据报文对应的上报检测信息发送给控制器。
下面的实施方式是在上述S101-S106的基础上,并且结合上述S201-S206进行说明。具体的,所述第一网络设备是所述检测域的中间节点设备,所述第一数据报文是所述中间节点设备从所述检测开始时刻起从所述首节点设备接收的数据报文,所述第一采集数据包括所述首节点设备的设备标识,所述方法还包括:
S301、所述中间节点设备将所述检测结束时刻的值增加预定时长,并更新所述检测结束时刻的值。
S302、所述中间节点设备在所述检测开始时刻和更新的所述检测结束时刻之间的时间周期内,接收所述中间节点设备的上一跳网络设备发送的第二数据报文,所述第二数据报文包括第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息。
S303、所述中间节点设备根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述中间节点设备更新所述第二检测节点标识,所述第二采集数据包括所述中间节点设备的设备标识,所述第二序列号是所述中间节点设备在所述时间周期内接收到的多个数据报文的序列号中的最大序列号,所述第一数据报文是所述中间节点设备在所述时间周期内接收到的数据报文,所述第一序列号是所述中间节点设备在所述时间周期内接收到的多个数据报文的序列号中的最小序列号。
S304、所述中间节点设备向所述中间节点设备的下一跳网络设备发送携带有更新的所述第二检测信息所述第二数据报文。
S305、所述中间节点设备生成第三上报检测信息,所述第三上报检测信息包括第三检测节点标识、第三序列号和第三采集数据,所述第三检测节点标识更新的所述第二检测节点标识相同,所述第三采集数据包括所述中间节点设备的设备标识,所述第三序列号是所述中间节点设备在所述时间周期内接收到的多个数据报文的序列号中的缺少的序列号,所述第三序列号大于所述第一序列号且小于所述第二序列号。
S306、所述中间节点设备向所述控制器发送第一上报检测信息、第二上报检测信息和所述第三上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
S307、所述控制器接收所述中间节点设备发送的所述第一上报检测信息、所述第 二上报检测信息和所述第三上报检测信息。
结合前述实施方式,中间节点设备接收控制器发送的第一控制信息后,所述中间节点设备可以根据所述第一控制信息中的检测任务类型确定所述首节点设备执行的检测任务是丢包检测。并且,所述中间节点设备还可以根据所述第一控制信息,确定丢包检测的检测开始时刻和检测结束时刻。所述中间节点设备将所述检测结束时刻的值增加预定时长,并更新所述检测结束时刻的值。例如,检测开始时刻是2018年5月7日10:00,检测结束时刻是2018年5月7日10:02。所述中间节点设备将所述检测结束时刻更新为2018年5月7日10:05,以便中间节点设备可以接收到首节点设备在检测周期内发送的全部数据报文。
结合前述S201-S206的说明,中间节点设备接收首节点设备发送的数据报文01,根据检测信息01确定上报检测信息01,并且更新检测节点标识。因此,经过中间节点设备处理后,检测信息01包括的检测节点标识的值为1,序列号的值为0,采集信息的值为01;所述上报检测信息01的检测节点标识的值为1,序列号的值为0,采集数据的值为002(例如中间节点设备的设备标识为002)。所述中间节点设备按照前述实施方式处理所述首节点设备在数据报文01之后发送的多个数据报文。然后,中间节点设备接收首节点设备发送的数据报文101,根据检测信息101确定上报检测信息101,并且更新检测节点标识。因此,经过中间节点设备处理后,检测信息101包括的检测节点标识的值为1,序列号的值为100,采集信息的值为01;所述上报检测信息101的检测节点标识的值为1,序列号的值为100,采集数据的值为002(例如中间节点设备的设备标识为002)。
所述中间节点设备在获得的上报检测信息01后,将上报检测信息01存储到所述中间节点设备的缓存区内,然后,所述中间节点设备将携带有更新的检测信息01数据报文01向所述中间节点设备的下一跳网络设备发送。所述中间节点设备在获得的上报检测信息101后,将上报检测信息101存储到所述中间节点设备的缓存区内,然后,所述中间节点设备将携带有更新的检测信息101数据报文101向所述中间节点设备的下一跳网络设备发送。而且,在检测周期结束后,所述中间节点设备可以确定上报检测信息01中包括的序列号是所述中间节点设备在所述时间周期内接收到的多个数据报文的序列号中的最小序列号,所述上报检测信息101中的序列号是所述中间节点设备在所述时间周期内接收到的多个数据报文的序列号中的最大序列号。
假设序列号为50的数据报文51丢包,也就是说,所述中间节点设备无法接收到所述首节点设备发送的数据报文51。所述中间节点设备可以根据从所述首节点设备接收到的最小序列号的数据报文和最大序列号的数据报文,以及最小序列号和最大序列号之间的序列号对应的数据报文,确定出没有接收到序列号为50的数据报文51。所述中间节点设备生成上报检测信息51,所述上报检测信息51包括的检测节点标识的值为1,序列号的值为50,采集数据的值为002。所述中间节点设备存储上报检测信息51。
所述中间节点设备还将上报检测信息01和上报检测信息101,以及没有接收到数据报文51对应的上报检测信息51发送到所述控制器。所述控制器根据首节点设备发送的上报检测信息可以确定首节点设备发送的数据包总数,所述控制器根据中间节点设备发送的上报检测信息可以确定首节点设备到中间节点设备的传输路径中的丢包数 量(例如,根据上述方法确定数据报文21,数据报文45和数据报文51丢失)。这样,所述控制器可以确定确定首节点设备到中间节点设备的传输路径的丢包率。
在上述实施方式的说明中,是以中间节点设备为例进行说明的。实际上,上述S301-S307同样可以应用在尾节点设备中。进一步,根据前述实施方式,尾节点设备还可以执行将数据报文中的检测信息删除,将数据报文恢复为不携带检测信息的数据报文。
在上述实施方式的说明中,中间节点设备接收到的最小序列号的数据报文和最大序列号的数据报文,是以首节点设备在检测周期内发送的第一个数据报文(第一数据报文)和最后一个数据报文(第二数据报文)为例进行说明。在实际应用中,传输过程中可能出现丢包,或者检测域中的某个网络设备以负载分担的方式向两个网络设备发送数据报文(如图2中的尾节点设备2和中间节点设备2)。因此,检测域中的每个网络设备只需要确定检测周期内最小序列号的数据报文对应的上报检测信息和最大序列号的数据报文对应的上报检测信息即可,然后,该网络设备在确定最小序列号的数据报文和最大序列号的数据报文之间丢包的数据报文对应的上报检测信息。
在一种可能的实现方式中,检测域中的网络设备可以将多个上报检测信息进行合并,并且向控制器上报合并后的上报检测信息。例如在上述S306中,所述中间节点设备根据所述第一上报检测信息、所述第二上报检测信息和所述第三上报检测信息,生成第四上报检测信息,所述第四上报检测信息包括检测节点标识(中间节点设备在检测域中的位置),所述中间节点设备的设备标识,以及所述第一上报检测信息包括的序列号,所述第二上报检测信息包括的序列号和所述第三上报检测信息包括的序列号。
所述控制器还可以根据从检测域中的各个网络设备接收的上报检测信息确定检测域中丢失数据报文的丢包位置。例如,如图1所示,所述控制器根据尾节点设备上报的上报检测信息可以确定第五序列号值为50的数据报文丢失。所述控制器根据所述第五序列号的值,在所述中间节点设备1和中间节点设备2上报的上报检测信息中查找包括的检测节点标识的值为最小,并且包括所述第五序列号的上报检测信息。假设,控制器确定所述中间节点设备1中的第五上报检测信息包括所述第五序列号,并且所述第五上报检测信息包括的第五检测节点标识的值最小。所述控制器根据所述第五上报检测信息包括的第五采集数据(中间节点设备1的设备标识),确定丢包定位节点。
在上述实施方式中,检测域中的网络设备没有向控制器上报检测周期内所有数据报文的上报检测信息,而是上报序列号最小的上报检测信息和序列号最大的上报检测信息,以及丢失数据报文对应的上报检测信息。在实际应用中,检测域中的网络设备,可以向控制器上报检测周期内所有数据报文的上报检测信息。这样,控制器可以根据各个节点上报的上报检测信息,直接计算丢包率和进行丢包定位,而不需要各个网络节点进行预先的处理。在检测域的网络设备上报全部上报检测信息的实施方式中,控制器在实现丢包定位时,控制器首先确定丢失的序列号,然后在收集的上报检测信息中查找包括该丢失的序列号,且检测节点标识的值为最大的上报检测信息(例如第六上报检测信息)。控制器根据所述第六上报检测信息包括的第六采集数据确定丢包定位节点。
图5为本申请实施例的第一网络设备1000的结构示意图。图5所示的第一网络设备1000可以执行上述实施例的方法中第一网络设备执行的相应步骤。如图5所示,所 述第一网络设备1000包括接收单元1002、处理单元1004和发送单元1006。
所述接收单元1002,用于接收控制器发送的第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述第一网络设备执行的检测任务;
所述接收单元1002还用于接收所述第一网络设备的上一跳网络设备发送的第一数据报文,所述第一数据报文包括第一检测信息,所述第一检测信息包括第一检测节点标识、第一序列号和第一采集信息,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集信息指示所述检测任务类型对应的采集信息,所述检测域是所述控制器确定的检测范围,所述检测域包括多个网络设备,所述多个网络设备包括所述第一网络设备;
所述处理单元1004,用于根据所述第一采集信息确定所述第一采集信息对应的第一采集数据,并且所述处理单元1004还用于更新所述第一检测节点标识;
所述发送单元1006,用于向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文。
可选的,所述处理单元1004还用于,在所述接收单元1002接收所述第一网络设备的上一跳网络设备发送的第一数据报文之后,在所述第一数据报文中封装所述第一检测信息。
可选的,所述处理单元1004还用于,在所述发送单元1006向所述第一网络设备的下一跳网络设备发送所述第一数据报文之前,删除所述第一数据报文中的所述第一检测信息。
可选的,所述发送单元1006还用于向所述控制器发送第一上报检测信息,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据。
可选的,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述发送单元1006从所述检测开始时刻起向所述第一网络设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述第一网络设备的设备标识。所述接收单元1002还用于接收所述第一网络设备的上一跳网络设备发送的第二数据报文。所述处理单元1004还用于在所述第二数据报文中封装第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息。所述处理单元1004还用于根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述处理单元1004还用于更新所述第二检测节点标识,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同。所述发送单元1006还用于向所述第一网络设备的下一跳网络设备发送携带有更新的所述第二检测信息的所述第二数据报文,所述第二数据报文是所述发送单元1006在所述检测结束时刻前向所述第一网络设备的下一跳网络设备发送的最后一个数据报文。所述发送单元1006还用于向所述控制器发送第一上报检测信息和第二上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检 测节点标识、所述第二序列号和所述第二采集数据。
可选的,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的中间节点设备或尾节点设备,所述第一采集数据包括所述第一网络设备的设备标识。所述处理单元1004还用于将所述检测结束时刻的值增加预定时长,并更新所述检测结束时刻的值。所述接收单元1002还用于在所述检测开始时刻和更新的所述检测结束时刻之间的时间周期内,接收所述第一网络设备的上一跳网络设备发送的第二数据报文,所述第二数据报文包括第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息。所述处理单元1004还用于根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述处理单元1004还用于更新所述第二检测节点标识,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号是所述接收单元1002在所述时间周期内接收到的多个数据报文的序列号中的最大序列号,所述第一数据报文是所述接收单元1002在所述时间周期内接收到的数据报文,所述第一序列号是所述接收单元1002在所述时间周期内接收到的所述多个数据报文的序列号中的最小序列号。所述发送单元1006还用于向所述第一网络设备的下一跳网络设备发送携带有更新的所述第二检测信息所述第二数据报文。所述处理单元1004还用于生成第三上报检测信息,所述第三上报检测信息包括第三检测节点标识、第三序列号和第三采集数据,所述第三检测节点标识与更新的所述第二检测节点标识相同,所述第三采集数据包括所述第一网络设备的设备标识,所述第三序列号是所述接收单元1002在所述时间周期内接收到的所述多个数据报文的序列号中的缺少的序列号,所述第三序列号大于所述第一序列号且小于所述第二序列号。所述发送单元1006还用于向所述控制器发送第一上报检测信息、第二上报检测信息和所述第三上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
图5所示的第一网络设备可以执行上述实施例的方法中第一网络设备执行的相应步骤。检测域中的各个网络设备可以根据控制器下发的控制信息,利用数据报文中包括的检测信息实现针对控制器要求的检测任务的信息采集,从而,在确保报文转发性能的情况下,实现传输路径上的数据报文的随路采集和对传输路径的检测。
图6为本申请实施例的第一网络设备1100的硬件结构示意图。图6所示的第一网络设备1100可以执行上述实施例的方法中第一网络设备执行的相应步骤。
如图6所示,所述第一网络设备1100包括处理器1101、存储器1102、接口1103和总线1104。其中接口1103可以通过无线或有线的方式实现,具体来讲可以是网卡。上述处理器1101、存储器1102和接口1103通过总线1104连接。
所述接口1103具体可以包括发送器和接收器,用于第一网络设备与上述实施例中的第一网络设备的上一跳网络设备或下一跳网络设备之间收发信息;和/或用于上述实施例中的控制器之间收发信息。例如,所述接口1103用于支持接收所述控制器发送的第一控制信息;用于接收所述第一网络设备的上一跳网络设备发送的第一数据报文;和/或用于向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文。作为举例,所述接口1103用于支持图3中的过程S103、S104和S106。所述处理器1101用于执行上述实施例中由第一网络设备进行的处理。例如, 所述处理器1101用于确定第一采集信息对应的第一采集数据;用于更新第一检测节点标识;和/或用于本文所描述的技术的其他过程。作为举例,所述处理器1101用于支持图3中的过程S105。存储器1102包括操作系统11021和应用程序11022,用于存储程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成方法实施例中涉及第一网络设备的处理过程。可选的,所述存储器1102可以包括只读存储器(英文:Read-only Memory,缩写:ROM)和随机存取存储器(英文:Random Access Memory,缩写:RAM)。其中,所述ROM包括基本输入/输出系统(英文:Basic Input/Output System,缩写:BIOS)或嵌入式系统;所述RAM包括应用程序和操作系统。当需要运行第一网络设备1100时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导第一网络设备1100进入正常运行状态。在第一网络设备1100进入正常运行状态后,运行在RAM中的应用程序和操作系统,从而,完成方法实施例中涉及第一网络设备的处理过程。
可以理解的是,图6仅仅示出了第一网络设备1100的简化设计。在实际应用中,第一网络设备可以包含任意数量的接口,处理器或者存储器。
图7为本申请实施例的另一种第一网络设备1200的硬件结构示意图。图7所示的第一网络设备1200可以执行上述实施例的方法中第一网络设备执行的相应步骤。
如图7所述,第一网络设备1200包括:主控板1210、接口板1230、交换网板1220和接口板1240。主控板1210、接口板1230和1240,以及交换网板1220之间通过系统总线与系统背板相连实现互通。其中,主控板1210用于完成系统管理、设备维护、协议处理等功能。交换网板1220用于完成各接口板(接口板也称为线卡或业务板)之间的数据交换。接口板1230和1240用于提供各种业务接口(例如,POS接口、GE接口、ATM接口等),并实现数据包的转发。
接口板1230可以包括中央处理器1231、转发表项存储器1234、物理接口卡1233和网络处理器1232。其中,中央处理器1231用于对接口板进行控制管理并与主控板上的中央处理器进行通信。转发表项存储器1234用于保存转发表项。物理接口卡1233用于完成流量的接收和发送。网络处理器1232用于根据所述转发表项控制物理接口卡1233收发流量。
具体的,物理接口卡1233用于接收所述第一网络设备的上一跳网络设备发送的数据报文;用于向所述第一网络设备的下一跳网络设备发送数据报文;和/或用于与控制器交互信息。
物理接口卡1233接收到数据报文后,将数据报文经由中央处理器1231发送到中央处理器1211,中央处理器1211处理该数据报文。
中央处理器1211用于确定第一采集信息对应的第一采集数据。
中央处理器1211还用于更新第一检测节点标识。
中央处理器1231还用于控制网络处理器1232获取转发表项存储器1234中的转发表项,并且,中央处理器1231还用于控制网络处理器1232经由物理接口卡1233完成流量的接收和发送。
应理解,本发明实施例中接口板1240上的操作与所述接口板1230的操作一致,为了简洁,不再赘述。应理解,本实施例的第一网络设备1200可对应于上述方法实施例所具有的功能和/或所实施的各种步骤,在此不再赘述。
此外,需要说明的是,主控板可能有一块或多块,有多块的时候可以包括主用主控板和备用主控板。接口板可能有一块或多块,第一网络设备的数据处理能力越强,提供的接口板越多。接口板上的物理接口卡也可以有一块或多块。交换网板可能没有,也可能有一块或多块,有多块的时候可以共同实现负荷分担冗余备份。在集中式转发架构下,第一网络设备可以不需要交换网板,接口板承担整个系统的业务数据的处理功能。在分布式转发架构下,第一网络设备可以有至少一块交换网板,通过交换网板实现多块接口板之间的数据交换,提供大容量的数据交换和处理能力。所以,分布式架构的第一网络设备的数据接入和处理能力要大于集中式架构的设备。具体采用哪种架构,取决于具体的组网部署场景,此处不做任何限定。
另外,本申请实施例提供了一种计算机存储介质,用于储存为上述第一网络设备所用的计算机软件指令,其包含用于执行上述方法实施例所设计的程序。
图8为本申请实施例的控制器2000的结构示意图。图8所示的控制器2000可以执行上述实施例的方法中控制器执行的相应步骤。如图8所示,所述控制器2000包括接收单元2002、处理单元2004和发送单元2006。
处理单元2004,用于确定检测域,所述检测域是所述处理单元2004确定的检测范围,所述检测域包括多个网络设备;
发送单元2006,用于向所述多个网络设备发送第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述多个网络设备执行的检测任务;
接收单元2002,用于接收第一网络设备发送的第一上报检测信息,所述第一上报检测信息是所述第一网络设备根据第一检测信息确定得到的,所述第一检测信息是所述第一网络设备向所述第一网络设备的下一跳网络设备发送第一数据报文前从所述第一数据报文中获取得到的检测信息,所述第一上报检测信息包括第一检测节点标识、第一序列号和第一采集数据,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在所述检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集数据是所述第一网络设备根据所述第一检测信息中的第一采集信息确定的所述第一采集信息对应的采集数据,所述第一采集信息指示所述检测任务类型对应的采集信息,所述多个网络设备包括所述第一网络设备。
可选的,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述第一网络设备从所述检测开始时刻起向所述第一网络设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述第一网络设备的设备标识,所述接收单元2002还用于接收所述第一网络设备发送的第二上报检测信息,所述第二上报检测信息是所述第一网络设备根据第二检测信息确定得到的,所述第二检测信息是所述第一网络设备向所述第一网络设备的下一跳网络设备发送第二数据报文前从所述第二数据报文中获取得到的检测信息,所述第二上报检测信息包括第二检测节点标识、第二序列号和第二采集数据,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同,所述第二数据报文是所述第一网络设备在所述检测结束时刻前向所述第一网络设备的下一跳网络设备发送的最后一个数据报文。
可选的,所述接收单元2002还用于接收第二网络设备发送的第三上报检测信息,所述第三上报检测信息包括第三检测节点标识和第三采集数据,所述第三检测节点标识指示所述第二网络设备在检测域中的位置,所述第三采集数据包括所述第二网络设备的设备标识,所述第三上报检测信息还包括第三序列号、第四序列号和第五序列号,其中,所述第三序列号是所述第二网络设备在所述检测开始时刻与所述检测结束时刻增加预定时长后得到的时刻的时间周期内接收到的多个数据报文的序列号中的最小序列号,所述第四序列号是所述第二网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的缺少的序列号,所述第五序列号是所述第二网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的最大序列号,所述第二网路设备是所述检测域中的中间节点设备或尾节点设备,所述多个网络设备包括所述第二网络设备。
可选的,所述处理单元2004还用于根据所述第一上报检测信息、所述第二上报检测信息和所述第三上报检测信息确定丢包率。
可选的,所述处理单元2004还用于根据所述第四序列号确定第四上报检测信息,所述第四上报检测信息中包括的第四检测节点标识的值在所述接收单元2002接收到的包括所述第四序列号的所有上报检测信息中最小。所述处理单元2004还用于根据所述第四上报检测信息包括的第四采集数据确定丢包定位节点。
图8所示的控制器可以执行上述实施例的方法中控制器执行的相应步骤。检测域中的各个网络设备可以根据控制器下发的控制信息,利用数据报文中包括的检测信息实现针对控制器要求的检测任务的信息采集和上报,从而,在确保报文转发性能的情况下,实现传输路径上的数据报文的随路采集和对传输路径的检测。
图9为本申请实施例的控制器2100的硬件结构示意图。图9所示的控制器2100可以执行上述实施例的方法中控制器执行的相应步骤。
如图9所示,所述控制器2100包括处理器2101、存储器2102、接口2103和总线2104。其中接口2103可以通过无线或有线的方式实现,具体来讲可以是网卡。上述处理器2101、存储器2102和接口2103通过总线2104连接。
所述接口2103具体可以包括发送器和接收器,用于控制器与上述实施例中的第一网络设备之间收发信息。例如,所述接口2103用于支持向第一网络设备发送的控制信息;和/或用于接收所述第一网络设备发送的上报检测信息。作为举例,所述接口2103用于支持图3中的过程S102和S108。所述处理器2101用于执行上述实施例中由控制器进行的处理。例如,所述处理器2101用于确定检测域;和/或用于本文所描述的技术的其他过程。作为举例,所述处理器2101用于支持图3中的过程S101。存储器2102包括操作系统21021和应用程序21022,用于存储程序、代码或指令,当处理器或硬件设备执行这些程序、代码或指令时可以完成方法实施例中涉及控制器的处理过程。可选的,所述存储器2102可以包括只读存储器(英文:Read-only Memory,缩写:ROM)和随机存取存储器(英文:Random Access Memory,缩写:RAM)。其中,所述ROM包括基本输入/输出系统(英文:Basic Input/Output System,缩写:BIOS)或嵌入式系统;所述RAM包括应用程序和操作系统。当需要运行控制器2100时,通过固化在ROM中的BIOS或者嵌入式系统中的bootloader引导系统进行启动,引导控制器2100进入正常运行状态。在控制器2100进入正常运行状态后,运行在RAM中的应用程序和操作系统,从而,完成方法实施例中涉及控制器的处理过程。
可以理解的是,图9仅仅示出了控制器2100的简化设计。在实际应用中,控制器可以包含任意数量的接口,处理器或者存储器。
另外,本申请实施例提供了一种计算机存储介质,用于储存为上述控制器所用的计算机软件指令,其包含用于执行上述方法实施例所设计的程序。
在上述图5、图6、图7、图8或图9的实现方式中,可选的,所述第一检测信息还包括流标识,所述流标识指示所述第一数据报文属于的数据流。
在上述图5、图6、图7、图8或图9的实现方式中,可选的,所述第一检测信息还包括第一长度和第一版本号,其中,所述第一长度指示所述第一检测信息的长度,所述第一版本号指示所述第一检测信息的协议版本。
本申请实施例还包括一种网络系统,所述网络系统包括第一网络设备和控制器,所述第一网络设备为前述图5或图6或图7中的第一网络设备,所述控制器为前述图8或图9中的控制器。
结合本申请公开内容所描述的方法或者算法的步骤可以硬件的方式来实现,也可以是由处理器执行软件指令的方式来实现。软件指令可以由相应的软件模块组成,软件模块可以被存放于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动硬盘、CD-ROM或者本领域熟知的任何其它形式的存储介质中。一种示例性的存储介质耦合至处理器,从而使处理器能够从该存储介质读取信息,且可向该存储介质写入信息。当然,存储介质也可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。另外,该ASIC可以位于用户设备中。当然,处理器和存储介质也可以作为分立组件存在于用户设备中。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本申请所描述的功能可以用硬件或者用硬件和软件的组合来实现。当使用硬件和软件的组合实现时,可以将这些软件存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述的具体实施方式,对本申请的目的、技术方案和有益效果进行了进一步详细说明。所应理解的是,以上所述仅为本申请的具体实施方式而已。

Claims (26)

  1. 一种数据报文的检测方法,其特征在于,所述方法包括:
    第一网络设备接收控制器发送的第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述第一网络设备执行的检测任务;
    所述第一网络设备接收所述第一网络设备的上一跳网络设备发送的第一数据报文,所述第一数据报文包括第一检测信息,所述第一检测信息包括第一检测节点标识、第一序列号和第一采集信息,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集信息指示所述检测任务类型对应的采集信息,所述检测域是所述控制器确定的检测范围,所述检测域包括多个网络设备,所述多个网络设备包括所述第一网络设备;
    所述第一网络设备根据所述第一采集信息确定所述第一采集信息对应的第一采集数据,并且所述第一网络设备更新所述第一检测节点标识;
    所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文。
  2. 如权利要求1所述的方法,其特征在于,所述第一网络设备是所述检测域的首节点设备,在所述第一网络设备接收所述第一网络设备的上一跳网络设备发送的第一数据报文之后,所述方法还包括:
    所述第一网络设备在所述第一数据报文中封装所述第一检测信息。
  3. 如权利要求1所述的方法,其特征在于,所述第一网络设备是所述检测域的尾节点设备,在所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文之前,所述方法还包括:
    所述第一网络设备删除所述第一数据报文中的所述第一检测信息。
  4. 如权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:
    所述第一网络设备向所述控制器发送第一上报检测信息,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据。
  5. 如权利要求1或2所述的方法,其特征在于,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述第一网络设备从所述检测开始时刻起向所述第一网络设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述第一网络设备的设备标识,所述方法还包括:
    所述第一网络设备接收所述第一网络设备的上一跳网络设备发送的第二数据报文;
    所述第一网络设备在所述第二数据报文中封装第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息;
    所述第一网络设备根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述第一网络设备更新所述第二检测节点标识,所述第二采集数据包括所 述第一网络设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同;
    所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第二检测信息的所述第二数据报文,所述第二数据报文是所述第一网络设备在所述检测结束时刻前向所述第一网络设备的下一跳网络设备发送的最后一个数据报文;
    所述第一网络设备向所述控制器发送第一上报检测信息和第二上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
  6. 如权利要求1所述的方法,其特征在于,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的中间节点设备或尾节点设备,所述第一采集数据包括所述第一网络设备的设备标识,所述方法还包括:
    所述第一网络设备将所述检测结束时刻的值增加预定时长,并更新所述检测结束时刻的值;
    所述第一网络设备在所述检测开始时刻和更新的所述检测结束时刻之间的时间周期内,接收所述第一网络设备的上一跳网络设备发送的第二数据报文,所述第二数据报文包括第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息;
    所述第一网络设备根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述第一网络设备更新所述第二检测节点标识,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号是所述第一网络设备在所述时间周期内接收到的多个数据报文的序列号中的最大序列号,所述第一数据报文是所述第一网络设备在所述时间周期内接收到的数据报文,所述第一序列号是所述第一网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的最小序列号;
    所述第一网络设备向所述第一网络设备的下一跳网络设备发送携带有更新的所述第二检测信息所述第二数据报文;
    所述第一网络设备生成第三上报检测信息,所述第三上报检测信息包括第三检测节点标识、第三序列号和第三采集数据,所述第三检测节点标识与更新的所述第二检测节点标识相同,所述第三采集数据包括所述第一网络设备的设备标识,所述第三序列号是所述第一网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的缺少的序列号,所述第三序列号大于所述第一序列号且小于所述第二序列号;
    所述第一网络设备向所述控制器发送第一上报检测信息、第二上报检测信息和所述第三上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
  7. 如权利要求1-6中任一项所述的方法,其特征在于,所述第一检测信息还包括流标识,所述流标识指示所述第一数据报文属于的数据流。
  8. 如权利要求1-7中任一项所述的方法,其特征在于,所述第一检测信息还包括第一长度和第一版本号,其中,所述第一长度指示所述第一检测信息的长度,所述第一版本号指示所述第一检测信息的协议版本。
  9. 一种数据报文的检测方法,其特征在于,所述方法包括:
    控制器确定检测域,所述检测域是所述控制器确定的检测范围,所述检测域包括多个网络设备;
    所述控制器向所述多个网络设备发送第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述多个网络设备执行的检测任务;
    所述控制器接收第一网络设备发送的第一上报检测信息,所述第一上报检测信息是所述第一网络设备根据第一检测信息确定得到的,所述第一检测信息是所述第一网络设备向所述第一网络设备的下一跳网络设备发送第一数据报文前从所述第一数据报文中获取得到的检测信息,所述第一上报检测信息包括第一检测节点标识、第一序列号和第一采集数据,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在所述检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集数据是所述第一网络设备根据所述第一检测信息中的第一采集信息确定的所述第一采集信息对应的采集数据,所述第一采集信息指示所述检测任务类型对应的采集信息,所述多个网络设备包括所述第一网络设备。
  10. 如权利要求9所述的方法,其特征在于,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述第一网络设备从所述检测开始时刻起向所述第一网络设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述第一网络设备的设备标识,所述方法还包括:
    所述控制器接收所述第一网络设备发送的第二上报检测信息,所述第二上报检测信息是所述第一网络设备根据第二检测信息确定得到的,所述第二检测信息是所述第一网络设备向所述第一网络设备的下一跳网络设备发送第二数据报文前从所述第二数据报文中获取得到的检测信息,所述第二上报检测信息包括第二检测节点标识、第二序列号和第二采集数据,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同,所述第二数据报文是所述第一网络设备在所述检测结束时刻前向所述第一网络设备的下一跳网络设备发送的最后一个数据报文。
  11. 如权利要求10所述的方法,其特征在于,所述方法还包括:
    所述控制器接收第二网络设备发送的第三上报检测信息,所述第三上报检测信息包括第三检测节点标识和第三采集数据,所述第三检测节点标识指示所述第二网络设备在检测域中的位置,所述第三采集数据包括所述第二网络设备的设备标识,所述第三上报检测信息还包括第三序列号、第四序列号和第五序列号,其中,所述第三序列号是所述第二网络设备在所述检测开始时刻与所述检测结束时刻增加预定时长后得到 的时刻的时间周期内接收到的多个数据报文的序列号中的最小序列号,所述第四序列号是所述第二网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的缺少的序列号,所述第五序列号是所述第二网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的最大序列号,所述第二网路设备是所述检测域中的中间节点设备或尾节点设备,所述多个网络设备包括所述第二网络设备。
  12. 如权利要求11所述的方法,其特征在于,所述方法还包括:
    所述控制器根据所述第一上报检测信息、所述第二上报检测信息和所述第三上报检测信息确定丢包率。
  13. 如权利要求11所述的方法,其特征在于,所述方法还包括:
    所述控制器根据所述第四序列号确定第四上报检测信息,所述第四上报检测信息中包括的第四检测节点标识的值在所述控制器接收到的包括所述第四序列号的所有上报检测信息中最小;
    所述控制器根据所述第四上报检测信息包括的第四采集数据确定丢包定位节点。
  14. 如权利要求9-13中任一项所述的方法,其特征在于,所述第一检测信息还包括流标识,所述流标识指示所述第一数据报文属于的数据流。
  15. 一种第一网络设备,其特征在于,所述第一网络设备包括:
    接收器,用于接收控制器发送的第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述第一网络设备执行的检测任务;
    所述接收器还用于接收所述第一网络设备的上一跳网络设备发送的第一数据报文,所述第一数据报文包括第一检测信息,所述第一检测信息包括第一检测节点标识、第一序列号和第一采集信息,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集信息指示所述检测任务类型对应的采集信息,所述检测域是所述控制器确定的检测范围,所述检测域包括多个网络设备,所述多个网络设备包括所述第一网络设备;
    处理器,用于根据所述第一采集信息确定所述第一采集信息对应的第一采集数据,并且所述处理器还用于更新所述第一检测节点标识;
    发送器,用于向所述第一网络设备的下一跳网络设备发送携带有更新的所述第一检测信息的所述第一数据报文。
  16. 如权利要求15所述的第一网络设备,其特征在于,
    所述处理器还用于,在所述接收器接收所述第一网络设备的上一跳网络设备发送的第一数据报文之后,在所述第一数据报文中封装所述第一检测信息。
  17. 如权利要求15所述的第一网络设备,其特征在于,
    所述处理器还用于,在所述发送器向所述第一网络设备的下一跳网络设备发送所 述第一数据报文之前,删除所述第一数据报文中的所述第一检测信息。
  18. 如权利要求15-17中任一项所述的第一网络设备,其特征在于,
    所述发送器还用于向所述控制器发送第一上报检测信息,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据。
  19. 如权利要求15或16所述的第一网络设备,其特征在于,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述发送器从所述检测开始时刻起向所述第一网络设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述第一网络设备的设备标识,
    所述接收器还用于接收所述第一网络设备的上一跳网络设备发送的第二数据报文;
    所述处理器还用于在所述第二数据报文中封装第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息;
    所述处理器还用于根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述处理器还用于更新所述第二检测节点标识,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同;
    所述发送器还用于向所述第一网络设备的下一跳网络设备发送携带有更新的所述第二检测信息的所述第二数据报文,所述第二数据报文是所述发送器在所述检测结束时刻前向所述第一网络设备的下一跳网络设备发送的最后一个数据报文;
    所述发送器还用于向所述控制器发送第一上报检测信息和第二上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
  20. 如权利要求15所述的第一网络设备,其特征在于,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的中间节点设备或尾节点设备,所述第一采集数据包括所述第一网络设备的设备标识,
    所述处理器还用于将所述检测结束时刻的值增加预定时长,并更新所述检测结束时刻的值;
    所述接收器还用于在所述检测开始时刻和更新的所述检测结束时刻之间的时间周期内,接收所述第一网络设备的上一跳网络设备发送的第二数据报文,所述第二数据报文包括第二检测信息,所述第二检测信息包括第二检测节点标识、第二序列号和第二采集信息;
    所述处理器还用于根据所述第二采集信息确定所述第二采集信息对应的第二采集数据,并且所述处理器还用于更新所述第二检测节点标识,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号是所述接收器在所述时间周期内接收到 的多个数据报文的序列号中的最大序列号,所述第一数据报文是所述接收器在所述时间周期内接收到的数据报文,所述第一序列号是所述接收器在所述时间周期内接收到的所述多个数据报文的序列号中的最小序列号;
    所述发送器还用于向所述第一网络设备的下一跳网络设备发送携带有更新的所述第二检测信息所述第二数据报文;
    所述处理器还用于生成第三上报检测信息,所述第三上报检测信息包括第三检测节点标识、第三序列号和第三采集数据,所述第三检测节点标识与更新的所述第二检测节点标识相同,所述第三采集数据包括所述第一网络设备的设备标识,所述第三序列号是所述接收器在所述时间周期内接收到的所述多个数据报文的序列号中的缺少的序列号,所述第三序列号大于所述第一序列号且小于所述第二序列号;
    所述发送器还用于向所述控制器发送第一上报检测信息、第二上报检测信息和所述第三上报检测信息,其中,所述第一上报检测信息包括更新的所述第一检测节点标识、所述第一序列号和所述第一采集数据,所述第二上报检测信息包括更新的所述第二检测节点标识、所述第二序列号和所述第二采集数据。
  21. 一种控制器,其特征在于,所述控制器包括:
    处理器,用于确定检测域,所述检测域是所述处理器确定的检测范围,所述检测域包括多个网络设备;
    发送器,用于向所述多个网络设备发送第一控制信息,所述第一控制信息包括检测任务类型,所述检测任务类型指示所述控制器要求所述多个网络设备执行的检测任务;
    接收器,用于接收第一网络设备发送的第一上报检测信息,所述第一上报检测信息是所述第一网络设备根据第一检测信息确定得到的,所述第一检测信息是所述第一网络设备向所述第一网络设备的下一跳网络设备发送第一数据报文前从所述第一数据报文中获取得到的检测信息,所述第一上报检测信息包括第一检测节点标识、第一序列号和第一采集数据,其中,所述第一检测节点标识指示处理所述第一检测信息的网络设备在所述检测域中的位置,所述第一序列号指示包括所述第一检测信息的所述第一数据报文的序列号,所述第一采集数据是所述第一网络设备根据所述第一检测信息中的第一采集信息确定的所述第一采集信息对应的采集数据,所述第一采集信息指示所述检测任务类型对应的采集信息,所述多个网络设备包括所述第一网络设备。
  22. 如权利要求21所述的控制器,其特征在于,所述检测任务类型是丢包检测,所述第一控制信息还包括检测开始时刻和检测结束时刻,所述第一网络设备是所述检测域的首节点设备,所述第一数据报文是所述第一网络设备从所述检测开始时刻起向所述第一网络设备的下一跳网络设备发送的第一个数据报文,所述第一采集数据包括所述第一网络设备的设备标识,
    所述接收器还用于接收所述第一网络设备发送的第二上报检测信息,所述第二上报检测信息是所述第一网络设备根据第二检测信息确定得到的,所述第二检测信息是所述第一网络设备向所述第一网络设备的下一跳网络设备发送第二数据报文前从所述第二数据报文中获取得到的检测信息,所述第二上报检测信息包括第二检测节点标识、 第二序列号和第二采集数据,所述第二采集数据包括所述第一网络设备的设备标识,所述第二序列号大于所述第一序列号,所述第二检测节点标识与所述第一检测节点标识相同,所述第二数据报文是所述第一网络设备在所述检测结束时刻前向所述第一网络设备的下一跳网络设备发送的最后一个数据报文。
  23. 如权利要求22所述的控制器,其特征在于,
    所述接收器还用于接收第二网络设备发送的第三上报检测信息,所述第三上报检测信息包括第三检测节点标识和第三采集数据,所述第三检测节点标识指示所述第二网络设备在检测域中的位置,所述第三采集数据包括所述第二网络设备的设备标识,所述第三上报检测信息还包括第三序列号、第四序列号和第五序列号,其中,所述第三序列号是所述第二网络设备在所述检测开始时刻与所述检测结束时刻增加预定时长后得到的时刻的时间周期内接收到的多个数据报文的序列号中的最小序列号,所述第四序列号是所述第二网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的缺少的序列号,所述第五序列号是所述第二网络设备在所述时间周期内接收到的所述多个数据报文的序列号中的最大序列号,所述第二网路设备是所述检测域中的中间节点设备或尾节点设备,所述多个网络设备包括所述第二网络设备。
  24. 如权利要求23所述的控制器,其特征在于,
    所述处理器还用于根据所述第一上报检测信息、所述第二上报检测信息和所述第三上报检测信息确定丢包率。
  25. 如权利要求23所述的控制器,其特征在于,
    所述处理器还用于根据所述第四序列号确定第四上报检测信息,所述第四上报检测信息中包括的第四检测节点标识的值在所述接收器接收到的包括所述第四序列号的所有上报检测信息中最小;
    所述处理器还用于根据所述第四上报检测信息包括的第四采集数据确定丢包定位节点。
  26. 一种网络系统,其特征在于,所述网络系统包括第一网络设备和控制器,所述第一网络设备为权利要求15至20中任一所述的第一网络设备,所述控制器为权利要求21至25中任一所述的控制器。
PCT/CN2019/082358 2018-06-06 2019-04-12 一种数据报文的检测方法、设备及系统 WO2019233179A1 (zh)

Priority Applications (6)

Application Number Priority Date Filing Date Title
EP19814653.2A EP3817298A4 (en) 2018-06-06 2019-04-12 DATA MESSAGE DETECTION METHOD, DEVICE AND SYSTEM
JP2020567844A JP7035227B2 (ja) 2018-06-06 2019-04-12 データパケット検出方法、デバイス、及びシステム
KR1020207037374A KR102569305B1 (ko) 2018-06-06 2019-04-12 데이터 메시지 검출 방법, 디바이스 및 시스템
US17/113,104 US11228515B2 (en) 2018-06-06 2020-12-07 Data packet detection method, device, and system
US17/535,560 US20220086073A1 (en) 2018-06-06 2021-11-24 Data packet detection method, device, and system
JP2022031907A JP7375068B2 (ja) 2018-06-06 2022-03-02 データパケット検出方法、デバイス、及びシステム

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810574118.3A CN110572293B (zh) 2018-06-06 2018-06-06 一种数据报文的检测方法、设备及系统
CN201810574118.3 2018-06-06

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/113,104 Continuation US11228515B2 (en) 2018-06-06 2020-12-07 Data packet detection method, device, and system

Publications (1)

Publication Number Publication Date
WO2019233179A1 true WO2019233179A1 (zh) 2019-12-12

Family

ID=68770045

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/082358 WO2019233179A1 (zh) 2018-06-06 2019-04-12 一种数据报文的检测方法、设备及系统

Country Status (6)

Country Link
US (2) US11228515B2 (zh)
EP (1) EP3817298A4 (zh)
JP (2) JP7035227B2 (zh)
KR (1) KR102569305B1 (zh)
CN (3) CN116208525A (zh)
WO (1) WO2019233179A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271612A (zh) * 2020-02-17 2021-08-17 华为技术有限公司 一种随流信息遥测iFIT检测信息的上报方法及装置
WO2022012489A1 (zh) * 2020-07-13 2022-01-20 华为技术有限公司 一种能力通告方法及相关设备
EP4092965A4 (en) * 2020-02-29 2023-07-19 Huawei Technologies Co., Ltd. NETWORK PERFORMANCE DETECTION METHOD AND DEVICE AND NETWORK DEVICE
EP4096165A4 (en) * 2020-02-28 2023-08-09 Huawei Technologies Co., Ltd. MESSAGE ANOMALY DETECTION METHOD, APPARATUS AND SYSTEM
JP7468969B2 (ja) 2020-03-10 2024-04-16 ホアウェイ・テクノロジーズ・カンパニー・リミテッド 第1のネットワークノードにおいて使用される装置及びコントローラにおいて使用される装置

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116208525A (zh) * 2018-06-06 2023-06-02 华为技术有限公司 一种数据报文的检测方法、设备及系统
CN113132171A (zh) * 2019-12-31 2021-07-16 华为技术有限公司 通信方法及终端设备、网络设备、采集器
CN113067740B (zh) * 2020-01-02 2023-09-05 中国移动通信有限公司研究院 随路性能检测方法、装置、设备及计算机可读存储介质
CN113079091B (zh) * 2020-01-03 2022-07-22 华为技术有限公司 一种主动随流检测的方法、网络设备以及通信系统
US11258684B2 (en) 2020-01-09 2022-02-22 Arista Networks, Inc. Interval flow-based inband telemetry
CN113708985B (zh) 2020-05-20 2023-01-06 华为技术有限公司 一种流量的检测方法、装置及系统
CN112039724B (zh) * 2020-08-17 2021-09-28 鹏城实验室 网络丢包检测方法、装置、存储介质及网络系统
CN114157595B (zh) * 2020-09-08 2023-07-04 超聚变数字技术有限公司 一种通信系统、数据处理方法以及相关设备
CN114826952A (zh) * 2021-01-27 2022-07-29 中国移动通信有限公司研究院 一种用于oam检测的信息处理方法、装置和节点设备
CN115208781A (zh) * 2021-03-24 2022-10-18 华为技术有限公司 检测报文的传输方法、装置及系统
CN115460118A (zh) * 2021-05-19 2022-12-09 中国移动通信有限公司研究院 一种网络性能检测方法、装置和计算机可读存储介质
CN114629679B (zh) * 2022-01-26 2024-02-13 深圳市风云实业有限公司 一种数据报文染色与检测方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699786A (zh) * 2009-10-15 2010-04-28 华为技术有限公司 一种丢包检测的方法、装置和系统
CN101800679A (zh) * 2010-03-10 2010-08-11 华为技术有限公司 一种报文丢包检测方法及系统
CN104506369A (zh) * 2014-12-31 2015-04-08 北京华为数字技术有限公司 一种丢包位置的检测方法和设备
CN107147508A (zh) * 2016-03-01 2017-09-08 中兴通讯股份有限公司 故障检测方法及装置
US20170295055A1 (en) * 2013-12-13 2017-10-12 Marvell Istrael (M.I.S.L) Ltd. Protection switching

Family Cites Families (45)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4292722B2 (ja) * 2001-02-15 2009-07-08 沖電気工業株式会社 ネットワーク管理システム
FR2824215B1 (fr) * 2001-04-27 2003-07-18 Canon Kk Procede et dispositif de traitement d'un message dans un reseau de communication
WO2004053438A1 (en) * 2002-12-12 2004-06-24 Koninklijke Philips Electronics N.V. Transformation structures for approximating color matching functions
US7773611B2 (en) * 2005-06-15 2010-08-10 Cisco Technology, Inc. Method and apparatus for packet loss detection
US20080159287A1 (en) * 2006-12-29 2008-07-03 Lucent Technologies Inc. EFFICIENT PERFORMANCE MONITORING USING IPv6 CAPABILITIES
EP2106068A1 (en) * 2008-03-28 2009-09-30 British Telecommunications Public Limited Company Measuring data source-specific network metrics
CN101309114B (zh) * 2008-07-10 2012-05-09 中兴通讯股份有限公司 一种实现节点工作模式自动配置的方法及系统
CN101488835A (zh) * 2009-02-13 2009-07-22 华为技术有限公司 一种链路检测方法、装置和通信系统
US8385231B2 (en) * 2009-07-30 2013-02-26 Roberto Rojas-Cessa Disseminating link state information to nodes of a network
CN101867933B (zh) * 2010-05-28 2013-04-03 东南大学 一种基于公钥数字签名和路由恶意检测的安全路由方法
CN102572706B (zh) * 2010-12-28 2015-09-16 上海贝尔股份有限公司 在无线多播系统中用于检测传输时延的方法、设备与系统
CN102739462B (zh) * 2011-04-08 2014-12-31 中国移动通信集团公司 一种测试报文的发送方法以及装置
US8964563B2 (en) * 2011-07-08 2015-02-24 Telefonaktiebolaget L M Ericsson (Publ) Controller driven OAM for OpenFlow
CN102404166B (zh) * 2011-10-27 2015-04-08 华为技术有限公司 丢包检测方法和系统、发送设备及接收设备
WO2014035887A1 (en) 2012-08-27 2014-03-06 Southern Company Multi-stage circulating fluidized bed syngas cooling
US9300579B2 (en) 2013-02-11 2016-03-29 Cisco Technology, Inc. Packet metadata channels carrying infrastructure metadata in networks
US9176799B2 (en) * 2012-12-31 2015-11-03 Advanced Micro Devices, Inc. Hop-by-hop error detection in a server system
WO2014162920A1 (ja) 2013-04-01 2014-10-09 Necカシオモバイルコミュニケーションズ株式会社 情報端末、アクセスシステム、情報処理方法及びプログラム
CN103188120B (zh) * 2013-04-08 2016-08-10 华为技术有限公司 一种组播业务的丢包检测方法及装置
JP6101573B2 (ja) * 2013-06-03 2017-03-22 エヌ・ティ・ティ・コミュニケーションズ株式会社 パケット転送装置、検査方法、及びプログラム
US9444675B2 (en) * 2013-06-07 2016-09-13 Cisco Technology, Inc. Determining the operations performed along a service path/service chain
CN103442008B (zh) * 2013-08-29 2016-08-31 上海瀛联体感智能科技有限公司 一种路由安全检测系统及检测方法
US9419874B2 (en) * 2014-03-27 2016-08-16 Nicira, Inc. Packet tracing in a software-defined networking environment
US9397913B1 (en) * 2014-03-28 2016-07-19 Juniper Networks, Inc. Packet loss measurement in a distributed data plane
US9444715B2 (en) * 2014-10-14 2016-09-13 Cisco Technology, Inc. Scalable federated policy for network-provided flow-based performance metrics
CN104333883A (zh) * 2014-10-16 2015-02-04 南京邮电大学 一种改进的无线传感器网络能量多路径路由方法
CN105991338B (zh) * 2015-03-05 2019-11-12 华为技术有限公司 网络运维管理方法及装置
CN104780095A (zh) * 2015-04-30 2015-07-15 杭州华三通信技术有限公司 一种sdn网络中的路径探测方法和装置
US9769065B2 (en) * 2015-05-06 2017-09-19 Telefonaktiebolaget Lm Ericsson (Publ) Packet marking for L4-7 advanced counting and monitoring
CN106301987B (zh) * 2015-06-03 2020-02-14 华为技术有限公司 一种报文丢失检测方法、装置及系统
CN106301991B (zh) * 2015-06-11 2019-10-18 华为技术有限公司 一种路径检测的方法、路由设备及系统
US9992056B2 (en) 2015-10-20 2018-06-05 Cisco Technology, Inc. Triggered in-band operations, administration, and maintenance in a network environment
CN106936655A (zh) * 2015-12-30 2017-07-07 阿里巴巴集团控股有限公司 链路检测方法、装置及网络设备、控制器
US10270690B2 (en) 2016-02-29 2019-04-23 Cisco Technology, Inc. System and method for dataplane-signaled packet capture in IPV6 environment
US10482242B2 (en) * 2016-03-08 2019-11-19 Tanium Inc. System and method for performing event inquiries in a network
US10200264B2 (en) * 2016-05-31 2019-02-05 128 Technology, Inc. Link status monitoring based on packet loss detection
US10742551B2 (en) 2016-06-21 2020-08-11 Cisco Technology, Inc. Packet path recording with fixed header size
US10547500B1 (en) * 2017-09-13 2020-01-28 Amazon Technologies, Inc. Determining sources of network packet loss
US10461992B1 (en) * 2017-09-26 2019-10-29 Amazon Technologies, Inc. Detection of failures in network devices
CN107566272B (zh) * 2017-10-17 2021-10-12 新华三技术有限公司 转发表建立方法及数据转发方法
CN108011837B (zh) * 2017-11-21 2021-06-29 新华三技术有限公司 报文处理方法及装置
CN108111432B (zh) * 2017-12-27 2021-07-02 新华三技术有限公司 报文转发方法及装置
US20190260657A1 (en) * 2018-02-21 2019-08-22 Cisco Technology, Inc. In-band performance loss measurement in ipv6/srv6 software defined networks
US10498639B2 (en) * 2018-03-13 2019-12-03 Futurewei Technologies, Inc. Collecting network OAM flow data using out-of-band messages
CN116208525A (zh) * 2018-06-06 2023-06-02 华为技术有限公司 一种数据报文的检测方法、设备及系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101699786A (zh) * 2009-10-15 2010-04-28 华为技术有限公司 一种丢包检测的方法、装置和系统
CN101800679A (zh) * 2010-03-10 2010-08-11 华为技术有限公司 一种报文丢包检测方法及系统
US20170295055A1 (en) * 2013-12-13 2017-10-12 Marvell Istrael (M.I.S.L) Ltd. Protection switching
CN104506369A (zh) * 2014-12-31 2015-04-08 北京华为数字技术有限公司 一种丢包位置的检测方法和设备
CN107147508A (zh) * 2016-03-01 2017-09-08 中兴通讯股份有限公司 故障检测方法及装置

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113271612A (zh) * 2020-02-17 2021-08-17 华为技术有限公司 一种随流信息遥测iFIT检测信息的上报方法及装置
WO2021164248A1 (zh) * 2020-02-17 2021-08-26 华为技术有限公司 一种随流信息遥测iFIT检测信息的上报方法及装置
CN113271612B (zh) * 2020-02-17 2024-04-09 华为技术有限公司 一种随流信息遥测iFIT检测信息的上报方法及装置
EP4096165A4 (en) * 2020-02-28 2023-08-09 Huawei Technologies Co., Ltd. MESSAGE ANOMALY DETECTION METHOD, APPARATUS AND SYSTEM
EP4092965A4 (en) * 2020-02-29 2023-07-19 Huawei Technologies Co., Ltd. NETWORK PERFORMANCE DETECTION METHOD AND DEVICE AND NETWORK DEVICE
JP7468969B2 (ja) 2020-03-10 2024-04-16 ホアウェイ・テクノロジーズ・カンパニー・リミテッド 第1のネットワークノードにおいて使用される装置及びコントローラにおいて使用される装置
WO2022012489A1 (zh) * 2020-07-13 2022-01-20 华为技术有限公司 一种能力通告方法及相关设备
US11943099B2 (en) 2020-07-13 2024-03-26 Huawei Technologies Co., Ltd. Capability notification method and related device

Also Published As

Publication number Publication date
US20220086073A1 (en) 2022-03-17
KR102569305B1 (ko) 2023-08-22
JP2022071112A (ja) 2022-05-13
CN116208525A (zh) 2023-06-02
US11228515B2 (en) 2022-01-18
CN110572293B (zh) 2023-02-14
KR20210013207A (ko) 2021-02-03
EP3817298A4 (en) 2021-06-02
CN110572293A (zh) 2019-12-13
JP7035227B2 (ja) 2022-03-14
JP2021526339A (ja) 2021-09-30
CN116208524A (zh) 2023-06-02
JP7375068B2 (ja) 2023-11-07
EP3817298A1 (en) 2021-05-05
US20210092061A1 (en) 2021-03-25

Similar Documents

Publication Publication Date Title
WO2019233179A1 (zh) 一种数据报文的检测方法、设备及系统
WO2019128950A1 (zh) 一种报文处理的方法、网络节点和系统
JP5345942B2 (ja) Pbtネットワークの中間ノードにおけるイーサネットoam
RU2608879C2 (ru) Приводимое в действие контроллером оам для openflow
WO2011155510A1 (ja) 通信システム、制御装置、パケットキャプチャ方法およびプログラム
JP4816957B2 (ja) 中継装置、経路選択システム、経路選択方法、およびプログラム
CN110601983A (zh) 一种协议无感知源路由转发方法及系统
US9083602B2 (en) Communication system and communication device
US11272396B2 (en) Frame aggregation method, network setting frame sending method, and device
US10050859B2 (en) Apparatus for processing network packet using service function chaining and method for controlling the same
JP5682568B2 (ja) ノード及びそれに用いる監視管理方法並びにそれを用いる転送システム、入力回路、出力回路
US11356372B2 (en) Data traffic processing method, device, and system
WO2021244262A1 (zh) 一种报文处理方法、设备及系统
US20130259057A1 (en) Pseudowire groups in a packet switched network
WO2016101582A1 (zh) 一种操作维护管理功能的配置、实现方法及转发设备
CN111211977A (zh) 一种支持外界多异构信道连接的舰船通信方法及系统
JP2015525984A (ja) 通信システム、制御装置、通信方法及びプログラム
WO2022135321A1 (zh) 报文传输方法、设备及系统
US20220094613A1 (en) Message sampling method, decapsulation method, node, system and storage medium
KR20160063155A (ko) Sdn 기반의 에러 탐색 네트워크 시스템
JPWO2015052854A1 (ja) トラフィック管理システムおよびトラフィック管理方法
CN114598636A (zh) 流量调度方法、设备及系统
US20130258837A1 (en) Pseudowire extended group actions in a packet switched network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19814653

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2020567844

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2019814653

Country of ref document: EP

Effective date: 20201208

ENP Entry into the national phase

Ref document number: 20207037374

Country of ref document: KR

Kind code of ref document: A