Search

CN-118677813-B - ETH-LM detection method and network equipment

CN118677813BCN 118677813 BCN118677813 BCN 118677813BCN-118677813-B

Abstract

The specification provides an ETH-LM detection method and network equipment, the method comprises the steps that a main control board of the local network equipment selects a target chip from a service board, the target chip obtains first count values of receiving and transmitting target service messages from other chips of the service board and/or chips in other service boards, a total count value is obtained according to the first count values and second count values of the target service messages sent by the target chip, the total count value is filled into the first message, and the first message is sent to a detection platform, so that the detection platform carries out ETH-LM detection according to the total count values. By the method, ETH-LM detection can be realized in the distributed equipment networking.

Inventors

  • YUAN JIN

Assignees

  • 新华三技术有限公司

Dates

Publication Date
20260505
Application Date
20240529

Claims (10)

  1. 1. A method for ETH-LM detection, wherein the method is applied to a home network device, the method comprising: The main control board of the local terminal network equipment selects a target chip from the service board; The target chip obtains each first count value of the receiving and transmitting target service message from other chips of the service board and/or chips in other service boards, and adds up each first count value and a second count value of the receiving and transmitting target service message of the target chip to obtain a total count value; filling the total count value into a first message and sending the first message to a detection platform so that the detection platform carries out ETH-LM detection according to the total count value; The step of filling the total count value into a first message and sending the first message to a detection platform comprises the following steps: The method comprises the steps of filling a count value of a sending target service message in a total count value into a first message, and filling a count value of a receiving target service message in the total count value into the first message; and sending the first message to the detection platform.
  2. 2. The method of claim 1, wherein the master board of the home network device selects a target chip from a service board, comprising: And selecting and determining a target service board according to the sequence or reverse sequence of the corresponding slot numbers of the service boards, and determining target chips according to the sequence or reverse sequence of the chip numbers in the target service board.
  3. 3. The method according to claim 1, wherein after selecting a target chip from a service board in a main control board of the home network device, the method comprises: the target chip maintains a corresponding bitmap according to the detection example, wherein the bitmap comprises all chip identifiers for receiving and transmitting target services.
  4. 4. A method according to claim 3, wherein the target chip obtains each first count value of the target service message from the other chips of the service board and/or the chips in the other service boards, and the method comprises: traversing the bitmap by the target chip to obtain chip identifiers of other chips except the target chip in the bitmap; Sending a first request message for acquiring a first count value according to chip identifiers of other chips; receiving a first response message sent by other chips according to a first request message, wherein the first response message carries a first count value; and traversing each first response message to obtain each first count value.
  5. 5. The method according to claim 1, wherein the target chip obtains each first count value of the target service message from other chips of the service board and/or chips in other service boards, and the method comprises: the local network equipment obtains a first count value of a chip of the related slot business board through a slot where the designated chip is located by utilizing a CPU control channel.
  6. 6. The method of claim 1, wherein the populating the total count value into the first message for transmission to the detection platform comprises: filling the count value of the sending target service message in the total count value into a TxFCf field in the first message, and filling the count value of the receiving target service message in the total count value into a RxFCf field in the first message; and sending the first message filled with the TxFCf field and RxFCf field to the detection platform.
  7. 7. A network device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the program performs the method of: The main control board of the local terminal network equipment selects a target chip from the service board; The target chip obtains each first count value of the receiving and transmitting target service message from other chips of the service board and/or chips in other service boards, and adds up each first count value and a second count value of the receiving and transmitting target service message of the target chip to obtain a total count value; filling the total count value into a first message and sending the first message to a detection platform so that the detection platform carries out ETH-LM detection according to the total count value; The step of filling the total count value into a first message and sending the first message to a detection platform comprises the following steps: The method comprises the steps of filling a count value of a sending target service message in a total count value into a first message, and filling a count value of a receiving target service message in the total count value into the first message; and sending the first message to the detection platform.
  8. 8. A network device, the network device comprising: the selection module is used for selecting a target chip from the service board by the main control board; the acquisition module is used for acquiring each first count value of the receiving and transmitting target service message from other chips of the service board and/or chips in other service boards by the target chip, and accumulating each first count value and a second count value of the receiving and transmitting target service message by the target chip to obtain a total count value; the sending module is used for filling the total count value into a first message and sending the first message to the detection platform so that the detection platform can carry out ETH-LM detection according to the total count value; The step of filling the total count value into a first message and sending the first message to a detection platform comprises the following steps: The method comprises the steps of filling a count value of a sending target service message in a total count value into a first message, and filling a count value of a receiving target service message in the total count value into the first message; and sending the first message to the detection platform.
  9. 9. The network device of claim 8, wherein the network device, The selection module is specifically configured to select and determine a target service board according to a slot number sequence or an inverse sequence corresponding to the service board, and determine a target chip according to a chip number sequence or an inverse sequence in the target service board.
  10. 10. The network device of claim 8, wherein the network device, The sending module is specifically configured to fill a count value of a sending target service packet in the total count value into a TxFCf field in the first packet, and fill a count value of a receiving target service packet in the total count value into a RxFCf field in the first packet; and sending the first message filled with the TxFCf field and RxFCf field to the detection platform.

Description

ETH-LM detection method and network equipment Technical Field The present disclosure relates to the field of communications technologies, and in particular, to an ETH-LM detection method and a network device. Background And (3) detecting single-ended ETH-LM (THE ETHERNET FRAME loss measurement), wherein when the equipment A sends an LMM message, txFCf count and RxFCf count on the equipment are obtained, the equipment B responds to the LMR message, txFCb and RxFCl count on the equipment are obtained, and finally, the packet loss rates of the far end and the near end are calculated on the side of the source equipment A. In the distributed device networking, load sharing often occurs in connection between devices, the implementation manner includes route equivalence, aggregation link or both, and the statistics of the distributed device on the data message is often based on the chip stage, so that it is difficult for the device a or the device B to obtain the sum of the statistics counts on different chips, which results in that the application of the single-ended ETH-LM detection function is greatly limited and cannot be deployed on the existing network. Disclosure of Invention To overcome the problems in the related art, the present specification provides an ETH-LM detection method and network device. According to a first aspect of embodiments of the present specification, there is provided a method of ETH-LM detection, the method comprising: The main control board of the local terminal network equipment selects a target chip from the service board; the target chip obtains first count values of receiving and transmitting target service messages from other chips of the service board and/or chips in other service boards, and obtains total count values according to the first count values and second count values of the target chip for transmitting the target service messages; And filling the total count value into a first message and sending the first message to the detection platform so that the detection platform carries out ETH-LM detection according to the total count value. The main control board of the local network device selects a target chip from a service board, and the method comprises the following steps: And selecting and determining a target service board according to the sequence or reverse sequence of the corresponding slot numbers of the service boards, and determining target chips according to the sequence or reverse sequence of the chip numbers in the target service board. After the main control board of the local network device selects a target chip from a service board, the method comprises the following steps: the target chip maintains a corresponding bitmap according to the detection example, wherein the bitmap comprises all chip identifiers for receiving and transmitting target services. The target chip obtains each first count value of the receiving and transmitting target service message from other chips of the service board and/or chips in other service boards, and the method comprises the following steps: traversing the bitmap by the target chip to obtain chip identifiers of other chips except the target chip in the bitmap; Sending a first request message for acquiring a first count value according to chip identifiers of other chips; receiving a first response message sent by other chips according to a first request message, wherein the first response message carries a first count value; and traversing each first response message to obtain each first count value. The target chip obtains each first count value of the receiving and transmitting target service message from other chips of the service board and/or chips in other service boards, and the method comprises the following steps: the local network equipment obtains a first count value of a chip of the related slot business board through a slot where the designated chip is located by utilizing a CPU control channel. The step of filling the total count value into a first message and sending the first message to a detection platform comprises the following steps: filling the count value of the sending target service message in the total count value into a TxFCf field in the first message, and filling the count value of the receiving target service message in the total count value into a RxFCf field in the first message; and sending the first message filled with the TxFCf field and RxFCf field to the detection platform. According to the method, the target chip is selected, the count value of the receiving and transmitting target service messages in other chips is collected through the target chip, the count value is counted to obtain a total count value and is sent to the detection platform, and ETH-LM detection can be achieved under the distributed equipment load sharing scene. According to a second aspect of embodiments of the present specification, there is provided a network device comprising a memory, a processor and a computer