CN107888457B - Port packet loss detection method and device and communication equipment - Google Patents

Port packet loss detection method and device and communication equipment Download PDF

Info

Publication number
CN107888457B
CN107888457B CN201711304291.3A CN201711304291A CN107888457B CN 107888457 B CN107888457 B CN 107888457B CN 201711304291 A CN201711304291 A CN 201711304291A CN 107888457 B CN107888457 B CN 107888457B
Authority
CN
China
Prior art keywords
port
detected
packet loss
detection
information
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
CN201711304291.3A
Other languages
Chinese (zh)
Other versions
CN107888457A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201711304291.3A priority Critical patent/CN107888457B/en
Publication of CN107888457A publication Critical patent/CN107888457A/en
Application granted granted Critical
Publication of CN107888457B publication Critical patent/CN107888457B/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

Abstract

The application provides a port packet loss detection method, a device and communication equipment, which are applied to communication equipment. The method comprises the following steps: controlling a packet loss detection module to perform packet loss detection on a plurality of ports to be detected one by one for a preset time length so as to detect whether packet loss occurs in each port to be detected; and when the currently detected port to be detected has packet loss, storing packet loss information recorded by the packet loss detection module to an information cache region corresponding to the port to be detected. The packet loss detection module is subjected to time-sharing multiplexing, and the packet loss detection module is automatically controlled to carry out cycle detection on the ports to be detected one by one, so that the detection of one packet loss detection module on the ports to be detected is simply and efficiently realized, and the detection efficiency is improved.

Description

Port packet loss detection method and device and communication equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for detecting a packet loss at a port, and a communication device.
Background
Communication equipment (e.g., a switch, a router, etc.) for forwarding data usually includes a plurality of communication ports, and it may be necessary to know packet loss conditions of different communication ports when performing equipment maintenance or development test, so as to facilitate problem troubleshooting by maintenance personnel and product development by development personnel. Some existing communication devices provide a packet loss detection module, such as a TCB (Transient Capture Buffer) module provided in a switch chip of the bosch corporation.
The inventor finds that, in the conventional packet loss detection module of the communication device, generally, manual configuration is adopted, and packet loss detection can be performed only on one communication port by one-time setting. Meanwhile, the manual reconfiguration mode is very inconvenient in operation and low in efficiency. In addition, if a plurality of packet loss detection modules are set to perform packet loss detection on a plurality of communication ports at the same time, the cost of the communication device may be increased.
Disclosure of Invention
Based on the above, in order to achieve the purpose that one packet loss detection module can perform packet loss detection on a plurality of communication ports, the following technical solutions are adopted in the embodiments of the present application.
In a first aspect, an embodiment of the present application provides a method for detecting a packet loss of a port, which is applied to a communication device, where the communication device includes a plurality of ports to be detected and a packet loss detection module. The port packet loss detection method comprises the following steps:
controlling a packet loss detection module to perform packet loss detection on a plurality of ports to be detected one by one for a preset time length so as to detect whether packet loss occurs in each port to be detected;
and when the currently detected port to be detected has packet loss, storing packet loss information recorded by the packet loss detection module to an information cache region corresponding to the port to be detected.
In a second aspect, an embodiment of the present application further provides a port packet loss detection apparatus, which is applied to a communication device, where the communication device includes a plurality of ports to be detected and a packet loss detection module for performing packet loss detection on the ports to be detected. The port packet loss detection device comprises:
the detection control module is used for controlling the packet loss detection module to carry out packet loss detection on the ports to be detected one by one for a preset time length so as to detect whether packet loss occurs to each port to be detected;
and the recording module is used for storing the packet loss information recorded by the packet loss detection module into the information cache region corresponding to the port to be detected when the currently detected port to be detected has packet loss.
In a third aspect, an embodiment of the present application further provides a communication device, where the communication device includes a plurality of ports to be detected, a packet loss detection module for performing packet loss detection on the plurality of ports to be detected, and the port packet loss detection apparatus provided in the embodiment of the present application.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which is applied to a communication device, where the communication device includes a plurality of ports to be detected and a packet loss detection module for performing packet loss detection on the plurality of ports to be detected, and the computer-readable storage medium stores executable instructions, and when the instructions are executed by one or more processors, the method for detecting packet loss of the ports provided in the embodiment of the present application is implemented.
Compared with the prior art, the method has the following beneficial effects:
in summary, according to the port packet loss detection method, the port packet loss detection device and the communication device provided by the application, the packet loss detection module is subjected to time-sharing multiplexing, and the packet loss detection module is automatically controlled to perform cyclic detection on a plurality of ports to be detected one by one, so that the detection of one packet loss detection module on a plurality of ports to be detected is simply and efficiently realized, and the detection efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic diagram of a communication device provided in an embodiment of the present application;
fig. 2 is a second schematic diagram of a communication device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a working principle of a packet loss detection module according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a port packet loss detection method according to an embodiment of the present application;
fig. 5 is a schematic diagram of a packet loss detection module software node according to an embodiment of the present application;
fig. 6 is a schematic diagram of a port-to-be-tested software node according to an embodiment of the present application;
fig. 7 is a schematic block diagram of a port packet loss detection apparatus according to an embodiment of the present application;
fig. 8 is a second block diagram of a port packet loss detection apparatus according to the embodiment of the present application.
Icon: 10-a communication device; 100-a forwarding chip; 111-a communication port; 200-packet loss detection module; 300-port packet loss detection means; 310-detection control module; 311-selecting a submodule; 312-a detection submodule; 313-reset submodule; 320-a recording module; 330-reading module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. 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 application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it is further noted that, unless expressly stated or limited otherwise, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; the two components can be directly connected or indirectly connected through an intermediate medium, and the two components can be communicated with each other. The specific meaning of the above terms in the present application can be understood in a specific case by those of ordinary skill in the art.
Referring to fig. 1, fig. 1 is a communication device 10 provided in this embodiment, the communication device 10 may include one or more forwarding chips 100, and the forwarding chip 100 may include (or control) one or more communication ports 111. Each communication port 111 includes a packet buffer queue for receiving or transmitting packets.
The communication device 10 further comprises a packet loss detection module 200. In an implementation manner of this embodiment, referring to fig. 1 again, the packet loss detection module 200 may be a packet loss detection module 200 provided by the forwarding chip 100, and is configured to perform packet loss detection on the communication port 111 included (or controlled) by the forwarding chip 100. For example, the packet loss detection module 200 may be a TCB (Transient Capture Buffer) module.
In another implementation manner of this embodiment, referring to fig. 2, the packet loss detection module 200 may also be a module capable of performing packet loss detection on the communication ports 111 included (or controlled) by different forwarding chips 100. That is, one packet loss detection module 200 may be used to detect packet loss of the communication ports 111 included or controlled by the plurality of forwarding chips 100.
Referring to fig. 3, in this embodiment, the packet loss detection module 200 may include a packet loss information buffer queue for recording packet loss information of the currently detected communication port 111. The packet loss information buffer queue may include a packet record queue and a packet loss event queue.
The message record queue may be a circular queue, and is configured to store, in a circular coverage manner, field message data stored when no packet loss occurs in a message buffer queue of the currently detected communication port 111.
The packet loss event queue is used to store packet loss event information of the currently detected communication port 111 when packet loss occurs, for example, information including a discard reason, a queue where a packet is located, a usage rate of the queue, a timestamp, and the like.
Referring to fig. 4, fig. 4 is a flowchart illustrating a port packet loss detection method applied to the communication device 10 according to this embodiment. In this embodiment, the method includes step S110 and step S120, and each step is explained in detail below.
In step S110, the packet loss detection module 200 is controlled to perform packet loss detection for a preset time length on a plurality of communication ports 111 to be detected (hereinafter referred to as "ports to be detected") one by one, so as to detect whether packet loss occurs in each port to be detected.
In some cases, the communication device 10 may have a plurality of communication ports 111, but only a part of the communication ports 111 may need to be subjected to packet loss detection. Therefore, in this embodiment, the packet loss detection module 200 stores a to-be-detected port list in advance, the to-be-detected port list records port information of the communication port 111 that needs to perform packet loss detection, and in the detection process, the communication port 111 recorded in the to-be-detected port list is used as the to-be-detected port.
In order to intuitively and conveniently manage and control the packet loss detection module 200 and the port list to be detected, in this embodiment, please refer to fig. 5, a corresponding packet loss detection module software node may be configured in advance for the packet loss detection module 200. The port list to be detected may be configured in the packet loss detection module software node, so that the packet loss detection module 200 may perform packet loss detection according to the port information recorded in the port list to be detected.
The communication device 10 may further adjust the port to be tested recorded in the port to be tested list in response to the received port to be tested adjustment instruction. For example, any one or more of port addition, port deletion, and port modification are performed. The detection range of the packet loss detection module 200 can be managed and controlled by managing the port list to be detected.
In this embodiment, each port to be detected may correspond to a detection flag for indicating whether the corresponding port to be detected has been detected by the packet loss detection module 200. For example, the detection flag may be a flag bit of 1 bit, setting the detection flag to 1 indicates that the corresponding port to be detected has been detected by the packet loss detection module 200, and setting the detection flag to 0 indicates that the corresponding port to be detected has not been detected by the packet loss detection module 200.
Referring to fig. 5 again, the packet loss detection module software node may include a monitoring object state sequence, and in the monitoring object state sequence, a detection mark corresponding to each port to be detected is recorded.
When detecting a plurality of ports to be detected, the communication device 10 may select one of the ports to be detected that is not detected as a target port to be detected from the ports to be detected recorded in the port list to be detected according to the detection flag of each port to be detected.
Different detection policy information may be required for different ports to be detected, so in this embodiment, the ports to be detected may correspond to preset detection policy information, and the detection policy information may include configuration information such as a queue type (e.g., a receiving queue or a sending queue) of the ports to be detected, a sampling rate of a buffer packet, and the like.
Referring to fig. 6, in this embodiment, a corresponding port-to-be-tested software node may also be generated for each port to be tested in advance, and the detection policy information may be configured in the port-to-be-tested software node.
After the target port to be detected is determined, the detection policy information of the target port to be detected is obtained, and then the packet loss detection module 200 is controlled to detect the target port to be detected for a preset time (for example, 50ms) according to the detection policy information. Therefore, the packet loss detection module 200 can perform automatic cycle detection on the ports 111 to be detected according to the detection strategy information of different ports to be detected, and compared with the existing method for detecting through manual configuration, the method is higher in efficiency and less prone to errors.
In this embodiment, after the current target port to be detected is detected, the detection flag of the target port to be detected may be further modified, so that the detection flag indicates that the target port to be detected is detected, for example, the detection flag of the target port to be detected is modified to 1, and then another port to be detected is reselected as the target port to be detected for packet loss detection.
In addition, when the detection mark indication of each port to be detected is detected, the detection mark of each port to be detected can be modified, so that the port to be detected corresponding to each detection mark indication is not detected, and then a new round of packet loss detection is performed. For example, when the detection marks of all the ports to be detected are 1, it is determined that all the ports to be detected have been detected in the current round, the detection marks of all the ports to be detected are modified to be 0, and then a new round of detection is started.
Thus, by time-sharing multiplexing of the packet loss detection module 200, automatic detection of a plurality of ports to be detected by one packet loss detection module 200 can be realized.
Further, in this embodiment, please refer to fig. 5 again, the packet loss detection module 200 further has a packet loss state identifier configured in the software node of the packet loss detection module, where the packet loss state identifier is used to indicate whether the port to be detected currently detected by the packet loss detection module 200 has a packet loss.
In the process of detecting a plurality of ports to be detected, the communication device 10 detects the packet loss state identifier of the packet loss detection module 200, and determines whether the port to be detected currently detected by the packet loss detection module 200 has a packet loss according to the packet loss state identifier.
If the packet loss state identifier indicates that the currently detected port to be detected has a packet loss, the method goes to step S120; if the packet loss state identifier does not indicate that the currently detected port to be detected has packet loss within the preset time length, modifying the detection mark of the target port to be detected to enable the detection mark to indicate that the target port to be detected is detected, and then reselecting the next port to be detected for detection.
In step S120, the packet loss information of the currently detected port to be detected, recorded by the packet loss detection module 200, is stored in the information cache region corresponding to the port to be detected.
In this embodiment, referring to fig. 6 again, each port to be tested corresponds to one information buffer. The information cache region comprises a first information cache region and a second information cache region. The first information cache region is used for storing packet loss information when packet loss occurs at present, and the second information cache region is used for storing packet loss information when packet loss occurs last time.
When detecting that the port to be tested loses the packet in step S110, the communication device 10 may store the data currently recorded in the first information cache region of the port to be tested in the second information cache region, and then store the packet loss information recorded by the packet loss detection module 200 in the first information cache region.
Therefore, when packet loss occurring in the port to be tested needs to be analyzed, current and previous packet loss information of the port to be tested can be directly read, and analysis can be more convenient and accurate.
Further, in this embodiment, each port to be tested may further include corresponding port information, for example, a port number of the port to be tested, a chip number of the forwarding chip 100 to which the port to be tested belongs, and the like.
When packet loss analysis needs to be performed on a certain port to be analyzed, the communication device 10 may obtain port information of the port to be analyzed, determine an information cache region corresponding to the port to be analyzed according to the port information, and read packet loss information in the information cache region for further analysis. Referring to fig. 7, the present embodiment further provides a port packet loss detection apparatus 300 applied to the communication device 10, which includes a detection control module 310 and a recording module 320.
The detection control module 310 is configured to control the packet loss detection module 200 to perform packet loss detection on multiple ports to be detected one by one for a preset time duration, so as to detect whether packet loss occurs in each port to be detected. In this embodiment, the detection control module 310 may be configured to execute step S110 shown in fig. 4, and for further description of the detection control module 310, refer to the description of step S110.
In this embodiment, each port to be detected corresponds to a detection flag, which is used to indicate whether the corresponding port to be detected has been detected by the packet loss detection module 200.
The detection control module 310 may include a selection sub-module 311, a detection sub-module 312, and a reset sub-module 313.
And the selecting submodule 311 is configured to select an undetected port to be detected as a target port to be detected according to the detection flag of each port to be detected.
Further, in this embodiment, the communication device 10 stores a list of ports to be tested in advance, and the list of ports to be tested records port information of each port to be tested.
The selecting submodule 311 is configured to select, according to the detection flag of each port to be detected recorded in the port to be detected list, one undetected port to be detected as a target port to be detected.
The detection sub-module 312 is configured to control the packet loss detection module 200 to perform packet loss detection on the target port to be detected for a preset time period, and modify the detection mark of the target port to be detected after the detection is completed, so that the detection mark indicates that the target port to be detected has been detected.
Further, in this embodiment, the port to be tested has corresponding preset detection policy information. The detection sub-module 312 obtains the detection policy information of the target port to be detected, and controls the packet loss detection module 200 to perform detection on the target port to be detected for a preset time according to the detection policy information.
The reset submodule 313 is configured to modify the detection mark of each port to be detected when the detection mark of each port to be detected indicates that the port to be detected is not detected. Then, the selection sub-module 311 selects an undetected port to be detected as a target port to be detected for a new round of detection according to the detection mark of each port to be detected.
Further, in this embodiment, the port packet loss detection apparatus 300 may further include a modification module.
And the modification module is used for responding to the received port to be tested adjustment instruction and adjusting the port to be tested recorded in the port list to be tested, wherein the adjustment comprises any one or more of port addition, port deletion and port modification.
Further, in this embodiment, the packet loss detection module 200 may correspond to a packet loss state identifier, where the packet loss state identifier is used to indicate whether a port to be detected, which is currently detected by the packet loss detection module 200, has a packet loss.
The detection control module 310 determines whether the port to be detected currently detected by the packet loss detection module 200 has a packet loss according to the packet loss state identifier by detecting the packet loss state identifier of the packet loss detection module 200.
The recording module 320 is configured to store the packet loss information recorded by the packet loss detecting module 200 into an information cache region corresponding to the port to be detected when the currently detected port to be detected has a packet loss. In this embodiment, the recording module 320 may be configured to execute step S120 shown in fig. 4, and for further description of the recording module 320, refer to the description of step S120.
Further, in this embodiment, the information buffer includes a first information buffer and a second information buffer. When detecting that the port to be tested loses the packet, the recording module 320 stores the data currently recorded in the first information cache region of the port to be tested in the second information cache region, and then stores the packet loss information recorded by the packet loss detecting module 200 in the first information cache region.
Further, in this embodiment, as shown in fig. 8, the port packet loss detection apparatus 300 may further include a reading module 330.
The reading module 330 is configured to receive the packet loss information obtaining request, determine an information cache region corresponding to the to-be-analyzed port to be tested according to the port information of the to-be-analyzed port to be tested, which is included in the packet loss information obtaining request, and read packet loss information in the corresponding information cache region.
The present embodiment also provides a readable storage medium, in the present embodiment, the readable storage medium may be a memory applied in the communication device 10, and the readable storage medium stores executable instructions, and when the instructions are executed by one or more processors of the communication device 10, the instructions cause the communication device 10 to implement the port packet loss detection method provided in the present embodiment.
The readable storage medium may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Read Only Memory (EPROM), an electrically Erasable Read Only Memory (EEPROM), and various media capable of storing program codes, such as a usb disk, a removable hard disk, a magnetic disk, or an optical disk.
In summary, according to the port packet loss detection method, the device and the communication device provided by the application, the packet loss detection module is subjected to time-sharing multiplexing, and the packet loss detection module is automatically controlled to perform cyclic detection on a plurality of ports to be detected one by one, so that the detection of one packet loss detection module on a plurality of ports to be detected is simply and efficiently realized, and the detection efficiency is greatly improved.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (12)

1. A port packet loss detection method is applied to communication equipment and is characterized in that the communication equipment comprises a plurality of ports to be detected and a packet loss detection module for performing packet loss detection on the plurality of ports to be detected; the method comprises the following steps:
controlling the packet loss detection module to perform packet loss detection on the plurality of ports to be detected one by one for a preset time length so as to detect whether packet loss occurs in each port to be detected;
when packet loss occurs in a currently detected port to be detected, storing packet loss information recorded by the packet loss detection module to an information cache region corresponding to the port to be detected;
the packet loss detection module is a transient capture cache module, corresponds to a packet loss state identifier and is used for indicating whether a currently detected port to be detected has packet loss or not, judges whether the currently detected port to be detected has packet loss or not according to the packet loss state identifier and records packet loss information of the port to be detected when the packet loss occurs.
2. The method according to claim 1, wherein the communication device stores a to-be-tested port list in advance, each to-be-tested port is recorded in the to-be-tested port list, and each to-be-tested port corresponds to a detection flag for indicating whether the corresponding to-be-tested port has been detected by the packet loss detection module;
the step of controlling the packet loss detection module to perform packet loss detection for a preset time length on the plurality of ports to be detected one by one includes:
according to the detection marks of the ports to be detected, selecting one undetected port to be detected from the ports to be detected recorded in the port list to be detected as a target port to be detected;
controlling the packet loss detection module to perform packet loss detection on the target port to be detected for a preset time, and modifying a detection mark of the target port to be detected after detection is completed, so that the detection mark indicates that the target port to be detected is detected;
and when the detection mark of each port to be detected indicates that the port to be detected is detected, modifying the detection mark of each port to be detected so that each detection mark indicates that the corresponding port to be detected is not detected.
3. The method of claim 2, further comprising:
responding to the received port to be tested adjustment instruction, and adjusting the port to be tested recorded in the port list to be tested, wherein the adjustment comprises any one or more of port addition, port deletion and port modification.
4. The method of claim 1, wherein the information buffer comprises a first information buffer and a second information buffer; the step of storing packet loss information recorded by the packet loss detection module to an information cache region corresponding to the port to be detected when the currently detected port to be detected has packet loss includes:
when the currently detected port to be detected loses packets, storing the currently recorded data of the first information cache area of the port to be detected in the second information cache area, and then storing packet loss information recorded by the packet loss detection module in the first information cache area.
5. The method according to any one of claims 1-4, further comprising:
receiving a packet loss information acquisition request, wherein the packet loss information acquisition request comprises port information of a port to be analyzed;
and determining an information cache region corresponding to the to-be-analyzed to-be-detected port according to the port information, and reading packet loss information stored in the information cache region.
6. A port packet loss detection device is applied to communication equipment and is characterized in that the communication equipment comprises a plurality of ports to be detected and a packet loss detection module for performing packet loss detection on the plurality of ports to be detected; the device comprises:
the detection control module is used for controlling the packet loss detection module to perform packet loss detection on the ports to be detected one by one for a preset time length so as to detect whether packet loss occurs to each port to be detected;
the recording module is used for storing the packet loss information recorded by the packet loss detection module to an information cache region corresponding to the port to be detected when the currently detected port to be detected has packet loss;
the packet loss detection module is a transient capture cache module, and is provided with a packet loss state identifier for indicating whether a currently detected port to be detected has packet loss, and the packet loss detection module judges whether the currently detected port to be detected has packet loss according to the packet loss state identifier and records packet loss information of the port to be detected when the packet loss occurs.
7. The apparatus according to claim 6, wherein the communication device stores a to-be-tested port list in advance, each to-be-tested port is recorded in the to-be-tested port list, and each to-be-tested port corresponds to a detection flag for indicating whether the to-be-tested port has been detected by the packet loss detection module; the detection control module includes:
the selection submodule is used for selecting an undetected port to be detected as a target port to be detected according to the detection marks of the ports to be detected;
the detection submodule is used for controlling the packet loss detection module to perform packet loss detection on the target port to be detected for a preset time length, and modifying a detection mark of the target port to be detected after detection is completed, so that the detection mark indicates that the target port to be detected is detected;
the reset submodule is used for modifying the detection mark of each port to be detected when the detection mark of each port to be detected indicates that the port to be detected is not detected; and enabling the selection submodule to select an undetected port to be detected as a target port to be detected for carrying out a new round of detection according to the detection mark of each port to be detected.
8. The apparatus of claim 6, further comprising:
and the modification module is used for responding to the received port to be tested adjustment instruction and adjusting the port to be tested recorded in the port list to be tested, wherein the adjustment comprises any one or more of port addition, port deletion and port modification.
9. The apparatus of claim 6, wherein the information buffer comprises a first information buffer and a second information buffer; when the currently detected port to be detected loses packets, the recording module stores the currently recorded data of the first information cache region corresponding to the port to be detected into the second information cache region, and stores the packet loss information recorded by the packet loss detection module into the first information cache region.
10. The apparatus of any one of claims 6-9, further comprising:
the reading module is used for receiving a packet loss information acquisition request, determining an information cache area corresponding to the to-be-analyzed to-be-detected port according to the port information of the to-be-analyzed to-be-detected port included in the packet loss information acquisition request, and reading the packet loss information in the information cache area.
11. A communication device, characterized in that the communication device includes a plurality of ports to be tested, a packet loss detection module for performing packet loss detection on the plurality of ports to be tested, and the port packet loss detection apparatus according to any one of claims 6 to 10.
12. A computer-readable storage medium applied to a communication device, wherein the communication device includes a plurality of ports to be tested and a packet loss detection module for performing packet loss detection on the plurality of ports to be tested, and the computer-readable storage medium stores executable instructions, and when the instructions are executed by one or more processors, the instructions implement the method according to any one of claims 1 to 5.
CN201711304291.3A 2017-12-08 2017-12-08 Port packet loss detection method and device and communication equipment Active CN107888457B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711304291.3A CN107888457B (en) 2017-12-08 2017-12-08 Port packet loss detection method and device and communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711304291.3A CN107888457B (en) 2017-12-08 2017-12-08 Port packet loss detection method and device and communication equipment

Publications (2)

Publication Number Publication Date
CN107888457A CN107888457A (en) 2018-04-06
CN107888457B true CN107888457B (en) 2020-08-14

Family

ID=61773765

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711304291.3A Active CN107888457B (en) 2017-12-08 2017-12-08 Port packet loss detection method and device and communication equipment

Country Status (1)

Country Link
CN (1) CN107888457B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112073256B (en) * 2020-06-01 2022-07-19 新华三信息安全技术有限公司 Packet loss processing method, device, equipment and machine readable storage medium
CN112152876B (en) * 2020-09-09 2022-01-11 锐捷网络股份有限公司 Method and device for acquiring packet loss information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729304A (en) * 2008-10-21 2010-06-09 华为技术有限公司 Method, device and system for detecting packet loss
CN101873269A (en) * 2010-06-24 2010-10-27 杭州华三通信技术有限公司 Data retransmission device and method for distributing buffer to ports
CN102204164A (en) * 2011-05-24 2011-09-28 华为技术有限公司 Method and apparatus for reporting network packet-losing message
CN105306381A (en) * 2015-09-21 2016-02-03 盛科网络(苏州)有限公司 Method and device for analyzing cache packet loss in network
CN106411624A (en) * 2016-12-26 2017-02-15 北京东土科技股份有限公司 Packet loss port positioning method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056224B (en) * 2007-05-31 2010-09-22 杭州华三通信技术有限公司 A loop detection method and device for the network device
CN101610212B (en) * 2009-07-27 2012-12-12 迈普通信技术股份有限公司 Method and card for realizing reliable data plane communication
TW201115458A (en) * 2009-10-29 2011-05-01 Ralink Technology Corp Buffer space allocation method and related packet switch
CN102984035A (en) * 2013-01-04 2013-03-20 盛科网络(苏州)有限公司 Loopback test method and system of packet loss probability of network data
CN103997433B (en) * 2014-05-16 2017-10-31 瑞斯康达科技发展股份有限公司 A kind of packet loss rate measurement method, measuring apparatus and measuring system
CN104219107B (en) * 2014-08-26 2018-08-14 华为技术有限公司 A kind of detection method of communication failure, apparatus and system
US10536357B2 (en) * 2015-06-05 2020-01-14 Cisco Technology, Inc. Late data detection in data center
US10044583B2 (en) * 2015-08-21 2018-08-07 Barefoot Networks, Inc. Fast detection and identification of lost packets
JP2017208654A (en) * 2016-05-17 2017-11-24 富士通株式会社 Packet processing apparatus and packet processing method
CN106330604B (en) * 2016-08-23 2019-07-09 杭州迪普科技股份有限公司 A kind of method and device of port connectivity test
CN106506265B (en) * 2016-10-25 2019-08-06 杭州迪普科技股份有限公司 Detection fpga chip hangs dead method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729304A (en) * 2008-10-21 2010-06-09 华为技术有限公司 Method, device and system for detecting packet loss
CN101873269A (en) * 2010-06-24 2010-10-27 杭州华三通信技术有限公司 Data retransmission device and method for distributing buffer to ports
CN102204164A (en) * 2011-05-24 2011-09-28 华为技术有限公司 Method and apparatus for reporting network packet-losing message
CN105306381A (en) * 2015-09-21 2016-02-03 盛科网络(苏州)有限公司 Method and device for analyzing cache packet loss in network
CN106411624A (en) * 2016-12-26 2017-02-15 北京东土科技股份有限公司 Packet loss port positioning method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于无线网络的视频传输技术研究;柳晓风;《中国优秀硕士学位论文全文数据库》;20150515;全文 *

Also Published As

Publication number Publication date
CN107888457A (en) 2018-04-06

Similar Documents

Publication Publication Date Title
CN106792864B (en) Network element state processing method and device
CN109714221B (en) Method, device and system for determining network data packet
CN107888457B (en) Port packet loss detection method and device and communication equipment
KR20180004773A (en) Improved coverage estimation of wireless cellular networks by user equipment (ue) idle mode measurements
CN105050133B (en) Detect the method and device of the network speed under Wi-Fi Hotspot
CN104471882B (en) The system and method for the comparison of radio frequency (RF) data signal that radio frequency (RF) data signal that promotion device under test (DUT) sends receives with test system
CN106507419A (en) The method and device of connection Wi-Fi hotspot
CN103179594A (en) Method and device for optimizing wireless network on basis of road test data
CN113709043B (en) Path tracking method and device
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN108399120A (en) asynchronous message monitoring method and device
US20080304417A1 (en) Method, network apparatus, and tangible machine-readable medium thereof for detecting a looping network packet
CN111434156A (en) Method for managing optimal transmit power of a WI-FI access point and corresponding WI-FI access point
CN112422361A (en) Switch testing method, device and medium
CN113507396B (en) Network state analysis method, device, equipment and machine-readable storage medium
CN109120468B (en) Method, device and storage medium for obtaining end-to-end network delay
WO2018126757A1 (en) Data processing method and device
US9439085B2 (en) Geolocation data prioritization system
EP4354297A1 (en) Data integrity processing method and apparatus, and electronic device
CN113810238A (en) Network monitoring method, electronic device and storage medium
WO2020112928A1 (en) System for test and measurement instrumentation data collection and exchange
CN113438168B (en) Software and hardware mixed flow table management method and device
CN111385162B (en) Network detection method and device, computer equipment and storage medium
US10554509B2 (en) Information processing system and delay measurement method
EP2777225B1 (en) Geolocation data prioritisation system

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