WO2015149523A1 - Procédé et appareil de traitement rapide d'émission et de détection d'un paquet d'oam, et support de stockage - Google Patents

Procédé et appareil de traitement rapide d'émission et de détection d'un paquet d'oam, et support de stockage Download PDF

Info

Publication number
WO2015149523A1
WO2015149523A1 PCT/CN2014/090899 CN2014090899W WO2015149523A1 WO 2015149523 A1 WO2015149523 A1 WO 2015149523A1 CN 2014090899 W CN2014090899 W CN 2014090899W WO 2015149523 A1 WO2015149523 A1 WO 2015149523A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
message
sending
detection
session
Prior art date
Application number
PCT/CN2014/090899
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 WO2015149523A1 publication Critical patent/WO2015149523A1/fr

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Definitions

  • the invention relates to the network operation, management & maintenance (OAM) technology, and particularly relates to a method, a device and a storage medium for quickly transmitting and detecting OAM messages.
  • OAM network operation, management & maintenance
  • the OAM function has become very important in the public telecommunication network, especially for networks that need to provide service quality assurance.
  • the OAM function performs real-time detection and status reporting of link status, performs link error management and provides fast switching capability.
  • the OAM function can provide millisecond-level transmission and detection time, which speeds up network convergence, reduces application interruption time, and improves network reliability.
  • the OAM function on the Ethernet switch is mainly implemented by two technologies: Bidirectional Forwarding Detection (BFD) and Connectivity Fault Management (CFM).
  • BFD Bidirectional Forwarding Detection
  • CFM Connectivity Fault Management
  • the BFD protocol provides a common, standardized media-independent and protocol-independent fast fault detection mechanism.
  • BFD can quickly detect the fault of the bidirectional forwarding path between two network devices for each upper layer protocol, such as routing protocols and Multi-Protocol Label Switching (MPLS).
  • MPLS Multi-Protocol Label Switching
  • CFM is a Layer 2 Ethernet OAM protocol defined by the IEEE 802.1ag standard. It can guarantee that Ethernet can also provide carrier-class requirements, including the ability to detect, recover, and manage network anomalies or abnormal problems such as downgrading and failure of some services.
  • the Ethernet CCM packet is the most important one in the CFM packet.
  • the detection terminal periodically sends CCM packets to advertise the connectivity of the peer link. It can also provide Remote Defect Indication (RDI).
  • RDI Remote Defect Indication
  • the traditional device uses a multi-core CPU to specifically send and receive BFD or Ethernet CCM packets.
  • a multi-core CPU is called a secondary CPU.
  • the secondary CPU is used to encapsulate, send, receive, and decapsulate BFD or Ethernet CCM packets, implement packet statistics, and report detection events to the primary CPU.
  • the session specifications of BFD and Ethernet CCM packets that need to be supported by 100G Ethernet switch devices are getting larger and larger.
  • the current mainstream BFD sessions are 2K, and the local maintenance association End Point (LMEP) of the Ethernet CCM.
  • the specification is 2K
  • the Remote Maintenance Association End Point (RMEP) specification is 8K.
  • auxiliary CPU mode For the implementation of the auxiliary CPU mode, the larger the session specification, the faster the CPU performance is degraded. It is difficult to satisfy the performance of 50ms failover for many time-sensitive services such as voice and video data. If you use a higher performance CPU, the cost and power consumption will be greatly improved.
  • FPGA Field Programmable Gate Array
  • This method can meet the required performance of the device, but Still can't solve the problem of cost and power consumption.
  • the traditional method is implemented separately for the transmission and detection of BFD and Ethernet CCM messages. Since BFD and Ethernet CCM transmission and detection functions may not be enabled in different network application scenarios, this Implementation will also cause idle and waste of resources.
  • the embodiments of the present invention are directed to a method, an apparatus, and a storage medium for rapidly transmitting and detecting OAM messages.
  • the embodiment of the invention provides a method for rapidly transmitting and detecting OAM packets, OAM.
  • the session type is BFD or CCM.
  • the method includes: the network device stores the BFD packet and the CCM packet sending parameter in the first random access memory (RAM), and the BFD packet and the CCM packet.
  • the detection parameters are stored in the second RAM;
  • the network device determines the packet type according to the sending parameter, and sends the packet to be processed
  • the network device determines whether a message arrives, and performs corresponding detection processing according to the detection parameter.
  • the embodiment of the present invention further provides an apparatus for rapidly transmitting and detecting OAM messages, the apparatus comprising: a first random access memory (RAM), a second RAM, a message sending module, and a message detecting module;
  • a first random access memory RAM
  • a second RAM a message sending module
  • a message detecting module a message detecting module
  • a first RAM configured to store a transmission parameter of a bidirectional forwarding detection (BFD) packet and a connectivity detection information (CCM) packet;
  • BFD bidirectional forwarding detection
  • CCM connectivity detection information
  • a second RAM configured to store detection parameters of the BFD packet and the CCM packet
  • the packet sending module is configured to determine a packet type according to the sending parameter, and send the packet to be processed;
  • the packet detection module is configured to determine whether a packet arrives, and perform corresponding detection processing according to the detection parameter.
  • the embodiment of the invention further provides a computer storage medium, wherein the computer program is stored therein, and the computer program is used to execute the method for quickly transmitting and detecting the OAM message.
  • the OAM session type is a BFD or a CCM
  • the network device stores the transmission parameters of the BFD packet and the CCM packet to the first random.
  • the detection parameters of the BFD message and the CCM message are stored in the second RAM, and the network device determines the message type according to the transmission parameter, and sends and processes the message according to whether there is The packet arrives to detect the packet; thus, the present invention is based on the BFD packet and the CCM packet.
  • the parameter resources related to the sending and detecting processes are shared, so that the network device can not only meet the performance requirements, but also save the device resources and reduce the performance when the user flexibly configures each session according to different application scenarios. Cost and power consumption.
  • FIG. 1 is a schematic flowchart of a method for sending and detecting a message according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for sending and detecting a message according to an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a packet sending module and a packet detecting module according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of a packet sending process according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a packet detection process according to an embodiment of the present invention.
  • the network device stores the sending parameters of the BFD packet and the CCM packet in the first RAM, and stores the detection parameters of the BFD packet and the CCM packet in the second RAM, and the network device according to the The sending parameter determines the type of the packet, and the packet is sent and processed, and the packet is detected and processed according to whether the packet arrives.
  • the network device when the session type is BFD, the network device needs to establish a session first, for example, establishing a BFD session between the first network device and the second network device; when the session type is CCM, the network The method for establishing a packet in a BFD session or a CCM session is performed by using the method provided by the embodiment of the present invention;
  • the embodiment of the invention provides a method for sending and detecting a message.
  • the specific process is shown in Figure 1.
  • the method mainly includes the following steps:
  • Step 101 The network device stores the transmission parameters of the bidirectional forwarding detection (BFD) message and the connectivity detection information (CCM) message into the first random access memory (RAM), and the BFD The detection parameters of the message and the CCM message are stored in the second RAM;
  • BFD bidirectional forwarding detection
  • CCM connectivity detection information
  • the network device configures the interface to send the BFD packet and the CCM packet sending parameter of the user to the sending configuration entry of the first RAM.
  • the sending parameter includes: the session number, the sending enable, and the sending parameter. Packet sending period, packet type, and packet length.
  • the interface is configured to configure the packet information to the external DDR3 for the network device to read the packet.
  • the storage space occupied by the packet is smaller.
  • the off-chip DDR3 is used to store the message, thereby saving the internal storage space of the network device sending and detecting the processing chip, and reducing the cost of the chip;
  • the configuration interface may be a CPU interface, or may be a data configuration interface of other main processing chips;
  • the sending parameter further includes: a Diagnosing Code (Diag) field; the network device also writes the current time into the sending configuration entry as the sending time of the last packet;
  • Diag Diagnosing Code
  • the Diag field uses a binary number of 0-31 to represent the last session state of the sender network device
  • the number of configurations of the BFD packet and the CCM packet can be arbitrary, and the total number does not exceed the depth of the RAM in the network device, that is, the number of sent and configured packets does not exceed the depth of the first RAM.
  • the number of detection configurations of the packet does not exceed the depth of the second RAM. It is not recommended to cross the transmission parameters of the BFD packet and the CCM packet. Therefore, the BFD packet and the CCM packet are configured in the DDR3.
  • the starting address can be mapped to the session number one by one, and the same address does not correspond to different session numbers.
  • the network device maintains a local timer for polling the network device to send configuration entries. Time base
  • the detection parameters of the BFD packet and the CCM packet are stored in the second RAM.
  • the network device configures the interface to write the BFD packet and the CCM packet detection parameters.
  • the current time is written in the configuration entry as the arrival time of the previous packet;
  • the detection parameters include: detection enable, packet detection period, and packet detection type;
  • the detection parameters cannot be crossed during configuration; the timer of the local maintenance is also used to configure the timing of the configuration of the polling.
  • Step 102 The network device determines a packet type according to the sending parameter, and performs a sending process on the packet.
  • the network device periodically polls the sending configuration entry of the first RAM, and when the sending enable is valid, calculates the difference between the current time of the timer and the sending time of the last packet, when the difference is greater than the report.
  • the packet is sent, the packet is configured as a sending instance.
  • the packet is not processed, and the polling is continued.
  • the network device periodically polls and sends each entry in the configuration entry.
  • the packet sending period is 3.3 ms
  • the current time is 10.0 ms
  • the last packet is sent.
  • the difference is 4ms, and the difference is greater than the packet transmission period of 3.3ms. This means that the packet can be sent and sent, so it needs to form a transmission instance; if the last packet is sent for 8ms. , indicating that the polling operation of the next session is continued until the sending time is reached;
  • the component sending example is specifically: extracting the packet sending information according to the packet type, and updating the last sending time in the sending configuration entry to the current time;
  • the message sending information includes: a session number, a packet type, and a packet length;
  • the packet sending information further includes: a Diag field;
  • the session number, the packet type, the packet length, and the Diag field in the configuration entry are extracted as the packet sending information, and the configuration entry is sent.
  • the sending time of the last message in the middle is updated to 0.1s in the current time, 0.3s;
  • the packet is read, modified, and sent according to the message sending information
  • the reading is specifically: obtaining a base address of the message stored in the DDR3 according to the session number, and obtaining all addresses starting from the base address of the message according to the packet length and the data bit width of the DDR3, Read the message;
  • the storage space and the storage address occupied by the message information stored in the DDR3 corresponding to the session number in the transmission parameter are fixed. Therefore, the DDR3 report can be obtained according to the session number of the message.
  • the base address of the file storage such as the base address of the message storage is 0x0010, the length of the message is 128 bytes, and the data bit width of DDR3 is 128 bits.
  • the storage address of the message in DDR3 is 0x0010 to 0x0017, and these storages are read.
  • the content in the unit is the message;
  • the modification is specifically: reading the state of the corresponding session in the network device according to the packet type, and determining whether the modification is needed according to the state;
  • the packet type is BFD
  • the status of the corresponding BFD session is read.
  • the replacement flag 1 is added to the packet.
  • the packet type is CCM
  • the state of the corresponding CCM session is read, and when the state is a session interruption, a modification flag 1 is added to the packet;
  • one bit can be reserved as the modification flag bit.
  • the reserved modification flag bit is added with the flag 1;
  • the modification flag may not be set in the sending parameter, may be added at the beginning or the end of the message, or may be stored in the network device in other manners, and is read when the message is sent and processed;
  • the addition position is not limited, and the replacement mark may also be 0 or other mark, and the actual application is specifically set according to the application requirements;
  • the sending is specifically: when the packet type is BFD, and the replacement flag is 1, the Diag field in the packet is replaced with the Diag field in the packet sending information, and is sent according to the network device.
  • the characteristics of the channel are assembled by sending the message into a prescribed format;
  • the RDI field in the packet is replaced with 1, and the packet is assembled into a specified format according to the characteristics of the transmission channel of the network device;
  • the characteristic of the sending channel is a communication protocol established between network devices for sending a message
  • the specified format is a message format specified in the foregoing communication protocol, specifically, a data format, an encoding rule, a data content, and the like;
  • the replacement flag is 1
  • the Diag field in the packet is 0, and the Diag field in the packet transmission information is 1, the Diag field in the packet is replaced with 1, and then sent according to
  • the characteristics of the channel are used to assemble the message into a specified format, for example, to transmit data of 1024 bits width according to the specified format.
  • Step 103 The network device performs corresponding detection processing according to whether a packet arrives at the packet;
  • the network device determines whether a packet arrives, and sometimes, the packet is detected according to the packet type. When not, the network device periodically polls the second RAM detection configuration entry, when the detection is enabled. When valid, the time difference between the timer and the last packet arrival time is calculated. When the difference is greater than the packet detection period, it is determined that the session has a timeout interrupt, and the time in the update detection configuration entry is the current time. Generating interrupt information; when the difference is less than the message detection period, continuing the timing polling operation and determining whether a message arrives;
  • the session is BFD, the timeout interrupt occurs.
  • the Diag field needs to be recorded for the upper layer to read. If the session is CCM, the RDI state needs to be updated.
  • the network device periodically polls and sends each entry in the configuration entry.
  • the packet sending period is 3.3 ms
  • the current time is 10.0 ms
  • the last packet is sent.
  • the difference is 4ms, and the difference is greater than the packet transmission period of 3.3ms. This means that the packet can be sent and sent, so it needs to form a transmission instance; if the last packet is sent for 8ms. , indicating that the time of the next session has not been sent. Inquiry operation
  • the packet When a packet arrives, the packet is detected according to the packet type and the session number in the packet. Specifically, when the packet type is BFD, the session number in the packet is extracted, and the session is read. The previous Diag field corresponding to the number compares the previous Diag field with the Diag field in the message. When the change is made, the session is interrupted, the current Diag field is recorded, and the interrupt information is generated and processed. , to determine that the session is not interrupted, update the arrival time of the last message as the current time;
  • the previous Diag field corresponding to the session number may be stored in the second RAM, or may be stored in other RAMs in the network device, and the designer selects a suitable storage unit according to specific scenarios and requirements;
  • the session number in the BFD packet is 01
  • the previous Diag field corresponding to the session 01 is 0, and the Diag field in the packet is 1. If the two are different, the session number 01 is interrupted.
  • the session number in the packet is extracted, the previous RDI field corresponding to the session number is read, and the previous RDI field is compared with the RDI field in the packet.
  • the current RDI field is recorded, the RDI status counter is updated, and an interrupt information is generated.
  • the arrival time of the last message is updated to the current time, and the RDI is updated.
  • Status counter where
  • the previous RDI field corresponding to the session number may be stored in the second RAM, and may be stored in other RAMs of the network device, and the designer selects a suitable storage unit according to specific scenarios and requirements;
  • the RDI field corresponding to the session 11 is read. If the value is 1, the RDI field in the message is 0, and the two are different.
  • the updating the RDI status counter in the detecting process is specifically: updating a corresponding entry in the fourth RAM for storing the RDI state; when detecting the timeout interrupt, adding 1 to the value in the corresponding entry according to the MAID index in the detection parameter;
  • the MAID of the corresponding entry in the fourth RAM is read according to the session number in the message, and the RDI entry is indexed by the MAID to determine whether the value in the RDI entry is 0. When it is 0, no action is made. Operation, when non-zero, the operation is decremented by 1;
  • the method for generating and detecting the message further includes: when the network device detects the processing of the packet, determines that the session is interrupted, generates the interrupt information, and stores the interrupt information in the third RAM of the network device for maintenance, and The interrupt information is reported to the upper device.
  • the device structure of the message sending and detecting process provided by the embodiment of the present invention is as shown in FIG. 2, and the device includes a first RAM 21, a second RAM 22, a message sending module 23, and a message detecting module 24;
  • the first RAM 21 is configured to store the sending parameters of the BFD packet and the CCM packet;
  • the second RAM 22 is configured to store detection parameters of the BFD packet and the CCM packet.
  • the packet sending module 23 is configured to determine a packet type according to the sending parameter, and send the packet to be processed;
  • the packet detecting module 24 is configured to determine whether a packet arrives, and perform corresponding detection processing according to the detection parameter;
  • the first RAM 21 and the second RAM 22 may be separately disposed in the network device, or may be the internal RAM of the network device processing chip, as long as the storage space is required;
  • the first RAM 21 is configured to write the BFD packet and the CCM packet sending parameter configured by the user into the sending configuration entry of the first RAM 21 through the configuration interface, and write the current time as the last packet sending time. Enter the sending configuration entry;
  • the sending parameters include: a session number, a sending enable, a packet sending period, a packet type, and a packet length.
  • the sending parameter further includes: a Diagnose Code (Diag) field;
  • the second RAM 22 is configured to write the detection parameters of the BFD packet and the CCM packet configured by the user into the detection configuration entry of the second RAM 22 through the configuration interface, and the current time is Write the detection configuration entry as the arrival time of the last packet;
  • the detection parameters include: detection enable, packet detection period, and packet detection type;
  • the packet information is configured in the external DDR3 through the configuration interface, so that the network device can read the packet;
  • the configuration interface may be a CPU interface, or may be a data configuration interface of other main processing chips;
  • the packet sending module 23 and the packet detecting module 24 can be implemented by a processing chip in the network device; for example, can be implemented by a switch main chip in the network switch;
  • the packet sending module 23 specifically includes: an information component module 31 and a packet sending preprocessing module 32;
  • the information component module 31 is configured to periodically poll the transmission configuration entry of the first RAM 21. When the transmission enable is valid, calculate the difference between the current time of the timer and the transmission time of the previous message, when the difference is When the packet is sent, the packet is sent to the packet sending pre-processing module 32. When the difference is smaller than the packet sending period, the packet is not processed, and the polling operation is continued.
  • the packet sending pre-processing module 32 is configured to read, modify, and send the packet according to the sending instance
  • the specific configuration is to extract the packet sending information according to the packet type, and update the last sending time in the sending configuration entry to the current time;
  • the message sending information includes: a session number, a packet type, and a packet length;
  • the packet sending information further includes: a Diag field;
  • the packet sending pre-processing module 32 is configured to: when the packet is read according to the packet sending information, the packet is obtained according to the session number, and the packet is stored in a base address in the DDR3, and then according to the packet length and The data bit width of the DDR3 is obtained from all addresses from the base address of the message storage, and the message is read;
  • the configuration is to read the state of the corresponding session in the network device according to the packet type, and then determine whether the modification is needed according to the state;
  • the packet type is BFD
  • the status of the corresponding BFD session is read.
  • the replacement flag 1 is added to the packet.
  • the packet type is CCM
  • the state of the corresponding CCM session is read, and when the state is a session interruption, a modification flag 1 is added to the packet;
  • the configuration is as follows: when the packet type is BFD, and the replacement flag is 1, the Diag field in the packet is replaced with the Diag in the packet sending information. Field, according to the characteristics of the transmission channel of the network device, the message is assembled into a prescribed format and sent out;
  • the RDI field in the packet is replaced with 1, and the packet is assembled into a specified format according to the characteristics of the transmission channel of the network device;
  • the characteristic of the sending channel is a communication protocol established between the network devices and configured to send a message
  • the specified format is a message format specified in the communication protocol, such as a data format, an encoding rule, a data content, and the like;
  • the packet detecting module 24 is configured to determine whether a packet arrives. Whenever, the packet is detected according to the packet type and the session number in the packet. When not, the second RAM 22 is periodically polled. The configuration entry is used to calculate the difference between the current value of the timer and the arrival time of the last packet when the detection is enabled. When the difference is greater than the packet detection period, it is determined that the session has a timeout interrupt, and the update detection configuration is updated. The time in the entry generates interrupt information; when the difference is not greater than the packet detection period, the timing polling operation is continued, and it is determined whether a packet arrives;
  • the Diag field is changed for the packet to be sent.
  • the module 32 reads; for the CCM message, when the session is interrupted, the RDI state is updated;
  • the packet detecting module 24 when a packet arrives and the packet type is BFD, is specifically configured to extract a session number in the packet, and read a previous Diag field corresponding to the session number, where the packet is detected. A Diag field is compared with the Diag field in the message. When the change is made, the session is interrupted, the current Diag field is recorded, and the interrupt information is generated. When there is no change, the session is determined to be uninterrupted, and the arrival time of the last message is updated. current time;
  • the packet detecting module 24 when a packet arrives and the packet type is CCM, is specifically configured to extract a session number in the packet, and read a previous RDI field corresponding to the session number, where the packet is detected. An RDI field is compared with the RDI field in the message. When there is a change, the session is interrupted, the current RDI field is recorded, the RDI status counter is updated, and the interrupt information is generated. When there is no change, the session is determined to be uninterrupted, and the update is last. The arrival time of the packet is the current time, and the RDI status counter is updated according to the MAID corresponding to the packet;
  • the update RDI status counter in the above detection process is specifically: updating the corresponding entry of the fourth RAM for storing the RDI state; when detecting the timeout interrupt, according to the detection parameter
  • the MAID index adds 1 to the value in the corresponding entry; when receiving the CCM message, reads the MAID of the corresponding entry in the fourth RAM according to the session number in the message, and uses the MAID to index the RDI entry to determine Whether the value in the RDI entry is 0. When it is 0, no operation is performed. When it is not 0, the value is decremented by 1;
  • the network device further includes an interrupt reporting module 25 and a third RAM 26;
  • the interrupt reporting module 25 is configured to, after the packet detecting module 24 generates the interrupt information, store the interrupt information in the third RAM 26 for maintenance, and report the interrupt information to the upper device;
  • the interrupt information includes: a session number, a packet type, and a session interruption type;
  • the third RAM 26 stores the real-time session Down/Up status, Latch session Down/Up state, real-time Diag change state, latch Diag change state, and Diag field;
  • the third RAM 26 stores the real-time session Down/Up state, the latched session Down/Up state, the real-time RDI change state, and the latched RDI change state; since the session data between the network devices is relatively large, for convenience
  • FIG. 4 is a schematic flowchart of a packet sending process according to an embodiment of the present disclosure, which specifically includes the following steps:
  • Step 401 The first RAM 21 stores the sending parameters of the BFD packet and the CCM packet according to the configuration.
  • the first RAM 21 writes the session number, the transmission enable, the packet sending period, the packet type, and the packet length configured by the user into the sending configuration entry of the first RAM 21 through the configuration interface; for the BFD packet, the sending The parameter further includes a Diag field; the current time is also written into the sending configuration entry as the sending time of the last packet;
  • the message information is stored in the external DDR3 through the configuration interface, so that the network device can read the message.
  • Step 402 The information component module 31 periodically polls to determine whether the transmission enable is valid, and whether the time exceeds the sending period;
  • the information component module 31 periodically polls the transmission configuration entry of the first RAM 21, and when the transmission enable is valid, calculates the current time of the timer in the network device and the transmission time of the last message stored in the first RAM 21. If the difference is greater than the packet sending period in the sending parameter, step 403 is performed. When the difference is less than the packet sending period, the packet is not processed, and step 408 is performed.
  • Step 403 The information component module 31 extracts the packet sending information according to the packet type, and further The last packet transmission time in the new transmission configuration table;
  • the information component module 31 sends the packet sending information according to the packet type to the packet preprocessing module 32, and updates the sending configuration table in the first RAM 21.
  • the last message sent in the item is the current time;
  • the message sending information includes: a session number, a packet type, and a packet length;
  • the packet sending information also includes the Diag field.
  • Step 404 The packet sending and processing module 32 obtains the base address corresponding to the packet according to the packet sending information, and reads the packet.
  • the message sending and processing module 32 can obtain the base address of the message stored in the DDR3 according to the session number in the message sending information, and obtain the message storage according to the packet length and the data bit width of the DDR3. All storage addresses from the base address, read the message;
  • the specific reading method is the same; but the modification method is different, the BFD packet modification step 405, the CCM message modification step 406;
  • Step 405 The message sending and processing module 32 reads the session state, and determines whether to replace the Diag field in the packet.
  • the packet sending pre-processing module 32 reads the status of the corresponding BFD session in the packet detecting module 24, and adds a replacement flag 1 to the packet when the state is a session interruption.
  • Step 406 The message sending and processing module 32 reads the session state, and determines whether to replace the RDI field in the packet.
  • the packet sending pre-processing module 32 reads the status of the corresponding CCM session in the packet detecting module 24.
  • the modification flag 1 is added to the packet.
  • Step 407 The message sending and processing module 32 assembles and sends the message according to the replacement flag.
  • the packet sending pre-processing module 32 replaces the Diag field in the packet with the Diag field in the packet sending information, according to The characteristics of the transmission channel of the network device are assembled into a prescribed format and sent out;
  • the packet sending pre-processing module 32 replaces the RDI field in the packet with 1, and assembles the packet into a prescribed format according to the characteristics of the transmission channel of the network device. .
  • Step 408 The information component module 31 continues the timed polling
  • the information component module 31 continues to periodically poll the transmission configuration entry of the first RAM 21, and when the transmission enable is valid, repeats the transmission step of FIG.
  • FIG. 5 is a schematic flowchart of a packet detection process according to an embodiment of the present invention, which specifically includes the following steps:
  • Step 501 The second RAM 22 stores detection parameters of the BFD packet and the CCM packet.
  • the second RAM 22 writes the detection parameters of the BFD packet and the CCM packet configured by the user into the detection configuration entry of the second RAM 22 through the configuration interface, and writes the current time into the detection configuration entry as the previous report. Arrival time of the text;
  • the detection parameters include: detection enable, message detection period, and message detection type.
  • Step 502 The message detecting module 24 determines whether a message arrives.
  • step 503 when a packet arrives, step 503 is performed.
  • step 510 is performed.
  • Step 503 The packet detecting module 24 determines the packet type.
  • step 504 when the packet type is BFD, step 504 is performed, and when the packet type is CCM, step 507 is performed.
  • Step 504 The message detecting module 24 determines whether the Diag field is changed.
  • the packet detecting module 24 reads the session number in the packet, reads the previous Diag field corresponding to the session number, and compares the previous Diag field with the Diag field in the packet. Step 506 is executed, and when there is no change, step 505 is performed.
  • Step 505 The message detecting module 24 updates the time
  • the Diag field when the Diag field is not changed, it is determined that the session is not interrupted, and the last packet arrival time is updated as the current time.
  • Step 506 The message detecting module 24 records the current Diag field, and generates an interrupt information.
  • the packet detecting module 24 determines that the session is interrupted, and records the current Diag field in the detection configuration entry, and generates interrupt information including the session number, the packet type, and the session interrupt type, and sends the interrupt information to the interrupt reporting module 25.
  • Step 507 The message detecting module 24 determines whether the RDI field is changed.
  • the packet detecting module 24 extracts the session number in the packet, reads the previous RDI field corresponding to the session number, and uses the previous RDI field and the current packet. In the RDI field comparison, when there is a change, step 508 is performed, and when there is no change, step 509 is performed.
  • Step 508 The message detecting module 24 records the current RDI field, generates an interrupt information, and updates the RDI status counter.
  • the packet detecting module 24 records the current RDI field, generates interrupt information including the session number, the packet type, and the session interrupt type, and sends the interrupt information to the interrupt reporting module 25, and updates the RDI status counter.
  • Step 509 The message detecting module 24 updates the time and updates the RDI status counter.
  • the packet detecting module 24 updates the RDI status counter by updating the arrival time of the last packet in the configuration configuration entry to the current time.
  • Step 510 The packet detecting module 24 determines whether the packet sending period is exceeded.
  • the packet detecting module 24 calculates a difference between the current value of the timer and the arrival time of the previous packet when the packet is not received.
  • step 511 is performed.
  • step 512 is performed.
  • Step 511 The packet detecting module 24 updates the time and generates an interrupt information.
  • the packet detecting module 24 detects the arrival time of the last packet in the configuration entry.
  • the information is updated to the current time, and the interrupt information including the session number, the message type, and the session interrupt type is generated and sent to the interrupt reporting module 25.
  • Step 512 The message detecting module 24 continues to determine whether a message arrives.
  • the present invention is described in accordance with a flowchart, and/or block diagram of a method, apparatus (system), and computer program product for rapidly transmitting and detecting OAM messages according to an embodiment. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the embodiment of the present invention further implements a computer storage medium, wherein the computer program is stored therein, and the computer program is used to execute the method for quickly transmitting and detecting OAM messages in the foregoing embodiment.
  • the method for sending and detecting a message configures the sending parameters of the BFD message and the CCM message into the first RAM, and the BFD message and the CCM message are
  • the detection parameter is configured in the second RAM, and the network device determines the packet type according to the sending parameter, sends a message to the packet, and then determines whether a packet arrives, and performs corresponding detection processing according to the detection parameter, so that the packet is reported.
  • the parameters related to the sending and checking process can be used to share resources, so that the network device can flexibly configure the session in different scenarios, and at the same time meet the performance requirements, save resources, and reduce costs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

L'invention concerne un procédé de traitement rapide d'émission et de détection d'un paquet d'exploitation, d'administration et de maintenance (OAM). Un type de session d'OAM est à détection de réexpédition bidirectionnelle (BFD) ou fait intervenir un message de vérification de continuité (CCM). Un dispositif de réseau conserve des paramètres d'émission d'un paquet BFD et un paquet CCM dans une première mémoire vive (RAM) et conserve des paramètres de détection du paquet BFD et du paquet CCM dans une deuxième RAM; une extrémité émettrice du dispositif de réseau détermine un type de paquet en fonction des paramètres d'émission et effectue un traitement d'émission du paquet; et une extrémité de détection détermine si le paquet est arrivé et effectue un traitement correspondant de détection en fonction des paramètres de détection. L'invention concerne également un appareil de traitement d'émission et de détection d'un paquet, ainsi qu'un support de stockage. L'appareil comporte un module d'émission de paquets et un module de détection de paquets.
PCT/CN2014/090899 2014-04-02 2014-11-12 Procédé et appareil de traitement rapide d'émission et de détection d'un paquet d'oam, et support de stockage WO2015149523A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410132004.5 2014-04-02
CN201410132004.5A CN104980293B (zh) 2014-04-02 2014-04-02 一种oam报文快速发送和检测处理的方法及装置

Publications (1)

Publication Number Publication Date
WO2015149523A1 true WO2015149523A1 (fr) 2015-10-08

Family

ID=54239368

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090899 WO2015149523A1 (fr) 2014-04-02 2014-11-12 Procédé et appareil de traitement rapide d'émission et de détection d'un paquet d'oam, et support de stockage

Country Status (2)

Country Link
CN (1) CN104980293B (fr)
WO (1) WO2015149523A1 (fr)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274600A (zh) * 2017-07-18 2019-01-25 华为技术有限公司 一种检测块发送和接收的方法、网络设备和系统
CN114938346A (zh) * 2022-05-13 2022-08-23 苏州盛科通信股份有限公司 一种芯片和cpu协同实现业务快速切换的方法及装置

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107800626B (zh) * 2016-08-31 2020-10-09 阿里巴巴集团控股有限公司 数据报文的处理方法、装置及设备
US10193746B2 (en) * 2016-12-21 2019-01-29 Juniper Networks, Inc. Deadlock avoidance using modified ethernet connectivity fault management signaling
CN111565132B (zh) * 2020-04-24 2021-11-30 烽火通信科技股份有限公司 一种双向转发检测报文的超时检测方法及系统
CN114301852A (zh) * 2020-09-23 2022-04-08 深圳市中兴微电子技术有限公司 报文传输控制、生成、传输方法及配置方法、设备、介质
CN112422442B (zh) * 2020-10-21 2022-07-05 鹏城实验室 处理双向转发检测协议的会话中断消息的方法及存储介质
CN112328322B (zh) * 2020-10-26 2023-08-01 银盛支付服务股份有限公司 一种Apollo配置本地化的方法及系统

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478421A (zh) * 2008-12-05 2009-07-08 中兴通讯股份有限公司 一种oam报文定时处理系统及方法
CN101848223A (zh) * 2010-05-25 2010-09-29 中兴通讯股份有限公司 基于网络处理器实现快速报文双向转发检测的方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8054830B2 (en) * 2005-12-07 2011-11-08 Alcatel Lucent Managing the distribution of control protocol information in a network node
KR100872453B1 (ko) * 2006-08-31 2008-12-08 영남대학교 산학협력단 차등화 서비스 엠피엘에스망에서 비에프디/오에이엠을기반으로 장애를 감지하고 성능을 측정하기 위한 시스템 및방법
US8804534B2 (en) * 2007-05-19 2014-08-12 Cisco Technology, Inc. Interworking between MPLS/IP and Ethernet OAM mechanisms
US8824302B2 (en) * 2012-07-23 2014-09-02 Alcatel Lucent Proxy maintenance endpoint at provider edge switch
CN103152205B (zh) * 2013-03-22 2016-02-10 烽火通信科技股份有限公司 基于流索引的oam处理方法及装置

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101478421A (zh) * 2008-12-05 2009-07-08 中兴通讯股份有限公司 一种oam报文定时处理系统及方法
CN101848223A (zh) * 2010-05-25 2010-09-29 中兴通讯股份有限公司 基于网络处理器实现快速报文双向转发检测的方法和装置

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
MIZRAHI, T. ET AL., AN OVERVIEW OF OPERATIONS, ADMINISTRATION, AND MAINTENANCE (OAM) MECHANISMS DRAFT-IETF-OPSAWG-OAM-OVERVIEW-OO.TXT, 17 January 2010 (2010-01-17), XP055228580 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109274600A (zh) * 2017-07-18 2019-01-25 华为技术有限公司 一种检测块发送和接收的方法、网络设备和系统
US11539607B2 (en) 2017-07-18 2022-12-27 Huawei Technologies Co., Ltd. Detection block sending and receiving method, and network device and system
CN114938346A (zh) * 2022-05-13 2022-08-23 苏州盛科通信股份有限公司 一种芯片和cpu协同实现业务快速切换的方法及装置

Also Published As

Publication number Publication date
CN104980293A (zh) 2015-10-14
CN104980293B (zh) 2019-05-31

Similar Documents

Publication Publication Date Title
WO2015149523A1 (fr) Procédé et appareil de traitement rapide d'émission et de détection d'un paquet d'oam, et support de stockage
EP3139560B1 (fr) Dispositif et procédé de traitement de paquets et support de stockage informatique
JP4542045B2 (ja) データ通信装置およびその方法
US7869376B2 (en) Communicating an operational state of a transport service
WO2018210213A1 (fr) Procédé et dispositif de mise en œuvre d'un conditionnement ioam et support de stockage
US8908537B2 (en) Redundant network connections
WO2016107369A1 (fr) Procédé et dispositif de gestion de canal de transmission de données
EP2536066A1 (fr) Procédé, appareil et système de détection de liaison
EP2961101B1 (fr) Méthode, système et terminal de réseau optique pour détection de performance ethernet
CN105791126B (zh) 一种三态内容可寻址存储器tcam查表方法及装置
WO2019128273A1 (fr) Procédé, dispositif et système de détermination de relation de connexion de dispositifs réseau
WO2020088683A1 (fr) Procédé de traitement d'entrée d'enregistrement d'événement de routage, dispositif de réseau et dispositif de commande
CN104283711A (zh) 基于双向转发检测bfd的故障检测方法、节点及系统
US20230111966A1 (en) Ethernet storage system, and information notification method and related apparatus thereof
US20140092725A1 (en) Method and first network node for managing an ethernet network
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
US20120275296A1 (en) Protection Switching Method and System for Ethernet Dual-homed Link
JP2012227804A (ja) 情報処理装置および情報処理装置の制御方法
CN107070739A (zh) 一种路由器运行故障智能检测方法及系统
CN104702498A (zh) 一种通过协调保护减少设备间光连接数量的方法及装置
CN103840965B (zh) 一种增强rstp中故障快速收敛的方法
CN108282383B (zh) 一种实现故障处理的方法及设备
WO2022048466A1 (fr) Procédé et dispositif de traitement de paquets d'exploitation, d'administration et de maintenance (oam)
WO2014008809A1 (fr) Procédé et système pour la détection de perte de trames
US20220294728A1 (en) Packet Transmission Path Switching Method, Device, and System

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: DECISION TO REFUSE A EUROPEAN PATENT APPLICATION (EPO FORM 1205A DATED 28/02/2017)

122 Ep: pct application non-entry in european phase

Ref document number: 14888049

Country of ref document: EP

Kind code of ref document: A1