CN110933002B - Method and device for realizing switching chip of MPLS in-band detection OAM - Google Patents

Method and device for realizing switching chip of MPLS in-band detection OAM Download PDF

Info

Publication number
CN110933002B
CN110933002B CN201911166349.1A CN201911166349A CN110933002B CN 110933002 B CN110933002 B CN 110933002B CN 201911166349 A CN201911166349 A CN 201911166349A CN 110933002 B CN110933002 B CN 110933002B
Authority
CN
China
Prior art keywords
flow table
message
zone bit
bit
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911166349.1A
Other languages
Chinese (zh)
Other versions
CN110933002A (en
Inventor
单哲
周伟
方沛昱
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Sheng Ke Science And Technology Co ltd
Original Assignee
Suzhou Sheng Ke Science And Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Sheng Ke Science And Technology Co ltd filed Critical Suzhou Sheng Ke Science And Technology Co ltd
Priority to CN201911166349.1A priority Critical patent/CN110933002B/en
Publication of CN110933002A publication Critical patent/CN110933002A/en
Application granted granted Critical
Publication of CN110933002B publication Critical patent/CN110933002B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/25Routing or path finding in a switch fabric
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Abstract

The invention discloses a method and a device for realizing an MPLS in-band detection OAM switching chip, wherein the method comprises the steps of receiving data flow characteristics issued by a control device, configuring the data flow characteristics into ACL entries in the chip, enabling in-band OAM flow table lookup by the ACL entries, further judging whether the in-band OAM flow table lookup is enabled by the ACL entries, if so, carrying out the in-band OAM flow table lookup, further judging whether the source node or the detection node is the source node or the detection node according to the type of the node in the flow table when the flow table is found, if so, executing the processing operation of the source node on the in-band OAM, and if so, executing the processing operation of the detection node on the in-band OAM. The invention can carry out targeted detection and measurement aiming at specific data flow and ensure the high efficiency of performance measurement.

Description

Method and device for realizing switching chip of MPLS in-band detection OAM
Technical Field
The invention relates to the technical field of switches, in particular to a method and a device for realizing an MPLS switching chip with in-band detection OAM.
Background
Mpls (multi protocol Label switching) is an ip (internet protocol) backbone network technology. MPLS introduces a connection-oriented label switching concept on a connectionless IP network, combines a third layer routing technology with a second layer switching technology, and fully exerts the flexibility of IP routing and the simplicity of second layer switching.
In a network based on MPLS, an OAM mechanism commonly used in MPLS, such as MPLS OAM, MPLS-TP OAM, and other related technologies, an OAM (Operation Administration and Maintenance) message is an individual protocol message, and the use of this type of OAM message occupies a certain network bandwidth resource and cannot perform targeted performance measurement on a specific data stream, such as packet loss measurement, delay measurement, and the like.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a switching chip implementation method and device for MPLS in-band detection OAM, which can carry out targeted detection and measurement on specific data streams and ensure the high efficiency of performance measurement.
In order to achieve the purpose, the invention provides the following technical scheme: a method for realizing switching chip of MPLS in-band detection OAM includes the following steps:
step S100, receiving data flow characteristics, configuring the data flow characteristics into an ACL (access control list) table item in a chip, and enabling an in-band OAM (operation administration and maintenance) flow table to be searched by the ACL table item;
step S200, judging whether the ACL table items enable in-band OAM flow table searching, if so, performing in-band OAM flow table searching, and executing step S300 when the flow table is searched;
step S300, according to the node type in the flow table, judging whether the node is the source node or the detection node,
if the current flow table is the source node, updating the message count in the flow table, judging whether the current cycle is assigned for the D zone bit according to the state value of the D zone bit in the flow table, assigning the D zone bit in the current message when the D zone bit is not assigned, updating the state of the D zone bit in the flow table, reporting the D zone bit with a timestamp to a CPU (central processing unit), and further assigning the L zone bit in the message according to the state value of the L zone bit in the flow table;
if the node is detected, judging whether the D zone bit in the message is a preset value, copying the message and reporting the message to a CPU (central processing unit) with a timestamp when the D zone bit is the preset value, and further updating the corresponding message count in the flow table according to the value of the L zone bit in the message.
Preferably, in step S300, when the state value of the D flag bit in the flow table is 1, the D flag bit is assigned in the period; when the state value of the D flag bit in the flow table is 0, the D flag bit is not assigned in this period.
Preferably, in step S300, assigning the value to the L flag bit in the packet according to the L flag bit state value in the flow table includes:
when the state value of the L zone bit is 0, the L zone bit in the current message needs to be assigned to be 0;
and when the state value of the L zone bit is 1, the L zone bit in the current message needs to be assigned to be 1.
Preferably, in step S300, the updating, according to the value of the L flag bit in the packet, the corresponding packet count in the flow table includes:
when the L zone bit is 0, adding one to the message count recorded in the flow table that the L zone bit is 0;
and when the L flag bit is 1, adding one to the count of the message recorded in the flow table that the L flag bit is 1.
Preferably, if the source node is the source node, a first timer is further required to be set, where the first timer is used to periodically report the packet count in the flow table to the CPU and clear the packet count after reporting, periodically set the state value of the D flag bit in the flow table to 0, and periodically set the state value of the L flag bit in the flow table to 0 and 1 alternately; and if the node is detected, a second timer is needed to be set, and the second timer is used for periodically reporting the message count with the L zone bit of 0 and the message count with the L zone bit of 1 to the CPU and resetting after reporting.
Preferably, the period of the second timer is [ T, 2T ], where T is the period of the first timer.
The invention also discloses a device for realizing the switching chip of the MPLS in-band detection OAM, which comprises
The ACL table item configuration module is used for receiving data flow characteristics issued by a control device, configuring the data flow characteristics into ACL table items in a chip, and enabling an in-band OAM flow table to be searched by the ACL table items;
the first judgment module is used for judging whether the ACL table items enable in-band OAM flow table searching;
the searching module is used for searching the in-band OAM flow table when the first judging module judges that the ACL table entry enables the in-band OAM flow table to be searched;
the second judging module is used for judging whether the node is a source node or a detection node according to the type of the node in the flow table searched by the searching module;
the source node processing module is used for updating the message count in the flow table when the second judging module judges that the message count is the source node, judging whether the D flag bit is assigned in the period according to the state value of the D flag bit in the flow table, assigning the D flag bit in the current message when the D flag bit is not assigned, updating the state of the D flag bit in the flow table, carrying a timestamp to report to a CPU (central processing unit), and further assigning the L flag bit in the message according to the state value of the L flag bit in the flow table;
and the detection node processing module is used for judging whether the D zone bit in the message is a preset value when the second judging module judges that the detection node is the detection node, copying the message and reporting the message to the CPU with a timestamp when the D zone bit is the preset value, and further updating the corresponding message count in the flow table according to the value of the L zone bit in the message.
Preferably, the source node processing module comprises
The first updating module is used for updating the message count in the flow table;
the third judging module is used for judging whether the D flag bit is assigned in the period according to the state value of the D flag bit in the flow table;
the first reporting module is used for assigning the D zone bit in the current message when the third judging module judges that the D zone bit is not assigned, updating the state of the D zone bit in the flow table and reporting the D zone bit carrying the timestamp to the CPU;
and the first assignment module is used for assigning the L zone bit in the message according to the L zone bit state value in the flow table.
Preferably, the detection node processing module comprises
The fourth judgment module is used for judging whether the flag bit D in the message is a preset value or not;
the second reporting module is used for copying the message and reporting the message to the CPU with the timestamp when the fourth judging module judges that the D zone bit is the preset value;
and the second assignment module is used for updating the corresponding message count in the flow table according to the value of the L flag bit in the message.
Preferably, the source node processing module is provided with a first timer, the detection node processing module is provided with a second timer, the first timer is configured to periodically report the packet count in the flow table to the CPU and reset the packet count after reporting, periodically set the state value of the D flag bit in the flow table to 0, and periodically set the state value of the L flag bit in the flow table to 0 and 1 alternately, and the second timer is configured to periodically count the packet whose L flag bit is 0 and report the packet count whose L flag bit is 1 to the CPU and reset the packet count after reporting.
The invention has the beneficial effects that:
the invention configures the data flow characteristics into ACL table items in the exchange chip, can carry out targeted detection and measurement aiming at specific data flow through the ACL table items, and simultaneously realizes the function of OAM performance measurement in the MPLS band by using hardware logic in the exchange chip, thereby ensuring the accuracy and the high efficiency of the performance measurement.
Drawings
Fig. 1 is a schematic diagram of MPLS network device connectivity using in-band detection OAM of the present invention;
fig. 2 is a schematic diagram illustrating an in-band OAM processing flow of an ingress edge device, an egress edge device, and an intermediate device according to the present invention;
fig. 3 is a block diagram of the apparatus of the present invention.
Detailed Description
The technical solution of the embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings of the present invention.
The Switching chip implementation method for detecting OAM in the MPLS (Multi-Protocol Label Switching) band disclosed by the invention uses hardware logic in the Switching chip to implement the function of measuring the OAM performance in the MPLS band, thereby ensuring the accuracy and the high efficiency of the performance measurement.
The method for implementing the MPLS network device with in-band OAM detection disclosed in the present invention is described in detail by taking the schematic connection diagram of the MPLS network device using the in-band OAM detection shown in fig. 1 as an example.
In particular, an MPLS network typically includes an ingress direction edge device (ingress PE), an egress direction edge device (egress PE), and an intermediate device (PE) connected between the ingress and egress direction edge devices.
In order to implement the in-band OAM detection function, the ingress edge device, the egress edge device, and the intermediate device need to be configured with corresponding functions. The switching chip in the ingress edge device has functions of encapsulation, mapping, counting and the like, wherein the encapsulation comprises MPLS (multi-protocol label switching) and encapsulation, and FII (service flow in-band performance detection indication tag header), FIH (flow instruction header) and FIEH (flow instruction extension header) are encapsulated; mapping includes mapping some information in the message, such as five-tuple information, into flow number (FlowID) field information and next header (nextpead) field information in the flow instruction header; counting comprises counting the messages in each data stream, periodically reporting a message count value, and counting the messages again after the message count value is reported, wherein the message count value can be used for the management and control equipment to calculate the packet loss number of the service stream in the period.
Furthermore, the ingress edge device also has a function of periodically assigning values to the L flag bit and the D flag bit in the packet, where the L flag bit is used for packet loss detection and the D flag bit is used for delay detection. The entering direction edge device periodically records the state of whether the L zone bit should be set to zero or set to one when assigning the L zone bit, messages received in the period are assigned according to the state of the L zone bit, and if the L zone bit recorded in the entering direction edge device in the last period is set to zero, the L zone bit in the period needs to be set to one; and when assigning the D zone bit, the edge equipment in the incoming direction needs to record whether the D zone bit is assigned in the period or not, and determines whether the D zone bit in the first message received in the period is assigned or not according to the D zone bit assigned in the incoming direction, and after assigning the D zone bit, the D zone bit is reported and carries a timestamp to be calculated by the management and control equipment, so that the zone bit in each data stream is further eliminated.
The intermediate device has the functions of flow table establishment, analysis, detection and the like, wherein the intermediate device can establish a flow table mode through software learning, detect after identifying the FII header and the FIH header in the message, and simultaneously see the FII header, the FIH header and the FIEH header after the label at the bottom of the stack after analyzing the message; the detection comprises L zone bit detection and D zone bit detection, wherein the L zone bit detection comprises the following steps: counting messages according to the value of the L zone bit in the received messages, when the L zone bit in the received messages changes, continuing counting the messages in a half period to ensure that the messages sent in the current detection period are delayed to be received in the network due to disorder, further realizing the purpose that a receiving end does not omit a detection period to count the messages, starting reporting when the half period is reached, and only reporting the message statistical value in the period; d flag bit detection comprises the following steps: and detecting whether the D zone bit in the received message is 1, if so, reporting to the CPU, and carrying a timestamp for the management and control equipment to calculate the time delay.
The egress edge device has the functions of flow table establishment, decapsulation, detection and the like, wherein the egress edge device can establish a flow table mode through software learning; decapsulation includes MPLS decapsulation, and decapsulation of FII (traffic flow in-band performance detection indication tag header), FIH (flow instruction header), and FIEH (flow instruction extension header); the L flag bit and D flag bit detection are the same as the intermediate device, and are not described in detail herein.
In this embodiment, the management and control device is a centralized control device, and sends the data stream characteristics to be monitored to the ingress edge device, the egress edge device, and the intermediate device, and each device sends information obtained through the in-band detection OAM to the centralized control device to perform packet loss measurement and time delay measurement.
After the ingress edge device, the egress edge device, and the intermediate device configure the above functions, a method for implementing an MPLS in-band OAM switch chip is described in detail with reference to the flowchart shown in fig. 2, where the method includes the following steps:
step S100, receiving a data flow feature issued by a management and control device, configuring the data flow feature into an ACL entry in a switch chip, and enabling in-band OAM flow table lookup by the ACL entry.
Specifically, when receiving the data stream characteristics sent by the management and control device, for the two-layer service, the identifiable characteristic information includes a physical port, an MAC address, a VLAN, and a VLAN PRI (VLAN priority), and for the three-layer service, the identifiable characteristic information includes a destination IP address, a source IP address, and a DSCP (Differentiated Services Code Point). The characteristic information is further configured into an ACL table entry in the switching chip, and an ACL in-band OAM flow table lookup function is enabled for the ACL table entry.
By configuring data flow characteristics as ACL entries in the switch chip, targeted detection and measurement can be performed for a particular data flow.
Step S200, judging whether the ACL table item enables the function of searching the in-band OAM flow table, if so, searching the in-band OAM flow table, judging whether the corresponding flow table is searched, and executing the step S300 when the corresponding flow table is searched.
Specifically, a plurality of ACL entries are stored in the switch chip, and each ACL entry corresponds to a message matching rule. When the method is implemented, firstly, whether the ACL table entry enables the in-band OAM flow table searching function is judged, and the in-band OAM processing engine is entered to perform flow table searching when the in-band OAM flow table searching function is enabled, if the corresponding flow table is searched, the next step of operation is performed, if the corresponding flow table is not searched, the data flow does not need to perform the in-band OAM related operation, and normal message forwarding and editing are performed according to the original data forwarding flow.
Step S300, judging whether the node type is a source node type or a detection node type according to the flow table, executing step S400 if the node type is the source node type, judging whether a D zone bit in the message is a preset value if the node type is the detection node type, copying the message and reporting the message to a CPU (Central processing Unit) and carrying timestamp information when the D zone bit is the preset value, and further updating corresponding message counting in the flow table according to the value of the L zone bit in the message.
Step S400, counting the messages in the flow table, judging whether the D zone bit is assigned or not in the period according to the state of the D zone bit in the flow table, assigning the D zone bit of the messages when the D zone bit is not assigned in the period, reporting the D zone bit to a CPU (Central processing Unit) and carrying timestamp information, and further assigning the L zone bit of the messages according to the state of the L zone bit in the flow table.
Specifically, after the corresponding flow table is found, it is further determined whether the flow table is the source node (initNode) or the detection node (detetnode) according to the node type (flowtable. nodetype) in the flow table, and when the implementation is performed, the flow table is configured as the source node type for the ingress edge device, and the flow tables are configured as the detection node types for the egress edge device and the intermediate device.
For the incoming direction edge device, that is, for the source node, an update operation, that is, an add operation, is performed first on the packet count (flowtable. And further judging whether the current value of the state value of the D flag bit is 0 or 1 according to the state value of the D flag bit in the flow table, namely, the current value of the state value of the D flag bit is 0 or 1, judging whether the D flag bit is assigned in the period, when the flow table is 1, indicating that the D flag bit is assigned in the period, directly carrying out assignment operation on the L flag bit in the message according to the state of the L flag bit in the flow table, and at the moment, setting the value of the D flag bit sent into the message editing module to be 0.
When the flowtable flag dstatus is 0, it indicates that the D flag bit is not assigned in the period, and at this time, the current packet needs to assign the D flag bit, that is, the value of the D flag bit is set to 1, and simultaneously, the state of the D flag bit in the flow table is changed, that is, when the flowtable flag dstatus is set to 1, and the flag bit carries a timestamp to report to the CPU, and at this time, the value of the D flag bit sent into the packet editing module is 1.
And after the D flag bit is assigned, the L flag bit in the message is further assigned according to the L flag bit state value (FlowTable.
When the method is implemented, the assignment operation of the L zone bit in the message according to the L zone bit state value in the flow table comprises the following steps: the L flag bit in the current packet needs to be assigned to 0 when the flowtable is 0, and the L flag bit in the current packet needs to be assigned to 1 when the flowtable is 1.
For the outgoing direction edge device and the middle device, that is, for the detection node, firstly, whether a D flag bit (pkt.dflag) in the message is 1 is judged, if so, the current message is copied and reported to the CPU with a timestamp, further, the corresponding message count in the flow table is updated according to the value of an L flag bit (pkt.lflag) in the message, and if so, the corresponding message count in the flow table is directly updated according to the value of the L flag bit (pkt.lflag) in the message.
When the method is implemented, the updating operation of the corresponding message count in the flow table according to the value of the L flag bit (pkt. Lflag) in the message comprises the following steps: when the L flag bit in the packet is 0, performing an update operation (add one operation) on the packet count (flowtable. pktcnt1) in the flow table, where the L flag bit is recorded as 0, that is, counting the number of packets whose L flag bit is 0; when the L flag bit in the packet is 1, performing an update operation (add one operation) on the packet count (flowtable. pktcnt1) in the flow table, which records that the L flag bit is 1, that is, counting the number of packets whose L flag bit is 1.
A Timer (Timer) is also configured for both the source node and the detection node. For a timer in a source node, the method (1) periodically reports a message count (flowtable. pktcnt) in a flow table to a CPU, and clears the message count after reporting, that is, sets flowtable. pktcnt to 0; (2) periodically setting a D flag bit state value (flowtable flag status) in the flow table to 0, that is, setting flowtable flag status to 0; (3) periodically setting the L flag bit state (flowtable) in the flow table to 0 and 1, that is, setting the L flag bit state in the flow table to 1 in the current cycle, then setting the L flag bit state in the flow table to 0 in the next cycle, and setting the L flag bit state in the flow table to 1 in the next cycle. The periods in (1), (2) and (3) above are kept uniform.
For the timer in the detection node, the timer (4) periodically reports the packet counts (flowtable. pktcnt0, flowtable. pktcnt1) with the L flag bits of 0 and 1 in the flow table to the CPU, and clears the packet counts after reporting, that is, sets flowtable. pktcnt0 and flowtable. pktcnt1 to 0 respectively.
In this embodiment, in order to allow the packet to generate a certain degree of disorder in the transmission process, the period of the timer in the detection node is [ T, 2T ], and T is the period of the timer in the source node.
As shown in fig. 2, for the source node, the following information can be obtained after it is processed in step S400: 1. flow number (FlowID), 2, next header (nextHeader), 3, { L, D, R, S/R }, 4, node type (nodeType); for the detecting node, the following information can be obtained after the processing of step S300: 1. { L, D, R, S/R }, 2, node type (nodeType).
The source node and the detection node send the obtained information to the message forwarding and editing module for processing. Specifically, for the source node, the stream number and the { L, D, R, S/R } information are required to form an in-band OAM content, and are edited into a corresponding position of the MPLS packet, and if the previous processing requires assignment of the D flag, the timestamp is reported, and at the same time, the stream number is also required to be reported to the CPU, and is uniformly reported to the management and control device through the CPU.
And if the detection node is intermediate equipment, processing according to a normal message processing flow without editing the OAM content in the band, if the D flag bit of the previous processing is 1, reporting the stream number and the corresponding timestamp to a CPU at the same time, and reporting the stream number, the timestamp and the message count value with the L flag bits of 0 and 1 read at regular time to the control equipment by the CPU. If the packet is an outbound edge device, the MPLS label is unpacked, and simultaneously the in-band OAM content is unpacked to ensure that the packet can be processed normally, if the flag bit of the previous processing D is 1, the flow number and the corresponding timestamp need to be reported to the CPU at the same time, and the CPU reports the flow number, the timestamp, and the packet count values of 0 and 1, which are read at regular time, to the management and control device.
As shown in fig. 3, the present invention further discloses a device for implementing an MPLS in-band OAM detection switch chip, including an ACL entry configuration module, a first determination module, a lookup module, a second determination module, a source node processing module, and a detection node processing module, where the ACL entry configuration module is configured to receive a data flow feature issued by a management and control device, configure the data flow feature in an ACL entry in the chip, and enable in-band OAM flow table lookup by the ACL entry; the first judgment module is used for judging whether the ACL table items enable in-band OAM flow table searching; the searching module is used for searching the in-band OAM flow table when the first judging module judges that the ACL table entry enables the in-band OAM flow table to be searched; the second judging module is used for judging whether the node is a source node or a detection node according to the type of the node in the flow table searched by the searching module; the source node processing module is used for updating the message count in the flow table when the second judging module judges that the message count is the source node, judging whether the D flag bit is assigned in the period according to the state value of the D flag bit in the flow table, assigning the D flag bit in the current message when the D flag bit is not assigned, updating the state of the D flag bit in the flow table, reporting the state of the D flag bit to a CPU (central processing unit) with a timestamp, and further assigning the L flag bit in the message according to the state value of the L flag bit in the flow table; the detection node processing module is used for judging whether the D zone bit in the message is a preset value (the preset value is 1) when the second judging module judges that the detection node is the detection node, copying the message and reporting the message to the CPU with a timestamp when the D zone bit is the preset value, and further performing corresponding message counting updating operation according to the value of the L zone bit in the message.
Further, the source node processing module comprises a first updating module, a third judging module, a first reporting module and a first assigning module, wherein the first updating module is used for updating the message count in the flow table; the third judging module is used for judging whether the D flag bit is assigned in the period according to the state value of the D flag bit in the flow table; the first reporting module is used for assigning the D zone bit in the current message when the third judging module judges that the D zone bit is not assigned, updating the state of the D zone bit in the flow table and reporting the D zone bit carrying the timestamp to the CPU; and the first assignment module is used for assigning the L zone bit in the message according to the L zone bit state value in the flow table.
The detection node processing module comprises a fourth judging module, a second reporting module and a second assignment module, wherein the fourth judging module is used for judging whether the D zone bit in the message is a preset value or not; the second reporting module is used for copying the message and reporting the message to the CPU with a timestamp when the fourth judging module judges that the D zone bit is a preset value; and the second assignment module is used for performing corresponding message counting updating operation according to the value of the L zone bit in the message.
The corresponding operation processes executed by the modules are described in detail above, and are not described in detail herein.
Therefore, the scope of the present invention should not be limited to the disclosure of the embodiments, but includes various alternatives and modifications without departing from the scope of the present invention, which is defined by the claims of the present patent application.

Claims (10)

1. A method for realizing switching chip of MPLS in-band detection OAM is characterized by comprising the following steps:
step S100, receiving data flow characteristics, configuring the data flow characteristics into an ACL (access control list) table item in a chip, and enabling an in-band OAM (operation administration and maintenance) flow table to be searched by the ACL table item;
step S200, judging whether the ACL table items enable in-band OAM flow table searching, if so, performing in-band OAM flow table searching, and executing step S300 when the flow table is searched;
step S300, judging whether the node is a source node or a detection node according to the node type in the flow table, wherein the flow table of the incoming direction edge processing device is configured to be the source node type, and the flow tables of the outgoing direction edge device and the intermediate device are configured to be the detection node type;
if the current timer period is the source node, updating the message count in the flow table, judging whether the current timer period is assigned for the D zone bit according to the state value of the D zone bit in the flow table, assigning the D zone bit in the current message when the D zone bit is not assigned, updating the state of the D zone bit in the flow table, reporting the D zone bit with a timestamp to a CPU (central processing unit), and further assigning the L zone bit in the message according to the state value of the L zone bit in the flow table;
if the node is detected, judging whether the D zone bit in the message is a preset value, copying the message and reporting the message to a CPU (central processing unit) with a timestamp when the D zone bit is the preset value, and further updating the corresponding message count in the flow table according to the value of the L zone bit in the message.
2. The method according to claim 1, wherein in step S300, when the D flag bit status value in the flow table is 1, the D flag bit is already assigned in the cycle; when the state value of the D flag bit in the flow table is 0, the D flag bit is not assigned in this period.
3. The method of claim 1, wherein in step S300, assigning the L flag bit in the message according to the L flag bit status value in the flow table comprises:
when the state value of the L zone bit is 0, the L zone bit in the current message needs to be assigned to be 0;
and when the state value of the L zone bit is 1, the L zone bit in the current message needs to be assigned to be 1.
4. The method according to claim 1, wherein in step S300, updating the corresponding packet count in the flow table according to the value of the L-flag bit in the packet includes:
when the L zone bit is 0, adding one to the message count recorded in the flow table that the L zone bit is 0;
and when the L flag bit is 1, adding one to the count of the message recorded in the flow table that the L flag bit is 1.
5. The method according to claim 1, wherein if the source node is a source node, a first timer is further required to be set, the first timer is used for periodically reporting the packet count in the flow table to a CPU and clearing the packet count after reporting, periodically setting a D flag bit state value in the flow table to 0, and periodically alternately setting an L flag bit state value in the flow table to 0 and 1; and if the node is detected, a second timer is needed to be set, and the second timer is used for periodically reporting the message count with the L zone bit of 0 and the message count with the L zone bit of 1 to the CPU and resetting after reporting.
6. The method of claim 5, wherein the period of the second timer is [ T, 2T ], wherein T is the period of the first timer.
7. A device for realizing switching chip of MPLS in-band detection OAM is characterized by comprising
The ACL table item configuration module is used for receiving data flow characteristics, configuring the data flow characteristics into an ACL table item in a chip, and enabling an in-band OAM flow table to be searched by the ACL table item;
the first judgment module is used for judging whether the ACL table items enable in-band OAM flow table searching;
the searching module is used for searching the in-band OAM flow table when the first judging module judges that the ACL table entry enables the in-band OAM flow table to be searched;
the second judging module is used for judging whether the flow table entering the direction edge processing equipment is configured to be the source node type or the detection node type according to the node type in the flow table searched by the searching module, and the flow tables exiting the direction edge processing equipment and the intermediate equipment are configured to be the detection node type;
the source node processing module is used for updating the message count in the flow table when the second judging module judges that the message count is the source node, judging whether the current timer period is assigned for the D zone bit according to the state value of the D zone bit in the flow table, assigning the D zone bit in the current message when the D zone bit is not assigned, updating the state of the D zone bit in the flow table, reporting the state of the D zone bit with a timestamp to a CPU (central processing unit), and further assigning the L zone bit in the message according to the state value of the L zone bit in the flow table;
and the detection node processing module is used for judging whether the D zone bit in the message is a preset value when the second judging module judges that the detection node is the detection node, copying the message and reporting the message to the CPU with a timestamp when the D zone bit is the preset value, and further updating the corresponding message count in the flow table according to the value of the L zone bit in the message.
8. The apparatus of claim 7, wherein the source node processing module comprises
The first updating module is used for updating the message count in the flow table;
the third judging module is used for judging whether the D flag bit is assigned in the period according to the state value of the D flag bit in the flow table;
the first reporting module is used for assigning the D zone bit in the current message when the third judging module judges that the D zone bit is not assigned, updating the state of the D zone bit in the flow table and reporting the D zone bit carrying the timestamp to the CPU;
and the first assignment module is used for assigning the L zone bit in the message according to the L zone bit state value in the flow table.
9. The apparatus of claim 7, wherein the detection node processing module comprises
The fourth judgment module is used for judging whether the flag bit D in the message is a preset value or not;
the second reporting module is used for copying the message and reporting the message to the CPU with the timestamp when the fourth judging module judges that the D zone bit is the preset value;
and the second assignment module is used for updating the corresponding message count in the flow table according to the value of the L flag bit in the message.
10. The apparatus according to claim 7, wherein a first timer is provided in the source node processing module, and a second timer is provided in the detection node processing module, the first timer is configured to periodically report and clear a packet count in the flow table to the CPU, periodically set the D flag bit state value in the flow table to 0, and periodically set the L flag bit state value in the flow table to 0 and 1 alternately, and the second timer is configured to periodically report and clear a packet count with the L flag bit of 0 to the CPU.
CN201911166349.1A 2019-11-25 2019-11-25 Method and device for realizing switching chip of MPLS in-band detection OAM Active CN110933002B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911166349.1A CN110933002B (en) 2019-11-25 2019-11-25 Method and device for realizing switching chip of MPLS in-band detection OAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911166349.1A CN110933002B (en) 2019-11-25 2019-11-25 Method and device for realizing switching chip of MPLS in-band detection OAM

Publications (2)

Publication Number Publication Date
CN110933002A CN110933002A (en) 2020-03-27
CN110933002B true CN110933002B (en) 2021-12-28

Family

ID=69851835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911166349.1A Active CN110933002B (en) 2019-11-25 2019-11-25 Method and device for realizing switching chip of MPLS in-band detection OAM

Country Status (1)

Country Link
CN (1) CN110933002B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580894A (en) * 2012-07-31 2014-02-12 华为技术有限公司 Method, device and system for operation, administration and maintenance (OAM) configuration
CN108028775A (en) * 2015-10-20 2018-05-11 思科技术公司 Operations, Administration and Maintenance in trigger-type band in network environment
CN108737269A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 A kind of packaging method, device and node
CN108737128A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 It is a kind of to realize the method and device with interior operation management maintainance IOAM

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957613B (en) * 2011-08-29 2015-09-23 盛科网络(苏州)有限公司 In MPLS-TP network, OAM message and data message unify method and the device of forward-path
US10666506B2 (en) * 2017-05-12 2020-05-26 Futurewei Technologies, Inc. In-situ OAM trace type extension with cascade bitmap and segment in-situ OAM
CN107770071B (en) * 2017-10-19 2021-03-23 盛科网络(苏州)有限公司 OpenFlow-based MPLS message processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103580894A (en) * 2012-07-31 2014-02-12 华为技术有限公司 Method, device and system for operation, administration and maintenance (OAM) configuration
CN108028775A (en) * 2015-10-20 2018-05-11 思科技术公司 Operations, Administration and Maintenance in trigger-type band in network environment
CN108737269A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 A kind of packaging method, device and node
CN108737128A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 It is a kind of to realize the method and device with interior operation management maintainance IOAM

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Segment Routing with MPLS Data Plane Encapsulation for In-situ OAM Data draft-gandhi-spring-ioam-sr-mpls-01;Gandhi 等;《SPRING Working Group》;20190425;全文 *

Also Published As

Publication number Publication date
CN110933002A (en) 2020-03-27

Similar Documents

Publication Publication Date Title
JP5958570B2 (en) Network system, controller, switch, and traffic monitoring method
JP7468969B2 (en) Apparatus for use in a first network node and an apparatus for use in a controller
US9154394B2 (en) Dynamic latency-based rerouting
US20220294722A1 (en) Transmission Quality Detection Method, Apparatus, and System, and Storage Medium
JP4431315B2 (en) Packet communication method and packet communication apparatus
US8229705B1 (en) Performance monitoring in computer networks
US7898969B2 (en) Performance measurement in a packet transmission network
US9059922B2 (en) Network traffic distribution
JP2005277804A (en) Information relaying apparatus
JP2007336512A (en) Statistical information collecting system, and apparatus thereof
US10771363B2 (en) Devices for analyzing and mitigating dropped packets
JP7313480B2 (en) Congestion Avoidance in Slice-Based Networks
US20220407791A1 (en) Network performance detection method and apparatus, and network device
JP2017530645A (en) Packet sampling to measure network performance
JP4823156B2 (en) Remote traffic monitoring method
US8553539B2 (en) Method and system for packet traffic congestion management
JP2012182605A (en) Network control system and administrative server
JP2000278264A (en) Method for monitoring data network
CN110933002B (en) Method and device for realizing switching chip of MPLS in-band detection OAM
US7061919B1 (en) System and method for providing multiple classes of service in a packet switched network
EP3913862B1 (en) Traffic detection method, apparatus, and system
CN112152867B (en) Flow matrix measuring method, system and storage medium
Ren et al. A reactive traffic flow estimation in software defined networks
Phan Fine-Grained and Distributed Traffic Monitoring Platform in Software-Defined Networks
北辻佳憲 Studies on network traffic engineering exploiting dynamic IP-flow characteristics

Legal Events

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