CN112702283B - Network accurate packet loss monitoring method and switching chip - Google Patents

Network accurate packet loss monitoring method and switching chip Download PDF

Info

Publication number
CN112702283B
CN112702283B CN202011411085.4A CN202011411085A CN112702283B CN 112702283 B CN112702283 B CN 112702283B CN 202011411085 A CN202011411085 A CN 202011411085A CN 112702283 B CN112702283 B CN 112702283B
Authority
CN
China
Prior art keywords
message
processing module
message processing
mark
flow
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
CN202011411085.4A
Other languages
Chinese (zh)
Other versions
CN112702283A (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202011411085.4A priority Critical patent/CN112702283B/en
Publication of CN112702283A publication Critical patent/CN112702283A/en
Application granted granted Critical
Publication of CN112702283B publication Critical patent/CN112702283B/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/10Packet switching elements characterised by the switching fabric construction
    • H04L49/109Integrated on microchip, e.g. switch-on-chip
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level

Landscapes

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

Abstract

The invention provides a network accurate packet loss monitoring method and a switching chip, wherein the method comprises the following steps: determining the message characteristics of the message flow to be monitored; respectively setting a first mark and a second mark in flow statistic table entries of a second message processing module and a third message processing module, and adding the first mark to a message in a first message flow at the first message processing module according to the received message characteristics of the first message flow; the first message processing module sends the first message flow added with the first mark to the second message processing module and the third message processing module; and the second message processing module and the third message processing module respectively count the number of the messages in the first message flow in the first period according to the first mark. The invention effectively monitors the specific network data flow in real time.

Description

Network accurate packet loss monitoring method and switching chip
Technical Field
The invention relates to the field of data communication, in particular to a network accurate packet loss monitoring method and a switching chip.
Background
Regarding the network device, the network packet loss means that a data packet entering the network device cannot be forwarded from a predetermined network device outlet, that is, the data packet loss is caused. There are many reasons for the abnormal forwarding on the network device, such as the failure of port message inspection, the failure of VLAN inspection, the absence of routing, congestion discard, ACL (Access Control List) rule filtering, etc.
For the network equipment, the network packet loss monitoring monitors the data traffic entering the network equipment and the traffic forwarded from the network equipment, and judges the forwarding condition of the data traffic of the network equipment according to the size of the data traffic entering and exiting the network equipment.
The existing network packet loss monitoring has two technical schemes:
scheme one, network equipment port flow monitoring
The data size of the port flow entering the network equipment and the data flow size of the data flow normally forwarded from the network equipment are collected and monitored, and whether the network equipment is abnormal or not is judged according to analysis of the collected network flow data.
Scheme two, monitoring the flow of the network equipment through the security ACL
The method comprises the steps of counting the flow of the messages through security ACL flow statistics (namely matching with specific message characteristic information (such as a source IP, a destination IP, a source four-layer port number and a destination four-layer port number), generally realizing flow statistics counting on the size of specific message flow data entering the network equipment and the size of data flow normally forwarded from the network equipment through a network equipment chip FP (field Process) resource and counting resource, performing flow statistics counting collection and monitoring on the size of the specific message flow data entering the network equipment and the size of the data flow normally forwarded from the network equipment, analyzing according to the collected network flow data, and judging whether the specific message flow in the network equipment is abnormal or not.
The network device port flow monitoring is a monitoring mechanism for device port flow and device flow, and if the service flow forwarded by the device is not single, specific service flow cannot be monitored, that is, a network administrator cannot know whether a specific service flow has a packet loss through the monitoring scheme, and cannot accurately monitor the service flow.
The flow monitoring of the network equipment through the security ACL can be matched with specific message characteristic information, and the specific message flow is counted and monitored statistically. However, in the traffic statistic data collected at a certain time point in the scheme, because the processing delay and the cache congestion delay in the network device and the error of the collection time point, the flow meter value counted in the outgoing direction and the flow meter value counted in the incoming direction are not completely the same message statistical count value, and accurate monitoring of the traffic flow cannot be realized, the traffic monitoring error is large, and the monitoring error is large when the traffic fluctuation is large.
Disclosure of Invention
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
a network precise packet loss monitoring method is applied to a switching chip comprising three message processing modules, and comprises the following steps:
determining the message characteristics of the message flow to be monitored;
the first mark and the second mark are respectively arranged in the flow statistic table entry of the second message processing module and the third message processing module,
adding the first mark to the message in the first message flow according to the message characteristic of the received first message flow in a first message processing module;
the first message processing module sends the first message flow added with the first mark to the second message processing module and the third message processing module;
the second message processing module and the third message processing module respectively count the number of messages in the first message flow in a first period according to the first mark;
after the first period expires, the first message processing module adds the second mark to the message in the first message flow according to the message characteristics of the received first message flow;
the first message processing module sends the first message flow added with the second mark to the second message processing module and the third message processing module;
reading the number of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the first mark after the first period expires, determining that no packet is lost if the two number values are the same, and determining that the packet is lost if the number counted by the second message processing module is greater than the number counted by the third message processing module;
the second message processing module and the third message processing module respectively count the number of the messages in the first message flow in a second period according to the second mark;
after the second period expires, the first message processing module adds the first mark to the message in the first message flow according to the message characteristics of the received first message flow;
the first message processing module sends the first message flow added with the first mark to the second message processing module and the third message processing module;
and reading the number of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the second mark after the second period expires, determining that no packet is lost if the two number values are the same, and determining that the packet is lost if the number counted by the second message processing module is greater than the number counted by the third message processing module.
Alternatively to this, the first and second parts may,
the message is characterized by a message quintuple, a Differentiated Services Code Point (DSCP), a source MAC address or a destination MAC address.
Alternatively to this, the first and second parts may,
the first mark and the second mark have the same priority in the second message processing module and the third message processing module.
Alternatively to this, the first and second parts may,
the first message processing module is a vlan phase domain processing module, the second message processing module is an input phase domain processing module, and the third message processing module is an output phase domain processing module.
Alternatively to this, the first and second parts may,
the first and second periods are: the message chip logic processing delay or the memory management unit MMU buffer congestion maximum delay.
Another aspect of the embodiments of the present invention is to provide a network accurate packet loss monitoring switching chip, including:
the determining module is used for determining the message characteristics of the message flow needing to be monitored;
a setting module for setting the first mark and the second mark in the flow statistic table entry of the second message processing module and the third message processing module respectively,
the first message processing module is used for adding the first mark to the message in the first message flow according to the message characteristics of the received first message flow;
the first message processing module is further configured to send the first message stream with the first label added thereto to the second message processing module and the third message processing module;
the second message processing module and the third message processing module are respectively used for counting the number of the messages in the first message flow in the first period according to the first mark;
the first message processing module is further configured to add the second flag to the message in the first message flow according to the received message characteristic of the first message flow after the first period expires;
the first message processing module is further configured to send the first message stream with the second label added thereto to the second message processing module and the third message processing module;
the processing module is used for reading the number of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the first mark after the first period expires, determining that no packet is lost if the two number values are the same, and determining that the packet is lost if the number counted by the second message processing module is greater than the number counted by the third message processing module;
the second message processing module and the third message processing module are further respectively used for counting the number of the messages in the first message flow in a second period according to the second mark;
the first message processing module is further configured to add the first flag to the message in the first message stream according to the received message characteristic of the first message stream after the expiration of the second period;
the first message processing module is further configured to send the first message stream to which the first flag is added to the second message processing module and the third message processing module;
the processing module is further configured to read the number of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the second flag after the second period expires, determine that no packet is lost if the two number values are the same, and determine that the packet is lost if the number counted by the second message processing module is greater than the number counted by the third message processing module.
Alternatively to this, the first and second parts may,
the message is characterized by a message quintuple, a Differentiated Services Code Point (DSCP), a source MAC address or a destination MAC address.
Alternatively to this, the first and second parts may,
the first mark and the second mark have the same priority in the second message processing module and the third message processing module.
Alternatively to this, the first and second parts may,
the first message processing module is a vlan phase domain processing module, the second message processing module is an input phase domain processing module, and the third message processing module is an output phase domain processing module.
Alternatively to this, the first and second parts may,
the first and second periods are: the message chip logic processing delay or the memory management unit MMU buffer congestion maximum delay.
The embodiment of the invention has the advantages that the scheme can be utilized to accurately monitor the packet loss of the network message which needs to be accurately monitored, and the specific network data flow can be effectively monitored in real time.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method provided by an embodiment of the present invention;
FIG. 2 is a block diagram of an apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart provided in accordance with an embodiment of the present invention;
FIG. 4 is a schematic flow chart provided by an embodiment of the present invention;
FIG. 5 is a schematic flow chart provided by an embodiment of the present invention;
FIG. 6 is a schematic flow chart diagram provided by an embodiment of the present invention;
fig. 7 is a schematic flow chart according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides a method for monitoring network packet loss accurately, which is applied to a switch chip including three message processing modules, as shown in fig. 1, and includes the following steps:
s101, determining message characteristics of a message flow needing to be monitored;
s103, the first mark and the second mark are respectively arranged in the flow statistic table entry of the second message processing module and the third message processing module,
s105, adding the first mark to the message in the first message flow according to the message characteristic of the received first message flow in the first message processing module;
s107, the first message processing module sends the first message flow added with the first mark to the second message processing module and the third message processing module;
s109, the second message processing module and the third message processing module respectively count the number of the messages in the first message flow in the first period according to the first mark;
s111, after the first period expires, the first packet processing module adds the second flag to the packet in the first packet flow according to the received packet characteristic of the first packet flow;
s113, the first message processing module sends the first message stream with the second label added thereto to the second message processing module and the third message processing module;
s115, after the first period expires, reading the numbers of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the first flag, if the two numbers are the same, determining that there is no packet loss, and if the number counted by the second message processing module is greater than the number counted by the third message processing module, determining that there is a packet loss;
s117, the second packet processing module and the third packet processing module respectively count the number of packets in the first packet flow in a second period according to the second flag;
s119, after the second period expires, the first packet processing module adds the first flag to the packet in the first packet stream according to the received packet feature of the first packet stream;
s121, the first message processing module sends the first message flow added with the first mark to the second message processing module and the third message processing module;
and S123, after the second period expires, the second message processing module and the third message processing module respectively count the number of the messages in the first message stream according to the second mark, if the two number values are the same, it is determined that no packet is lost, and if the number counted by the second message processing module is greater than the number counted by the third message processing module, it is determined that the packet is lost.
Alternatively to this, the first and second parts may,
the message is characterized by a message quintuple, a Differentiated Services Code Point (DSCP), a source MAC address or a destination MAC address.
Alternatively to this, the first and second parts may,
the first mark and the second mark have the same priority in the second message processing module and the third message processing module.
Alternatively to this, the first and second parts may,
the first message processing module is a vlan phase domain processing module, the second message processing module is an input phase domain processing module, and the third message processing module is an output phase domain processing module.
Alternatively to this, the first and second parts may,
the first and second periods are: the message chip logic processing delay or the memory management unit MMU buffer congestion maximum delay.
The embodiment of the invention has the advantages that the scheme can be utilized to accurately monitor the packet loss of the network message which needs to be accurately monitored, and the specific network data flow can be effectively monitored in real time.
Another aspect of the embodiments of the present invention is to provide a network accurate packet loss monitoring switching chip, as shown in fig. 2, including:
a determining module 201, configured to determine a message characteristic of a message flow to be monitored;
a setting module 203, configured to set the first flag and the second flag in the traffic statistic table entry of the second message processing module and the third message processing module respectively,
a first packet processing module 205, configured to add the first flag to a packet in a first packet flow according to a packet feature of the received first packet flow;
the first packet processing module 205 is further configured to send the first packet stream with the first label added thereto to the second packet processing module and the third packet processing module;
the second packet processing module 207 and the third packet processing module 209 are respectively configured to count the number of packets in the first packet stream in a first period according to the first flag;
the first packet processing module 205 is further configured to add the second flag to the packet in the first packet flow according to the packet characteristic of the received first packet flow after the first period expires;
the first packet processing module 205 is further configured to send the first packet stream with the second label added thereto to the second packet processing module and a third packet processing module;
a processing module 211, configured to read the number of the packets in the first packet stream respectively counted by the second packet processing module and the third packet processing module according to the first flag after the first period expires, determine that there is no packet loss if the two number values are the same, and determine that the packet loss is determined if the number counted by the second packet processing module is greater than the number counted by the third packet processing module;
the second packet processing module 207 and the third packet processing module 209 are further configured to count, according to the second flag, the number of packets in the first packet stream in a second period;
the first packet processing module 205 is further configured to, after the second period expires, add the first flag to the packet in the first packet stream according to the received packet characteristic of the first packet stream;
the first packet processing module 205 is further configured to send the first packet stream with the first label added thereto to the second packet processing module and the third packet processing module;
the processing module 211 is further configured to read the number of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the second flag after the second period expires, determine that no packet is lost if the two number values are the same, and determine that the packet is lost if the number counted by the second message processing module is greater than the number counted by the third message processing module.
Alternatively to this, the first and second parts may,
the message is characterized by a message quintuple, a Differentiated Services Code Point (DSCP), a source MAC address or a destination MAC address.
In the alternative,
the first mark and the second mark have the same priority in the second message processing module and the third message processing module.
Alternatively to this, the first and second parts may,
the first message processing module is a vlan phase domain processing module, the second message processing module is an input phase domain processing module, and the third message processing module is an output phase domain processing module.
Alternatively to this, the first and second parts may,
the first and second periods are: the message chip logically processes the delay or the memory management unit MMU caches the maximum delay of congestion.
The embodiment of the invention has the advantages that the scheme can be utilized to accurately monitor the packet loss of the network message which needs to be accurately monitored, and the specific network data flow can be effectively monitored in real time.
The embodiments of the present invention are further described below with reference to specific application scenarios.
There are generally three phases for chip FP (field Process): VFP (vlan Field Process), IFP (ingress Field Process), EFP (egress Field Process). According to the scheme, the specific message characteristics are matched in a VFP stage to carry out marking (CLASS _ ID), the matched and marked message mark (CLASS _ ID) in an IFP stage is used for carrying out flow statistics, the matched and marked message mark (CLASS _ ID) in an EFP stage is also used for carrying out flow statistics, hardware table items marked in the VFP stage are deleted after a certain time, a certain time delay is reserved (the chip logic processing delay and the MMU cache congestion maximum delay are considered), then the flow statistics counts matched with the message mark (CLASS _ ID) in the IFP stage and the EFP stage are respectively read, if the flow statistics counts in the EFP stage are smaller than the flow statistics counts in the IFP stage, network packet loss is indicated, and the equipment monitoring module sends out packet loss early warning. By means of alternately marking two marks, flow statistics of IFP and EFP stages can be carried out on different marks respectively, and continuous packet loss monitoring on specific flow is achieved.
The method comprises the following implementation steps:
step one, determining the message characteristics of the message to be monitored.
The packet characteristics may be packet quintuple (IP protocol, source IP, destination IP, source four layer end number, destination four layer port number), DSCP, TCP FLAG, port, source MAC, destination MAC, EtherType, etc.).
And step two, determining the values of the marked mark CLASS _ ID 1 (mark 1 for short) and the marked mark CLASS _ ID 2 (mark 2 for short). And the IFP stage and the EFP stage respectively issue FP flow statistic table entries of the matching mark 1 and the mark 2, and simultaneously clear the respective hardware count values to realize the statistic counting of the matching mark 1 and the matching mark 2. As shown in fig. 3, the two FP flow entry for the IFP phase and the EFP phase have no priority requirement because the matching flags are different.
Step three, as shown in fig. 4, the VFP stage first issues the FP entry matching the determined message feature marking 1, so as to mark 1 on the traffic message. Thus the corresponding hardware counters of IFP match tag 1 and EFP match tag 1 would count.
Step four, as shown in fig. 5, after a period (delay) (e.g. message chip logic processing delay and MMU cache congestion maximum delay), the FP entry marked with 2 is issued in the VFP stage, and the message characteristics matched with the entry are the same as those marked with 1. The matched message characteristics matched with the marking 1 and the marking 2 are the same. Therefore, the FP entry marked with the flag 2 needs to have a priority lower than that of the FP entry marked with the flag 1, so that the flag marked on the packet is still the flag 1 at this time, and the IFP stage and the EFP stage are still the hardware counter counts matching the flag 1.
Step five, as shown in fig. 6, the FP entry which is issued with the mark 1 in the VFP stage is deleted, so that the mark which is issued on the packet at this time is the mark 2, and the IFP stage and the EFP stage are counted by the hardware counter which matches the mark 2.
And step six, reading the hardware counter count value of the matching mark 1 of the IFP stage and the EFP stage after a period (time delay) (message chip logic processing time delay and MMU (memory management unit) cache congestion maximum time delay), and clearing the hardware count value. And if the two read count values are equal, the message is not lost. And if the count value of the matching tag 1 in the EFP stage is smaller than the count value of the matching tag 1 in the IFP stage, indicating that packet loss occurs, and sending a packet loss early warning by the equipment monitoring module.
Step seven, as shown in fig. 7, the FP entry marked with the flag 1 is issued again in the VFP stage, so that the entry has a high priority, at this time, the FP entry marked with the flag 1 is effective, the FP entry marked with the flag 2 is not effective, and the flag 1 is marked on the message. The IFP and EFP phases are hardware counter counts that match tag 1.
And step eight, reading the hardware counter count value of the matching mark 2 of the IFP stage and the EFP stage after a period (time delay) (message chip logic processing time delay and MMU (memory management unit) cache congestion maximum time delay), and clearing the hardware count value. And if the two read count values are equal, the message is not lost. And if the count value of the matching tag 2 in the EFP stage is smaller than the count value of the matching tag 2 in the IFP stage, indicating that packet loss occurs, and sending a packet loss early warning by the equipment monitoring module.
And step nine, repeating the step five to the step eight, and realizing the continuous packet loss monitoring of the flow.
The embodiment of the invention has the advantages that the scheme can be utilized to accurately monitor the packet loss of the network message which needs to be accurately monitored, and the specific network data flow can be effectively monitored in real time.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A network precise packet loss monitoring method is characterized in that the method is applied to a switching chip comprising three message processing modules, and comprises the following steps:
determining the message characteristics of the message flow to be monitored;
setting the first mark and the second mark in the flow statistic table items of the second message processing module and the third message processing module,
adding the first mark to the message in the first message flow according to the message characteristic of the received first message flow in a first message processing module;
the first message processing module sends the first message flow added with the first mark to the second message processing module and the third message processing module;
the second message processing module and the third message processing module respectively count the number of messages in the first message flow in a first period according to the first mark;
after the first period expires, the first message processing module adds the second mark to the message in the first message flow according to the message characteristics of the received first message flow;
the first message processing module sends the first message flow added with the second mark to the second message processing module and the third message processing module;
reading the number of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the first mark after the first period expires, determining that no packet is lost if the two number values are the same, and determining that the packet is lost if the number counted by the second message processing module is greater than the number counted by the third message processing module;
the second message processing module and the third message processing module respectively count the number of the messages in the first message flow in a second period according to the second mark;
after the second period expires, the first message processing module adds the first mark to the message in the first message flow according to the message characteristics of the received first message flow;
the first message processing module sends the first message flow added with the first mark to the second message processing module and the third message processing module;
and after the second period expires, the second message processing module and the third message processing module respectively count the number of messages in the first message stream according to the second mark, if the two number values are the same, packet loss is determined to be absent, and if the number counted by the second message processing module is greater than the number counted by the third message processing module, packet loss is determined to be absent.
2. The method of claim 1,
the message is characterized by a message quintuple, a Differentiated Services Code Point (DSCP), a source MAC address or a destination MAC address.
3. The method of claim 1,
the first mark and the second mark have the same priority in the second message processing module and the third message processing module.
4. The method of claim 1,
the first message processing module is a vlan phase domain processing module, the second message processing module is an input phase domain processing module, and the third message processing module is an output phase domain processing module.
5. The method of claim 1, wherein the first period and the second period are:
the message chip logic processing delay or the memory management unit MMU buffer congestion maximum delay.
6. A network precise packet loss monitoring switching chip is characterized by comprising:
the determining module is used for determining the message characteristics of the message flow needing to be monitored;
a setting module for setting the first mark and the second mark in the flow statistic table entry of the second message processing module and the third message processing module,
the first message processing module is used for adding the first mark to the message in the first message flow according to the message characteristics of the received first message flow;
the first message processing module is further configured to send the first message stream with the first label added thereto to the second message processing module and the third message processing module;
the second message processing module and the third message processing module are respectively used for counting the number of the messages in the first message flow in the first period according to the first mark;
the first message processing module is further configured to add the second flag to the message in the first message flow according to the received message characteristic of the first message flow after the first period expires;
the first message processing module is further configured to send the first message stream with the second label added thereto to the second message processing module and the third message processing module;
the processing module is used for reading the number of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the first mark after the first period expires, determining that no packet is lost if the two number values are the same, and determining that the packet is lost if the number counted by the second message processing module is greater than the number counted by the third message processing module;
the second message processing module and the third message processing module are further respectively used for counting the number of the messages in the first message flow in a second period according to the second mark;
the first message processing module is further configured to add the first flag to the message in the first message stream according to the received message characteristic of the first message stream after the expiration of the second period;
the first message processing module is further configured to send the first message stream with the first label added thereto to the second message processing module and the third message processing module;
the processing module is further configured to read the number of the messages in the first message stream respectively counted by the second message processing module and the third message processing module according to the second flag after the second period expires, determine that no packet is lost if the two number values are the same, and determine that the packet is lost if the number counted by the second message processing module is greater than the number counted by the third message processing module.
7. The switch chip of claim 6,
the message is characterized by a message quintuple, a Differentiated Services Code Point (DSCP), a source MAC address or a destination MAC address.
8. The switch chip of claim 6,
the first mark and the second mark have the same priority in the second message processing module and the third message processing module.
9. The switch chip of claim 6,
the first message processing module is a vlan phase domain processing module, the second message processing module is an input phase domain processing module, and the third message processing module is an output phase domain processing module.
10. The switch chip of claim 6,
the first and second periods are: the message chip logic processing delay or the memory management unit MMU buffer congestion maximum delay.
CN202011411085.4A 2020-12-04 2020-12-04 Network accurate packet loss monitoring method and switching chip Active CN112702283B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011411085.4A CN112702283B (en) 2020-12-04 2020-12-04 Network accurate packet loss monitoring method and switching chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011411085.4A CN112702283B (en) 2020-12-04 2020-12-04 Network accurate packet loss monitoring method and switching chip

Publications (2)

Publication Number Publication Date
CN112702283A CN112702283A (en) 2021-04-23
CN112702283B true CN112702283B (en) 2022-08-16

Family

ID=75506755

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011411085.4A Active CN112702283B (en) 2020-12-04 2020-12-04 Network accurate packet loss monitoring method and switching chip

Country Status (1)

Country Link
CN (1) CN112702283B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777126A (en) * 2005-12-12 2006-05-24 史文勇 System and method for conducting comprehensive measurement and association analysis to time delay and drop
CN104320305A (en) * 2014-11-12 2015-01-28 迈普通信技术股份有限公司 Forwarding service monitoring method and system for network equipment
EP3101844A1 (en) * 2015-06-03 2016-12-07 Huawei Technologies Co., Ltd. Packet loss detection method, apparatus, and system
CN108809771A (en) * 2018-08-10 2018-11-13 锐捷网络股份有限公司 SDN network data stream monitoring method, SDN controllers, switching equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777126A (en) * 2005-12-12 2006-05-24 史文勇 System and method for conducting comprehensive measurement and association analysis to time delay and drop
CN104320305A (en) * 2014-11-12 2015-01-28 迈普通信技术股份有限公司 Forwarding service monitoring method and system for network equipment
EP3101844A1 (en) * 2015-06-03 2016-12-07 Huawei Technologies Co., Ltd. Packet loss detection method, apparatus, and system
CN108809771A (en) * 2018-08-10 2018-11-13 锐捷网络股份有限公司 SDN network data stream monitoring method, SDN controllers, switching equipment and system

Also Published As

Publication number Publication date
CN112702283A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
JP2005277804A (en) Information relaying apparatus
US10021007B2 (en) Measuring latency within a networking device
US7729271B2 (en) Detection method for abnormal traffic and packet relay apparatus
US8582428B1 (en) Methods and apparatus for flow classification and flow measurement
CA2044874C (en) Network monitoring device and system
US8989002B2 (en) System and method for controlling threshold testing within a network
EP2933954B1 (en) Network anomaly notification method and apparatus
US9992117B2 (en) Network apparatus, communication system, abnormal traffic detection method, and program
US20080144523A1 (en) Traffic Monitoring Apparatus, Entry Managing Apparatus, and Network System
US9350631B2 (en) Identifying flows causing undesirable network events
CN110557342B (en) Apparatus for analyzing and mitigating dropped packets
You et al. Packet in message based DDoS attack detection in SDN network using OpenFlow
JP2007336512A (en) Statistical information collecting system, and apparatus thereof
JP2006013737A (en) Device for eliminating abnormal traffic
CN111953553A (en) Message detection method, device and system
US7516364B2 (en) Method for testing network devices using breakpointing
CN111970211A (en) Elephant flow processing method and device based on IPFIX
CN112702283B (en) Network accurate packet loss monitoring method and switching chip
KR20120008478A (en) 10 gbps scalable flow generation and control, using dynamic classification with 3-level aggregation
WO2022111651A1 (en) Pre-activation detection method, electronic device and computer-readable storage medium
CN112637007A (en) Method and device for realizing network time delay measurement and packet loss detection based on IP DSCP
CN108616399B (en) Message statistical method and device
JP2017034367A (en) Transmitter and collection method of statistical information
CN110933002B (en) Method and device for realizing switching chip of MPLS in-band detection OAM
US8351341B1 (en) Filtering to protect class of service

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