CN110324198A - Loss treating method and packet loss processing unit - Google Patents

Loss treating method and packet loss processing unit Download PDF

Info

Publication number
CN110324198A
CN110324198A CN201810292453.4A CN201810292453A CN110324198A CN 110324198 A CN110324198 A CN 110324198A CN 201810292453 A CN201810292453 A CN 201810292453A CN 110324198 A CN110324198 A CN 110324198A
Authority
CN
China
Prior art keywords
message
packet loss
analog
processing unit
sent
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.)
Granted
Application number
CN201810292453.4A
Other languages
Chinese (zh)
Other versions
CN110324198B (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201810292453.4A priority Critical patent/CN110324198B/en
Publication of CN110324198A publication Critical patent/CN110324198A/en
Application granted granted Critical
Publication of CN110324198B publication Critical patent/CN110324198B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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
    • H04L47/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames

Abstract

A kind of loss treating method and packet loss processing unit.Packet loss processing unit receives the first message that the forwarding module of the network equipment is sent, and first message is the forwarding module determination message to be abandoned.The packet loss processing unit parses the heading of first message, obtains the heading information of first message;The packet loss processing unit executes packet loss processing according to the heading information.By adopting the above technical scheme, the timely monitoring and analysis to packet loss be can be realized.

Description

Loss treating method and packet loss processing unit
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of loss treating method and device.
Background technique
With the rapid development of network technology, interchanger has become equipment indispensable in network construction.Fig. 1 is shown The schematic diagram of the logical architecture of existing typical interchanger.As shown in fig. 1, existing interchanger mainly includes dedicated integrated Circuit (application-specific integrated circuit, ASIC)) chip and central processing unit (central Processing unit, CPU).Asic chip externally provides multiple for connecting server or the exchange of other network equipments Port, message enter asic chip by switching port and are forwarded to other equipment.
Currently, the asic chip flow to be dealt in interchanger is very big, usually terabyte/second (TeraBytes Persecond, Tbps) rank, but be limited to chip processing capacity and cost factor and a variety of causes it is (such as common Bursts of traffic caused by congestion packet loss or message audit failure, forwarding table search unsuccessfully etc. caused by packet loss etc.) will lead to Dropping packets inside interchanger.Inside interchanger when dropping packets, major part chip can only count the message of discarding at present Quantity can not perceive the business of the specific message being dropped and influence, and very big puzzlement is caused to network operation.
Summary of the invention
The embodiment of the present invention provides a kind of loss treating method and device, can be realized timely monitoring to packet loss and point Analysis.
In a first aspect, the embodiment of the present invention provides a kind of loss treating method, the method is suitable for packet loss processing unit, The described method includes:
The first message that the forwarding module of the network equipment is sent is received, first message is that forwarding module determination is wanted The message of discarding;
The heading for parsing first message obtains the heading information of first message;
Packet loss processing is executed according to the heading information.
In the above-mentioned technical solutions, packet loss processing unit executes packet loss processing based on the heading information for being dropped message, To so that network management personnel can formulate corresponding packet loss control strategy based on heading information, realize to being dropped message It is timely monitoring and analysis.
It is described to include: according to heading information execution packet loss processing in a kind of possible design
According to the heading information, the service traffics mark sheet of pre-configuration is searched, is obtained and the heading information pair The network application information answered, wherein the network application information is used to indicate the network application influenced by first message, institute Service traffics mark sheet is stated for storing the service traffics feature of the multiple network being pre-configured application, the business of every kind of network application Traffic characteristic includes at least one of heading information information and network application information;Or the report is shown by output device Literary head information.
In the above-mentioned technical solutions, the service traffics mark sheet of pre-configuration be realize message identified to network application it is important Bridge can need to configure service traffics feature according to different application scenarios.According to the heading information of the message of discarding, lose Packet processing unit can determine the network application influenced by packet loss, or the heading information that parsing obtains is presented to network management Personnel realize to being dropped report so that network management personnel can formulate corresponding packet loss control strategy based on heading information The timely monitoring and analysis of text.
It is described after the first message that the forwarding module for receiving the network equipment is sent in a kind of possible design Method further include:
Determine analog message, wherein the analog message is that forward-path is identical as the forward-path of first message Message, forward-path refers to forward-path of the message in the forwarding module;
The analog message is sent to the forwarding module;
The packet loss reason that the forwarding module is sent is obtained, the packet loss is the reason is that the forwarding module receives the simulation Message and the reason of determine when abandoning the analog message discarding that the generates analog message.
In the above-mentioned technical solutions, the discarding reason for being dropped message can be determined based on the analog message.
In a kind of possible design, the packet loss reason for receiving the forwarding module and sending, comprising:
The modified analog message that the forwarding module is sent is received, the modified analog message carries described Packet loss reason;
The modified analog message is parsed, the packet loss reason is obtained.
In a kind of possible design, the analog message is first message, alternatively, being with first message Heading is the message that reconfigures of heading, alternatively, be according in the heading information for determining first message Forward-path the message that reconfigures of information.
In a kind of possible design, the heading information includes at least one of following information:
Source MAC address, target MAC (Media Access Control) address, source Internet protocol IP address, purpose IP address, source port, Destination port, transport layer protocol.
In a kind of possible design, the network equipment includes the packet loss processing unit.
Second aspect, the embodiment of the present invention provide a kind of loss treating method, and the method is suitable for turning for the network equipment It sends out in module, which comprises
Receive the first message;
When determining discarding first message, first message is sent to packet loss processing unit, so that described lose Packet processing unit parses the heading of first message, obtains first message after receiving first message Heading information executes packet loss processing according to the heading information.
In the above-mentioned technical solutions, the forwarding module of the network equipment is when determining dropping packets, more than in the network equipment Upper discarding message, the message for being also dropped this are sent to packet loss processing unit, so that packet loss processing unit is based on being dropped The heading information of message executes packet loss processing, so that so that network management personnel can be formulated accordingly based on heading information Packet loss control strategy realizes timely monitoring and analysis to message is dropped.
In a kind of possible design, it is described first message is sent to packet loss processing unit after, the method Further include:
Receive the analog message that the packet loss processing unit is sent, wherein the analog message be forward-path with it is described The identical message of the forward-path of first message, forward-path refer to forward-path of the message in the forwarding module;
The forward-path that the analog message is determined according to the heading information of the analog message is reported according to the simulation The forward-path of text is forwarded processing to the analog message;
When determining the discarding analog message, packet loss reason is sent to the packet loss processing unit, the packet loss is former Because being that the forwarding module receives the analog message and determines that the discarding generated when abandoning the analog message the simulation is reported The reason of text.
In the above-mentioned technical solutions, packet loss processing unit can determine that the discarding for being dropped message is former based on the analog message Cause.
It is described that packet loss reason is sent to the packet loss processing unit in a kind of possible design, comprising:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the packet loss processing unit.
It is described that packet loss reason is sent to the packet loss processing unit in a kind of possible design, comprising:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the central processor CPU of the network equipment, makes the CPU by institute It states modified analog message and is sent to the packet loss processing unit, alternatively, making the CPU parsing modified simulation report Text obtains the packet loss reason, and the packet loss reason that parsing obtains is sent to the packet loss processing unit.
The third aspect, the embodiment of the present invention provide a kind of packet loss processing unit, and described device includes packet loss processing unit, institute Stating packet loss processing unit includes:
Message receiving unit, the first message that the forwarding module for receiving the network equipment is sent, first message are The forwarding module determination message to be abandoned;
Packet parsing unit obtains the heading letter of first message for parsing the heading of first message Breath;
Packet loss processing unit, for executing packet loss processing according to the heading information.
In a kind of possible design, the packet loss processing unit is used for:
After obtaining the heading information of the first message, according to the heading information, the Business Stream of pre-configuration is searched Measure feature table obtains network application information corresponding with the heading information, wherein the network application information is used to indicate The network application influenced by first message, the service traffics mark sheet are used to store the multiple network application being pre-configured Service traffics feature, the service traffics feature of every kind of network application include that at least one of heading information information and network are answered Use information;
Or, showing the heading information by output device.
In a kind of possible design, described device further include:
Analog message determination unit, for determining analog message, wherein the analog message is forward-path and described the The identical message of the forward-path of one message, forward-path refer to forward-path of the message in the forwarding module;
Analog message transmission unit, for sending the analog message to the forwarding module;
Packet loss reason acquiring unit, the packet loss reason sent for obtaining the forwarding module, the packet loss is the reason is that institute Forwarding module is stated to receive the analog message and determine the original of the discarding analog message generated when abandoning the analog message Cause.
In a kind of possible design, the packet loss reason acquiring unit is specifically used for:
The modified analog message that the forwarding module is sent is received, the modified analog message carries described Packet loss reason;
The modified analog message is parsed, the packet loss reason is obtained.
In a kind of possible design, the network equipment includes the packet loss processing unit.
Fourth aspect, the embodiment of the present invention provide a kind of packet loss processing unit, and described device includes forwarding module, and described turn Sending out module includes:
First message receiving unit, for receiving the first message;
Packet loss processing unit, for when determining discarding first message, first message to be sent at packet loss Device is managed, so that the packet loss processing unit after receiving first message, parses the heading of first message, obtains To the heading information of first message, packet loss processing is executed according to the heading information.
In a kind of possible design, described device further include:
Analog message receiving unit, the analog message sent for receiving the packet loss processing unit, wherein the simulation Message is forward-path message identical with the forward-path of first message, and forward-path refers to message in the forwarding mould Forward-path in block;
Analog message processing unit determines turning for the analog message for the heading information according to the analog message Path is sent out, processing is forwarded to the analog message according to the forward-path of the analog message, abandons the mould determining When quasi- message, packet loss reason is sent to the packet loss processing unit, the packet loss the reason is that the forwarding module receive it is described Analog message and the reason of determine when abandoning the analog message discarding that the generates analog message.
In a kind of possible design, packet loss reason is being sent to the packet loss processing by the analog message processing unit When device, it is specifically used for:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the packet loss processing unit.
In a kind of possible design, packet loss reason is being sent to the packet loss processing by the analog message processing unit When device, it is specifically used for:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the central processor CPU of the network equipment, to pass through the CPU The modified analog message is sent to the packet loss processing unit, alternatively, after to parse the modification by the CPU Analog message obtain the packet loss reason, the obtained packet loss reason of parsing is sent to the packet loss processing unit.
5th aspect, the embodiment of the present invention provide a kind of network equipment, and the data processing equipment includes processor and deposits Reservoir;
The memory is for storing executable computer program code;
The processor is corresponding with the computer program code to run for reading the computer program code Computer program, the method to execute above-mentioned first aspect and its each implementation or second aspect and its each implementation.
6th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, the computer-readable storage medium Computer instruction is stored in matter, when the computer instruction is run on computers, so that computer executes above-mentioned first The method of aspect and its each implementation or second aspect and its each implementation.
Detailed description of the invention
Fig. 1 shows a kind of structural schematic diagram of existing interchanger;
Fig. 2 shows a kind of structural schematic diagrams of network architecture used in the embodiment of the present invention;
Fig. 3 shows a kind of schematic flow chart of loss treating method used in the embodiment of the present invention;
Fig. 4 shows the service traffics mark sheet in the embodiment of the present invention;
Fig. 5 shows another service traffics mark sheet in the embodiment of the present invention;
Fig. 6 shows a kind of structural schematic diagram of packet loss processing unit used in the embodiment of the present invention;
Fig. 7 shows the structural schematic diagram of another kind packet loss processing unit used in the embodiment of the present invention;
Fig. 8 shows the exemplary of the calculating equipment for the method and apparatus that can be realized packet loss processing according to embodiments of the present invention The structure chart of hardware structure.
Specific embodiment
The embodiment of the invention provides a kind of loss treating methods and device and the network equipment, need in the network equipment When dropping packets, it can be realized to being dropped the timely monitoring and discovery of message in network transmission, and realize to being dropped message Timely analysis, for HP M it is timely discovery with positioning provide data support, avoid traditional message transmissions net Network is after quality of service decline the drawbacks of ability report message transmission fault.The network equipment that the embodiment of the present invention is applicable in include but It is not limited to the equipment that router, interchanger etc. can be realized data forwarding.
Fig. 2 shows a kind of schematic diagrames for network architecture that the embodiment of the present invention is applicable in.As shown in Fig. 2, the network rack Structure includes the network equipment 100 and packet loss processing unit 200.Wherein, the network equipment 100 is implemented as the interchanger in Fig. 1, net Network equipment 100 mainly may include CPU 110 and forwarding module 120, can be by outer between CPU 110 and forwarding module 120 If component interconnection (Peripheral Component Interconnect Express, PCIe) bus or internal bus Connection, forwarding module 120 specifically can be implemented as asic chip shown in Fig. 1.Forwarding module 120 mainly may include message Processing module 121 and traffic management module 122.Packet loss processing unit 200 is implemented as programmable logic array (field- Programmable gate array, FPGA) chip 210 and analysis module 220, wherein analysis module 220 specifically can be real It is now processor or other electronic equipments for being able to carry out data processing.
The network equipment 100 receive that other network equipments or subscriber terminal equipment are sent by its multiple switching port One message, the treatment process of the first message received are completed by forwarding module 120, wherein Message processing mould Block 121 is mainly responsible for the verifying, parsing, forwarding table of the first message are searched and message is sent etc., and traffic management module 122 is main It is responsible for management and the scheduling of message etc. of the caching, buffer queue of message.CPU 110 is mainly responsible for the sheet of interchanger 100 Ground management, including to forwarding module 120 configuration, to work such as the configurations and network management of forwarding table.In addition, interchanger It is typically also to be passed through by forwarding module 120 that 100 control messages (such as routing iinformation message) received etc., which control category information, PCIe bus or internal bus are sent to after CPU 110, are handled by CPU 110.
In the network architecture shown in Fig. 2, the first message (as shown in Figure 2 message 1, message 2, message 3, message 4) After entering forwarding module 120 by the switching port of interchanger 100, pass through message processing module (MPM) 121 and traffic management module 122 complete the forward process of the first message.During the first message forward process, message processing module (MPM) 121 and flowtube Reason module 122 can determine the first message for needing to abandon, and the first message abandoned will be needed to be sent to packet loss processing dress 200 are set to be handled.For example, if message processing module (MPM) 121 determines one or more first messages due to message error or turns When delivering lookup unsuccessfully equal a variety of causes needing to abandon, message processing module (MPM) 121 will then need the first message abandoned directly to send out It send to fpga chip 210;If message processing module (MPM) 121 during carrying out Message processing, determines that the first message does not need to lose When abandoning, then traffic management module 122 is sent by message, traffic management module 122 will be received from message processing module (MPM) 121 Packet buffer into the packet buffer space (for caching the memory space of message) of interchanger 100, at this time if there is due to When packet buffer insufficient space or other reasons result in the need for dropping packets, traffic management module 122 will then need the report that abandons Text is sent to fpga chip 210.As it can be seen that packet loss possibly was present in the different forward process stages of message.
In the network architecture as shown in Figure 2, interchanger 100 receives message 1, message 2, message 3 and message 4 this four First message, message 3 are to determine that message 3 is then sent to fpga chip 210 by the first message for needing to abandon, interchanger 100.
Fpga chip 210 receive interchanger 100 transmission message 3 after, can analytic message 3 heading, be somebody's turn to do It is dropped the heading information of the i.e. message of message characteristic of message, the heading information so as to obtain parsing is presented to Network management personnel, so that network management personnel can formulate corresponding packet loss control strategy, realization pair based on heading information It is dropped the timely monitoring and analysis of message.Fpga chip 210, can be with after parsing obtains being dropped the heading information of message These information are further transmitted to analysis module 220, heading information is based on by analysis module 220 and is further processed. Wherein, in practical applications, different processing strategies, analysis module can be pre-configured for analysis module 220 according to actual needs 220 after receiving the heading information that fpga chip 210 is sent, can be according to the processing strategie of heading information and configuration It performs corresponding processing.Such forwarding module 120 is sent to packet loss processing dress when determining the first message of discarding, by the first message 200 are set, packet loss processing unit 200 can parse to obtain the message characteristic for being dropped message, can be with for example, heading information The packet loss reason for further getting the application message and/or message that are dropped message, realize to packet loss it is timely monitoring with Analysis provides data and supports, reduces the O&M cost of network for analysis, the positioning of network failure.
The embodiment of the present invention provides a kind of loss treating method, and this method can be used in the network architecture shown in Fig. 2, such as Shown in Fig. 3, the loss treating method includes:
301, forwarding module 120 receives the first message.
Forwarding module 120 judges whether to abandon first message after receiving the first message, when determining discarding first message Afterwards, then first message is sent to packet loss processing unit 200;When determination does not abandon first message, then normal processing should The information carried in first message, such as heading according to the first message forwards first message etc..
302, which is sent to packet loss processing unit when determining discarding first message by forwarding module 120 200。
Wherein, forwarding module 120 does not forward first message, and first message is sent to packet loss processing unit 200, so that the packet loss processing unit 200 handles first message.
303, after packet loss processing unit 200 receives first message, the heading of first message is parsed, is obtained The heading information of first message.
Heading information may include the address, purpose source media access control (media access control, MAC) MAC Address, source Internet protocol (Internet Protocol, IP) address, purpose IP address, source port, destination port and transmission One or more information in the information such as layer protocol.
In the embodiment of the present invention, packet loss processing unit 200 receive 120 determination of the forwarding module message to be abandoned after to its into Row parsing, obtains the heading information of these dropping packets, is network to realize the timely monitoring and analysis to dropping packets Analysis, the positioning of failure provide data support, reduce the O&M cost of network.
In a kind of implementation of the embodiment of the present invention, after the step 303 of method shown in Fig. 3, can also include:
304, packet loss processing unit 200 executes packet loss according to the heading information and handles.
Specifically, packet loss processing unit 200 searches the service traffics mark sheet of pre-configuration according to the heading information, Obtain network application information corresponding with the heading information.The network application information is used to indicate by first message The network application of influence.
Wherein, the service traffics mark sheet is used to store the service traffics feature for the multiple network application being pre-configured.? In service traffics mark sheet shown in Fig. 4, the service traffics feature of every kind of network application includes at least one in heading information Kind information and network application information.
Specifically, the service traffics mark sheet can be pre-configured to be in analysis module 220, which uses In the service traffics feature for the multiple network application that storage is pre-configured, wherein the service traffics feature of every kind of network application includes The network application of at least one of the heading information of message corresponding to this kind of network application information and this kind of network application letter Breath.
Service traffics are characterized in information relevant to network application corresponding to message, are to realize that message is known to network application Other important bridge can need to configure service traffics feature according to different application scenarios.For example, in an example, in Fig. 5 Shown in service traffics mark sheet, service traffics feature is except including letter identical at least one information in heading information It can also include network application information except breath (information is for the comparison with the heading information for being dropped message), wherein Network application information can include but is not limited to, and network layer protocol (such as Transmission Control Protocol or udp protocol), network layer port numbers are (as held Slogan be 80), discharge pattern (such as hypertext transfer protocol (HyperText Transfer Protocol, HTTP) flow or text Part transport protocol (File Transfer Protocol, FTP) flow etc.) etc. one or more application messages in information.
Based on above-mentioned service traffics mark sheet, analysis module 220 is in the heading information for receiving fpga chip and sending Afterwards, the network application information that the heading information received with this matches can be searched in service traffics mark sheet, thus It can determine the network application that packet loss is influenced.Wherein, match at least one of the heading information for referring to and receiving Information is identical as at least one information in service traffics feature, and the network application information in service traffics feature to match is i.e. For the above-mentioned network application information to match.
For the embodiment of the present invention in order to realize the positioning to packet loss reason, analysis module 220 can also be according to from fpga chip It is (i.e. shown in Fig. 2 to lose that the 210 heading information structurings received go out analog message identical with the forward-path of the first message Packet positioning message), and analog message is sent to interchanger 100, to determine the discarding for being dropped message based on the analog message Reason.
In another implementation of the embodiment of the present invention, after the step 303 of method shown in Fig. 3, can also include: Packet loss processing unit 200 determines analog message, and sends the analog message to forwarding module 120;Forwarding module 120 is receiving After the analog message that the packet loss processing unit 200 is sent, the simulation is determined according to the heading information of the analog message The forward-path of message is forwarded processing to the analog message according to the forward-path of the analog message, and in determination When abandoning the analog message, packet loss reason is sent to the packet loss processing unit 200;Then, packet loss processing unit 200 can To obtain the packet loss reason that the forwarding module 120 is sent.
Wherein, analog message is forward-path message identical with the forward-path of the first message, and forward-path refers to report Forward-path of the text in the forwarding module.Packet loss abandons simulation the reason is that forwarding module 120 receives analog message and determines The reason of discarding analog message generated when message.
Since the payload (payload) of the first message is not involved in forwarding routing, E-Packet for interchanger 100 Behavior does not influence, and therefore, the payload of analog message can be filled arbitrarily.
In one embodiment, analog message can be sent to CPU 110 by analysis module 220, by CPU 110 by mould Quasi- message is sent to forwarding module 120.
It is understood that in actual operation, if not considering the data volume size of analog message, fpga chip 210 The first message received can also be sent to analysis module 220, analysis module 220 can be directly using the first message as upper It states analog message and is sent to forwarding module 120.
After forwarding module 120 receives analog message, analog message is determined according to the heading information of analog message Forward-path, as the forward-path of analog message be with its corresponding to the forward-path of the first message being dropped be identical , therefore, forwarding module 120 can handle analog message according to forwarding process identical with the first message being dropped, message Generally mainly the verification including message, accesses control list (Access Control List, ACL) check, pass through forwarding process Forwarding table lookup exit port and etc..Forwarding module 120 is determining simulation report during carrying out the forward process of analog message When text needs to abandon, packet loss reason condition is added in analog message by forwarding module 120, obtains modified analog message, Later, by carry packet loss reason modified analog message again on send to CPU 110.Packet loss is the reason is that forwarding module 120 is received To analog message and determine abandon analog message when the discarding that the generates analog message the reason of.
After CPU 110 receives the modified analog message for carrying packet loss reason, it is modified to can parse this Analog message obtains packet loss reason, and packet loss reason is sent to analysis module 220.Certainly, CPU 110 will can also be carried directly The modified analog message of packet loss reason is sent to packet loss processing unit 200, by the analysis module of packet loss processing unit 200 220 or fpga chip 210 complete the modified analog message parsing, obtain packet loss reason.
Loss treating method based on the embodiment of the present invention both can parse to obtain the message characteristic for being dropped message (heading information) can also further get the packet loss reason of the application message and/or message that are dropped message, realize Timely monitoring and analysis to packet loss provide data support for analysis, the positioning of network failure, reduce the O&M of network at This.
It is understood that the network architecture shown in Fig. 2 is in the network architecture that the embodiment of the present invention is applicable in One kind, the realization of each component or module in the network architecture shown in figure and connection relationship are also a kind of feasible side Case, but be not unique one kind.For example, packet loss processing unit 200 can be with a kind of mutually independent equipment of interchanger 100, A module being also possible in interchanger 100, i.e. packet loss processing unit 200 can be separately provided, and also can integrate setting and exist In interchanger.It is arranged in fpga chip 210 likewise, the analysis module 220 of packet loss processing unit 200 can integrate, it can also To be an individual processor or chip etc..Certainly, fpga chip 210 is also a kind of example, can be with other with can The chip or processor of programing function are realized.In addition, if 110 performance of CPU of interchanger 100 is sufficiently high, packet loss processing unit 200 can also directly be realized by CPU 110, that is to say, that above-mentioned each function of packet loss processing unit 200 and/or respectively be operated Realization can be executed by CPU 110.
To realize above-mentioned each method embodiment, present invention also provides a kind of packet loss processing units.
Fig. 6 shows a kind of structural schematic diagram of packet loss processing unit used in the embodiment of the present invention, packet loss processing dress It sets and specifically includes message receiving unit 601, packet parsing unit 602 and packet loss processing unit 603.
Message receiving unit 601, the first message that the forwarding module for receiving the network equipment is sent, first message For the forwarding module determination message to be abandoned.
Packet parsing unit 602 obtains the heading of first message for parsing the heading of first message Information;
Packet loss processing unit 603, for executing packet loss processing according to the heading information.
In an optional embodiment of the present invention, packet loss processing unit 603, for obtaining the message of the first message After head information, according to the heading information, the service traffics mark sheet of pre-configuration is searched, is obtained and the heading information Corresponding network application information, wherein the network application information is used to indicate the network application influenced by first message, The service traffics mark sheet is used to store the service traffics feature for the multiple network application being pre-configured, the industry of every kind of network application Business traffic characteristic includes at least one of heading information information and network application information;
In another alternative embodiment, packet loss processing unit 603 is used to show the heading by output device Information.
In an optional embodiment of the present invention, packet loss processing unit further includes analog message determination unit 604, mould Quasi- packet sending unit 605 and packet loss reason acquiring unit 606.
Analog message determination unit 604, for determining analog message, wherein the analog message is forward-path and institute The identical message of forward-path of the first message is stated, forward-path refers to forward-path of the message in the forwarding module;
Analog message transmission unit 605, for sending the analog message to the forwarding module;
Packet loss reason acquiring unit 606, the packet loss reason sent for obtaining the forwarding module, the packet loss the reason is that The forwarding module receives the analog message and determines the discarding analog message generated when abandoning the analog message Reason.
In an optional embodiment of the present invention, packet loss reason acquiring unit 606 is specifically used for:
The modified analog message that the forwarding module is sent is received by message receiving unit 601, after the modification Analog message carry the packet loss reason;
The modified analog message is parsed, the packet loss reason is obtained.
In an optional embodiment of the present invention, the network equipment includes the packet loss processing unit.
Fig. 7 shows the structural schematic diagram of another kind packet loss processing unit used in the embodiment of the present invention, packet loss processing Device includes forwarding module 701, and forwarding module 701 includes: the first message receiving unit 7011 and packet loss processing unit 7012.
First message receiving unit 7011, for receiving the first message;
Packet loss processing unit 7012, for first message being sent to and is lost when determining discarding first message Packet processing unit, so that the packet loss processing unit after receiving first message, parses the message of first message Head obtains the heading information of first message, executes packet loss processing according to the heading information.
In an optional embodiment of the present invention, packet loss processing unit further includes 702 He of analog message receiving unit Analog message processing unit 703.
Analog message receiving unit 702, the analog message sent for receiving the packet loss processing unit, wherein described Analog message is forward-path message identical with the forward-path of first message, and forward-path refers to message at described turn Send out the forward-path in module;
Analog message processing unit 703, for determining the analog message according to the heading information of the analog message Forward-path, processing is forwarded to the analog message according to the forward-path of the analog message, determine abandon institute When stating analog message, packet loss reason is sent to the packet loss processing unit, the packet loss is the reason is that the forwarding module receives The analog message and the reason of determine when abandoning the analog message discarding that the generates analog message.
In an optional embodiment of the present invention, packet loss reason is being sent to institute by analog message processing unit 703 When stating packet loss processing unit, it is specifically used for:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the packet loss processing unit.
In an optional embodiment of the present invention, packet loss reason is being sent to institute by analog message processing unit 703 When stating packet loss processing unit, it is specifically used for:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the central processor CPU of the network equipment, to pass through the CPU The modified analog message is sent to the packet loss processing unit, alternatively, after to parse the modification by the CPU Analog message obtain the packet loss reason, the packet loss reason that parsing obtains is sent to the packet loss processing unit.
Fig. 8 shows the exemplary of the calculating equipment for the method and apparatus that can be realized packet loss processing according to embodiments of the present invention The structure chart of hardware structure.
As shown in figure 8, calculate equipment 800 include input equipment 801, input interface 802, processor 803, memory 804, Output interface 805 and output equipment 806.
Wherein, input interface 802, processor 803, memory 804 and output interface 805 are interconnected by 810 phase of bus It connects, input equipment 801 and output equipment 806 are connect by input interface 802 and output interface 805 with bus 810 respectively, in turn It is connect with the other assemblies for calculating equipment 800.
Specifically, input equipment 801 is received from external input information, and will input information by input interface 802 It is transmitted to processor 803;Processor 803 carries out input information based on the computer executable instructions stored in memory 804 Output information is temporarily or permanently stored in memory 804 to generate output information, then passes through output interface by processing Output information is transmitted to output equipment 806 by 805;Output information is output to the external confession for calculating equipment 800 by output equipment 806 User uses.
Program code is also stored in memory 804, processor 803 calls said program code that can make to calculate equipment 800 execute each step in the above-mentioned method of the application.
Processor 803 can be one or more CPU.In the case where processor 801 is a CPU, which be can be Monokaryon CPU, is also possible to multi-core CPU.
Memory 804 can be but not limited to random access memory (RAM), read-only memory (ROM), erasable to compile One of journey read-only memory (EPROM), compact disc read-only memory (CD-ROM), hard disk etc. are a variety of.Memory 804 is used for Store program code.
The above embodiments of the present application can be come real wholly or partly by software, hardware, firmware or any combination thereof It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or It partly generates according to process or function described in the embodiment of the present invention.The computer can be general purpose computer, dedicated meter Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or It is comprising data storage devices such as one or more usable mediums integrated server, data centers.

Claims (17)

1. a kind of loss treating method, which is characterized in that the method is suitable for packet loss processing unit, which comprises
The first message that the forwarding module of the network equipment is sent is received, first message is that the forwarding module determination will abandon Message;
The heading for parsing first message obtains the heading information of first message;
Packet loss processing is executed according to the heading information.
2. the method according to claim 1, wherein described execute packet loss processing packet according to the heading information It includes:
According to the heading information, the service traffics mark sheet of pre-configuration is searched, is obtained corresponding with the heading information Network application information, wherein the network application information is used to indicate the network application influenced by first message, the industry Business traffic characteristic table is used to store the service traffics feature for the multiple network application being pre-configured, the service traffics of every kind of network application Feature includes at least one of heading information information and network application information;
Or
The heading information is shown by output device.
3. method according to claim 1 or 2, which is characterized in that the forwarding module for receiving the network equipment was sent After first message, further includes:
Determine analog message, wherein the analog message is forward-path report identical with the forward-path of first message Text, forward-path refer to forward-path of the message in the forwarding module;
The analog message is sent to the forwarding module;
The packet loss reason that the forwarding module is sent is obtained, the packet loss is the reason is that the forwarding module receives the analog message And the reason of determining when abandoning the analog message discarding that the generates analog message.
4. according to the method described in claim 3, it is characterized in that, the packet loss reason for receiving the forwarding module and sending, Include:
The modified analog message that the forwarding module is sent is received, the modified analog message carries the packet loss Reason;
The modified analog message is parsed, the packet loss reason is obtained.
5. according to the method described in claim 3, it is characterized in that, the analog message be first message, alternatively, be with The heading of first message is the message that heading reconfigures, alternatively, being true according to being used in the heading information The message that the information of the forward-path of fixed first message reconfigures.
6. a kind of loss treating method, which is characterized in that the method is suitable for the forwarding module of the network equipment, the method Include:
Receive the first message;
When determining discarding first message, first message is sent to packet loss processing unit, so that at the packet loss Device is managed after receiving first message, the heading of first message is parsed, obtains the message of first message Head information executes packet loss processing according to the heading information.
7. according to the method described in claim 6, it is characterized in that, described be sent to packet loss processing unit for first message Later, further includes:
Receive the analog message that the packet loss processing unit is sent, wherein the analog message is forward-path and described first The identical message of the forward-path of message, forward-path refer to forward-path of the message in the forwarding module;
The forward-path that the analog message is determined according to the heading information of the analog message, according to the analog message Forward-path is forwarded processing to the analog message;
Determine abandon the analog message when, packet loss reason is sent to the packet loss processing unit, the packet loss the reason is that The forwarding module receives the analog message and determines the discarding analog message generated when abandoning the analog message Reason.
8. the method according to the description of claim 7 is characterized in that described be sent to the packet loss processing dress for packet loss reason It sets, comprising:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the packet loss processing unit.
9. the method according to the description of claim 7 is characterized in that described be sent to the packet loss processing dress for packet loss reason It sets, comprising:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the central processor CPU of the network equipment, repairs the CPU by described Analog message after changing is sent to the packet loss processing unit, obtains alternatively, the CPU is made to parse the modified analog message To the packet loss reason, the packet loss reason that parsing obtains is sent to the packet loss processing unit.
10. a kind of packet loss processing unit, which is characterized in that described device includes packet loss processing unit, the packet loss processing unit Include:
Message receiving unit, the first message that the forwarding module for receiving the network equipment is sent, first message is described The forwarding module determination message to be abandoned;
Packet parsing unit obtains the heading information of first message for parsing the heading of first message;
Packet loss processing unit, for executing packet loss processing according to the heading information.
11. device according to claim 10, which is characterized in that the processing unit is used for:
After obtaining the heading information of the first message, according to the heading information, the service traffics for searching pre-configuration are special Table is levied, obtains network application information corresponding with the heading information, wherein the network application information is used to indicate by institute The network application of the first message influence is stated, the service traffics mark sheet is used to store the business for the multiple network application being pre-configured Traffic characteristic, the service traffics feature of every kind of network application include at least one of heading information information and network application letter Breath;Or, showing the heading information by output device.
12. device described in 0 or 11 according to claim 1, which is characterized in that described device further include:
Analog message determination unit, for determining analog message, wherein the analog message is forward-path and first report The identical message of forward-path of text, forward-path refer to forward-path of the message in the forwarding module;
Analog message transmission unit, for sending the analog message to the forwarding module;
Packet loss reason acquiring unit, the packet loss reason sent for obtaining the forwarding module, the packet loss is the reason is that described turn The reason of hair module receives the analog message and determines when abandoning the analog message discarding that the generates analog message.
13. device according to claim 12, which is characterized in that the packet loss reason acquiring unit is specifically used for:
The modified analog message that the forwarding module is sent is received, the modified analog message carries the packet loss Reason;
The modified analog message is parsed, the packet loss reason is obtained.
14. a kind of packet loss processing unit, which is characterized in that described device includes forwarding module, and the forwarding module includes:
First message receiving unit, for receiving the first message;
Packet loss processing unit, for when determining discarding first message, first message to be sent to packet loss processing dress It sets, so that the packet loss processing unit after receiving first message, parses the heading of first message, obtains institute The heading information for stating the first message executes packet loss processing according to the heading information.
15. device according to claim 14, which is characterized in that described device further include:
Analog message receiving unit, the analog message sent for receiving the packet loss processing unit, wherein the analog message For forward-path message identical with the forward-path of first message, forward-path refers to message in the forwarding module Forward-path;
Analog message processing unit determines the forwarding road of the analog message for the heading information according to the analog message Diameter is forwarded processing to the analog message according to the forward-path of the analog message, abandons the simulation report determining Packet loss reason is sent to the packet loss processing unit by Wen Shi, and the packet loss is the reason is that the forwarding module receives the simulation Message and the reason of determine when abandoning the analog message discarding that the generates analog message.
16. device according to claim 15, which is characterized in that the analog message processing unit is sent out by packet loss reason When sending to the packet loss processing unit, it is specifically used for:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the packet loss processing unit.
17. device according to claim 16, which is characterized in that the analog message processing unit is sent out by packet loss reason When sending to the packet loss processing unit, it is specifically used for:
The packet loss reason is added in the analog message and obtains modified analog message;
The modified analog message is sent to the central processor CPU of the network equipment, to pass through the CPU for institute It states modified analog message and is sent to the packet loss processing unit, alternatively, to parse the modified mould by the CPU Quasi- message obtains the packet loss reason, and the packet loss reason that parsing obtains is sent to the packet loss processing unit.
CN201810292453.4A 2018-03-30 2018-03-30 Packet loss processing method and packet loss processing device Active CN110324198B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810292453.4A CN110324198B (en) 2018-03-30 2018-03-30 Packet loss processing method and packet loss processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810292453.4A CN110324198B (en) 2018-03-30 2018-03-30 Packet loss processing method and packet loss processing device

Publications (2)

Publication Number Publication Date
CN110324198A true CN110324198A (en) 2019-10-11
CN110324198B CN110324198B (en) 2021-06-04

Family

ID=68112257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810292453.4A Active CN110324198B (en) 2018-03-30 2018-03-30 Packet loss processing method and packet loss processing device

Country Status (1)

Country Link
CN (1) CN110324198B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838949A (en) * 2018-08-16 2020-02-25 阿里巴巴集团控股有限公司 Network flow log recording method and device
CN111030884A (en) * 2019-11-25 2020-04-17 杭州迪普科技股份有限公司 Method and device for acquiring interface packet loss
CN112702236A (en) * 2020-12-23 2021-04-23 锐捷网络股份有限公司 Method and processor for realizing packet loss detection
CN113590431A (en) * 2021-09-27 2021-11-02 联想长风科技(北京)有限公司 Dynamic monitoring method and system for data transmission of CPU and FPGA
WO2022257885A1 (en) * 2021-06-10 2022-12-15 维沃移动通信有限公司 Method and apparatus for acquiring traffic feature analysis result, and network side device
CN115484193A (en) * 2022-08-22 2022-12-16 北京东土军悦科技有限公司 Method, system, storage medium and device for monitoring and analyzing network packet loss flow
WO2023133697A1 (en) * 2022-01-11 2023-07-20 华为技术有限公司 Packet loss processing method and apparatus, switch, sending device and data transmission system
CN117560306A (en) * 2024-01-11 2024-02-13 腾讯科技(深圳)有限公司 Packet loss reporting method, network switch and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114989A (en) * 2006-07-28 2008-01-30 中兴通讯股份有限公司 Method for processing three-layer ethernet switchboard direct connection host computer routing
CN101635713A (en) * 2009-06-09 2010-01-27 北京安天电子设备有限公司 Method and system for preventing local area network ARP defection attacks
CN102752792A (en) * 2011-12-26 2012-10-24 华为技术有限公司 Method, device and system for monitoring internet service quality of mobile terminal
CN103036734A (en) * 2011-10-10 2013-04-10 盛科网络(苏州)有限公司 Logic verification method and logic verification system for network chip
US20160381077A1 (en) * 2014-11-04 2016-12-29 Patternex, Inc. Method and apparatus for identifying and detecting threats to an enterprise or e-commerce system
US20170257299A1 (en) * 2016-03-07 2017-09-07 Fujitsu Limited Packet analysis apparatus, packet analysis method, and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101114989A (en) * 2006-07-28 2008-01-30 中兴通讯股份有限公司 Method for processing three-layer ethernet switchboard direct connection host computer routing
CN101635713A (en) * 2009-06-09 2010-01-27 北京安天电子设备有限公司 Method and system for preventing local area network ARP defection attacks
CN103036734A (en) * 2011-10-10 2013-04-10 盛科网络(苏州)有限公司 Logic verification method and logic verification system for network chip
CN102752792A (en) * 2011-12-26 2012-10-24 华为技术有限公司 Method, device and system for monitoring internet service quality of mobile terminal
US20160381077A1 (en) * 2014-11-04 2016-12-29 Patternex, Inc. Method and apparatus for identifying and detecting threats to an enterprise or e-commerce system
US20170257299A1 (en) * 2016-03-07 2017-09-07 Fujitsu Limited Packet analysis apparatus, packet analysis method, and computer readable storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110838949A (en) * 2018-08-16 2020-02-25 阿里巴巴集团控股有限公司 Network flow log recording method and device
CN110838949B (en) * 2018-08-16 2023-09-29 阿里巴巴集团控股有限公司 Network traffic log recording method and device
CN111030884A (en) * 2019-11-25 2020-04-17 杭州迪普科技股份有限公司 Method and device for acquiring interface packet loss
CN111030884B (en) * 2019-11-25 2021-12-24 杭州迪普科技股份有限公司 Method and device for acquiring interface packet loss
CN112702236A (en) * 2020-12-23 2021-04-23 锐捷网络股份有限公司 Method and processor for realizing packet loss detection
WO2022257885A1 (en) * 2021-06-10 2022-12-15 维沃移动通信有限公司 Method and apparatus for acquiring traffic feature analysis result, and network side device
CN113590431A (en) * 2021-09-27 2021-11-02 联想长风科技(北京)有限公司 Dynamic monitoring method and system for data transmission of CPU and FPGA
CN113590431B (en) * 2021-09-27 2022-01-21 联想长风科技(北京)有限公司 Dynamic monitoring method and system for data transmission of CPU and FPGA
WO2023133697A1 (en) * 2022-01-11 2023-07-20 华为技术有限公司 Packet loss processing method and apparatus, switch, sending device and data transmission system
CN115484193A (en) * 2022-08-22 2022-12-16 北京东土军悦科技有限公司 Method, system, storage medium and device for monitoring and analyzing network packet loss flow
CN117560306A (en) * 2024-01-11 2024-02-13 腾讯科技(深圳)有限公司 Packet loss reporting method, network switch and related device
CN117560306B (en) * 2024-01-11 2024-04-02 腾讯科技(深圳)有限公司 Packet loss reporting method, network switch and related device

Also Published As

Publication number Publication date
CN110324198B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN110324198A (en) Loss treating method and packet loss processing unit
US10764148B2 (en) Methods, systems, and computer readable media for network traffic statistics collection
US8861397B2 (en) Apparatus and method for analyzing a network
CN103685583B (en) A kind of method and system of domain name mapping
US9185033B2 (en) Communication path selection
US10742532B2 (en) Non-intrusive mechanism to measure network function packet processing delay
US20140269390A1 (en) Control plane packet traffic statistics
EP2868045B1 (en) A method of and network server for detecting data patterns in an input data stream
CN104468401B (en) A kind of message processing method and device
US9356844B2 (en) Efficient application recognition in network traffic
US8537839B2 (en) Traffic generator with dynamic MPLS label assignment
CN102377640B (en) Message processing apparatus, message processing method and preprocessor
US10348603B1 (en) Adaptive forwarding tables
US9553786B2 (en) Storing data associated with packet related metrics
CN109246159B (en) Method and device for verifying security policy
CN109246189B (en) Network data distribution method and device, storage medium and server
US8365045B2 (en) Flow based data packet processing
EP2517410B1 (en) Tracing support in a router
WO2021083375A1 (en) Method and apparatus for detecting link states
CN105099942B (en) A kind of data package processing method and equipment
US20090285207A1 (en) System and method for routing packets using tags
CN116074253A (en) Message chained forwarding method and device
US8040882B2 (en) Efficient key sequencer
WO2021128936A1 (en) Message processing method and apparatus
CN109951397A (en) The method and apparatus of Message processing

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