CN112073256B - Packet loss processing method, device, equipment and machine readable storage medium - Google Patents

Packet loss processing method, device, equipment and machine readable storage medium Download PDF

Info

Publication number
CN112073256B
CN112073256B CN202010483500.0A CN202010483500A CN112073256B CN 112073256 B CN112073256 B CN 112073256B CN 202010483500 A CN202010483500 A CN 202010483500A CN 112073256 B CN112073256 B CN 112073256B
Authority
CN
China
Prior art keywords
packet loss
record table
loss record
message information
table entry
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
CN202010483500.0A
Other languages
Chinese (zh)
Other versions
CN112073256A (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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202010483500.0A priority Critical patent/CN112073256B/en
Publication of CN112073256A publication Critical patent/CN112073256A/en
Application granted granted Critical
Publication of CN112073256B publication Critical patent/CN112073256B/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
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]

Landscapes

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

Abstract

The present disclosure provides a packet loss processing method, apparatus, device and machine-readable storage medium, where the method includes: acquiring message information of a packet loss message with a packet loss, inquiring a packet loss record table according to the message information, and judging whether a corresponding packet loss record table item exists or not; if the corresponding packet loss record table entry exists, updating the counting field of the packet loss record table entry; sending the packet loss record table to a processing device so that the processing device can analyze packet loss according to the packet loss record table; the packet loss record table entry comprises a message information field and a counting field. According to the technical scheme, the hardware forwarding chip records the packet loss condition to the packet loss record table during hard forwarding, so that the packet loss can be conveniently recorded under the condition of not sacrificing performance, and then the packet loss record table is sent to equipment special for analyzing the packet loss so as to quickly analyze and determine the packet loss condition.

Description

Packet loss processing method, device, equipment and machine-readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a packet loss processing method, apparatus, device, and machine-readable storage medium.
Background
A Counter, a register for counting operations or messages in the hard-turn mechanism.
CAR (Committed Access Rate), used for traffic policing, is a method for guaranteeing network quality of service.
SNMP (Simple Network Management Protocol) is a standard Protocol specifically designed for managing Network nodes (servers, workstations, routers, switches, HUBS, etc.) in an IP Network, and is an application layer Protocol. SNMP enables a network administrator to manage network performance, discover and solve network problems, and plan for network growth. The network management system receives the random message (and the event report) through the SNMP to know that the network has problems.
The NMS (Network Management System) is an operation and maintenance center, and is responsible for device fault diagnosis and operation and maintenance of the wireless access System, Network operation and Network Management, and provides data and statistics for Network Management and planning. The management objects of the NMS may include all the entities in the network, such as: network devices, applications, server systems, routers, switches, HUBs, auxiliary devices (e.g., UPS power), etc., provide a system-wide view of the network to the network system administrator.
ARP (Address Resolution Protocol) is a TCP/IP Protocol that obtains a physical Address from an IP Address. When the host sends information, the ARP request containing the target IP address is broadcasted to all the hosts on the local area network, and the return message is received, so that the physical address of the target is determined; after receiving the return message, the IP address and the physical address are stored in the local ARP cache and are kept for a certain time, and the ARP cache is directly inquired when the next request is made so as to save resources.
Current computer networks can be classified into three categories according to their distance and complexity: local Area Networks (LANs), metropolitan area networks (MANs and Wide Area Networks (WANs), LANs are the simplest of the most primitive computer networks, typically using only one transmission medium, consisting of computers and workstations interconnected over short distances, usually within a building, in order to share resources, such as printers, and exchange information MAN is a larger network than LAN, there may be multiple media, typically covering a city, with relatively complex mid-range communication network devices; a MAN is typically connected to a plurality of LANs-a complex network system across a large territory that provides data sharing for users distributed in different territories, typically requiring leased operator lines, -two or more LANs may be connected via a WAN, the connections between these LANs may span distances of tens of kilometers or more, a large WAN may even connect many LANs and MANs of various provinces.
A more sophisticated network, apart from a large number of clients at the network end, has numerous devices interspersed and concentrated, including two-tier switches, three-tier switches, DSLAMs, BAS, routers, servers, storage devices, etc. In a large MAN or WAN network system, the number of messages processed per second of network devices such as these switches and routers is counted as 100G bits, wherein the messages related to network protocol interaction are generally analyzed and processed by a CPU, which is called as soft switching, and a large number of data messages (web page access, video traffic, etc.) are mostly forwarded and processed by querying hardware table entries (such as FIB table, ACL table, etc.) by a forwarding chip, that is, hard switching, because the soft switching performance is limited.
The soft switching is flexible, the CPU programming language can analyze the message in the memory very conveniently, and at the same time, detailed records are made on the forwarding and discarding of the message, but the CPU processing performance is limited and the cost is high, and to support the current MAN/WAN network level message forwarding, a hard switching mode must be used, but the hard switching has its defect, that is, the chip hardware program is solidified, and detailed analysis and recording of the message cannot be supported, otherwise, the forwarding performance is also degraded, that would cause the hard switching to record the discarding of the message very limited, and it is difficult to find the reason for packet loss of a certain message in the network.
Disclosure of Invention
In view of the above, the present disclosure provides a packet loss processing method, a packet loss processing apparatus, an electronic device, and a machine-readable storage medium, so as to solve the problem that it is difficult to efficiently record packet loss.
The specific technical scheme is as follows:
the present disclosure provides a packet loss processing method, which is applied to a forwarding chip of a network device, and the method includes:
acquiring message information of a packet loss message with a packet loss, inquiring a packet loss record table according to the message information, and judging whether a corresponding packet loss record table item exists or not;
if the corresponding packet loss record table entry exists, updating the counting field of the packet loss record table entry;
sending the packet loss record table to a processing device so that the processing device can analyze packet loss according to the packet loss record table;
the packet loss record table entry comprises a message information field and a counting field.
As a technical solution, the querying a packet loss record table according to message information and determining whether a corresponding packet loss record table entry exists includes:
if no corresponding packet loss record table entry exists, a corresponding packet loss record table entry is created in the packet loss record table according to the message information, and the value of the counting field is set as an initial value.
As a technical solution, the creating a corresponding packet loss record table entry in a packet loss record table according to the message information includes:
and according to the type of the packet loss, creating a corresponding packet loss record table entry at a corresponding address of the packet loss record table.
As a technical solution, the packet loss record table entry includes a packet loss type field;
the creating of the corresponding packet loss record table entry in the packet loss record table according to the message information includes:
and creating a corresponding packet loss record table entry in the packet loss record table according to the message information and the type of the packet loss.
The present disclosure also provides a packet loss processing apparatus, which is applied to a forwarding chip of a network device, and the method includes:
the query unit is used for acquiring message information of a packet loss message with packet loss, querying a packet loss record table according to the message information and judging whether a corresponding packet loss record table item exists or not;
the updating unit is used for updating the counting field of the packet loss record table item if the corresponding packet loss record table item exists;
the sending unit is used for sending the packet loss record table to the processing equipment so that the processing equipment can analyze the packet loss according to the packet loss record table;
the packet loss record table entry comprises a message information field and a counting field.
As a technical solution, the querying a packet loss record table according to message information and determining whether a corresponding packet loss record table entry exists includes:
if no corresponding packet loss record table entry exists, a corresponding packet loss record table entry is created in the packet loss record table according to the message information, and the value of the counting field is set as an initial value.
As a technical solution, the creating a corresponding packet loss record table entry in the packet loss record table according to the message information includes:
and according to the type of the packet loss, creating a corresponding packet loss record table entry at a corresponding address of the packet loss record table.
As a technical solution, the packet loss record table entry includes a packet loss type field;
the creating of the corresponding packet loss record table entry in the packet loss record table according to the message information includes:
and creating a corresponding packet loss record table entry in the packet loss record table according to the message information and the type of the packet loss.
The present disclosure also provides an electronic device, including a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions executable by the processor, and the processor executes the machine-executable instructions to implement the packet loss processing method.
The present disclosure also provides a machine-readable storage medium storing machine-executable instructions, which when invoked and executed by a processor, cause the processor to implement the aforementioned packet loss processing method.
The technical scheme provided by the disclosure at least brings the following beneficial effects:
the packet loss condition is recorded to the packet loss record table through the hardware forwarding chip during hard forwarding, so that the packet loss of the message can be conveniently recorded under the condition of not sacrificing performance, and then the packet loss record table is sent to a device special for analyzing the packet loss so as to quickly analyze and determine the packet loss condition.
Drawings
In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present disclosure or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and other drawings can be obtained by those skilled in the art according to the drawings of the embodiments of the present disclosure.
Fig. 1 is a flowchart of a packet loss processing method in an embodiment of the present disclosure;
fig. 2 is a block diagram of a packet loss processing apparatus according to an embodiment of the present disclosure;
fig. 3 is a hardware configuration diagram of an electronic device in an embodiment of the present disclosure.
Detailed Description
The terminology used in the embodiments of the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information in the embodiments of the present disclosure, such information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. Depending on the context, moreover, the word "if" as used may be interpreted as "at … …" or "when … …" or "in response to a determination".
The network device forwards the packet loss count by hardware, and can simply query the count of each forwarding flow and the packet loss position reason of the routing device, such as the packet loss due to route miss, the car rate-limiting packet loss, the check error packet loss and the like. And then, manually reproducing the current scene and equipment configuration, networking and streaming, analyzing a special forwarding flow, manually comparing related hardware forwarding table items and packet loss positions, and finding out the reason of packet loss.
However, the packet loss records are only counted, and do not contain more user-friendly information, and a large amount of manpower and material resources are required to be consumed to locate the reason for packet loss. Meanwhile, the current network environment cannot be worked when packet loss is checked.
In view of the above, the present disclosure provides a packet loss processing method, a packet loss processing apparatus, an electronic device, and a machine-readable storage medium, so as to solve the problem that it is difficult to efficiently record packet loss.
The specific technical scheme is as follows.
In an embodiment, the present disclosure provides a packet loss processing method, applied to a forwarding chip of a network device, where the method includes: acquiring message information of a packet loss message with a packet loss, inquiring a packet loss record table according to the message information, and judging whether a corresponding packet loss record table item exists; if the corresponding packet loss record table entry exists, updating the counting field of the packet loss record table entry; sending the packet loss record table to a processing device so that the processing device can analyze packet loss according to the packet loss record table; the packet loss record table entry comprises a message information field and a counting field.
Specifically, as shown in fig. 1, the method comprises the following steps:
step S11, obtaining the packet information of the packet loss packet in which the packet loss occurs, querying the packet loss record table according to the message information, and determining whether the corresponding packet loss record table entry exists.
The message information includes destination IP address, source IP address, protocol type, destination port, and source port.
Step S12, if there is a corresponding packet loss record entry, the count field of the packet loss record entry is updated.
E.g., the value of the count field is incremented by 1.
Step S13, sending the packet loss record table to the processing device, so that the processing device performs packet loss analysis according to the packet loss record table.
The processing device may be a CPU of the present device, or may be another device such as a server.
The packet loss record table entry includes a message information field and a count field.
The packet loss condition is recorded to the packet loss record table through the hardware forwarding chip during hard forwarding, so that the packet loss of the message can be conveniently recorded under the condition of not sacrificing performance, and then the packet loss record table is sent to a device special for analyzing the packet loss so as to quickly analyze and determine the packet loss condition.
In an embodiment, the querying, according to the message information, the packet loss record table, and determining whether a corresponding packet loss record table entry exists, includes: and if the corresponding packet loss record table entry does not exist, establishing the corresponding packet loss record table entry in the packet loss record table according to the message information, and setting the value of the counting field as an initial value.
If no corresponding packet loss record entry exists, it indicates that the packet loss of the flow occurs for the first time, so a corresponding packet loss record entry is created in the packet loss record entry according to the message information, and the value of the count field is set as an initial value, for example, set to 1.
In an embodiment, the creating a corresponding packet loss record entry in the packet loss record table according to the packet information includes: and according to the type of the packet loss, creating a corresponding packet loss record table entry at a corresponding address of the packet loss record table.
Even if different address segments correspond to different packet loss types, corresponding table entries are created to corresponding positions according to the packet loss types, and when the packet loss recording table is analyzed, the corresponding packet loss types can be confirmed according to the addresses of the table entries. The same flow can correspond to a plurality of different packet loss types, table entries can be respectively created in address intervals of different packet loss types in a packet loss type table, and when a packet loss record table is inquired according to message information, the table entries are required to be searched in corresponding address fetching pieces according to the packet loss types.
As a technical solution, the packet loss record table entry includes a packet loss type field; the creating of the corresponding packet loss record table entry in the packet loss record table according to the message information includes: and creating a corresponding packet loss record table entry in the packet loss record table according to the message information and the type of the packet loss.
And increasing a storage space to record a packet loss type, and matching the packet loss type and the message information at the same time when inquiring a packet loss record table according to the message information.
In the processing flow of the hardware forwarding chip, an entry (packet loss record entry) and a counter for newly adding and recording packet loss numbers are added, for example, the name of the newly added entry is a packet drop table, the same quintuple (DIP, SIP, protocol type, DPORT, port, destination IP address, source IP address, protocol type, destination port, source port) is marked as one stream, a packet information field of the packet drop table is a packet quintuple, a count field of the newly added counter needs to be determined according to the number of traffic and packet loss reasons, for example, 128K traffic packet loss can be recorded in each device, and the traffic packet loss types are three (can be expanded according to different packet loss types): routing miss packet loss, CAR speed limit packet loss and Check error packet loss, so that the total number of counters required by us is 128K × 3, different Counter base addresses are allocated for the three packet loss reasons, a router skip (routing miss packet loss) base address is 0, a CAR drop (CAR speed limit packet loss) base address is 128K, a Check drop (Check error packet loss) base address is 256K, the base address is a fixed value, only Counter offset ids (only corresponding to different five-tuple) are stored in a packet drop table entry, and corresponding packet loss counts are stored in a table entry of the base address + Counter offset id of a corresponding packet loss type.
A default table entry with the lowest priority can be added for the initialization of the Packet drop table, the quintuple of the message is not concerned, all discarded messages are matched, the action of uploading the discarded messages to a CPU is performed, and the total number of the discarded packets can be recorded.
The flow is firstly subjected to hard rotation by equipment, the message passing through the hard rotation table entry is judged to be normally transmitted, if the three reasons are lost, the message to be discarded can hit the last default table entry of the packet drop and be transmitted to the CPU, the CPU receives the discarded message, analyzes the message quintuple and transmits a formal quintuple packet drop table entry, dynamically applies for Counters resources to obtain a Counter offset id write-in table entry result, and discards the message after the count +1 (the value of the newly-built table entry is 1 after the action).
If packet loss occurs due to the three reasons, inquiring a packet drop table entry according to a packet quintuple, counting the number of +1 times and discarding the packet according to the Counter offset id in the table entry and the base address of the corresponding packet loss type after hitting;
and after the hard switching equipment process is realized, packet loss reason counts of 128K different quintuple flows are obtained, including all history records.
When the 128K capacity is insufficient due to the accumulated records, the packet loss data is collected and stored through an additional server, so that the network equipment leaves out new entries to store more packet loss records, and the data can be uploaded in real time or periodically.
One packet loss server can be used for collecting and storing packet loss conditions of a plurality of network devices in one area, the server collects packet loss information of the network devices at regular time, the collection time is recorded as a reference, the collected data is analyzed in a unified mode, the packet loss in the wrong mode, the protocol packet loss and the like can be analyzed to determine whether the adjacent network devices have problems, a user can also set packet loss number monitoring, and alarm is carried out when the flow of some DIPs or SIPs exceeds a packet loss threshold.
The connection and transmission between the packet loss server and the network device can be done using SNMP. SNMP (Simple Network Management Protocol) is widely used for remote Management and operation of Network devices. SNMP allows an administrator to manage devices of different vendors, different physical characteristics, different interconnect technologies on the network through NMS, including status monitoring, data collection, and fault handling. The protocol can support a network management system to detect whether any devices connected to the network are of any regulatory concern. The packet loss server can exist as a network management system and interacts with managed network equipment by using an SNMP protocol.
When the administrator analyzes the packet loss problem of a certain message in an area, firstly, the corresponding message is searched in the packet loss server, and the packet loss type of the current message can be checked. When the packet loss type is special, the problem cannot be found at a glance, the hardware table entry in the period of time can be analyzed by combining the device log in the packet loss acquisition time, the environment in the packet loss is recovered, and the related table entry corresponding to the packet loss type is further analyzed.
When the number of packet losses in an area is large, an administrator can inquire the count of each packet loss type and analyze the packet loss type with the largest count. If a large amount of packet losses due to the depletion of TTL, it may be determined that a routing loop exists in the device in the area, and at this time, a fast forwarding table or an ARP table of all devices in a certain time range is called for analysis, so that the routing loop may be discovered which devices constitute the routing loop.
In an embodiment, as shown in fig. 2, the present disclosure also provides a packet loss processing apparatus applied to a forwarding chip of a network device, where the method includes: the query unit 21 obtains packet information of a packet loss packet in which a packet loss occurs, queries a packet loss record table according to the packet information, and determines whether a corresponding packet loss record table entry exists; an updating unit 22, configured to update a count field of the packet loss record entry if the corresponding packet loss record entry exists; the sending unit 23 is configured to send the packet loss record table to the processing device, so that the processing device performs packet loss analysis according to the packet loss record table; the packet loss record table entry comprises a message information field and a counting field.
The device embodiments are the same or similar to the method embodiments and therefore are not described in detail herein.
In an embodiment, the querying, according to the message information, the packet loss record table, and determining whether a corresponding packet loss record table entry exists, includes: and if the corresponding packet loss record table entry does not exist, establishing the corresponding packet loss record table entry in the packet loss record table according to the message information, and setting the value of the counting field as an initial value.
In an embodiment, the creating a corresponding packet loss record table entry in the packet loss record table according to the message information includes: and according to the type of the packet loss, creating a corresponding packet loss record table entry at a corresponding address of the packet loss record table.
In an embodiment, the packet loss record entry includes a packet loss type field; the creating of the corresponding packet loss record table entry in the packet loss record table according to the message information includes: and creating a corresponding packet loss record table entry in the packet loss record table according to the message information and the type of the packet loss.
In an embodiment, the present disclosure provides an electronic device, which includes a processor and a machine-readable storage medium, where the machine-readable storage medium stores machine-executable instructions capable of being executed by the processor, and the processor executes the machine-executable instructions to implement the foregoing packet loss processing method, and from a hardware level, a schematic diagram of a hardware architecture may be shown in fig. 3.
In one embodiment, the present disclosure provides a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to implement the packet loss handling method described above.
Here, a machine-readable storage medium may be any electronic, magnetic, optical, or other physical storage device that can contain or store information such as executable instructions, data, and so forth. For example, the machine-readable storage medium may be: a RAM (random Access Memory), a volatile Memory, a non-volatile Memory, a flash Memory, a storage drive (e.g., a hard drive), a solid state drive, any type of storage disk (e.g., an optical disk, a dvd, etc.), or similar storage medium, or a combination thereof.
The systems, devices, modules or units described in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. A typical implementation device is a computer, which may take the form of a personal computer, laptop computer, cellular telephone, camera phone, smart phone, personal digital assistant, media player, navigation device, email messaging device, game console, tablet computer, wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the various elements may be implemented in the same one or more software and/or hardware implementations in practicing the disclosure.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present disclosure is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the disclosure. 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.
Furthermore, 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.
As will be appreciated by one skilled in the art, embodiments of the present disclosure may be provided as a method, system, or computer program product. Accordingly, the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present disclosure may take the form of a computer program product embodied on one or more computer-usable storage media (which may include, but is not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The above description is only an embodiment of the present disclosure, and is not intended to limit the present disclosure. Various modifications and variations of this disclosure will occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the claims of the present disclosure.

Claims (10)

1. A packet loss processing method is applied to a forwarding chip of a network device, and the method comprises the following steps:
acquiring message information of a packet loss message with packet loss, inquiring a packet loss record table according to the message information, and judging whether a corresponding packet loss record table item exists or not, wherein the packet loss record table item comprises a packet loss type field, and the message information comprises a destination IP address, a source IP address, a protocol type, a destination port and a source port;
if the corresponding packet loss record table entry exists, updating the counting field of the packet loss record table entry;
sending the packet loss record table to a processing device so that the processing device can analyze packet loss according to the packet loss record table;
the packet loss record table entry comprises a message information field and a counting field.
2. The method of claim 1, wherein the querying a packet loss record table according to the message information and determining whether a corresponding packet loss record table entry exists includes:
and if the corresponding packet loss record table entry does not exist, establishing the corresponding packet loss record table entry in the packet loss record table according to the message information, and setting the value of the counting field as an initial value.
3. The method according to claim 2, wherein the creating a corresponding packet loss record entry in the packet loss record table according to the packet information includes:
and according to the type of the packet loss, creating a corresponding packet loss record table entry at a corresponding address of the packet loss record table.
4. The method of claim 2, wherein the packet loss record entry includes a packet loss type field;
the creating of the corresponding packet loss record table entry in the packet loss record table according to the message information includes:
and creating a corresponding packet loss record table entry in the packet loss record table according to the message information and the type of the packet loss.
5. A packet loss processing apparatus is applied to a forwarding chip of a network device, and the apparatus includes:
the query unit is used for acquiring message information of a packet loss message with packet loss, querying a packet loss record table according to the message information, and judging whether a corresponding packet loss record table item exists or not, wherein the packet loss record table item comprises a packet loss type field, and the message information comprises a destination IP address, a source IP address, a protocol type, a destination port and a source port;
an updating unit, which updates the counting field of the packet loss record table item if the corresponding packet loss record table item exists;
the sending unit is used for sending the packet loss record table to the processing equipment so that the processing equipment can analyze the packet loss according to the packet loss record table;
the packet loss record table entry comprises a message information field and a counting field.
6. The apparatus of claim 5, wherein the querying the packet loss record table according to the packet information and determining whether the corresponding packet loss record table entry exists includes:
if no corresponding packet loss record table entry exists, a corresponding packet loss record table entry is created in the packet loss record table according to the message information, and the value of the counting field is set as an initial value.
7. The apparatus of claim 6, wherein the creating a corresponding packet loss record entry in the packet loss record table according to the packet information comprises:
and according to the type of the packet loss, creating a corresponding packet loss record table entry at a corresponding address of the packet loss record table.
8. The apparatus of claim 6, wherein the packet loss record entry comprises a packet loss type field;
the creating of the corresponding packet loss record table entry in the packet loss record table according to the message information includes:
and creating a corresponding packet loss record table entry in the packet loss record table according to the message information and the type of the packet loss.
9. An electronic device, comprising: a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor to perform the method of any one of claims 1 to 4.
10. A machine-readable storage medium having stored thereon machine-executable instructions which, when invoked and executed by a processor, cause the processor to perform the method of any of claims 1 to 4.
CN202010483500.0A 2020-06-01 2020-06-01 Packet loss processing method, device, equipment and machine readable storage medium Active CN112073256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010483500.0A CN112073256B (en) 2020-06-01 2020-06-01 Packet loss processing method, device, equipment and machine readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010483500.0A CN112073256B (en) 2020-06-01 2020-06-01 Packet loss processing method, device, equipment and machine readable storage medium

Publications (2)

Publication Number Publication Date
CN112073256A CN112073256A (en) 2020-12-11
CN112073256B true CN112073256B (en) 2022-07-19

Family

ID=73656086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010483500.0A Active CN112073256B (en) 2020-06-01 2020-06-01 Packet loss processing method, device, equipment and machine readable storage medium

Country Status (1)

Country Link
CN (1) CN112073256B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115484142A (en) * 2021-06-15 2022-12-16 浙江宇视科技有限公司 Network fault diagnosis method, device, medium and network equipment
CN114189426B (en) * 2021-10-29 2023-08-11 苏州浪潮智能科技有限公司 Proxy service self-adaptive tape configuration reply method, system, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223263A (en) * 2011-06-09 2011-10-19 中兴通讯股份有限公司 Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
CN102368687A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Packet loss preventing statistical method and device
CN107888457A (en) * 2017-12-08 2018-04-06 新华三技术有限公司 Port method for detecting packet loss, device and communication equipment
CN108055216A (en) * 2017-11-14 2018-05-18 烽火通信科技股份有限公司 PTN chips actively carry out the method and system of packet loss measurement
CN108073546A (en) * 2017-12-27 2018-05-25 西安奇维科技有限公司 One kind realizes network data reception and reading and control method thereof based on FPGA
CN109450739A (en) * 2018-12-21 2019-03-08 江西山水光电科技股份有限公司 A method of Ethernet OAM test function is realized in Packet Transport Network based on FPGA
CN110022238A (en) * 2018-01-08 2019-07-16 深圳市中兴微电子技术有限公司 A kind of test method and device of Ethernet switching chip

Family Cites Families (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008085906A (en) * 2006-09-28 2008-04-10 Fujitsu Ltd Packet loss rate calculation system
CN102118277B (en) * 2009-12-30 2013-12-25 华为技术有限公司 Method and device for packet loss detection, and router
CN102843269B (en) * 2011-06-23 2018-04-03 中兴通讯股份有限公司 A kind of method and system for simulating microcode business processing flow
EP2802103B1 (en) * 2013-05-06 2018-04-18 Viavi Solutions Inc. Method and system for measuring packet loss
CN104734987A (en) * 2013-12-19 2015-06-24 上海宽带技术及应用工程研究中心 System and method for managing flow in software defined network
CN104009877A (en) * 2014-06-22 2014-08-27 陈桂芳 Method for achieving visualization of SDN flow table
US9813312B2 (en) * 2014-07-21 2017-11-07 Big Switch Networks, Inc. Systems and methods for performing debugging operations on networks using a controller
CN104917628B (en) * 2015-04-09 2018-10-23 南京邮电大学 A kind of ethernet router/interchanger packet loss automatic fault diagnosis method
CN106487572A (en) * 2015-09-02 2017-03-08 中兴通讯股份有限公司 The processing method and processing device of message
CN105827487A (en) * 2016-05-30 2016-08-03 上海斐讯数据通信技术有限公司 SDN network message flow statistics method, SDN network message flow processing method and SDN network system
CN106341423B (en) * 2016-10-26 2019-12-06 新华三技术有限公司 Message processing method and device
CN106656818B (en) * 2016-11-18 2019-11-08 杭州迪普科技股份有限公司 A kind of method and apparatus for removing fast-forwarding list item
US11184235B2 (en) * 2018-03-06 2021-11-23 Cisco Technology, Inc. In-band direct mode performance loss measurement in software defined networks
CN110300033B (en) * 2018-03-22 2023-09-26 华为技术有限公司 Packet loss information recording method, network equipment and network system
CN108683616B (en) * 2018-04-20 2020-07-21 全球能源互联网研究院有限公司 Network configuration device of virtual switch queue
CN108737221B (en) * 2018-06-28 2020-09-15 新华三技术有限公司 Packet loss detection method and communication link system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102223263A (en) * 2011-06-09 2011-10-19 中兴通讯股份有限公司 Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
CN102368687A (en) * 2011-09-23 2012-03-07 烽火通信科技股份有限公司 Packet loss preventing statistical method and device
CN108055216A (en) * 2017-11-14 2018-05-18 烽火通信科技股份有限公司 PTN chips actively carry out the method and system of packet loss measurement
CN107888457A (en) * 2017-12-08 2018-04-06 新华三技术有限公司 Port method for detecting packet loss, device and communication equipment
CN108073546A (en) * 2017-12-27 2018-05-25 西安奇维科技有限公司 One kind realizes network data reception and reading and control method thereof based on FPGA
CN110022238A (en) * 2018-01-08 2019-07-16 深圳市中兴微电子技术有限公司 A kind of test method and device of Ethernet switching chip
CN109450739A (en) * 2018-12-21 2019-03-08 江西山水光电科技股份有限公司 A method of Ethernet OAM test function is realized in Packet Transport Network based on FPGA

Also Published As

Publication number Publication date
CN112073256A (en) 2020-12-11

Similar Documents

Publication Publication Date Title
JP4341413B2 (en) PACKET TRANSFER APPARATUS HAVING STATISTICS COLLECTION APPARATUS AND STATISTICS COLLECTION METHOD
US8169910B1 (en) Network traffic analysis using a flow table
US9106443B2 (en) Forwarding table optimization with flow data
US8582428B1 (en) Methods and apparatus for flow classification and flow measurement
US5886643A (en) Method and apparatus for discovering network topology
CA2457718C (en) Using link state information to discover ip network topology
US8593958B2 (en) Network-wide flow monitoring in split architecture networks
US8059551B2 (en) Method for source-spoofed IP packet traceback
US7164657B2 (en) Intelligent collaboration across network systems
JP4798285B2 (en) Packet transmission quality measurement method and packet reception measurement device
US9485155B2 (en) Traffic analysis of data flows
US7898969B2 (en) Performance measurement in a packet transmission network
US20090116398A1 (en) Systems and methods for flow monitoring
US20070055789A1 (en) Method and apparatus for managing routing of data elements
EP2667545A1 (en) Network system, controller, switch, and traffic monitoring method
JP2005277804A (en) Information relaying apparatus
CN112073256B (en) Packet loss processing method, device, equipment and machine readable storage medium
US9461893B2 (en) Communication system, node, statistical information collection device, statistical information collection method and program
CN101321088A (en) Method and device for IP data flow information statistics
JP2006254134A (en) Communication statistic collection apparatus
CN110557342A (en) Apparatus for analyzing and mitigating dropped packets
US8792366B2 (en) Network packet latency measurement
US20200052987A1 (en) Network infrastructure management
CN117376282B (en) Switch view display method, device and computer readable storage medium
KR100656366B1 (en) System for mesuring network quality(qos) using fragmented packet and method thereof

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