WO2021027420A1 - Procédé et dispositif utilisés pour transmettre des données - Google Patents

Procédé et dispositif utilisés pour transmettre des données Download PDF

Info

Publication number
WO2021027420A1
WO2021027420A1 PCT/CN2020/099391 CN2020099391W WO2021027420A1 WO 2021027420 A1 WO2021027420 A1 WO 2021027420A1 CN 2020099391 W CN2020099391 W CN 2020099391W WO 2021027420 A1 WO2021027420 A1 WO 2021027420A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
network device
message
function
packet
Prior art date
Application number
PCT/CN2020/099391
Other languages
English (en)
Chinese (zh)
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 华为技术有限公司
Publication of WO2021027420A1 publication Critical patent/WO2021027420A1/fr

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/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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/06Management of faults, events, alarms or notifications
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults

Definitions

  • This application relates to the field of communication technology, and more specifically, to a method and device for data transmission.
  • the network device obtains the message, and carries the data of each network element on the transmission path through which the message passes in the message, and finally carries it to the end of the path, thereby obtaining end-to-end network performance
  • the data can be used to measure and evaluate network delay and network congestion.
  • the data bandwidth required in the service message will be expanded, which consumes a large amount of network bandwidth.
  • This application provides a method and device for data transmission, which can improve the performance of network equipment fault diagnosis.
  • a method for data transmission includes: a network device obtains a first packet; the network device determines first information corresponding to the first packet, and the first information indicates that the network device The first stage of processing the first message; after the network device determines the first information, it saves the first information; after the network device determines the first information, it processes the first message according to the first information; the network After the device processes the first message, the network device avoids sending the first message to the outside of the network device.
  • the network device after determining the first information corresponding to the first packet, performs and saves the first information on the obtained first packet, so that when the network device fails, the fault can be accurately located based on the first information.
  • the network device processes the first message according to the first information, and after processing the first message, avoids sending the first message to the outside of the network device, avoiding data bandwidth expansion and saving links Bandwidth, thereby improving the performance of network equipment fault diagnosis.
  • the first message may be obtained by the network device through an Ethernet interface, and the first message includes the original data message and diagnosis control information.
  • the first message may also be a fictitious data message and diagnosis control information consistent with the original data message constructed by the central processing unit CPU.
  • the network device may include a three-state content-addressable memory
  • the central processing unit CPU configures the three-state content-addressable memory
  • the configured three-state content-addressable memory includes identification information consistent with the original data message and diagnostic control Information
  • the network device obtains the original data message, the original data message passes through the tri-state content addressing memory, and if it matches the identification information of the original data message successfully, the tri-state content addressing memory outputs the first message, the The first message includes the original data message and diagnostic control information.
  • the method further includes: the network device determines second information corresponding to the first packet, and the second information indicates that the network device responds to the first packet.
  • the second stage of message processing, the second stage is later than the first stage; the network device saves the second information after determining the second information; the network device saves the third information, and the third information indicates the The stage corresponding to the second information is later than the stage corresponding to the first information; wherein the network device processes the first message according to the first information, including: the network device processes the first message according to the first information and the second information Process the first message.
  • the first information and the second information may be information pre-stored in the network device.
  • the first information and the second information may be information contained in a computer program stored in a network device, or information contained in a non-computer program (for example, a forwarding table) stored in a network device, where:
  • the network device can be a router or a switch, and the forwarding table can be a router or a media access control (MAC) table.
  • MAC media access control
  • the network device processes the first message according to the first information and the second information, including: the network device determines by looking up at least two tables A first action, the at least two tables include a first table and a second table, the second table is the next table of the first table; and the network device performs the first action on the first packet; wherein , The first information is the identifier of the first table, the second information is the identifier of the second table, and the third information is used to indicate that the second table corresponding to the second information is the first table corresponding to the first information. The next table of the table.
  • the network device processing the first message according to the first information and the second information includes: the network device executes at least two functions , Determine a first action, the at least two functions include a first function and a second function, the second function is the next function of the first function; and, the network device performs the first action on the first message ;
  • the first information is the identification of the first function
  • the second information is the identification of the second function
  • the third information is used to indicate that the second function corresponding to the second information is the corresponding The next function of the first function.
  • the method before the network device determines the first action by looking up at least two tables, the method further includes: the network device according to the search result of the first table and the first action The message determines the second table.
  • the network device After the network device obtains the first message, it processes the data message in the first message. For example, the data message performs table lookup processing to obtain table item return information. Furthermore, the information is processed by at least two functions to obtain the function The network device samples the output result according to the diagnostic control information in the first message to obtain the first information, and saves the first information.
  • the first information may include identification information of at least two tables searched by the data packet and input parameters of the processed function.
  • the identification information of the table can know the forwarding path of the data message.
  • the fault can be accurately located according to the identification information of the table in the first information and the input parameters of the function, thereby improving the fault diagnosis performance of the network device.
  • the first message includes the port identifier, the first type, and the first message header; the network device processes the first message, Including: the network device determines the computer program corresponding to the port according to the port identifier; the network device processes the first packet header by executing the computer program corresponding to the port, and multiple pieces of information are passed through the first packet header. Obtained by processing the packet header, the pieces of information include the first information; the network device stores the first information according to the first type, and the first information belongs to the first type.
  • the data message in the first message is processed by table lookup and function.
  • the processed data message is processed according to the diagnostic control information in the first message to obtain the corresponding first information, and the first information is stored in In the memory.
  • the first message further includes first indication information, and the first indication information is used to instruct the network device to determine the connection with the port according to the port identifier.
  • the first indication information is also used to instruct the network device to save the first information according to the first type.
  • the first indication information is further used to instruct the network device to avoid sending the first packet to the outside of the network device.
  • the network device After determining the first information corresponding to the first packet, the network device saves the first information, and processes the first packet according to the first information. At the exit of the network device, it is necessary to determine whether to send the data message to the outside of the network device. If the data message is an original data message, the first message discards the diagnostic control information and sends the original data message to the outside of the network device; if the data message is a fictitious data message, the first message A message cannot be sent to the outside of the network device. Thus avoiding data bandwidth expansion and saving link bandwidth.
  • a device for data transmission includes: an acquiring unit configured to acquire a first message; a processing unit configured to determine first information corresponding to the first message, and the first information Instruct the network device to process the first stage of the first message; the processing unit is also used to save the first information after determining the first information; the processing unit is also used to determine the first information according to The first information processes the first message; the processing unit is further configured to avoid sending the first message to the outside of the network device after processing the first message.
  • the processing unit is further configured to: determine second information corresponding to the first packet, and the second information instructs the network device to respond to the first packet.
  • the second stage of document processing the second stage is later than the first stage; after the second information is determined, the second information is saved; the third information is saved, and the third information indicates that the stage corresponding to the second information is later
  • the processing unit is specifically configured to: process the first message according to the first information and the second information.
  • the processing unit is specifically configured to: determine the first action by looking up at least two tables, the at least two tables including the first table and the second table , The second table is the next table of the first table; and, the first action is performed on the first message; wherein, the first information is the identifier of the first table, and the second information is the second The table identifier and the third information are used to indicate that the second table corresponding to the second information is the next table of the first table corresponding to the first information.
  • the processing unit is specifically configured to: determine the first action by executing at least two functions, the at least two functions including the first function and the second function , The second function is the next function of the first function; and, the first action is performed on the first message; wherein the first information is the identifier of the first function, and the second information is the second The identifier of the function and the third information are used to indicate that the second function corresponding to the second information is the next function of the first function corresponding to the first information.
  • the processing unit is further configured to determine the second table according to the search result of the first table and the first message.
  • the processing unit is further configured to: determine the second table according to the search result of the first table and the first message.
  • the first message includes the port identifier, the first type, and the first message header; the processing unit is specifically configured to: according to the port identifier, Determine the computer program corresponding to the port; process the first packet header by executing the computer program corresponding to the port, and multiple pieces of information are obtained by processing the first packet header, and the multiple pieces of information include The first information; according to the first type, the first information is stored, and the first information belongs to the first type.
  • the first message further includes first indication information, and the first indication information is used to instruct the network device to determine the connection with the port according to the port identifier.
  • the first indication information is also used to instruct the network device to save the first information according to the first type.
  • the first indication information is also used to instruct the network device to avoid sending the first packet to the outside of the network device.
  • a network device including a processor and a memory.
  • the memory is used to store a computer program
  • the processor is used to call and run the computer program stored in the memory, so that the network device executes the foregoing first aspect or the method in any possible implementation manner of the first aspect.
  • the network device further includes a transceiver. Further optionally, there are one or more processors.
  • the memory is one or more.
  • the foregoing memory may be integrated with the processor, or the memory and the processor may be provided separately.
  • the aforementioned transceiver may include a receiver and/or a transmitter.
  • the present application provides a system for data transmission, and the system includes the network device described in the third aspect.
  • this application provides a computer-readable medium for storing a computer program, and the computer program includes instructions for executing the first aspect or any possible implementation of the first aspect.
  • a chip in which instructions are stored, when running on a receiving device, the chip is made to execute the method in the first aspect or any possible implementation of the first aspect.
  • the chip further includes a memory, and the memory and the processor are connected to the memory through a circuit or a wire.
  • the chip also includes a communication interface.
  • a computer program product includes: computer program code, when the computer program code is executed by the communication unit or communication interface, and the processing unit or processor of the receiving device, the sending device is executed The first aspect or the method in any possible implementation of the first aspect.
  • Figure 1 shows a schematic diagram of INT/IOAM forwarding
  • Figure 2 shows an architecture diagram applicable to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of a method for data transmission provided by an embodiment of the present application.
  • Figure 4 is a schematic diagram of the format of the first message
  • FIG. 5 shows a schematic block diagram for obtaining first information according to an embodiment of the present application
  • FIG. 6 shows another architecture diagram applicable to the embodiments of the present application.
  • FIG. 7 shows another architecture diagram applicable to the embodiments of the present application.
  • Fig. 8 is a schematic block diagram of an apparatus for data transmission according to the present application.
  • Fig. 9 is a schematic block diagram of a network device used for data transmission in the present application.
  • FIG. 1 shows a schematic diagram of INT/IOAM forwarding.
  • the initial message is composed of a transport header and a payload.
  • INT/IOAM carries the data of all nodes on the path that it passes through in the initial message, and sends it to the next node until the data at the end node of the path is carried in the initial message.
  • the transmission path of the initial message is node A-node B-node E.
  • the data 0 of node A is carried in the initial message to form a new message, and the generated new message is transmitted to node B.
  • the data 1 of node B is carried in the message received by node B and transmitted to node E.
  • the data 2 of node E is carried in this message.
  • Node E is the end node. Node E sends a new message carrying the data of node A, node B, and node E to the INT/IOAM system for data processing.
  • the initial message carries the data of the path traversed. Specifically, it may be data of nodes on the path. When the path has more nodes or the data size is too large, the size of the message transmitted on the path is larger. Larger packets need to occupy a larger data bandwidth. Increase bandwidth consumption. In addition, in the process of service flow transmission, when a network fails, the fault needs to be accurately located.
  • a related technology provides a means of obtaining forwarding behavior in a single step. The single-step operation is based on the instruction operation mechanism to gradually collect and forward data to locate the business. During single-step operation, normal business may not be processed. Thus causing normal business interruption.
  • the embodiments of the present application provide a method for data transmission, which can improve the performance of network device fault diagnosis.
  • Figure 2 shows an architecture diagram applicable to an embodiment of the present application.
  • the trigger source triggers diagnosis for a specific service, generates diagnosis control information that can control the network device to process the service to be diagnosed, and transmits the control information to be diagnosed to the subsequent processing unit.
  • Each level of processing unit includes a diagnosis module for identifying the diagnosis indication information. While the business is running normally, data collection is performed on the business to be diagnosed through the data bus bypass based on the diagnosis control information. Store the data collected at each level in the diagnostic data memory. Perform fault analysis based on collected business data to be diagnosed. By collecting data by bypassing the data bus, the impact of interruption to normal services can be reduced during fault diagnosis.
  • FIG. 3 is a schematic flowchart of a method 300 for data transmission according to an embodiment of the present application.
  • the method 300 is applicable to the architecture shown in FIG. 2.
  • the method 300 includes steps S310 to S350, and each step in the method 300 will be described in detail below.
  • S310 The network device obtains the first packet.
  • the network device Before performing fault diagnosis of the network device, the network device obtains the first packet, where the network device may be a router, a network switch, a firewall, a load balancer, etc., which is not limited in the embodiment of the present application.
  • the first message is composed of two parts, an original data message and diagnostic control information.
  • the external port of the network device receives the original data message.
  • the original data message received by the external port enters the trigger source, and the trigger source generates diagnostic control information for specific services, so that the original data message obtains the first message after passing through the trigger source.
  • the trigger source is a component in the network device, which can be the ternary content addressable memory (TCAM) mentioned below, or it can be in the central processing unit (CPU).
  • TCAM ternary content addressable memory
  • CPU central processing unit
  • a program solidified in used to start the monitoring, and the user triggers to send a message.
  • Figure 4 shows the format of the first message.
  • the first message includes four parts, namely, an Ethernet (Ethernet, ETH) header, a control header (control header), a packet header (packet header), and a packet payload (packet payload).
  • the header and the message header are the parts that must be carried, and the ETH header and the packet payload are optional.
  • the first message when the first message is sent to the network device through the ETH link, the first message needs to carry the ETH header before the control header. In some embodiments, when the first message does not need to be sent to the network device through the ETH link, the first message does not need to carry an ETH header.
  • the control header includes diagnostic control information, and the diagnostic control information is used to control the diagnostic module in the network device to process the data message in the first message.
  • the diagnosis control information includes diagnosis instruction information, and the diagnosis instruction information is used for the network device to identify the data to be diagnosed and start data collection processing of the service to be diagnosed. For example, when the diagnosis indication information is 1, the data collection process for the service to be diagnosed is started, and when the diagnosis indication information is 0, the data collection process for the diagnosis service is not started.
  • the above method of starting the data collection and processing of the first message according to the diagnosis indication information is only for the convenience of description, and there may be other ways of indicating the diagnosis information, as long as it can accurately indicate whether to start the data collection and processing of the first message.
  • the embodiment of the present application does not limit this.
  • control header of the first packet further includes first indication information, that is, forwarding basic information, which is used to classify services of the network device.
  • first indication information may include information such as source port and forwarding domain.
  • the control header of the first message further includes a first type, that is, a data type, which is used to indicate what kind of data the network device collects.
  • a data type which is used to indicate what kind of data the network device collects.
  • different data types correspond to different collected data information.
  • the data types in the first message are classified into table item forwarding data, processing data 1, and processing data 2.
  • the data type is 1, it means the forwarding data of the collection table entry, when the data type is 2, it means the processing data 1 is collected, and when the data type is 3, it means the processing data 2 is collected, or when the data type is When 0, it means to collect all types of data in the first message.
  • the above data type information instructs the network device to collect the corresponding type of data only for convenience of description, and there may be other indication methods, as long as it can clearly indicate which type of data to collect, this embodiment of the application does not limit this .
  • S320 The network device determines first information corresponding to the first packet, and the first information indicates the first stage of processing the first packet by the network device.
  • the first stage of processing the first packet by the network device can be understood as the first processing of the first packet by the network device, for example, the first packet searches the first table.
  • the network device determines the first information according to the port information of the received first packet. For example, the network device determines the computer program corresponding to the first message according to the port information included in the first message, where the computer program includes the first information.
  • the network device determines the first information according to the fields in the first message. For example, the network device searches the routing table according to the destination IP address in the first packet to obtain an entry that matches the destination IP address, where the matching entry includes the first information.
  • the network device After determining the first information, the network device saves the first information.
  • the network device After determining the first information corresponding to the first packet, the network device stores the first information in the memory.
  • the network device After determining the first information, the network device processes the first packet according to the first information.
  • the network device includes at least one inlet pipe, such as inlet pipe 1, inlet pipe 2, ... inlet pipe n, and each inlet pipe includes a diagnostic module. After the network device obtains the first message, it processes the original data message in the first message according to the determined first information.
  • the network device determines second information corresponding to the first packet, and the second information indicates a second stage of processing the first packet by the network device, wherein the second stage is later than the first stage. After determining the second information, the network device saves the second information.
  • the first information and the second information may be information pre-stored in the network device.
  • the first information and the second information may be information contained in a computer program stored in a network device, or information contained in a non-computer program (for example, a forwarding table) stored in a network device, where:
  • the network device can be a router or a switch, and the forwarding table can be a router or a media access control (MAC) table.
  • MAC media access control
  • the network device may also store third information, where the third information indicates that the phase corresponding to the second information is later than the phase corresponding to the first information, which is not limited in this embodiment of the application.
  • the first action may include deleting a header in the first message, deleting at least one field in the first header in the first message, and calculating the sum check code of the first message ( checksum), subtract one from the time to live (TTL) value of the first message, add a message header to the first message, or determine the physical or logical egress port of the first message.
  • the first information is the identifier of the first table
  • the second information is the identifier of the second table
  • the third information is used to indicate that the second table corresponding to the second information is the next table of the first table corresponding to the first information.
  • the network device determines the first table searched by the first packet according to the port identification information included in the first packet, and obtains the entry data after searching the first table.
  • the network device The second table searched by the first packet is determined according to the entry data returned by the first table and the entry information of the first packet.
  • the network device when the network device receives the first message, the network device needs to determine the forwarding path of the first message in these four tables, that is, the first message is in the four tables. Whether the forwarding path in the chip is ABCD or ACBD.
  • the network device first determines that the first table searched by the first packet is table A according to the port identification information included in the first packet, and then the network device searches the first table (ie, table A) according to the first packet and returns The entry data and the port identification information of the first message determine that the next table of table A is table B, and so on, the next table of table B is table C, and the next table of table C is table D, so It is determined that the table lookup order of the first message in the chip is ABCD. During the table lookup process, the network device saves the identification information (ie, the first information and the second information) of the table of the first message lookup table, which is used to indicate the path for the network device to process the first message. When a chip fails, the forwarding path of the first packet inside the chip can be clearly known according to the stored first information, so as to realize accurate fault location.
  • the identification information ie, the first information and the second information
  • the entry data is further processed by at least two functions to obtain the execution results of the at least two functions.
  • the network device determines the first action by executing at least two functions, the at least two functions including a first function and a second function, the second function is the next function of the first function; and the network device performs the first action
  • the message performs the first action; where the first information is the identifier of the first function, the second information is the identifier of the second function, and the third information is used to indicate that the second function corresponding to the second information is The next function of the first function corresponding to the first information.
  • the processed original data message is transmitted through the data bus between each level of ingress pipelines inside the network device.
  • the diagnostic module processes the processed data message according to the diagnostic control information in the first message to obtain the first information, that is, the diagnostic module hangs on each level of the data bus, and the network device responds to the waiting data according to the diagnostic control information.
  • Diagnosis business data collection while not occupying normal business data processing bandwidth, an additional part of processing is added to monitor the processing of normal business data, so as to achieve fault diagnosis without affecting normal business.
  • FIG. 5 shows a schematic block diagram for obtaining first information according to an embodiment of the present application.
  • the data type of the processed original data message includes table item return data, processing data 1 to processing data n (n is a positive integer greater than or equal to 1), and the diagnostic control information includes data type information (ie The first type) and collection indication information, where the collection indication information indicates whether to perform data collection, for example, when the collection indication information flag is 1, it indicates that data collection is required; when the collection indication information flag is 0 When, it means that data collection is not required.
  • the network device collects corresponding data in the processed original data message according to the data type in the diagnosis control information. For example, if the data type is 1, the table item of the collected data type is 1 returns data, and the data type is 2, the processing data of the collected data type is 2 (for example, the data processed by the function), or the collected data type is 0, All types of data are collected.
  • the network device obtains the first information after collecting data according to the diagnosis control information.
  • the first information includes the type of collected data, indicating which type of data the currently collected data is; when the network device includes a multi-level diagnostic module, the first information also includes the collection address, which is used to indicate the currently collected data. Collected by the first-level diagnostic module.
  • the first information may not include the collection address.
  • the type, length, value (TLV) of the diagnostic control information defines the type of collected data, and the network device performs data collection on the processed original data message according to the diagnostic control information
  • TLV type, length, value
  • data collection can be performed on the processed original data messages by way of data bus bypass.
  • the first information may include the identification of the first table
  • the second information may include the identification of the second table
  • the network device uses the first field in the first message as a search key to find in the lookup table whether there is an entry that matches the first field. If there is an entry that matches the first field in the first packet in the table searched by the network device, the first information includes the identifier of the first entry, where the first entry is the same as that of the first packet The entry that matches the first field in. If there is no entry that matches the first field in the first message in the table searched by the network device, the first information includes the identifier of the lookup table.
  • accurate fault location can be performed based on the identification of the first entry in the first information or the identification of the look-up table, thereby improving the performance of fault diagnosis of the network device.
  • the content of the verification table is consistent with the content of the lookup table.
  • the memory storing the look-up table fails, the contents of the look-up table stored on the memory may change.
  • the matching field of the first entry that has not changed may not be equal to the matching field of the first entry that has changed.
  • the network device can use the verification table to verify whether the first entry has changed. If the result of the verification is that the first entry has changed, it can be determined that the memory is faulty.
  • the first information may also include the identifier of the first entry and the information used to indicate that the memory is faulty.
  • the memory failure can be determined according to the identifier of the first entry in the first information and the information indicating the memory failure and the failure can be accurately located, thereby improving the performance of network device failure diagnosis.
  • the first message further includes first indication information, where the first indication information is used to instruct the network device to determine the computer program corresponding to the port according to the port identifier.
  • the network device For example: instruct the network device to obtain the destination media access control (MAC) address from the Ethernet frame header, and instruct the network device to use the destination MAC address as the search key to search for the matching entry in the MAC table, and indicate the matching Obtain the information of the outgoing port or the next hop from the table entry.
  • MAC media access control
  • the computer program for processing the Ethernet frame may include the computer program for processing the IP message
  • the first indication information is also used to instruct the network device to obtain the destination IP address from the IP header, and instruct the network device to use the destination IP address
  • the matching entry is searched in the routing table and the port information or next hop information is obtained from the matching entry.
  • the first information may also include input parameters.
  • the at least two functions include a first function and a second function, wherein the first parameter is obtained by the network device executing the first function, and the first parameter is the network device
  • the input parameters used to execute the second function are stored in the first information.
  • the network device may be a router.
  • the router includes a network processor and a memory.
  • a computer program is stored in the memory.
  • the network processor may process the original data message by executing the computer program.
  • the computer program includes the first function and the second function.
  • the original data message is an Ethernet frame.
  • the Ethernet frame and the frame check sequence (FCS) field are received by the router.
  • the first function is used to calculate the FCS number according to the Ethernet frame.
  • the first parameter is FCS number.
  • the second function is used to determine whether an error occurs in the Ethernet frame during transmission according to the number contained in the FCS field and the FCS number calculated according to the first function.
  • the network device can instruct the network device according to the first instruction information before the outlet pipe of the terminal device Avoid sending the diagnostic control information in the first message to the outside of the network device.
  • a 1-bit (bit) field is reserved in the control header of the first message to indicate whether the data message in the first message is a real data message or a fictitious data message.
  • bit when the first indication information flag bit is 1, it means that the original data message is a real data message, and the network device needs to forward the original data message to the external interface through the egress pipe; when the first indication information flag When the bit is 0, it means that the data message is a fictitious data message, and the network device does not need to send the fictitious data message to the outside of the network device.
  • FIG. 6 shows another architecture diagram applicable to the embodiments of the present application.
  • the trigger source may be a data message consistent with the original data message, which is constructed by a controller (for example, a central processing unit (CPU)) and directly inserted into the chip.
  • a controller for example, a central processing unit (CPU)
  • S310 may be that the first message is constructed by the controller, where the first message includes a fictitious data message and diagnostic control information constructed by the controller and consistent with the original data message.
  • the header of the fictitious data message is consistent with the header of the original data message.
  • the fictitious data message and the original data message have the same MAC Information, the same Internet protocol (IP) quintuple information, etc.
  • the first message constructed by the controller enters the network device for processing.
  • steps S320 to S350 which will not be repeated here.
  • the data message in the first message is a fictitious data message in the architecture diagram shown in FIG. 6, it is necessary to discard all the fictitious data message and diagnostic control information at the exit of the network device. For example, the network device deletes the fictitious data message and diagnostic control information without sending it to the outside of the network device, thereby avoiding data bandwidth expansion and saving link bandwidth.
  • FIG. 7 shows another architecture diagram applicable to the embodiments of the present application.
  • the trigger source may be a ternary content addressable memory (TCAM) set on the ingress data channel of the network device.
  • TCAM can be configured by the CPU.
  • the CPU configures identification information (IP, MAC, etc.) and diagnostic control information consistent with the original data message to the TCAM.
  • S310 may be that when a data message enters the TCAM, if the data message matches the identification information of the data message in the TCAM successfully, then the data message and the diagnostic control information constitute the first message, and the first message The message enters the network device for processing.
  • the specific processing process please refer to steps S320 to S350, which will not be repeated here.
  • the form of the trigger source is merely an example, and the embodiment of the present application does not limit this, as long as it can trigger a diagnosis for a specific service and generate diagnostic control information that meets the requirements.
  • the device 800 includes an acquiring unit 810 and a processing unit 820.
  • the obtaining unit 810 is used to obtain the first message.
  • the first message includes three different forms of first messages shown in FIG. 2, FIG. 6 and FIG. 7 in the embodiment of the present application.
  • the processing unit 820 is configured to determine first information corresponding to the first packet, the first information indicating the first stage of processing the first packet by the network device;
  • the processing unit 820 is further configured to save the first information after determining the first information
  • the processing unit 820 is further configured to process the first message according to the first information after determining the first information;
  • the processing unit 820 is further configured to avoid sending the first message to the outside of the network device after processing the first message.
  • the processing unit 820 is further configured to determine second information corresponding to the first packet, the second information indicating a second stage of processing the first packet by the network device, and the second stage is later than the The first stage;
  • processing unit 820 is further configured to save the second information after determining the second information
  • the first information and the second information may be information pre-stored in the network device.
  • the first information and the second information may be information contained in a computer program stored in a network device, or information contained in a non-computer program (for example, a forwarding table) stored in a network device, where:
  • the network device can be a router or a switch, and the forwarding table can be a router or a media access control (MAC) table.
  • MAC media access control
  • the processing unit 820 is further configured to store third information, the third information indicating that the stage corresponding to the second information is later than the stage corresponding to the first information;
  • processing unit 820 is further specifically configured to process the first message according to the first information and the second information.
  • the processing unit 820 is specifically configured to look up at least two tables and determine a first action, the at least two tables include a first table and a second table, and the second table is the next table of the first table; Perform the first action on the first message; wherein, the first information is the identifier of the first table, the second information is the identifier of the second table, and the third information is used to indicate the second information corresponding to the The second table is the next table of the first table corresponding to the first information.
  • the processing unit 820 may be a network processor.
  • the at least two tables are stored in a memory coupled to the network processor.
  • the original data message may be an Ethernet frame.
  • the original data message includes the Ethernet frame header and payload.
  • the Ethernet frame header includes an Ethernet type (EtherType) field.
  • the first table is used to determine whether the payload contains Internet Protocol version 4 (IPv4) packets.
  • the matching field of the first table includes 0x0800.
  • the action field of the first table includes the identifier of the second table.
  • the identifier of the second table may be the storage address of the second table.
  • the second table is used to determine the next hop of the IPv4 packet.
  • the matching field of the second table includes the IPv4 prefix
  • the action field of the second table includes the address of the next hop.
  • the network processor uses the value of the EtherType field in the Ethernet frame header as a search key, and determines an entry matching the Ethernet frame in the first table. When the value of the EtherType field is 0x0800, the network processor determines that the payload contains an IPv4 packet. Furthermore, the network processor determines that the next table is the second table according to the first table. Furthermore, the network processor obtains the destination IP address from the payload. Using the destination IP address as a search key, search for an entry that matches the IPv4 packet in the second table. When the destination IP address matches the IPv4 prefix, the network processor determines the next hop corresponding to the IPv4 packet.
  • the processing unit 820 is further specifically configured to determine the first action by executing at least two functions, the at least two functions including a first function and a second function, and the second function is the first function And perform the first action on the first message; wherein the first information is the identifier of the first function, the second information is the identifier of the second function, and the third The information is used to indicate that the second function corresponding to the second information is the next function of the first function corresponding to the first information.
  • the processing unit is further configured to determine the second table according to the search result of the first table and the first message.
  • the network device determines the first table searched by the first packet according to the port identification information included in the first packet, and obtains the entry data after searching the first table.
  • the network device The second table searched by the first packet is determined according to the entry data returned by the first table and the entry information of the first packet.
  • the network device when the network device receives the first message, the network device needs to determine the forwarding path of the first message in these four tables, that is, the first message is in the four tables. Whether the forwarding path in the chip is ABCD or ACBD.
  • the network device first determines that the first table searched by the first packet is table A according to the port identification information included in the first packet, and then the network device searches the first table (ie, table A) according to the first packet and returns The entry data and the port identification information of the first message determine that the next table of table A is table B, and so on, the next table of table B is table C, and the next table of table C is table D, so It is determined that the table lookup order of the first message in the chip is ABCD. During the table lookup process, the network device saves the identification information (ie, the first information and the second information) of the table of the first message lookup table, which is used to indicate the path for the network device to process the first message. When a chip fails, the forwarding path of the first packet inside the chip can be clearly known according to the stored first information, so as to realize accurate fault location.
  • the identification information ie, the first information and the second information
  • the first message includes the first message including the port identifier, the first type, and the first message header.
  • the processing unit 820 is also specifically configured to determine the computer program corresponding to the port according to the port identifier; by executing the computer program corresponding to the port, the first packet header is processed, and multiple pieces of information are passed through the first packet header.
  • the pieces of information are obtained by processing the message header, and the pieces of information include the first information; the first information is stored according to the first type, and the first information belongs to the first type.
  • the first message further includes first indication information, the first indication information is used to instruct the network device to determine the computer program corresponding to the port according to the port identifier; the first indication information is also used to indicate The network device saves the first information according to the first type.
  • the first indication information is also used to instruct the network device to avoid sending the first packet to the outside of the network device.
  • the network device after determining the first information corresponding to the first packet, saves the first information and processes the first packet according to the first information.
  • the first information is used for network device failure analysis.
  • the network device processes the first message, data bandwidth expansion is avoided, link bandwidth is saved, and the performance of network device fault diagnosis is improved.
  • Figure 9 is a schematic diagram of a network device involved in this application.
  • the network device 900 includes a memory 901, a transceiver 903, and a processor 902.
  • the transceiver 903, the processor 902, and the memory 901 are connected through the bus system 905, the memory 901 is used to store instructions, and the processor 902 is used to execute the instructions stored in the memory 901 to control the transceiver.
  • the device 903 receives or transmits signals.
  • the present application also provides a computer-readable storage medium that stores instructions in the computer-readable storage medium.
  • the computer executes each of the operations performed by the network device in the method shown in FIG. 3 above. step.
  • This application also provides a computer program product containing instructions.
  • the computer program product runs on a computer, the computer executes the steps performed by the network device in the method shown in FIG. 3.
  • This application also provides a chip including a processor.
  • the processor is used to read and run the computer program stored in the memory to execute the corresponding operation and/or process executed by the terminal device in the communication method provided by this application.
  • the chip further includes a memory, the memory and the processor are connected to the memory through a circuit or a wire, and the processor is used to read and execute the computer program in the memory.
  • the chip further includes a communication interface, and the processor is connected to the communication interface.
  • the communication interface is used to receive data and/or information that needs to be processed, and the processor obtains the data and/or information from the communication interface, and processes the data and/or information.
  • the communication interface can be an input and output interface.
  • the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, rather than corresponding to the embodiments of the present application.
  • the implementation process constitutes any limitation.
  • the processor may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more of them used to control the technology of the application Integrated circuits for program execution, etc.
  • the processor may be a digital signal processor device, a microprocessor device, an analog-to-digital converter, a digital-to-analog converter, etc.
  • the processor can distribute control and signal processing functions of terminal devices or network devices among these devices according to their respective functions.
  • the processor may have the function of operating one or more software programs, and the software programs may be stored in the memory.
  • the functions of the processor can be realized by hardware, or by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above-mentioned functions.
  • the memory can be read-only memory (ROM), other types of static storage devices that can store static information and instructions, random access memory (RAM), or other types that can store information and instructions
  • Dynamic storage devices can also be electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM), or other optical disk storage, optical disc storage ( Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program codes in the form of instructions or data structures and can Any other medium accessed by the computer, etc.
  • EEPROM electrically erasable programmable read-only memory
  • CD-ROM compact disc read-only memory
  • optical disc storage Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.
  • magnetic disk storage media or other magnetic storage devices or can be used to carry or store desired program codes in the form of instructions or data structures and can Any other medium
  • the memory and the memory involved in the foregoing embodiments may be physically independent units, or the memory may also be integrated with the processor.
  • At least one refers to one or more
  • multiple refers to two or more.
  • And/or describes the association relationship of the associated objects, indicating that there can be three types of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. Among them, A and B can be singular or plural.
  • the character “/” generally indicates that the associated objects are in an “or” relationship.
  • “The following at least one item” and similar expressions refer to any combination of these items, including any combination of single items or plural items.
  • At least one of a, b, and c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, and c can be single or multiple.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation.
  • multiple units or components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may not be physically separated, and the components displayed as units may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the technical solution of the present application.
  • each unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the method described in each embodiment of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (read-only memory, ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program code .

Landscapes

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

Abstract

La présente demande concerne un procédé de transmission de données. Le procédé comprend les étapes suivantes : un dispositif de réseau obtient un premier message ; le dispositif de réseau détermine des premières informations correspondant au premier message, le premier message indiquant un premier étage du dispositif de réseau traitant le premier message ; le dispositif de réseau sauvegarde les premières informations après avoir déterminé les premières informations ; le dispositif de réseau traite le premier message selon les premières informations après avoir déterminé les premières informations ; et le dispositif de réseau évite d'envoyer le premier message à l'extérieur du dispositif de réseau après que le dispositif de réseau a traité le premier message. La solution technique fournie par la présente demande est susceptible d'améliorer les performances de diagnostic de défaillances du dispositif de réseau.
PCT/CN2020/099391 2019-08-09 2020-06-30 Procédé et dispositif utilisés pour transmettre des données WO2021027420A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910736136.1A CN112350844B (zh) 2019-08-09 2019-08-09 用于数据传输的方法和装置
CN201910736136.1 2019-08-09

Publications (1)

Publication Number Publication Date
WO2021027420A1 true WO2021027420A1 (fr) 2021-02-18

Family

ID=74367028

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099391 WO2021027420A1 (fr) 2019-08-09 2020-06-30 Procédé et dispositif utilisés pour transmettre des données

Country Status (2)

Country Link
CN (1) CN112350844B (fr)
WO (1) WO2021027420A1 (fr)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364778B (zh) * 2021-06-07 2022-07-29 新华三技术有限公司 一种报文处理方法及装置
CN115550153A (zh) * 2021-06-29 2022-12-30 中兴通讯股份有限公司 报文处理方法、网络处理器及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521371A (zh) * 2018-03-09 2018-09-11 新华三技术有限公司 报文转发方法及装置
US20180367371A1 (en) * 2017-06-16 2018-12-20 Cisco Technology, Inc. Handling controller and node failure scenarios during data collection
CN109309605A (zh) * 2018-11-26 2019-02-05 北京邮电大学 带内网络遥测系统及方法
CN109743340A (zh) * 2019-04-04 2019-05-10 华为技术有限公司 报文处理的方法和网络装置

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107769987B (zh) * 2016-08-16 2021-05-11 深圳市中兴微电子技术有限公司 一种报文转发性能评估方法和装置
CN108111432B (zh) * 2017-12-27 2021-07-02 新华三技术有限公司 报文转发方法及装置
CN108449228B (zh) * 2018-03-05 2020-03-17 新华三技术有限公司 报文处理方法及网络设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180367371A1 (en) * 2017-06-16 2018-12-20 Cisco Technology, Inc. Handling controller and node failure scenarios during data collection
CN108521371A (zh) * 2018-03-09 2018-09-11 新华三技术有限公司 报文转发方法及装置
CN109309605A (zh) * 2018-11-26 2019-02-05 北京邮电大学 带内网络遥测系统及方法
CN109743340A (zh) * 2019-04-04 2019-05-10 华为技术有限公司 报文处理的方法和网络装置

Also Published As

Publication number Publication date
CN112350844B (zh) 2024-03-29
CN112350844A (zh) 2021-02-09

Similar Documents

Publication Publication Date Title
US10469367B2 (en) Segment routing network processing of packets including operations signaling and processing of packets in manners providing processing and/or memory efficiencies
US11228515B2 (en) Data packet detection method, device, and system
US7668107B2 (en) Hardware implementation of network testing and performance monitoring in a network device
JP2021166390A (ja) ビットフォワーディングイングレスルータ、ビットフォワーディングルータ及び運用管理保守テスト方法
JP4774357B2 (ja) 統計情報収集システム及び統計情報収集装置
US7701936B2 (en) Obtaining path information related to a bridged network
WO2017206841A1 (fr) Procédé et dispositif pour déterminer la qualité de service d'un appareil de réseau
US20080101241A1 (en) Ethernet OAM at intermediate nodes in a PBT network
US9680720B1 (en) Operations, administration, and maintenance (OAM) engine
CN107171883B (zh) 检测转发表的方法、装置和设备
US20050276230A1 (en) Communication statistic information collection apparatus
US10015066B2 (en) Propagation of frame loss information by receiver to sender in an ethernet network
US9276853B2 (en) Hashing of network packet flows for efficient searching
CN110557342B (zh) 用于分析和减轻丢弃的分组的设备
US10785095B2 (en) Service fault locating method and apparatus
US20220255857A1 (en) Packet Processing Method, Network Node, and System
WO2021027420A1 (fr) Procédé et dispositif utilisés pour transmettre des données
CN111614505B (zh) 报文处理的方法和网关设备
US11323381B2 (en) Dropped packet detection and classification for networked devices
US11909650B2 (en) Internet protocol operations and management option
JPWO2011052729A1 (ja) パケット中継装置、パケット中継方法およびプログラム
US11283720B1 (en) Methods and systems for accelerated health monitoring for load balancers
US11784937B2 (en) Dropped packet detection and classification for networked devices
WO2024000139A1 (fr) Transfert de paquets
WO2023287719A1 (fr) Assurance de trajet dans un transport partagé

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: 20852874

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20852874

Country of ref document: EP

Kind code of ref document: A1