CN117560306B - Packet loss reporting method, network switch and related device - Google Patents

Packet loss reporting method, network switch and related device Download PDF

Info

Publication number
CN117560306B
CN117560306B CN202410043023.4A CN202410043023A CN117560306B CN 117560306 B CN117560306 B CN 117560306B CN 202410043023 A CN202410043023 A CN 202410043023A CN 117560306 B CN117560306 B CN 117560306B
Authority
CN
China
Prior art keywords
packet loss
message
processing module
time
target
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
CN202410043023.4A
Other languages
Chinese (zh)
Other versions
CN117560306A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202410043023.4A priority Critical patent/CN117560306B/en
Publication of CN117560306A publication Critical patent/CN117560306A/en
Application granted granted Critical
Publication of CN117560306B publication Critical patent/CN117560306B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection

Abstract

The embodiment of the application discloses a packet loss reporting method, a network switch and a related device, which are applied to cloud technology, artificial intelligence, intelligent traffic, auxiliary driving, automatic driving and other scenes, wherein the network switch comprises a first processing module and a second processing module, and the second processing module acquires and forwards a message to be sent. If the second processing module includes the message suppression and fails to forward the message to be sent, the second processing module does not send the packet loss message. If the second processing module does not include the inhibition message and fails to forward the message to be transmitted, the second processing module generates a packet loss message and transmits the packet loss message to the first processing module. If the first processing module determines that the packet loss message is not acquired for the first time within the first preset time period, the packet loss message is not reported any more; otherwise, the first processing module reports the packet loss message, generates a suppression message and sends the suppression message to the second processing module. The occupation of the performance of the central processing unit of the network management system is reduced while the reporting network switch is in a packet loss state.

Description

Packet loss reporting method, network switch and related device
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a packet loss reporting method, a network switch, and a related device.
Background
In a large data center network, when a certain network forwarding node is in a packet loss state, data cannot be correctly sent, the packet loss position needs to be quickly and accurately positioned, the problem of packet loss is solved, and the stable operation of the network is ensured.
In the related art, by sending a detection message, all possible message forwarding paths from a source device to a destination device are covered, and whether a network path reaching the destination forwarding device is unobstructed is confirmed according to packet loss statistics of the detection message. When the detection message can not be normally received and transmitted, the network node which is in particular lost can be confirmed, different forwarding paths are tried through the detection message for multiple times, and the specific packet loss position, namely the equipment in the packet loss state, is positioned.
However, by means of sending the detection message, the packet loss positions are searched step by step from device to device, and the searching efficiency and the searching accuracy are low.
Disclosure of Invention
In order to solve the technical problems, the application provides a packet loss reporting method, a network switch and a related device, which are used for improving the searching efficiency and the accuracy.
The embodiment of the application discloses the following technical scheme:
in a first aspect, an embodiment of the present application provides a packet loss reporting method, where the method is applied to a network switch, and the network switch includes a first processing module and a second processing module, and the method includes:
the second processing module acquires a message to be sent;
if the second processing module fails to forward the message to be sent, and the second processing module includes a suppression message from the first processing module, the second processing module does not send a packet loss message to the first processing module any more, the suppression message is used for indicating that the second processing module does not send the packet loss message any more within a first preset duration, and the packet loss message is used for identifying that the network switch is in a packet loss state;
if the second processing module fails to forward the message to be sent and the second processing module does not include the inhibition message, the second processing module generates the packet loss message and sends the packet loss message to the first processing module;
if the first processing module determines that the packet loss message is not acquired for the first time within the first preset time length, the packet loss message is not reported any more;
If the first processing module determines that the packet loss message is acquired for the first time within the first preset time, the packet loss message is reported, the suppression message is generated, and the suppression message is sent to the second processing module.
In a second aspect, an embodiment of the present application provides a packet loss reporting method, where the method includes:
acquiring a first message to be sent and a second message to be sent, wherein the first message to be sent and the second message to be sent are different messages;
if it is determined that the first message to be sent and the second message to be sent fail to be sent within the first preset duration, no packet loss message is reported any more, and the packet loss message is used for identifying that forwarding equipment sending the packet loss message is in a packet loss state.
In a third aspect, an embodiment of the present application provides a packet loss reporting method, where the method includes:
acquiring a packet loss message from a target forwarding device, wherein the packet loss message is used for identifying that the target forwarding device is in a packet loss state;
if the packet loss message from the target forwarding device is not acquired for the first time within the first preset time, the packet loss message is not reported.
In a fourth aspect, an embodiment of the present application provides a packet loss reporting device, where the device includes: an acquisition unit and a first blocking unit;
The acquisition unit is used for acquiring a packet loss message from the target forwarding device, wherein the packet loss message is used for identifying that the target forwarding device is in a packet loss state;
the first blocking unit is configured to, if it is determined that the packet loss message from the target forwarding device is not acquired for the first time within a first preset duration, not report the packet loss message.
In a fifth aspect, an embodiment of the present application provides a packet loss reporting device, where the device includes: an acquisition unit and a second blocking unit;
the acquisition unit is used for acquiring a first message to be sent and a second message to be sent, wherein the first message to be sent and the second message to be sent are different messages;
the second blocking unit is configured to, if it is determined that both the first message to be sent and the second message to be sent fail to be sent within a first preset duration, not report a packet loss message, where the packet loss message is used to identify that a forwarding device that sends the packet loss message is in a packet loss state.
In a sixth aspect, an embodiment of the present application provides a packet loss reporting system, where the system includes a first computer device and a second computer device;
the first computer device for performing the method of the third aspect;
The second computer device is configured to perform the method of the second aspect.
In a seventh aspect, embodiments of the present application provide a computer device comprising a processor and a memory:
the memory is used for storing a computer program and transmitting the computer program to the processor;
the processor is configured to perform the method according to the first aspect or the method according to the second aspect according to instructions in the computer program.
In an eighth aspect, embodiments of the present application provide a computer readable storage medium storing a computer program for executing the method according to the first aspect or the method according to the second aspect.
In a ninth aspect, embodiments of the present application provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The computer instructions are read from a computer-readable storage medium by a processor of a computer device, the computer instructions being executed by the processor to cause the computer device to perform the method of the first aspect or the method of the second aspect.
According to the technical scheme, the network switch comprises the first processing module and the second processing module, the network switch acquires and forwards the message to be sent through the second processing module, if the second processing module fails to forward the message to be sent, the message to be sent is not directly generated for reporting, instead, whether the second processing module comprises the inhibition message from the first processing module is determined, the inhibition message is used for indicating the second processing module not to send the message to be sent any more in the first preset time, and if the second processing module fails to send the message to be sent any more to the first processing module. If not, the second processing module sends the packet loss message to the first processing module, so that the packet loss message is reported to the network management system through the first processing module, and the searching efficiency and the accuracy of the network management system are improved in an active reporting mode. After the first processing module acquires the packet loss message from the second processing module, the network switch is in a packet loss state, the first processing module does not directly report the packet loss message any more, and determines whether the first processing module reports the packet loss message for the first time within a first preset duration, if so, the first processing module reports the packet loss message, generates a suppression message, and sends the suppression message to the second processing module. If not, the packet loss message of the identification network switch in the packet loss state is reported within the first preset time period, and in order to avoid the packet loss message being reported for multiple times, the first processing module does not report the packet loss message. Therefore, the occupation of the performance of the central processing unit of the network management system is reduced while the reporting network switch is in a packet loss state.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a switch network according to an embodiment of the present application;
fig. 2 is an application scenario schematic diagram of a packet loss reporting method provided in an embodiment of the present application;
fig. 3 is a flow chart of a packet loss reporting method provided in the embodiment of the present application;
fig. 4 is a signaling interaction diagram of a packet loss reporting method provided in the embodiment of the present application;
fig. 5 is an application scenario schematic diagram of a packet loss reporting method provided in an embodiment of the present application;
fig. 6 is a schematic process flow diagram of a first processing module according to an embodiment of the present application;
fig. 7 is a schematic process flow diagram of a second processing module according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a packet loss reporting device provided in an embodiment of the present application;
Fig. 9 is a schematic structural diagram of a packet loss reporting device provided in the embodiment of the present application;
fig. 10 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 11 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
fig. 12 is a flow chart of a packet loss reporting method provided in the embodiment of the present application.
Detailed Description
The terms "first," "second," "third," "fourth" and the like in the description and in the claims of this application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of being practiced otherwise than as specifically illustrated and described herein. Furthermore, the terms "comprises," "comprising," and "includes" and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus.
Embodiments of the present application are described below with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of a switch network according to an embodiment of the present application is provided. In fig. 1, the data center network is constituted by three layers of network switches, an access switch, a convergence switch, and a core switch, respectively. Server a accesses server B via an internet protocol (Internet Protocol, IP) address, server a accesses server B by sending IP messages through the switch, the IP messages are forwarded by an access switch connected to server a to a aggregation switch, and the IP messages are forwarded by the aggregation switch to an access switch connected to server B. Similarly, the server B can reply to the IP message of the server a in this way, and when a certain network forwarding node, that is, any switch is in a packet loss state, the message cannot be correctly sent, so that the packet loss position needs to be quickly and accurately located, the packet loss problem is solved, and the stable operation of the network is ensured.
In the related art, by sending a detection message, searching for a packet loss position step by step from one device to another, the following problems may exist: (1) The method only can detect the possible packet loss problem on the forwarding path of the detection message, even if the forwarding path of the detection message is smooth, the actual service flow is not fixed and the path through which the detection message passes is not necessarily taken, so that the actual service flow can not be normally forwarded by 100%, and the detection accuracy is low. (2) From finding the abnormal forwarding of the detection message to locating the equipment in the packet loss state, a time interval exists, and if the packet loss fault is recovered in the time interval, the network element which has the abnormal state can not be located, the processing is complex, the time consumption is long, and the searching efficiency is low.
Based on this, the embodiment of the application does not passively determine the device in the packet loss state by detecting the packet, but when one forwarding device in the forwarding network fails to forward the data, that is, the forwarding device is in the packet loss state, the forwarding device actively reports the packet loss packet, where the packet loss packet is used to identify that the forwarding device that sends the packet loss packet is in the packet loss state. For example, if a packet loss message from the target forwarding device is acquired, it indicates that the target forwarding device is in a packet loss state. Therefore, the searching efficiency and the accuracy can be improved by actively reporting the packet loss message through the forwarding equipment.
However, since the forwarding device needs a period of time to restore to normal, the forwarding device is always in a packet loss state during the period of time, and continuously reports a packet loss message to the network management system (i.e. a system for detecting and solving a network forwarding failure), so that the network management system is occupied with a large amount of software performance of the central processing unit (Central Processing Unit, CPU).
Therefore, the embodiment of the application provides an intermediate device, which is arranged in the middle of a link of the forwarding device for sending the packet loss message to the network management system, for example, the intermediate device is built in the forwarding device, and can also be independent of the forwarding device. When the intermediate device acquires the packet loss message from the target forwarding device, the intermediate device does not report the packet loss message to the network management system directly, but judges whether the target forwarding device sends the packet loss message for the first time within a first preset time period, if not, the intermediate device does not acquire the packet loss message from the target forwarding device for the first time within the first preset time period, the intermediate device reports that the target forwarding device is in the packet loss state within the first preset time period, and in order to avoid reporting the packet loss state of the target forwarding device for multiple times, the packet loss message is not reported.
Taking the example that the intermediate equipment is built in the forwarding equipment, the network switch serving as the forwarding equipment comprises a first processing module and a second processing module, wherein the first processing module is the intermediate equipment, and the second processing module is a module used for sending the packet loss message in the forwarding equipment.
The network switch acquires and forwards the message to be sent through the second processing module, if the second processing module fails to forward the message to be sent, the message to be sent is not directly generated for reporting, and instead, whether the second processing module comprises a suppression message from the first processing module is determined, the suppression message is used for indicating that the second processing module does not send the message to be sent any more within a first preset time period, and if yes, the second processing module does not send the message to be sent any more to the first processing module. If not, the second processing module generates a packet loss message and sends the packet loss message to the first processing module, so that the packet loss message is reported to the network management system through the first processing module, and the searching efficiency and the accuracy of the network management system are improved in an active reporting mode. After the first processing module acquires the packet loss message from the second processing module, the network switch is in a packet loss state, the first processing module does not directly report the packet loss message any more, and determines whether the first processing module reports the packet loss message for the first time within a first preset duration, if so, the first processing module reports the packet loss message, generates a suppression message, and sends the suppression message to the second processing module. If not, the packet loss message of the identification network switch in the packet loss state is reported within the first preset time period, and in order to avoid the packet loss message being reported for multiple times, the first processing module does not report the packet loss message.
Therefore, the occupation of the performance of the central processing unit of the network management system is reduced while the reporting network switch is in a packet loss state.
The packet loss reporting method provided by the application can be applied to the intermediate equipment, wherein the intermediate equipment is computer equipment with packet loss reporting capability, such as terminal equipment and a server. The terminal device may be a desktop computer, a notebook computer, a smart phone, a tablet computer, an internet of things device, a portable wearable device, a network switch, an aircraft and the like, the internet of things device may be an intelligent sound box, an intelligent television, an intelligent air conditioner, an intelligent vehicle-mounted device and the like, the intelligent vehicle-mounted device may be a vehicle-mounted navigation terminal, a vehicle-mounted computer and the like, and the portable wearable device may be an intelligent watch, an intelligent bracelet, a head-mounted device and the like, but is not limited thereto; the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server or a server cluster for providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), basic cloud computing services such as big data and artificial intelligent platforms, and the like. The terminal device and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
The packet loss reporting method can be applied to various scenes, including but not limited to cloud technology, artificial intelligence, intelligent traffic, driving assistance and the like. For example, in the driving assisting scenario, if the vehicle is in a packet loss state in the process of reporting the vehicle state to the vehicle management center through the network switch, a second processing module (such as a chip responsible for hardware processing) in the network switch may actively generate a packet loss message and report the packet loss message to a first processing module (such as a chip responsible for software processing) of the network switch, where the first processing module may determine whether to obtain the packet loss message from the second processing module for the first time within a first preset duration, and if not, the second processing module may not report the packet loss state of the network switch to the network management system of the vehicle management center.
In order to facilitate understanding of the packet loss reporting method provided in the embodiments of the present application, an application scenario of the packet loss reporting method is described by taking an execution body of the packet loss reporting method as an example of a terminal device.
Referring to fig. 2, the diagram is an application scenario schematic diagram of a packet loss reporting method provided in the embodiment of the present application. As shown in fig. 2, the application scenario includes a server 210, a server 220, a server 230, a network switch 240, a network switch 250, and a network switch 260, where each device may communicate through a network.
Continuing taking the example that the server a sends the IP packet to the server B in fig. 1 as an example, if the forwarding paths of the server a sending the IP packet to the server B are sequentially the server a, the access switch LA1, the aggregation switch LC4, the access switch LA3 and the server B, the server 210 in fig. 2 is the server a in fig. 1, the server 220 is the server B in fig. 1, and the server 230 is a network management system, which is used for managing a forwarding network formed by a plurality of switches, so as to detect and solve the network forwarding failure. Network switch 240 is access switch LA1 of fig. 1, network switch 250 is aggregation switch LC4 of fig. 1, and network switch 260 is access switch LA3 of fig. 1.
It should be noted that, generally, the network switch includes two chips, one chip is responsible for the processing related to hardware (abbreviated as a hardware chip), corresponding to the second processing module included in the network switch, and one chip is responsible for the processing related to software (abbreviated as a software chip), corresponding to the first processing module included in the network switch, so that the intermediate device may be equivalent to the software chip and be built in the network switch. The following description will take an example in which the network switch 250 fails, that is, the target forwarding device is the network switch 250.
The second processing module in the network switch 250 obtains the message to be sent, i.e. the IP message. After detecting that the IP message fails to be sent, the second processing module does not directly generate a packet loss message for reporting, but determines whether the second processing module comprises a suppression message from the first processing module, wherein the suppression message is used for indicating the second processing module to not send the packet loss message any more within a first preset duration, if so, the second processing module is indicated to not report the packet loss message for the first time, and the second processing module is not used for sending the packet loss message to the first processing module any more. If not, the second processing module generates a packet loss message, and sends the packet loss message to the first processing module, so that the packet loss message is reported to the server 230 through the first processing module, and the searching efficiency and the accuracy of the network management system are improved through an active reporting mode.
After the first processing module obtains the packet loss message from the second processing module, the network switch 250 is in a packet loss state, the first processing module does not directly report the packet loss message any more, but determines whether to report the packet loss message for the first time within a first preset duration, if so, reports the packet loss message, generates a suppression message, and sends the suppression message to the second processing module. If not, the packet loss message of the identification network switch in the packet loss state is reported within the first preset time period, and in order to avoid the packet loss message being reported for multiple times, the first processing module does not report the packet loss message.
Therefore, after the network switch fails, a packet loss message is generated and is actively reported to the network management system, and the network management system can quickly determine which network switch in the forwarding network fails so as to give an alarm or isolate, thereby improving the searching efficiency and the accuracy. And the second processing module in the network switch can not report the packet loss message for multiple times according to the inhibition message, and the first processing module can not report the packet loss message directly after acquiring the packet loss message, but can determine whether the network switch is the first packet loss message transmission or not in the first preset time period, if so, the second processing module indicates that the network switch is in the packet loss state after reporting the packet loss message in the first preset time period, and in order to avoid reporting the packet loss state at the network switch for multiple times, the packet loss message is not reported. Therefore, the occupation of CPU performance of the network management system is reduced while the reporting network switch is in a packet loss state.
The packet loss reporting method provided by the embodiment of the application can be executed by the terminal equipment. However, in other embodiments of the present application, the server may also have a similar function to the terminal device, so as to execute the packet loss reporting method provided in the embodiments of the present application, or the terminal device and the server execute the packet loss reporting method provided in the embodiments of the present application together, which is not limited in this embodiment.
The method for reporting the packet loss provided by the application is described in detail below through the method embodiment.
For convenience of description, the embodiment of the application will be described by taking the execution body of the packet loss reporting method as a network switch as an example. The network switch comprises a first processing module and a second processing module, wherein the first processing module is used for reporting packet loss messages and generating inhibition messages for being issued to the second processing module according to the condition of receiving the packet loss messages. The second processing module is used for detecting the sending condition of data (such as a message to be sent) and generating a packet loss message according to the sending condition of the data.
It should be noted that, the network switch generally includes two chips, one chip is responsible for a process related to hardware (abbreviated as a hardware chip) and corresponds to the second processing module. The other chip is responsible for software-related processing (simply called a software chip) and corresponds to the first processing module.
Referring to fig. 12, the flow chart of a packet loss reporting method provided in the embodiment of the present application is shown. As shown in fig. 12, the packet loss reporting method includes S1201-S1205.
S1201: and the second processing module acquires the message to be sent.
The obtaining the message to be sent in the network switch means that the second processing module in the network switch obtains the message to be sent.
S1202: if the second processing module fails to forward the message to be transmitted and the second processing module comprises the inhibition message from the first processing module, the second processing module does not transmit the packet loss message to the first processing module.
In the related art, if the second processing module fails to forward the message to be sent, the second processing module actively reports that the network switch where the second processing module is located is in a packet loss state through the first processing module. In the foregoing, in order to avoid the first processing module reporting that the cpu performance of the network management system is more occupied. Based on the above, the first processing module only reports the packet loss message to the network management system once within the first preset time, i.e. the message for identifying that the network switch is in the packet loss state.
However, a period of time is required for the network switch to recover to normal, and in the period of time when the network switch is in the packet loss state, the second processing module can report the packet loss message through the first processing module continuously, so that the performance of the first processing module is occupied more. Based on the above, after the first processing module receives the packet loss message from the second processing module for the first time, a suppression message is generated, and the suppression message is issued to the second processing module, so that the second processing module is instructed by the suppression message to not send the packet loss message any more within the first preset time.
Therefore, if the second processing module fails to forward the message to be transmitted, and the second processing module includes the suppression message from the first processing module, it is indicated that the second processing module has reported the packet loss message through the first processing module, and at this time, the second processing module may not send the packet loss message to the first processing module any more, so as to avoid the first processing module from receiving more packet loss messages, and reduce the occupation of the performance of the first processing module.
S1203: if the second processing module fails to forward the message to be transmitted and the second processing module does not include the inhibition message, the second processing module generates a packet loss message and transmits the packet loss message to the first processing module.
If the second processing module fails to forward the message to be transmitted, and the second processing module does not include the suppression message, the second processing module is not affected by the suppression message any more, a packet loss message can be generated, and the generated packet loss message is transmitted to the first processing module.
S1204: if the first processing module determines that the packet loss message is not acquired for the first time within the first preset time, the packet loss message is not reported any more.
The first processing module generates the suppression message and sends the suppression message to the second processing module after the first packet loss message from the second processing module is acquired, so that the second processing module does not send the packet loss message to the first processing module within a first preset duration, but a period of time is required for the first processing module to generate and send the suppression message, and the first processing module may still receive the packet loss message sent from the second processing module within the period of time. Based on the above, the first processing module determines that the packet loss message is not acquired for the first time within the first preset time, and the first processing module does not report the packet loss message any more, so that the first processing module is equivalent to a second defense line, and the packet loss message is prevented from being reported to the network management system for a plurality of times within the first preset time, thereby reducing the occupation of the CPU performance of the network management system while not affecting the reporting of the packet loss state of the network switch.
S1205: if the first processing module determines that the packet loss message is acquired for the first time within the first preset time, reporting the packet loss message, generating a suppression message, and sending the suppression message to the second processing module.
If the first processing module determines that the packet loss message is acquired for the first time within the first preset time, the first processing module not only needs to report the packet loss message to the network management system, but also needs to generate a suppression message and send the suppression message to the second processing module, so that the second processing module does not send the packet loss message to the first processing module within the first preset time, and the occupation of the performance of the first processing module is reduced.
According to the technical scheme, the network switch comprises the first processing module and the second processing module, the network switch acquires and forwards the message to be sent through the second processing module, if the second processing module fails to forward the message to be sent, the message to be sent is not directly generated for reporting, instead, whether the second processing module comprises the inhibition message from the first processing module is determined, the inhibition message is used for indicating the second processing module not to send the message to be sent any more in the first preset time, and if the second processing module fails to send the message to be sent any more to the first processing module. If not, the second processing module sends the packet loss message to the first processing module, so that the packet loss message is reported to the network management system through the first processing module, and the searching efficiency and the accuracy of the network management system are improved in an active reporting mode. After the first processing module acquires the packet loss message from the second processing module, the network switch is in a packet loss state, the first processing module does not directly report the packet loss message any more, and determines whether the first processing module reports the packet loss message for the first time within a first preset duration, if so, the first processing module reports the packet loss message, generates a suppression message, and sends the suppression message to the second processing module. If not, the packet loss message of the identification network switch in the packet loss state is reported within the first preset time period, and in order to avoid the packet loss message being reported for multiple times, the first processing module does not report the packet loss message. Therefore, the occupation of the performance of the central processing unit of the network management system is reduced while the reporting network switch is in a packet loss state.
The first processing module and the second processing module may be two independent devices, for example, the second processing module is a forwarding device such as a network switch, and the first processing module is an intermediate device located between the forwarding device and the network management system, and the intermediate device is described first.
Referring to fig. 3, the flow chart of the packet loss reporting method provided in the embodiment of the present application is shown. For convenience of description, the following embodiments will be described by taking an execution body of the packet loss reporting method as a terminal device as an example. As shown in fig. 3, the packet loss reporting method includes S301-S303:
s301: and acquiring the packet loss message from the target forwarding equipment.
The plurality of forwarding devices form a forwarding network that can assist various devices in communicating data. The forwarding device may be a network switch or the like as described previously. The target forwarding device is one of a plurality of forwarding devices constituting a forwarding network. The packet loss message is used for identifying that the forwarding device sending the packet loss message is in a packet loss state, if the target forwarding device is in the packet loss state, the target forwarding device generates the packet loss message and sends the packet loss message, and the packet loss state refers to a state that the forwarding device fails to send the message.
It will be appreciated that in the specific embodiments of the present application, if related data such as user information is involved, when the above embodiments of the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data is required to comply with related laws and regulations and standards of related countries and regions.
According to the embodiment of the application, the forwarding equipment in the packet loss state is not passively determined through the detection message, and when one forwarding equipment fails to forward data, namely the forwarding equipment is in the packet loss state, the forwarding equipment actively reports the packet loss message. For example, after the forwarding devices such as the target forwarding device and the like fail, a packet loss message is generated and is actively reported to the network management system through the intermediate device, and the network management system can quickly determine which forwarding device in the network fails so as to alarm or isolate the corresponding forwarding device, so that the burden of the network management system is reduced, and the searching efficiency and the accuracy of the network management system are improved.
However, since a period of time is required for the forwarding device to recover to normal, the forwarding device is always in a packet loss state during the period of time, and the packet loss message is continuously reported to the network management system, so that the network management system occupies a large amount of CPU performance. For example, if the target forwarding device continuously receives a packet, it needs to forward the received multiple packets, but because the target forwarding device is in a packet loss state, it fails to forward data, so as to generate multiple packet loss packets for reporting, which results in the network management system receiving a large number of packet loss packets from the target forwarding device and occupying a large number of CPU performances thereof. For another example, if the target forwarding device sets a retransmission policy, that is, if the target forwarding device fails to retransmit a message, the message is continuously retransmitted, and if the target forwarding device is still in a packet loss state in the process of continuously retransmitting the message, the target forwarding device still generates a plurality of packet loss messages, which results in occupying a large amount of CPU performance of the network management system.
Based on this, the embodiment of the application provides an intermediate device, where the intermediate device is configured to execute the method for reporting the packet loss packet provided in the embodiment of the application, where the intermediate device is located between the target forwarding device and the network management system, that is, the target forwarding device sends the packet loss packet to the intermediate device, and the intermediate device determines whether to forward the intermediate device to the network management system. The intermediate device may be built into the target forwarding device (e.g., the first processing module located in the network switch as described above), or may be a device independent of the target forwarding device, which is not specifically limited in this application.
As a possible implementation manner, the sending of the packet loss message may be implemented by a mirror image, where the mirror image copies the message of the specified source to the destination port. The designated source is called a mirror source, such as an ingress port of a target forwarding device, the destination port is called an ingress port of an intermediate device, and the replicated message is called a mirror message, such as a failed-to-send message. The method can copy the original message by mirror image without affecting the normal processing of the original message by the target forwarding device, and send the original message to the terminal device through the observation port, thereby judging whether the service running in the network is normal.
S302: if the packet loss message of the packet loss message from the target forwarding device is not acquired for the first time within the first preset time, the packet loss message is not reported.
After obtaining the packet loss message, the intermediate device does not report the packet loss message from the target forwarding device directly, but determines whether the target forwarding device sends the packet loss message to the target forwarding device for the first time within a first preset time period, if not, the intermediate device reports that the target forwarding device is in the packet loss state within the first preset time period, and if not, the intermediate device does not report the packet loss message for avoiding reporting the packet loss state of the target forwarding device for multiple times. Therefore, the occupation of the CPU performance of the network management system is reduced while the reporting forwarding equipment is not affected to be in a packet loss state.
The length of the first preset duration is not particularly limited, and a person skilled in the art may set the length according to actual needs, for example, 5 minutes. The starting time of the first preset duration may be a time of first receiving the packet loss message from the target forwarding device.
The embodiment of the application does not specifically limit the correspondence between the intermediate device and the forwarding device. For example, the intermediate devices may have a one-to-one correspondence with the forwarding devices, i.e. one intermediate device receives only packet loss messages of one forwarding device. For another example, the intermediate device may have a one-to-many correspondence with a plurality of forwarding devices, that is, one intermediate device may receive packet loss packets from a plurality of forwarding devices, and it may be understood that, at this time, the forwarding device sends, while sending the packet loss packets to the intermediate device, a device identifier for identifying the forwarding device, so as to determine, by using the device identifier, from which forwarding device the received packet loss packet comes.
The embodiment of the application does not specifically limit the manner in which the intermediate device determines whether to acquire the packet loss message from the target forwarding device for the first time.
Mode one: the intermediate device may have a counting function, and may increase the count of the target forwarding device by 1 for each time of receiving the packet loss packet from the target forwarding device within the first preset duration, that is, increase the number of packet loss packets received from the target forwarding device by 1. And then determining whether to acquire the packet loss message from the target forwarding device for the first time within a first preset time period based on the count for the target forwarding device.
Mode two: the target forwarding device may have a counting function, where the count of packet loss messages is increased by 1 every time the packet loss messages are sent to the intermediate device within a first preset duration. When the intermediate device wants to determine whether to acquire the packet loss message from the target forwarding device for the first time within the first preset time period, the intermediate device can acquire the count from the target forwarding device, so as to determine whether to acquire the packet loss message from the target forwarding device for the first time within the first preset time period.
Mode three: the intermediate device may establish a correspondence between the device and time, and record, in the correspondence, a first target time corresponding to the device and the device, where the first target time is a time when a packet loss packet from the device is first received in a first preset duration.
After the packet loss message from the target forwarding device is acquired, determining a first target time corresponding to the target forwarding device according to the corresponding relation between the device and the time, if the first target time is not found, that is, the target forwarding device and the first target time corresponding to the target forwarding device are not recorded in the corresponding relation between the device and the time, that is, the target forwarding device does not send the packet loss message to the intermediate device, determining that the target forwarding device sends the packet loss message to the intermediate device for the first time within a first preset duration, and at this time, not only reporting the packet loss message of the target forwarding device to the network management system, but also increasing the corresponding relation between the target forwarding device and the first target time in the corresponding relation between the device and the time, wherein the first target time is the time when the intermediate device acquires the packet loss message from the target forwarding device.
After acquiring a packet loss message from the target forwarding device, determining a first target time corresponding to the target forwarding device according to the corresponding relationship between the device and the time. If the first target time is acquired, acquiring a second target time, wherein the second target time is the time when the packet loss message from the target forwarding equipment is acquired. Calculating a difference value between the first target time and the second target time, and if the difference value is smaller than or equal to a first preset time length, determining that the packet loss message from the target forwarding device is not acquired for the first time in the first preset time length if the packet loss message from the target forwarding device acquired at this time is not acquired for the first time in the first preset time length. If the difference is greater than the first preset duration, it is indicated that the packet loss message from the target forwarding device acquired this time is acquired for the first time in the second first preset duration, and it is determined that the packet loss message from the target forwarding device is acquired for the first time in the first preset duration, so that not only can the packet loss message of the target forwarding device be reported to the network management system, but also the time corresponding to the target forwarding device can be updated in the corresponding relationship between the device and the time, namely, the second target time is used as the first target time, and the updating of the corresponding relationship between the device and the time is realized.
Therefore, the time for acquiring the first packet loss message sent by each device in the first preset duration can be recorded by setting the corresponding relation between the device and the time, so that whether the packet loss message from the target forwarding device is received for the first time in the first preset duration is determined according to the corresponding relation between the device and the time, and the method is convenient and quick.
According to the technical scheme, the forwarding devices form a forwarding network, each forwarding device reports whether the forwarding device is in a packet loss state to the network management system through the intermediate device, so that the network management system detects and solves network faults and the like, for example, after the forwarding device fails to forward data, a packet loss message for identifying the forwarding device in the packet loss state is generated, and the forwarding device actively reports the packet loss message to the network management system through the intermediate device, so that the searching efficiency and the accuracy of the network management system are improved through an active reporting mode. Taking the target forwarding device as an example, after acquiring the packet loss message from the target forwarding device, the intermediate device indicates that the target forwarding device is in a packet loss state, and does not directly report the packet loss message from the target forwarding device, but determines whether the target forwarding device sends the packet loss message for the first time within a first preset time period, if not, indicates that the packet loss message from the target forwarding device is not acquired for the first time within the first preset time period, that is, the target forwarding device is in the packet loss state after having been reported within the first preset time period, and does not report the packet loss message from the target forwarding device in order to avoid reporting the packet loss state at the device for multiple times. Therefore, the occupation of the performance of the central processing unit of the network management system is reduced while the reporting forwarding equipment is not influenced to be in a packet loss state.
As a possible implementation manner, the network management system may not only pay attention to which device in the network has a fault, but also pay attention to the cause of the fault of the device, and based on this, the packet loss packet sent by the forwarding device, such as the target forwarding device, to the intermediate device may include the original packet of the packet loss, and even may also include the packet loss cause of the packet loss. The following description will be given in two cases.
It should be noted that, the original message herein refers to a message corresponding to the data that fails to be sent. For example, a video may be split into 10 packets for transmission, where the 9 th packet fails to be forwarded, i.e. lost, and the packet corresponding to the video is the original packet. It will be appreciated that the forwarding paths for 10 data packets are generally identical, and forwarding is implemented in a forwarding network in a similar fashion to the data flow.
First case: the packet loss message comprises an original message.
If the packet loss message includes the original message and does not include the packet loss reason, it is required to determine whether the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration, and whether the packet loss message from the target forwarding device belongs to the same data stream, so that the packet loss reason is determined based on the forwarding path of the data stream.
Specifically, a first packet loss message from the target forwarding device is acquired, the first packet loss message is a packet loss message from the target forwarding device acquired for the first time within a first preset duration, the packet loss message from the target forwarding device is determined to be acquired for the first time within the first preset duration, and the first packet loss message is reported. Acquiring a second packet loss message from the target forwarding device, wherein the second packet loss message is not the packet loss message from the target forwarding device acquired for the first time within the first preset time, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset time, judging whether an original message included in the first packet loss message and an original message of the second packet loss message are the same original message or not at the moment, if the original message is not the same original message, continuing to report the packet loss message, so that the network management system can determine the packet loss reason based on each forwarding path corresponding to each data stream forwarded by the target forwarding device. If the first packet loss message and the second packet loss message belong to the same data stream, and the second packet loss message is not reported any more because the first packet loss message corresponding to the data stream is already reported, so that the network management system can quickly determine which original packet is lost, at which position is lost, and the like, so that the next management action in real time, such as sending an alarm to obtain forwarding equipment corresponding to isolation, is performed.
Therefore, the intermediate device determines whether to report the packet loss message to the network management system by determining whether to receive the packet loss message from the same data stream of the same device for the first time within the first preset time length, so that the network management system is ensured to determine the packet loss reasons corresponding to the data streams respectively, and the number of the packet loss messages received by the network management system can be reduced.
The embodiment of the present application is not particularly limited to the manner of determining whether the same original message is determined, and those skilled in the art may determine the same original message according to actual needs.
For example, whether the packet is the same original packet may be determined according to the five-tuple, that is, the packet loss packet may include a five-tuple formed by the destination address, the source address, the protocol number, the source port number, and the destination port number. The destination address (such as DIP) is used to identify the receiving end of the original message, the source address (such as SIP) is used to identify the sending end of the original message, the PROTOCOL number (such as PROTOCOL) is used to identify the PROTOCOL used for data transmission, the source port number (such as L4 port) is used to identify the intermediate device, and the destination port number (such as L4 DPORT) is used to identify the forwarding device of the next hop.
If it is determined that the destination address included in the first packet loss message is the same as the destination address included in the second packet loss message, the source address included in the first packet loss message is the same as the source address included in the second packet loss message, the protocol number included in the first packet loss message is the same as the protocol number included in the second packet loss message, the source port number included in the first packet loss message and the source port number included in the second packet loss message are the same, and the destination port number included in the first packet loss message is the same as the destination port number included in the second packet loss message, then it is determined that the original message included in the first packet loss message and the original message included in the second packet loss message are the same original message.
Second case: the packet loss message comprises an original message and a packet loss reason.
If the packet loss message includes the original message and the packet loss reason, the CPU occupation of the network management system can be reduced, for example, some packet loss reasons can be directly adopted by the network management system, so that the subsequent processing is directly performed based on the packet loss reason, and the CPU occupation is reduced. The following describes the determination of the cause of packet loss, respectively.
(1) If the forwarding device determines that the routing forwarding table used for determining the next-hop forwarding device does not exist, the next-hop forwarding device cannot be determined, so that data transmission fails, and at the moment, the packet loss reason is that the routing forwarding table is missing.
(2) If the forwarding device determines the next hop forwarding device according to the routing forwarding table, the next hop forwarding device cannot be found, so that data transmission fails, and at the moment, the packet loss reason is the failure of the next hop forwarding device.
(3) If the forwarding device finds the next hop forwarding device but the data still fails to be sent, if the message to be sent cannot be sent from the forwarding device, the packet loss reason is the physical exit fault of the current forwarding device.
(4) If the bandwidth does not support sending data such as the first message to be sent, the packet loss reason is that the bandwidth limit is exceeded. The first message to be sent is data which is acquired by the forwarding device and is ready to be sent to the next hop forwarding device.
(5) If the buffer memory does not support the transmission of data such as the first message to be transmitted, the reason for the transmission failure is that the buffer memory limit is exceeded.
It should be noted that, if the reason for packet loss is a failure of the next-hop forwarding device, it may be that the next-hop forwarding device fails, or the routing forwarding table of the previous-hop forwarding device is wrong, which requires the network management system to determine according to the forwarding path of the data flow.
As can be seen from the foregoing, the embodiments of the present application do not specifically limit the relationship between the forwarding device and the intermediate device, and are described below in two cases.
First kind: the forwarding device and the intermediate device are two independent devices.
Referring to fig. 4, the diagram is a signaling interaction diagram of a packet loss reporting method provided in the embodiment of the present application. The packet loss reporting system comprises a forwarding device and an intermediate device, wherein the forwarding device is used for forwarding data, and the intermediate device is used for helping the forwarding device to report packet loss messages.
S401: the forwarding device obtains a first message to be sent.
The first message to be sent is data which is acquired by the forwarding device and is ready to be sent to the next hop forwarding device.
S402: if the forwarding device determines that the first message to be sent fails to be sent, a first packet loss message is generated.
S403: the forwarding device sends a first packet loss message to the intermediate device.
S404: and the intermediate equipment determines that the packet loss message from the forwarding equipment is acquired for the first time within a first preset time period, and then sends the first packet loss message to the network management system.
The starting time of the first preset duration may be a time when the first message to be sent is acquired for the first time.
S405: the forwarding equipment acquires a second message to be sent.
Wherein the first message to be sent and the second message to be sent are different messages. The second message to be sent is the data acquired by the forwarding device and ready to be sent to the next hop forwarding device.
As a possible implementation manner, the first message to be sent and the second message to be sent correspond to the same original message. Continuing taking the example that a video can be split into 10 data packets for transmission, a first data packet can correspond to a first message to be transmitted, and a second data packet can correspond to a second message to be transmitted.
As a possible implementation manner, if the forwarding device determines that the second message to be sent fails to send within the first preset duration, the two cases are respectively described below.
Case one:
s406: if the forwarding device determines that the second message to be sent fails to be sent within the first preset time, a second packet loss message is generated.
S407: and the forwarding equipment sends a second packet loss message to the intermediate equipment.
S408: and if the intermediate equipment determines that the packet loss message from the forwarding equipment is not acquired for the first time within the first preset time, the intermediate equipment does not send a second packet loss message to the network management system.
And a second case:
s409: if the forwarding device determines that the second message to be sent fails to be sent within the first preset time, the packet loss message is not reported any more.
For example, the forwarding device does not generate the second packet loss message any more, so that no packet loss message can be reported to the intermediate device. For another example, the forwarding device may generate the second packet loss packet, but no longer send the second packet loss packet to the intermediate device, so as to reduce the CPU occupation of the intermediate device.
Second kind: the forwarding device is built in the same device as the intermediate device.
For convenience of subsequent explanation, the device where the forwarding device and the intermediate device are located includes a first processing module and a second processing module, where the first processing module is configured to report a packet loss packet, as in the foregoing intermediate device. The second processing module is configured to detect a data transmission condition, and generate a packet loss packet according to the data transmission condition, as in the forwarding device described above.
Specifically, the first processing module acquires a packet loss message from the second processing module. If the first processing module determines that the packet loss message from the second processing module is not acquired for the first time within the first preset time, the packet loss message is not reported any more.
It should be noted that, the processing efficiency of the first processing module is smaller than that of the second processing module, for example, the first processing module is used for processing a chip related to software in the device, and the second processing module is used for processing a chip related to hardware in the device, and generally, the processing efficiency of the first processing module to hardware is greater than that of the second processing module to software.
Therefore, the first processing module reports, and the second processing module detects packet loss, so that the CPU performance consumption of the first processing module can be reduced, the software resource occupation is small, the software is easy to upgrade, and some custom functions and the like are realized. In addition, for the equipment forming the forwarding network, as the equipment comprises the first processing module and the second processing module, the packet loss message is sent in the equipment, so that bandwidth resources are not occupied, and if the packet loss message from the second processing module is not acquired for the first time within the first preset duration, the packet loss message is not reported any more, and the occupation of the bandwidth resources is further reduced.
As a possible implementation manner, the first processing module may determine whether the packet loss message is a first received message, and may also determine the packet loss message at the second processing module, where if the second processing module determines that the packet loss message is not generated for the first time within the first preset duration, the packet loss message is not sent to the first processing module any more. Thereby reducing the CPU footprint of the first processing module.
The method for determining whether the packet loss message is generated for the first time by the second processing module is not particularly limited, and the method can be realized not only by adopting the modes of timing, establishing the corresponding relation between equipment and time and the like, but also by adopting a message inhibition mode.
Specifically, after the first processing module obtains the first packet loss message from the second processing module, that is, the packet loss message from the second processing module is obtained for the first time within the first preset duration, the first processing module may construct a suppression message according to the first packet loss message, where the suppression message is used to instruct the second processing module to no longer send the packet loss message within the first preset duration. The first processing module sends a suppression message to the second processing module, so that the second processing module does not send a packet loss message to the first processing module any more in a first preset duration according to the suppression message.
Therefore, by suppressing the packet, the second processing module can not report the packet loss packet within the first preset duration, so that the number of the packet loss packets received by the first processing module is reduced (it is to be noted that, because the processing efficiency of the first processing module is smaller than that of the second processing module, the first processing module issues the suppression packet with a time difference, so that before the second processing module receives the suppression packet, the second processing module can report a small number of packet loss packets to the first processing module), thereby reducing the CPU performance consumption of the first processing module, and facilitating software upgrading while occupying less software resources, and realizing some custom functions and the like.
As a possible implementation manner, if the packet loss reason needs to be determined according to the data flow, a suppression packet may be constructed according to an original packet included in the first packet loss packet, so that the second processing module does not send the packet loss packet including the original packet within the first preset duration.
Therefore, after the data from the same original message is not sent for the first time, the packet loss message of the data stream is not reported any more, so that the network management system can determine the packet loss reason according to the packet loss message received for the first time, the packet loss message from the same data stream can not be received within the first preset time, the CPU occupation of the network management system is reduced, and the bandwidth occupation in a forwarding network is reduced.
As can be seen from the foregoing, since the processing efficiency of the first processing module is smaller than that of the second processing module, there is a time difference between the first processing module and the sending of the quench message, so that the second processing module may report a small amount of packet loss message to the first processing module before the second processing module receives the quench message. However, since the time that the second processing module is in the packet loss state may be relatively short, the second processing module may not be in the packet loss state before the first processing module issues the quench message, and at this time, the second processing module is not suitable for issuing the quench message.
Based on this, if the first processing module acquires the second packet loss message before issuing the suppression message, that is, does not acquire the packet loss message from the second processing module for the first time within the first preset duration, the first processing module may acquire the number of packet loss messages from the second processing module within the first preset duration, for example, the number is acquired through a counting function of the first processing module or the number is acquired through a counting function of the second processing module.
If the number is greater than the preset threshold, the second processing module is indicated to send packet loss messages to the first processing module, if the number of the packet loss messages is continuously increased, and the second processing module is still in a packet loss state at this time, the first processing module not only can determine that the packet loss messages from the second processing module are not acquired for the first time within the first preset duration, but also can not send the packet loss messages to the network management system any more, and send the inhibition messages to the second processing module.
If the number is smaller than or equal to the preset threshold, it indicates that the second processing module does not send the packet loss message to the first processing module all the time within the first preset duration, if the number of the packet loss messages does not continuously increase, the second processing module is no longer in the packet loss state, that is, before the first processing module issues the suppression message, the second processing module is no longer in the packet loss state, and the first processing module may no longer send the suppression message to the second processing module.
Therefore, by judging whether the second processing module returns to normal or not before issuing the suppression message, the accuracy of issuing the suppression message to the second processing module can be improved, and the suppression message is prevented from being issued to the second processing module which returns to normal by mistake.
As a possible implementation manner, after the quench message is issued, the second processing module may be restored to be normal, that is, not in a packet loss state any more. Based on the above, the first processing module may send a status check request to the second processing module every a second preset time period, where the status check request is used to instruct the second processing module to send the status of the second processing module to the first processing module, and if it is determined that the second processing module is not in the packet loss status, the first processing module may send a release packet to the second processing module, where the release packet is used to instruct the second processing module to continuously send the packet loss packet.
The size of the second preset duration is not particularly limited, and a person skilled in the art may set the second preset duration according to actual needs, for example, the second preset duration may be 1 minute, etc.
Therefore, after the first processing module issues the inhibition message to the second processing module, the first processing module can periodically check whether the second processing module is no longer in a packet loss state, if so, issue a release message so that the second processing module can continue to send the packet loss message.
In order to facilitate further understanding of the technical solution provided by the embodiments of the present application, the execution body of the packet loss reporting method provided by the embodiments of the present application is taken as a network switch, and the network switch includes a first processing module and a second processing module as an example, and an overall exemplary introduction is performed on an application of the packet loss reporting method in an autopilot scenario.
With research and progress of artificial intelligence technology, research and application of artificial intelligence technology are being developed in various fields, such as common smart home, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned, autopilot, unmanned, robotic, smart medical, smart customer service, car networking, autopilot, smart transportation, etc., and it is believed that with the development of technology, artificial intelligence technology will be applied in more fields and will be of increasing importance.
Artificial intelligence (Artificial Intelligence, AI) is the theory, method, technique and application system that uses a digital computer or a machine controlled by a digital computer to simulate, extend and extend human intelligence, sense the environment, acquire knowledge and use the knowledge to obtain optimal results. In other words, artificial intelligence is an integrated technology of computer science that attempts to understand the essence of intelligence and to produce a new intelligent machine that can react in a similar way to human intelligence. Artificial intelligence, i.e. research on design principles and implementation methods of various intelligent machines, enables the machines to have functions of sensing, reasoning and decision.
The artificial intelligence technology is a comprehensive subject, and relates to the technology with wide fields, namely the technology with a hardware level and the technology with a software level. Artificial intelligence infrastructure technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technologies, operation/interaction systems, mechatronics, and the like. The artificial intelligence software technology mainly comprises a computer vision technology, a voice processing technology, a natural language processing technology, machine learning/deep learning, automatic driving, intelligent traffic and other directions.
In the embodiments of the present application, the artificial intelligence technology mainly includes the above-mentioned automatic driving direction. The automatic driving technology generally comprises high-precision map, environment perception, behavior decision, path planning, motion control and other technologies, and has wide application prospect. For example, a plurality of vehicles and cloud servers constitute a cloud internet of things.
The Cloud internet of things (Cloud IOT) aims to connect information perceived by sensing equipment in the traditional internet of things and accepted instructions into the internet, networking is truly achieved, mass data storage and operation are achieved through a Cloud computing technology, the characteristics of the internet of things are that objects are connected with each other, the current running state of each object is perceived in real time, a large amount of data information can be generated in the process, how to collect the information, how to screen useful information in the mass information to make decision support for subsequent development, and the Cloud of the internet of things based on Cloud computing and Cloud storage technology becomes a key problem affecting the development of the internet of things.
The internet of things (The Internet of Things, IOT for short) refers to collecting any object or process needing to be checked, connected and interacted in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners, and the like, collecting various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology, positions and the like, accessing through various possible networks, realizing ubiquitous connection of the object and people, and realizing intelligent sensing, identification and management of the object and the process. The internet of things is an information carrier based on the internet, a traditional telecommunication network and the like, and enables all common physical objects which can be independently addressed to form an interconnection network.
In the embodiment of the application, the collected environmental information can be uploaded to the cloud server for behavior decision or path planning, and the data can be transmitted between the cloud server and the vehicle through a forwarding network formed by a plurality of network switches.
The network switch comprises a first processing module and a second processing module, wherein the first processing module is used for reporting packet loss messages, and the intermediate equipment is described above. The second processing module is configured to detect a data transmission condition, and generate a packet loss packet according to the data transmission condition, as in the forwarding device described above. In addition, the network switch generally includes two chips, one chip is responsible for processing related to hardware (abbreviated as a hardware chip) and one chip is responsible for processing related to software (abbreviated as a software chip), and the hardware chip may correspond to the second processing module, and the software chip may correspond to the first processing module.
Referring to fig. 5, the diagram is an application scenario schematic diagram of a packet loss reporting method provided in the embodiment of the present application. In fig. 5, a network switch 510, a parameter conversion module 520, a parameter configuration module 530, a network management system 540, and a presentation module 550 are included, and are described below.
The user may configure the network switch through the parameter configuration module 530, may configure the network switch locally or remotely, etc., which is not specifically limited in this application. By configuring the network switch, the network switch is provided with a plurality of custom functions, and the network switch is provided with the packet loss reporting method provided by the embodiment of the application later as an example, so that the network switch has wide compatibility and expandability.
After the user completes the setting of the network switch through the parameter configuration module 530, the parameters set by the user may be converted through the parameter conversion module 520 so that the second processing module 511 may be used. Alternatively, some of the functional configurations displayed by the parameter configuration module 530 are convenient for the user to understand, and after the user configuration is completed, the parameters configured by the user may be converted into parameters that can be understood by the network switch, or the hardware chip, i.e. the second processing module 511.
The network switch 510 includes a first processing module 512 and a second processing module 511, where the second processing module 511, after receiving the parameters converted by the parameter conversion module 520, can generate a first packet loss packet after failure in sending a first packet to be sent, where the first packet loss packet not only can be used to identify that the network switch 510 is in a packet loss state, but also can include an equipment IP (i.e. an equipment identifier), an original packet and a packet loss reason, so that a network management system can quickly determine which network switch fails, which packet has a packet loss, and thus, the search efficiency and accuracy are improved.
The second processing module 511 sends a first packet loss message to the first processing module 512. It can be appreciated that, because the first processing module 512 only acquires the packet from the second processing module 511, the first processing module 511 can determine that the received packet loss packets are all from the network switch 510, and after the first processing module 512 determines that the first packet loss packet is the packet loss packet acquired for the first time, the first packet loss packet can be reported to the network management system 540 and the display module 550, so that the network management system 540 can quickly determine which network switch fails, which packet has a packet loss, and the network switch 510 is displayed through the display module 550, and it can be appreciated that the display module 550 can be located in the network management system 540.
In addition, the first processing module 512 may further construct a suppression message according to the original message included in the first packet loss message, and send the suppression message to the second processing module 511. The second processing module 511 generates a second packet loss packet after failure to send the second packet to be sent, where the second packet loss packet may not only be used to identify that the network switch 510 is in a packet loss state, but also include an equipment IP, an original packet, and a packet loss reason. The second processing module 511 determines that the original packet included in the second packet loss packet and the original packet included in the first packet loss packet are the same original packet, and the time difference between the first packet loss packet and the second packet loss packet is less than the first preset duration, so that the second processing module 511 does not report the second packet loss packet to the first processing module 512 based on the suppression packet.
The first processing module 512 transmits a status check request to the second processing module 511 every second preset time period so as to determine the status of the second processing module 511 by the status check request; if it is determined that the second processing module 511 is not in the packet loss state, a release message is sent to the second processing module 511, so that the second processing module 511 can continue to send the packet loss message through the release message.
The first processing module and the second processing module are respectively described below.
Referring to fig. 6, a schematic process flow diagram of a first processing module according to an embodiment of the present application is shown.
S601: and acquiring the packet loss message from the second processing module.
The packet loss message encapsulates the device IP, the original message and the reason of the packet loss in a Mirror On Drop (MOD) manner, and the outer layer messages L4SPORT and L4DPORT, SIP, DIP, PROTOCOL of the packet loss message are a fixed set of parameters, so that the first processing module can determine whether the same original message is obtained. Taking the user datagram protocol (UDP: user Datagram Protocol) as an example, the original message and the reason for the packet loss may be encapsulated in the data area of the UDP message.
S602: and analyzing the packet loss message.
The first processing module analyzes the UDP inner layer data area, extracts the original message and the packet loss reason, and judges whether the packet loss messages are from the same data stream or not through the original message contained in the packet loss messages.
S603: judging whether the packet loss message from the target forwarding device is acquired for the first time within a first preset time period, if so, executing S604; if not, S606 is performed.
S604: and creating a corresponding relation and a suppression message, and sending the suppression message to the second processing module.
Since it is to determine whether the packet loss messages come from the same data stream and it can be determined that all the packet loss messages come from the same device, the corresponding relationship may be a corresponding relationship between an original message and time, that is, after the packet loss message including the original message is acquired for the first time within the first preset duration, the corresponding relationship is established between the original message and the acquisition time.
The suppression message is used for indicating the second processing module not to send the packet loss message comprising the original message any more in the first preset time.
S605: and sending a packet loss message to a network management system and a display module.
The first processing module reports packet loss messages to the network management system, so that the network management system can quickly determine which network switch fails, which message loses packets and the like, and the display module displays which network switch fails and the like.
S606: and acquiring the number of packet loss messages comprising the original message.
Even if the first processing module receives the packet loss message including the original message for the first time, the first processing module issues the suppression message for the original message to the second processing module, and because the processing efficiency of the first processing module is different from that of the second processing module, before the second processing module receives the suppression message, the second processing module also reports the packet loss message to the first processing module.
The second processing module may also perform statistics on the original packets, that is, in a first preset time, perform statistics on packet loss packets configured for each original packet, for example, packet loss packets including the original packet a are sent 10 times, packet loss packets including the original packet B are sent 3 times, and so on.
The first processing module may obtain, from the second processing module, the number of packet loss messages including the original message.
S607: judging whether the number is larger than a preset threshold, if so, executing S608; if not, S609 is performed.
S608: and no packet loss message is reported.
If the number is greater than the preset threshold, it indicates that the second processing module is still in the packet loss state, and since the second processing module is in the packet loss state after being reported within the first preset duration, in order to avoid reporting the same information for multiple times, the packet loss message may not be reported any more.
S609: and sending a release message to the network management system and the display module.
In this embodiment of the present application, the release packet may be used not only to instruct the second processing module to continue sending the packet loss packet, but also to inform the network management system and the display module that the network switch is no longer in the packet loss state.
If the number is smaller than or equal to the preset threshold value, the second processing module is not in the packet loss state any more, and a release message can be sent to the network management system and the display module, so that the network management system can determine that the network switch is recovered to be normal, and the display module displays that the network switch is recovered to be normal and the like.
Wherein, the UDP data area (storing the original message and the lost packet reason) of the message is unchanged. According to the configured network management system IP and port, the MOD message IP header DIP and the destination port number are re-packaged, the SIP area fills the IP address of the network switch, and then the MOD package format message is sent out. The network management system can directly confirm which network switch the original message loses packets on according to the SIP (which can uniquely identify the network switch) and UDP data area (including the original message and the reason for losing packets) contents of the MOD message.
Referring to fig. 7, a schematic process flow diagram of a second processing module according to an embodiment of the present application is shown.
S701: and the input port of the second processing module acquires the message to be sent.
S702: judging whether the message to be sent is sent normally, if so, executing S703; if not, S704 is performed.
S703: and the message to be sent is sent through an outlet port of the second processing module.
S704: judging whether a message to be sent is sent for the first time within a first preset time period, if so, executing S705; if not, S707 is executed.
In this embodiment of the present application, determining whether a message to be sent in a first preset duration is first sent refers to whether a data stream in which the message to be sent is located in the first preset duration is first sent, and may be determined according to an original message corresponding to the message to be sent.
S705: and identifying the packet loss reason and constructing a packet loss message.
The packet loss message encapsulates the device IP, the original message and the reason for packet loss in an MOD mode, and an outer layer message L4 port and L4DPORT, SIP, DIP, PROTOCOL of the packet loss message are a fixed set of parameters, so that the first processing module determines whether the same original message is used.
S706: and sending the packet loss message to the first processing module.
S707: and no more reporting packet loss messages and recording the number of the packet loss messages.
The packet loss message is generated according to the equipment IP, the original message and the packet loss reason.
Therefore, the packet loss reporting method provided by the embodiment of the application has the following advantages:
(1) The sensitivity is high: no matter the second-level packet loss or the microsecond instant packet loss, the detection is not missed, the consumed software and hardware resources are very few, and the same packet loss message is not reported repeatedly.
(2) The deployment is simple: only the network switch side is required to deploy this software program. The network management system can realize accurate fault positioning only by analyzing a small amount of MOD messages reported by packet loss.
The application also provides a network switch aiming at the packet loss reporting method, wherein the network switch comprises a first processing module and a second processing module;
The second processing module is used for acquiring a message to be sent;
the second processing module is further configured to, if forwarding the message to be sent fails and includes a suppression message from the first processing module, not send a packet loss message to the first processing module, where the suppression message is used to instruct the second processing module not to send the packet loss message any more within a first preset duration, and the packet loss message is used to identify that the network switch is in a packet loss state;
the second processing module is further configured to generate the packet loss message if forwarding the message to be sent fails and the suppression message is not included, and send the packet loss message to the first processing module;
the first processing module is configured to, if it is determined that the packet loss message is not acquired for the first time within the first preset duration, not report the packet loss message;
the first processing module is further configured to report the packet loss message if it is determined that the packet loss message is acquired for the first time within the first preset duration, generate the suppression message, and send the suppression message to the second processing module.
According to the technical scheme, the network switch comprises the first processing module and the second processing module, the network switch acquires and forwards the message to be sent through the second processing module, if the second processing module fails to forward the message to be sent, the message to be sent is not directly generated for reporting, instead, whether the second processing module comprises the inhibition message from the first processing module is determined, the inhibition message is used for indicating the second processing module not to send the message to be sent any more in the first preset time, and if the second processing module fails to send the message to be sent any more to the first processing module. If not, the second processing module sends the packet loss message to the first processing module, so that the packet loss message is reported to the network management system through the first processing module, and the searching efficiency and the accuracy of the network management system are improved in an active reporting mode. After the first processing module acquires the packet loss message from the second processing module, the network switch is in a packet loss state, the first processing module does not directly report the packet loss message any more, and determines whether the first processing module reports the packet loss message for the first time within a first preset duration, if so, the first processing module reports the packet loss message, generates a suppression message, and sends the suppression message to the second processing module. If not, the packet loss message of the identification network switch in the packet loss state is reported within the first preset time period, and in order to avoid the packet loss message being reported for multiple times, the first processing module does not report the packet loss message. Therefore, the occupation of the performance of the central processing unit of the network management system is reduced while the reporting network switch is in a packet loss state.
The application also provides a corresponding packet loss reporting device aiming at the packet loss reporting method, so that the packet loss reporting method is practically applied and realized.
Referring to fig. 8, the structure diagram of a packet loss reporting device provided in the embodiment of the present application is shown. As shown in fig. 8, the packet loss reporting apparatus 800 includes: an acquisition unit 801 and a first blocking unit 802;
the acquiring unit 801 is configured to acquire a packet loss packet from a target forwarding device, where the packet loss packet is used to identify that the target forwarding device is in a packet loss state;
the first blocking unit 802 is configured to, if it is determined that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration, not report the packet loss message.
According to the technical scheme, the forwarding devices form a forwarding network, each forwarding device reports whether the forwarding device is in a packet loss state to the network management system through the intermediate device, so that the network management system detects and solves network faults and the like, for example, after the forwarding device fails to forward data, a packet loss message for identifying the forwarding device in the packet loss state is generated, and the forwarding device actively reports the packet loss message to the network management system through the intermediate device, so that the searching efficiency and the accuracy of the network management system are improved through an active reporting mode. Taking the target forwarding device as an example, after acquiring the packet loss message from the target forwarding device, the intermediate device indicates that the target forwarding device is in a packet loss state, and does not directly report the packet loss message from the target forwarding device, but determines whether the target forwarding device sends the packet loss message for the first time within a first preset time period, if not, indicates that the packet loss message from the target forwarding device is not acquired for the first time within the first preset time period, that is, the target forwarding device is in the packet loss state after having been reported within the first preset time period, and does not report the packet loss message from the target forwarding device in order to avoid reporting the packet loss state at the device for multiple times. Therefore, the occupation of the performance of the central processing unit of the network management system is reduced while the reporting forwarding equipment is not influenced to be in a packet loss state.
As a possible implementation manner, the packet loss packet includes an original packet of a packet loss, and the first blocking unit 802 is specifically configured to:
if it is determined that the packet loss message from the target forwarding device is not acquired for the first time within the first preset time, and the original message included in the first packet loss message and the original message included in the second packet loss message are the same original message, the packet loss message is not reported any more, the first packet loss message is the packet loss message from the target forwarding device acquired for the first time within the first preset time, and the second packet loss message is the packet loss message from the target forwarding device not acquired for the first time within the first preset time.
As a possible implementation manner, the packet loss packet includes a destination address, a source address, a protocol number, a source port number, and a destination port number, and the packet loss reporting apparatus 800 further includes: and the determining unit is used for determining that the original message included in the first packet loss message and the original message included in the second packet loss message are the same original message if the destination address included in the first packet loss message is the same as the destination address included in the second packet loss message, the source address included in the first packet loss message is the same as the source address included in the second packet loss message, the protocol number included in the first packet loss message is the same as the protocol number included in the second packet loss message, the source port number included in the first packet loss message is the same as the source port number included in the second packet loss message, and the destination port number included in the first packet loss message is the same as the destination port number included in the second packet loss message.
As a possible implementation manner, the target forwarding device includes a first processing module and a second processing module, where a processing efficiency of the first processing module is smaller than a processing efficiency of the second processing module, the packet loss reporting device 800 is a first processing module, and the acquiring unit 801 is specifically configured to acquire a packet loss packet from the second processing module;
the first blocking unit 802 is specifically configured to, if the first processing module determines that the packet loss message from the second processing module is not acquired for the first time within the first preset duration, not report the packet loss message.
As a possible implementation manner, the packet loss reporting apparatus 800 further includes an obtaining unit, a constructing unit, and a sending unit;
the acquiring unit is configured to acquire a first packet loss packet from the second processing module, where the first packet loss packet is a packet loss packet from the second processing module acquired for the first time within the first preset duration;
the construction unit is configured to construct a suppression message according to the first packet loss message, where the suppression message is configured to instruct the second processing module to not send the packet loss message any more within the first preset duration;
The sending unit is configured to send the suppression packet to the second processing module.
As a possible implementation manner, the packet loss message includes an original packet of a packet loss, and the construction unit is specifically configured to construct a suppression message according to the original packet included in the first packet loss message, where the suppression message is used to instruct the second processing module not to send the packet loss message including the original packet any more within the first preset duration.
As a possible implementation manner, before the sending the quench packet to the second processing module, the obtaining unit is configured to:
acquiring a second packet loss message, wherein the second packet loss message is a packet loss message from the second processing module, which is not acquired for the first time within the first preset duration;
acquiring the number of packet loss messages from the second processing module within the first preset time length;
the sending unit is configured to send the suppression packet to the second processing module by using the first processing module if the number is greater than a preset threshold.
As a possible implementation manner, after sending the suppression packet to the second processing module, the packet loss reporting apparatus 800 further includes a checking unit, configured to:
Sending a state check request to the second processing module at intervals of a second preset time length, wherein the state check request is used for indicating the second processing module to send the state of the second processing module to the first processing module;
and if the second processing module is not in the packet loss state, sending a release message to the second processing module, wherein the release message is used for indicating the second processing module to continue sending the packet loss message.
As a possible implementation manner, the packet loss reporting apparatus 800 further includes an obtaining unit and a matching unit;
the acquisition unit is used for acquiring the corresponding relation between equipment and time;
the inspection unit is used for:
if the target forwarding device is not found in the corresponding relationship between the device and the time, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration, taking the time of the packet loss message from the target forwarding device as a first target time, and adding the corresponding relationship between the target forwarding device and the first target time in the corresponding relationship between the device and the time;
if the first target time corresponding to the target forwarding device is acquired in the corresponding relation between the device and the time, acquiring a second target time, wherein the second target time is the time for acquiring the packet loss message from the target forwarding device, determining a difference value between the second target time and the first target time, and if the difference value is smaller than or equal to the first preset duration, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration; if the difference value is larger than the first preset duration, the second target time is taken as the first target time, and the corresponding relation between the equipment and the time is updated.
Referring to fig. 9, the structure diagram of a packet loss reporting device provided in the embodiment of the present application is shown. As shown in fig. 9, the packet loss reporting apparatus 900 includes: an acquisition unit 901 and a second blocking unit 902;
the acquiring unit 901 is configured to acquire a first message to be sent and a second message to be sent, where the first message to be sent and the second message to be sent are different messages;
the second blocking unit 902 is configured to, if it is determined that the first message to be sent and the second message to be sent fail to be sent within a first preset duration, not report a packet loss message, where the packet loss message is used to identify that a forwarding device that sends the packet loss message is in a packet loss state.
According to the technical scheme, the forwarding devices form a forwarding network, each forwarding device reports whether the forwarding device is in a packet loss state to the network management system through the intermediate device, so that the network management system detects and solves network faults and the like, for example, after the forwarding device fails to forward data, a packet loss message for identifying the forwarding device in the packet loss state is generated, and the forwarding device actively reports the packet loss message to the network management system through the intermediate device, so that the searching efficiency and the accuracy of the network management system are improved through an active reporting mode. Taking the target forwarding device as an example, after acquiring the packet loss message from the target forwarding device, the intermediate device indicates that the target forwarding device is in a packet loss state, and does not directly report the packet loss message from the target forwarding device, but determines whether the target forwarding device sends the packet loss message for the first time within a first preset time period, if not, indicates that the packet loss message from the target forwarding device is not acquired for the first time within the first preset time period, that is, the target forwarding device is in the packet loss state after having been reported within the first preset time period, and does not report the packet loss message from the target forwarding device in order to avoid reporting the packet loss state at the device for multiple times. Therefore, the occupation of the performance of the central processing unit of the network management system is reduced while the reporting forwarding equipment is not influenced to be in a packet loss state.
As a possible implementation manner, the packet loss reporting apparatus 900 further includes an identifying unit, configured to:
before the second message to be sent is acquired, if the first message to be sent fails to be sent, determining a packet loss reason, wherein the packet loss reason is the reason of the failure of the first message to be sent;
generating a first packet loss message according to the reason of the transmission failure, and reporting the first packet loss message;
if the routing forwarding table is not found, the packet loss reason is that the routing forwarding table is missing; if the routing forwarding table is searched and the next hop forwarding equipment cannot be searched, the packet loss reason is a next hop equipment fault; if the next hop forwarding device is found and the first message to be sent cannot be sent, the packet loss reason is a physical outlet fault of the current forwarding device; if the bandwidth does not support sending the first message to be sent, the packet loss reason is that the bandwidth limit is exceeded; if the buffer memory does not support the sending of the first message to be sent, the packet loss reason is that the buffer memory limit is exceeded.
The embodiment of the application further provides a computer device, which is the computer device described above, the computer device may be a server or a terminal device, the packet loss reporting device may be built in the server or the terminal device, and the computer device provided in the embodiment of the application will be described from the perspective of hardware materialization. Fig. 10 is a schematic structural diagram of a server, and fig. 11 is a schematic structural diagram of a terminal device.
Referring to fig. 10, which is a schematic diagram of a server structure provided in an embodiment of the present application, the server 1400 may vary considerably in configuration or performance, and may include one or more processors 1422, such as a central processing unit (Central Processing Units, CPU), a memory 1432, one or more application programs 1442, or a storage medium 1430 (e.g., one or more mass storage devices) for data 1444. Wherein the memory 1432 and storage medium 1430 can be transitory or persistent storage. The program stored in the storage medium 1430 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, a processor 1422 may be provided in communication with a storage medium 1430 to execute a series of instructions operations on the storage medium 1430 on the server 1400.
Server 1400 may also include one or more power supplies 1426, one or more wired or wireless network interfaces 1450, one or more input/output interfaces 1458, and/or one or more operating systems 1441, such as a Windows Server TM ,Mac OS X TM ,Unix TM , Linux TM ,FreeBSD TM Etc.
The steps performed by the server in the above embodiments may be based on the server structure shown in fig. 10.
Wherein, the CPU 1422 is configured to perform the following steps:
acquiring a packet loss message from a target forwarding device, wherein the packet loss message is used for identifying that the target forwarding device is in a packet loss state;
if the packet loss message from the target forwarding device is not acquired for the first time within the first preset time, the packet loss message is not reported.
Or, the CPU 1422 is configured to perform the steps of:
acquiring a first message to be sent and a second message to be sent, wherein the first message to be sent and the second message to be sent are different messages;
if it is determined that the first message to be sent and the second message to be sent fail to be sent within the first preset duration, no packet loss message is reported any more, and the packet loss message is used for identifying that forwarding equipment sending the packet loss message is in a packet loss state.
Or, the CPU 1422 includes a first processing module and a second processing module, where the second processing module obtains a message to be sent;
if the second processing module fails to forward the message to be sent, and the second processing module includes a suppression message from the first processing module, the second processing module does not send a packet loss message to the first processing module any more, the suppression message is used for indicating that the second processing module does not send the packet loss message any more within a first preset duration, and the packet loss message is used for identifying that the network switch is in a packet loss state;
If the second processing module fails to forward the message to be sent and the second processing module does not include the inhibition message, the second processing module generates the packet loss message and sends the packet loss message to the first processing module;
if the first processing module determines that the packet loss message is not acquired for the first time within the first preset time length, the packet loss message is not reported any more;
if the first processing module determines that the packet loss message is acquired for the first time within the first preset time, the packet loss message is reported, the suppression message is generated, and the suppression message is sent to the second processing module.
Optionally, the CPU 1422 may further execute method steps of any specific implementation manner of the packet loss reporting method in the embodiments of the present application.
Referring to fig. 11, the structure of a terminal device provided in an embodiment of the present application is shown schematically. Taking the example that the terminal device is a smart phone as an example, fig. 11 shows a block diagram of a part of the structure of the smart phone, where the smart phone includes: radio Frequency (RF) circuitry 1510, memory 1520, input unit 1530, display unit 1540, sensor 1550, audio circuitry 1560, wireless fidelity (WiFi) module 1570, processor 1580, power supply 1590, and the like. Those skilled in the art will appreciate that the smartphone structure shown in fig. 11 is not limiting of the smartphone and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
The following describes each component of the smart phone in detail with reference to fig. 11:
the RF circuit 1510 may be used for receiving and transmitting signals during a message or a call, and particularly, after receiving downlink information of a base station, the signal is processed by the processor 1580; in addition, the data of the design uplink is sent to the base station.
The memory 1520 may be used to store software programs and modules, and the processor 1580 implements various functional applications and data processing of the smartphone by running the software programs and modules stored in the memory 1520.
The input unit 1530 may be used to receive input numerical or character information and generate key signal inputs related to user settings and function control of the smart phone. In particular, the input unit 1530 may include a touch panel 1531 and other input devices 1532. The touch panel 1531, also referred to as a touch screen, may collect touch operations on or near the user and drive the corresponding connection device according to a predetermined program. The input unit 1530 may include other input devices 1532 in addition to the touch panel 1531. In particular, other input devices 1532 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, mouse, joystick, etc.
The display unit 1540 may be used to display information input by a user or information provided to the user and various menus of the smart phone. The display unit 1540 may include a display panel 1541, and optionally, the display panel 1541 may be configured in the form of a liquid crystal display (Liquid Crystal Display, LCD), an Organic Light-Emitting Diode (OLED), or the like.
The smartphone may also include at least one sensor 1550, such as a light sensor, a motion sensor, and other sensors. Other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc. that may also be configured with the smart phone are not described in detail herein.
Audio circuitry 1560, speaker 1561, and microphone 1562 may provide an audio interface between a user and a smart phone. The audio circuit 1560 may transmit the received electrical signal converted from audio data to the speaker 1561, and be converted into a sound signal by the speaker 1561 for output; on the other hand, the microphone 1562 converts the collected sound signals into electrical signals, which are received by the audio circuit 1560 for conversion into audio data, which is processed by the audio data output processor 1580 for transmission to, for example, another smart phone via the RF circuit 1510 or for output to the memory 1520 for further processing.
Processor 1580 is a control center of the smartphone, connects various parts of the entire smartphone with various interfaces and lines, performs various functions of the smartphone and processes data by running or executing software programs and/or modules stored in memory 1520, and invoking data stored in memory 1520. In the alternative, processor 1580 may include one or more processing units.
The smart phone also includes a power source 1590 (e.g., a battery) for powering the various components, which may preferably be logically connected to the processor 1580 via a power management system, such as to provide for managing charging, discharging, and power consumption.
Although not shown, the smart phone may further include a camera, a bluetooth module, etc., which will not be described herein.
In an embodiment of the present application, the memory 1520 included in the smart phone may store a computer program and transmit the computer program to the processor.
The processor 1580 included in the smart phone may execute the packet loss reporting method provided in the foregoing embodiment according to an instruction in the computer program.
The embodiment of the application also provides a computer readable storage medium for storing a computer program, where the computer program is configured to execute the packet loss reporting method provided in the above embodiment.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the packet loss reporting method provided in various optional implementations of the above aspect.
Those of ordinary skill in the art will appreciate that: all or part of the steps for implementing the above method embodiments may be implemented by hardware related to program instructions, where the above program may be stored in a computer readable storage medium, and when the program is executed, the program performs steps including the above method embodiments; and the aforementioned storage medium may be at least one of the following media: read-Only Memory (ROM), RAM, magnetic disk or optical disk, etc.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment is mainly described in a different point from other embodiments. In particular, for the apparatus and system embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, with reference to the description of the method embodiments in part. The apparatus and system embodiments described above are merely illustrative, in which elements illustrated as separate elements may or may not be physically separate, and elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
The foregoing is merely one specific embodiment of the present application, but the protection scope of the present application is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present application should be covered in the protection scope of the present application. Further combinations of the present application may be made to provide further implementations based on the implementations provided in the above aspects. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (26)

1. The method for reporting the packet loss is characterized by being applied to a network switch, wherein the network switch comprises a first processing module and a second processing module, and the method comprises the following steps:
the second processing module acquires a message to be sent;
if the second processing module fails to forward the message to be sent, and the second processing module includes a suppression message from the first processing module, the second processing module does not send a packet loss message to the first processing module any more, the suppression message is used for indicating that the second processing module does not send the packet loss message any more within a first preset duration, and the packet loss message is used for identifying that the network switch is in a packet loss state;
If the second processing module fails to forward the message to be sent and the second processing module does not include the inhibition message, the second processing module generates the packet loss message and sends the packet loss message to the first processing module;
if the first processing module determines that the packet loss message is not acquired for the first time within the first preset time period, the packet loss message is not reported any more, wherein determining whether to acquire the packet loss message for the first time within the first preset time period includes: acquiring the corresponding relation between equipment and time; if the second processing module is not found in the corresponding relation between the equipment and the time, determining that the packet loss message from the second processing module is not acquired for the first time within the first preset duration, taking the time of the packet loss message from the second processing module as a first target time, and adding the corresponding relation between the second processing module and the first target time in the corresponding relation between the equipment and the time; if the first target time corresponding to the second processing module is acquired in the corresponding relation between the equipment and the time, acquiring a second target time, wherein the second target time is the time for acquiring the packet loss message from the second processing module, determining a difference value between the second target time and the first target time, and if the difference value is smaller than or equal to the first preset duration, determining that the packet loss message from the second processing module is not acquired for the first time within the first preset duration; if the difference value is larger than the first preset duration, the second target time is taken as the first target time, and the corresponding relation between the equipment and the time is updated;
If the first processing module determines that the packet loss message is acquired for the first time within the first preset time, the packet loss message is reported, the suppression message is generated, and the suppression message is sent to the second processing module.
2. The method for reporting packet loss is characterized by comprising the following steps:
acquiring a first message to be sent;
if forwarding the first message to be sent fails, determining whether a suppression message is received, wherein the suppression message is used for indicating that the packet loss message is not sent any more in a first preset time period, and the suppression message is generated when the packet loss message is acquired for the first time in the first preset time period, and determining whether the packet loss message is acquired for the first time in the first preset time period includes: acquiring the corresponding relation between equipment and time; if no target forwarding device is found in the corresponding relationship between the device and the time, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration, taking the time of the packet loss message from the target forwarding device as a first target time, and adding the corresponding relationship between the target forwarding device and the first target time in the corresponding relationship between the device and the time; if the first target time corresponding to the target forwarding device is acquired in the corresponding relation between the device and the time, acquiring a second target time, wherein the second target time is the time for acquiring the packet loss message from the target forwarding device, determining a difference value between the second target time and the first target time, and if the difference value is smaller than or equal to the first preset duration, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration; if the difference value is larger than the first preset duration, the second target time is taken as the first target time, and the corresponding relation between the equipment and the time is updated;
If not, generating a packet loss message and reporting the packet loss message, wherein the packet loss message is used for identifying that forwarding equipment for sending the packet loss message is in a packet loss state;
if yes, the packet loss message is not reported.
3. The method of claim 2, wherein the first message to be sent and the second message to be sent are different messages before the second message to be sent is acquired, the method further comprising:
if the first message to be sent fails to be sent, determining a packet loss reason, wherein the packet loss reason is the reason of the failure of sending the first message to be sent;
generating a first packet loss message according to the reason of the transmission failure, and reporting the first packet loss message;
if the routing forwarding table is not found, the packet loss reason is that the routing forwarding table is missing; if the routing forwarding table is searched and the next hop forwarding equipment cannot be searched, the packet loss reason is the next hop equipment fault; if the next hop forwarding device is found and the first message to be sent cannot be sent, the packet loss reason is a physical outlet fault of the current forwarding device; if the bandwidth does not support sending the first message to be sent, the packet loss reason is that the bandwidth limit is exceeded; if the buffer memory does not support the sending of the first message to be sent, the packet loss reason is that the buffer memory limit is exceeded.
4. The method for reporting packet loss is characterized by comprising the following steps:
acquiring a packet loss message from a target forwarding device, wherein the packet loss message is used for identifying that the target forwarding device is in a packet loss state;
if the packet loss message from the target forwarding device is not acquired for the first time within the first preset time period, the packet loss message is not reported;
determining whether to acquire the packet loss message from the target forwarding device for the first time within a first preset duration includes:
acquiring the corresponding relation between equipment and time;
if the target forwarding device is not found in the corresponding relationship between the device and the time, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration, taking the time of the packet loss message from the target forwarding device as a first target time, and adding the corresponding relationship between the target forwarding device and the first target time in the corresponding relationship between the device and the time;
if the first target time corresponding to the target forwarding device is acquired in the corresponding relation between the device and the time, acquiring a second target time, wherein the second target time is the time for acquiring the packet loss message from the target forwarding device, determining a difference value between the second target time and the first target time, and if the difference value is smaller than or equal to the first preset duration, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration; if the difference value is larger than the first preset duration, the second target time is taken as the first target time, and the corresponding relation between the equipment and the time is updated.
5. The method of claim 4, wherein the packet loss message comprises an original packet of a packet loss, and if it is determined that the packet loss message from the target forwarding device is not acquired for the first time within a first preset duration, the packet loss message is not reported any more, including:
if it is determined that the packet loss message from the target forwarding device is not acquired for the first time within the first preset time, and the original message included in the first packet loss message and the original message included in the second packet loss message are the same original message, the packet loss message is not reported any more, the first packet loss message is the packet loss message from the target forwarding device acquired for the first time within the first preset time, and the second packet loss message is the packet loss message from the target forwarding device not acquired for the first time within the first preset time.
6. The method of claim 5, wherein the packet loss message includes a destination address, a source address, a protocol number, a source port number, and a destination port number, the method further comprising:
if it is determined that the destination address included in the first packet loss message is the same as the destination address included in the second packet loss message, the source address included in the first packet loss message is the same as the source address included in the second packet loss message, the protocol number included in the first packet loss message is the same as the protocol number included in the second packet loss message, the source port number included in the first packet loss message is the same as the source port number included in the second packet loss message, and the destination port number included in the first packet loss message is the same as the destination port number included in the second packet loss message, it is determined that the original message included in the first packet loss message and the original message included in the second packet loss message are the same original message.
7. The method according to claim 4, wherein the target forwarding device includes a first processing module and a second processing module, the processing efficiency of the first processing module is smaller than the processing efficiency of the second processing module, and the method is performed by the first processing module, and the acquiring the packet loss packet from the target forwarding device includes:
acquiring a packet loss message from the second processing module;
if it is determined that the packet loss message from the target forwarding device is not acquired for the first time within the first preset time, the packet loss message is not reported any more, including:
if the first processing module determines that the packet loss message from the second processing module is not acquired for the first time within the first preset time length, the packet loss message is not reported any more.
8. The method of claim 7, wherein the method further comprises:
acquiring a first packet loss message from the second processing module, wherein the first packet loss message is a packet loss message from the second processing module acquired for the first time within the first preset duration;
constructing a suppression message according to the first packet loss message, wherein the suppression message is used for indicating the second processing module not to send the packet loss message any more within the first preset duration;
And sending the inhibition message to the second processing module.
9. The method of claim 8, wherein the packet loss message includes an original packet of a packet loss, and the constructing the suppression message according to the first packet loss message includes:
constructing a suppression message according to an original message included in the first packet loss message, wherein the suppression message is used for indicating the second processing module not to send the packet loss message including the original message any more within the first preset duration.
10. The method of claim 8, wherein prior to said sending said quench message to said second processing module, said method further comprises:
acquiring a second packet loss message, wherein the second packet loss message is a packet loss message from the second processing module, which is not acquired for the first time within the first preset duration;
acquiring the number of packet loss messages from the second processing module within the first preset time length;
and if the number is greater than a preset threshold, the first processing module sends the inhibition message to the second processing module.
11. The method of claim 8, wherein after sending the quench message to the second processing module, the method further comprises:
Sending a state check request to the second processing module at intervals of a second preset time length, wherein the state check request is used for indicating the second processing module to send the state of the second processing module to the first processing module;
and if the second processing module is not in the packet loss state, sending a release message to the second processing module, wherein the release message is used for indicating the second processing module to continue sending the packet loss message.
12. A network switch, wherein the network switch comprises a first processing module and a second processing module;
the second processing module is used for acquiring a message to be sent;
the second processing module is further configured to, if forwarding the message to be sent fails and includes a suppression message from the first processing module, not send a packet loss message to the first processing module, where the suppression message is used to instruct the second processing module not to send the packet loss message any more within a first preset duration, and the packet loss message is used to identify that the network switch is in a packet loss state;
the second processing module is further configured to generate the packet loss message if forwarding the message to be sent fails and the suppression message is not included, and send the packet loss message to the first processing module;
The first processing module is configured to, if it is determined that the packet loss message is not acquired for the first time within the first preset duration, not report the packet loss message, where determining whether to acquire the packet loss message for the first time within the first preset duration includes: acquiring the corresponding relation between equipment and time; if the second processing module is not found in the corresponding relation between the equipment and the time, determining that the packet loss message from the second processing module is not acquired for the first time within the first preset duration, taking the time of the packet loss message from the second processing module as a first target time, and adding the corresponding relation between the second processing module and the first target time in the corresponding relation between the equipment and the time; if the first target time corresponding to the second processing module is acquired in the corresponding relation between the equipment and the time, acquiring a second target time, wherein the second target time is the time for acquiring the packet loss message from the second processing module, determining a difference value between the second target time and the first target time, and if the difference value is smaller than or equal to the first preset duration, determining that the packet loss message from the second processing module is not acquired for the first time within the first preset duration; if the difference value is larger than the first preset duration, the second target time is taken as the first target time, and the corresponding relation between the equipment and the time is updated;
The first processing module is further configured to report the packet loss message if it is determined that the packet loss message is acquired for the first time within the first preset duration, generate the suppression message, and send the suppression message to the second processing module.
13. A packet loss reporting device, characterized in that the device comprises: an acquisition unit and a first blocking unit;
the acquisition unit is used for acquiring a packet loss message from the target forwarding device, wherein the packet loss message is used for identifying that the target forwarding device is in a packet loss state;
the first blocking unit is configured to, if it is determined that the packet loss message from the target forwarding device is not acquired for the first time within a first preset duration, not report the packet loss message, where determining whether to acquire the packet loss message from the target forwarding device for the first time within the first preset duration includes: acquiring the corresponding relation between equipment and time; if the target forwarding device is not found in the corresponding relationship between the device and the time, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration, taking the time of the packet loss message from the target forwarding device as a first target time, and adding the corresponding relationship between the target forwarding device and the first target time in the corresponding relationship between the device and the time; if the first target time corresponding to the target forwarding device is acquired in the corresponding relation between the device and the time, acquiring a second target time, wherein the second target time is the time for acquiring the packet loss message from the target forwarding device, determining a difference value between the second target time and the first target time, and if the difference value is smaller than or equal to the first preset duration, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration; if the difference value is larger than the first preset duration, the second target time is taken as the first target time, and the corresponding relation between the equipment and the time is updated.
14. The packet loss reporting device of claim 13, wherein the packet loss packet includes an original packet of a lost packet, and the first blocking unit is specifically configured to:
if it is determined that the packet loss message from the target forwarding device is not acquired for the first time within the first preset time, and the original message included in the first packet loss message and the original message included in the second packet loss message are the same original message, the packet loss message is not reported any more, the first packet loss message is the packet loss message from the target forwarding device acquired for the first time within the first preset time, and the second packet loss message is the packet loss message from the target forwarding device not acquired for the first time within the first preset time.
15. The packet loss reporting apparatus of claim 14, wherein the packet loss packet includes a destination address, a source address, a protocol number, a source port number, and a destination port number, and further comprising a determining unit;
the determining unit is configured to determine that an original message included in the first packet loss message and an original message included in the second packet loss message are the same if it is determined that a destination address included in the first packet loss message is the same as a destination address included in the second packet loss message, a source address included in the first packet loss message is the same as a source address included in the second packet loss message, a protocol number included in the first packet loss message is the same as a protocol number included in the second packet loss message, a source port number included in the first packet loss message is the same as a source port number included in the second packet loss message, and a destination port number included in the first packet loss message is the same as a destination port number included in the second packet loss message.
16. The packet loss reporting device of claim 13, wherein the target forwarding device includes a first processing module and a second processing module, the processing efficiency of the first processing module is smaller than the processing efficiency of the second processing module, the packet loss reporting device is the first processing module, and the acquiring unit is specifically configured to acquire a packet loss packet from the second processing module;
the first blocking unit is specifically configured to, if the first processing module determines that the packet loss message from the second processing module is not acquired for the first time within the first preset duration, not report the packet loss message.
17. The packet loss reporting apparatus of claim 16, wherein the packet loss reporting apparatus further comprises a construction unit and a transmission unit;
the acquiring unit is further configured to acquire a first packet loss packet from the second processing module, where the first packet loss packet is a packet loss packet from the second processing module acquired for the first time within the first preset duration;
the construction unit is configured to construct a suppression message according to the first packet loss message, where the suppression message is configured to instruct the second processing module to not send the packet loss message any more within the first preset duration;
The sending unit is configured to send the suppression packet to the second processing module.
18. The packet loss reporting device of claim 17, wherein the packet loss packet includes an original packet of a packet loss, and the constructing unit is specifically configured to construct a suppression packet according to the original packet included in the first packet loss packet, where the suppression packet is used to instruct the second processing module to not send the packet loss packet including the original packet any more in the first preset duration.
19. The packet loss reporting apparatus of claim 17, wherein, before the sending the suppression packet to the second processing module, the obtaining unit is configured to:
acquiring a second packet loss message, wherein the second packet loss message is a packet loss message from the second processing module, which is not acquired for the first time within the first preset duration;
acquiring the number of packet loss messages from the second processing module within the first preset time length;
the sending unit is configured to send the suppression packet to the second processing module by using the first processing module if the number is greater than a preset threshold.
20. The packet loss reporting apparatus of claim 17, further comprising a checking unit after sending the suppression packet to the second processing module;
The checking unit is configured to send a status checking request to the second processing module every a second preset duration, where the status checking request is used to instruct the second processing module to send the status of the second processing module to the first processing module; and if the second processing module is not in the packet loss state, sending a release message to the second processing module, wherein the release message is used for indicating the second processing module to continue sending the packet loss message.
21. A packet loss reporting device, characterized in that the device comprises: an acquisition unit and a second blocking unit;
the acquisition unit is used for acquiring a first message to be sent;
the second blocking unit is configured to determine whether to receive a suppression packet if forwarding of a first packet to be sent fails, where the suppression packet is used to indicate that a packet loss packet is no longer sent within a first preset duration, and the suppression packet is a packet generated when the packet loss packet is acquired for the first time within the first preset duration, where determining whether to acquire the packet loss packet for the first time within the first preset duration includes: acquiring the corresponding relation between equipment and time; if no target forwarding device is found in the corresponding relationship between the device and the time, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration, taking the time of the packet loss message from the target forwarding device as a first target time, and adding the corresponding relationship between the target forwarding device and the first target time in the corresponding relationship between the device and the time; if the first target time corresponding to the target forwarding device is acquired in the corresponding relation between the device and the time, acquiring a second target time, wherein the second target time is the time for acquiring the packet loss message from the target forwarding device, determining a difference value between the second target time and the first target time, and if the difference value is smaller than or equal to the first preset duration, determining that the packet loss message from the target forwarding device is not acquired for the first time within the first preset duration; if the difference value is larger than the first preset duration, the second target time is taken as the first target time, and the corresponding relation between the equipment and the time is updated; if not, generating a packet loss message and reporting the packet loss message, wherein the packet loss message is used for identifying that forwarding equipment for sending the packet loss message is in a packet loss state; if yes, the packet loss message is not reported.
22. The packet loss reporting apparatus of claim 21, wherein the packet loss reporting apparatus further comprises an identification unit;
the identifying unit is configured to determine a packet loss reason if the first message to be sent fails before the second message to be sent is obtained, where the packet loss reason is the reason that the first message to be sent fails, and the first message to be sent and the second message to be sent are different messages;
generating a first packet loss message according to the reason of the transmission failure, and reporting the first packet loss message;
if the routing forwarding table is not found, the packet loss reason is that the routing forwarding table is missing; if the routing forwarding table is searched and the next hop forwarding equipment cannot be searched, the packet loss reason is the next hop equipment fault; if the next hop forwarding device is found and the first message to be sent cannot be sent, the packet loss reason is a physical outlet fault of the current forwarding device; if the bandwidth does not support sending the first message to be sent, the packet loss reason is that the bandwidth limit is exceeded; if the buffer memory does not support the sending of the first message to be sent, the packet loss reason is that the buffer memory limit is exceeded.
23. The packet loss reporting system is characterized by comprising a first computer device and a second computer device;
the first computer device for performing the method of any of claims 4-11;
the second computer device for performing the method of claim 2 or claim 3.
24. A computer device, the computer device comprising a processor and a memory:
the memory is used for storing a computer program and transmitting the computer program to the processor;
the processor is configured to perform the method of claim 1, or the method of claim 2 or claim 3, or the method of any of claims 4-11, according to the computer program.
25. A computer readable storage medium for storing a computer program for performing the method of claim 1, or for performing the method of claim 2 or claim 3, or for performing the method of any of claims 4-11.
26. A computer program product comprising a computer program, characterized in that it when run on a computer device causes the computer device to perform the method of claim 1, or to perform the method of claim 2 or claim 3, or to perform the method of any of claims 4-11.
CN202410043023.4A 2024-01-11 2024-01-11 Packet loss reporting method, network switch and related device Active CN117560306B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410043023.4A CN117560306B (en) 2024-01-11 2024-01-11 Packet loss reporting method, network switch and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410043023.4A CN117560306B (en) 2024-01-11 2024-01-11 Packet loss reporting method, network switch and related device

Publications (2)

Publication Number Publication Date
CN117560306A CN117560306A (en) 2024-02-13
CN117560306B true CN117560306B (en) 2024-04-02

Family

ID=89823590

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410043023.4A Active CN117560306B (en) 2024-01-11 2024-01-11 Packet loss reporting method, network switch and related device

Country Status (1)

Country Link
CN (1) CN117560306B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324198A (en) * 2018-03-30 2019-10-11 华为技术有限公司 Loss treating method and packet loss processing unit
CN110912654A (en) * 2019-11-28 2020-03-24 京东方科技集团股份有限公司 Data retransmission method, gateway device, terminal device, and storage medium
CN114006806A (en) * 2021-10-26 2022-02-01 苏州浪潮智能科技有限公司 Message processing method and device, switch equipment and storage medium
CN114257502A (en) * 2020-09-21 2022-03-29 华为终端有限公司 Log reporting method and device
CN114826495A (en) * 2022-06-22 2022-07-29 深圳市佳贤通信设备有限公司 Method for reducing NR, RLC, AM fragment loss report overhead
CN115550224A (en) * 2021-06-29 2022-12-30 中国电信股份有限公司 Packet loss analysis system, method, and storage medium
CN116319448A (en) * 2023-02-17 2023-06-23 苏州盛科通信股份有限公司 Packet loss diagnosis method, apparatus, electronic device and computer readable storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180115464A1 (en) * 2016-10-26 2018-04-26 SignifAI Inc. Systems and methods for monitoring and analyzing computer and network activity

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324198A (en) * 2018-03-30 2019-10-11 华为技术有限公司 Loss treating method and packet loss processing unit
CN110912654A (en) * 2019-11-28 2020-03-24 京东方科技集团股份有限公司 Data retransmission method, gateway device, terminal device, and storage medium
CN114257502A (en) * 2020-09-21 2022-03-29 华为终端有限公司 Log reporting method and device
CN115550224A (en) * 2021-06-29 2022-12-30 中国电信股份有限公司 Packet loss analysis system, method, and storage medium
CN114006806A (en) * 2021-10-26 2022-02-01 苏州浪潮智能科技有限公司 Message processing method and device, switch equipment and storage medium
CN114826495A (en) * 2022-06-22 2022-07-29 深圳市佳贤通信设备有限公司 Method for reducing NR, RLC, AM fragment loss report overhead
CN116319448A (en) * 2023-02-17 2023-06-23 苏州盛科通信股份有限公司 Packet loss diagnosis method, apparatus, electronic device and computer readable storage medium

Also Published As

Publication number Publication date
CN117560306A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
US10965537B2 (en) Self-adjusting data processing system
US10484265B2 (en) Dynamic update of virtual network topology
US20220109622A1 (en) Reliability enhancements for multi-access traffic management
US11563627B2 (en) Remote probing for failover
CN111343093B (en) Service data transmission method and device
CN104717186B (en) A kind of method, apparatus and data transmission system for transmitting data in network system
US20210337583A1 (en) Data transmission method and corresponding terminal
US20100142538A1 (en) M2M data router
CN107800791A (en) A kind of method and apparatus debugged
Gaur et al. IoT-equipped UAV communications with seamless vertical handover
EP3332513B1 (en) Service element host selection
CN117560306B (en) Packet loss reporting method, network switch and related device
US10270682B2 (en) Service layer anycast and somecast
CN107666671B (en) Method and device for detecting wrong connection based on TWAMP
EP3422674A1 (en) A method of resolving a domain name by a dns server to a plurality of ip addresses based on location information of the user equipment
CN105763347A (en) Method for obtaining parameter, network equipment and system
CN104468190A (en) Wifi data package capturing method and device and intelligent terminal
US20180375944A1 (en) Service elements
Zhang et al. Smart Integrated MANET-DTN Scheme for Network Adaptation Enhancement in Emergency Communication
CN109996207B (en) Data sending method, device and computer program product
CN116599871B (en) Network time delay determining method and related device
EP3912329B1 (en) Automated service layer message flow management in a communications network
US11875687B2 (en) Multipathing for unmanned aerial vehicle traffic
US20230097664A1 (en) Technologies for user equipment relay discover
EP4362418A1 (en) Information processing method, gateway device, terminal device, storage medium and computer program product

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