CN105515885B - Count packet discarding method, control equipment, fragment equipment and reconstitution device - Google Patents

Count packet discarding method, control equipment, fragment equipment and reconstitution device Download PDF

Info

Publication number
CN105515885B
CN105515885B CN201410526307.5A CN201410526307A CN105515885B CN 105515885 B CN105515885 B CN 105515885B CN 201410526307 A CN201410526307 A CN 201410526307A CN 105515885 B CN105515885 B CN 105515885B
Authority
CN
China
Prior art keywords
packet
target service
service stream
equipment
fragment
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
CN201410526307.5A
Other languages
Chinese (zh)
Other versions
CN105515885A (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 CN201410526307.5A priority Critical patent/CN105515885B/en
Publication of CN105515885A publication Critical patent/CN105515885A/en
Application granted granted Critical
Publication of CN105515885B publication Critical patent/CN105515885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of statistics packet discarding method, control equipment, fragment equipment and reconstitution devices.The method comprise the steps that control equipment obtains source edge device, fragment equipment, reconstitution device and destination edge device of the target service stream in network topology;Control the quantity that equipment obtains the IP packet for the target service stream that source edge device is sent;Obtain the quantity of the IP packet of the received target service stream of destination edge device;The quantity for obtaining the quantity of fragment equipment IP packet received to target service stream, expecting the quantity of the IP packet after being fragmented and the IP packet of transmission;The quantity for obtaining the quantity of reconstitution device IP packet received to target service stream, expecting the quantity of the IP packet after being recombinated and the IP packet of transmission;It controls equipment and calculates the number of dropped packets of the target service stream on the transmit path according to the data got.The embodiment of the present invention, which can be realized, counts the packet drop of fragment message in communications.

Description

Count packet discarding method, control equipment, fragment equipment and reconstitution device
Technical field
The present invention relates to field of communication technology more particularly to a kind of statistics packet discarding method, control equipment, fragment equipment and again Group equipment.
Background technique
It is conditional to the length of data frame in existing physical network, and the data frame is in the physical network Length limit be known as the physical network maximum transmission unit (English: maximum transmission unit, abbreviation: MTU).For the MTU, Internet protocol (English: Internet Protocol, abbreviation: IP) uses the plan of fragment and recombination Slightly.
In the fragment and recombination strategy, an IP packet is when entering a new network, if the length of the IP packet is greater than The MTU of the network leads to not be encapsulated into a frame, then the IP packet is divided into point of several length less than the MTU of the network Piece, each fragment are encapsulated into a frame respectively and transmit.Wherein, each fragment can independently be known as an IP packet, i.e., All with the packet header IP of oneself and payload (English: payload).When these decompose piece be all transmitted to destination after, then by this A little fragments reformulate original IP packet.
However, being less than the IP packet of receiving point statistics received for the quantity mesh of the IP packet for the transmission for avoiding sending point from counting Quantity mesh, be divided into the message of multiple fragments the first point is usually only counted when the quantity to IP packet counts Piece does not count other fragments outside first fragment.This causes cannot be to other fragments in communications outside first fragment Packet drop counted.
Summary of the invention
The embodiment of the invention provides a kind of statistics packet discarding method, control equipment, fragment equipment and reconstitution device, for pair The packet drop of fragment message is counted in communications.
First aspect of the embodiment of the present invention provides a kind of statistics packet discarding method, comprising:
It controls equipment and obtains transmission path of the target service stream in network topology, wherein having source in the transmission path Edge device, fragment equipment, reconstitution device and destination edge device;
The control equipment obtains first group of parameter from the source edge device, and first group of parameter includes institute State the quantity of the Internet protocol IP packet of the target service stream transmitted by source edge device;
The control equipment obtains second group of parameter from the destination edge device, and second group of parameter includes The destination edge device the IP packet of the received target service stream quantity;
The control equipment obtains the third group parameter from the fragment equipment, and the third group parameter includes described point Piece equipment the quantity of the IP packet of the received target service stream, the fragment equipment are estimated be fragmented after the target industry The quantity of the IP packet of the quantity of the IP packet flowed of being engaged in and the target service stream of fragment equipment transmission;
The control equipment obtains the 4th group of parameter from the reconstitution device, and the 4th group of parameter includes described heavy The group equipment institute quantity of the IP packet of the received target service stream, the reconstitution device are it is expected that the target industry after being recombinated The quantity of the IP packet of the quantity of the IP packet flowed of being engaged in and the target service stream of reconstitution device transmission;
The control equipment is according to first group of parameter, second group of parameter, the third group parameter and described Four groups of parameters calculate the number of dropped packets of the target service stream on the transmit path.
In conjunction with the embodiment of the present invention in a first aspect, in the first implementation of the first aspect of the embodiment of the present invention, The third group parameter further include the fragment equipment at least one IP packet in the IP packet of the received target service stream IP packet mark, it is contemplated that each IP packet identifies the quantity after identified IP coating fragment and fragment equipment transmission Each IP packet identifies the quantity of identified IP packet;
The 4th group of parameter further include the reconstitution device in the IP packet of the received target service stream at least The IP packet mark of one IP packet, it is contemplated that each IP packet identifies the quantity after identified IP coating recombination and the recombination is set Each IP packet that preparation is sent identifies the quantity of identified IP packet;
The control equipment calculates the IP packet also according to the third group parameter and the 4th group of parameter and is marked The number of dropped packets of the IP packet of knowledge on the transmit path.
Second aspect of the embodiment of the present invention provides a kind of statistics packet discarding method characterized by comprising
The instruction that fragment equipment receiving control apparatus is sent, the instruction include the feature of target service stream;
The fragment equipment counts the received target service of the fragment equipment according to the feature of target service stream The quantity of the IP packet of stream;
The fragment equipment is according to the IP packet of the received target service stream of the fragment equipment, it is contemplated that after being fragmented The quantity of the IP packet of the target service stream;
The fragment equipment is according to the maximum transmission unit of the fragment equipment by the received mesh of the fragment equipment The IP packet fragmentation of Business Stream is marked, and sends the IP packet after being fragmented;
The quantity of the IP packet for the target service stream that the fragment device statistics are sent;
The fragment equipment sends the IP packet of the received target service stream of the fragment equipment to the control equipment Quantity, the fragment equipment is estimated be fragmented after the target service stream IP packet quantity and fragment equipment transmission The target service stream IP packet quantity.
In conjunction with the second aspect of the embodiment of the present invention, in the first implementation of the second aspect of the embodiment of the present invention, The IP packet mark at least one IP packet in IP packet that the fragment equipment also sends the target service stream to the control equipment Know, it is contemplated that each IP packet that quantity and the fragment equipment after the identified IP coating fragment of each IP packet mark are sent Identify the quantity of identified IP packet.
The third aspect of the embodiment of the present invention provides a kind of statistics packet discarding method, comprising:
The instruction that reconstitution device receiving control apparatus is sent, the instruction include the feature of target service stream;
The reconstitution device counts the received target of the reconstitution device according to the feature of the target service stream The quantity of the IP packet of Business Stream;
The reconstitution device is according to the IP packet of the received target service stream of the reconstitution device, it is contemplated that after recombinating The quantity of the IP packet of the target service stream;
The IP package-restructuring of the reconstitution device target service stream received to the reconstitution device, and send and recombinated IP packet afterwards;
The quantity of the IP packet for the target service stream that the reconstitution device statistics is sent;
The reconstitution device sends the IP packet of the received target service stream of the reconstitution device to the control equipment Quantity, the reconstitution device is estimated recombinated after the target service stream IP packet quantity and reconstitution device transmission The target service stream IP packet quantity.
In conjunction with the third aspect of the embodiment of the present invention, in the first implementation of the third aspect of the embodiment of the present invention, The IP packet mark at least one IP packet in IP packet that the reconstitution device also sends the target service stream to the control equipment Know, it is contemplated that each IP packet identifies each IP packet that the quantity after identified IP coating recombination and the reconstitution device are sent Identify the quantity of identified IP packet.
Fourth aspect of the embodiment of the present invention provides a kind of control equipment, comprising:
First acquisition unit, for obtaining transmission path of the target service stream in network topology, wherein the transmission road Active end edge device, fragment equipment, reconstitution device and destination edge device on diameter;
Second acquisition unit, for obtaining first group of parameter from the source edge device, first group of parameter Quantity including the IP packet of the target service stream transmitted by the source edge device;
The second acquisition unit is also used to obtain second group of parameter from the destination edge device, and described second Group parameter include the destination edge device the IP packet of the received target service stream quantity;
The second acquisition unit is also used to obtain the third group parameter from the fragment equipment, the third group parameter Including the fragment equipment the received target service stream the quantity of IP packet, the fragment equipment it is estimated be fragmented after The quantity of the IP packet for the target service stream that the quantity of the IP packet of the target service stream and the fragment equipment are sent;
The second acquisition unit is also used to obtain the 4th group of parameter from the reconstitution device, the 4th group of parameter Including the reconstitution device the received target service stream the quantity of IP packet, the reconstitution device it is estimated recombinated after The quantity of the IP packet for the target service stream that the quantity of the IP packet of the target service stream and the reconstitution device are sent;
Computing unit, for according to first group of parameter, second group of parameter, the third group parameter and described the Four groups of parameters calculate the number of dropped packets of the target service stream on the transmit path.
In conjunction with the fourth aspect of the embodiment of the present invention, in the first implementation of the fourth aspect of the embodiment of the present invention, The third group parameter further include the fragment equipment at least one IP packet in the IP packet of the received target service stream IP packet mark, it is contemplated that each IP packet identifies the quantity after identified IP coating fragment and fragment equipment transmission Each IP packet identifies the quantity of identified IP packet;
The 4th group of parameter further include the reconstitution device in the IP packet of the received target service stream at least The IP packet mark of one IP packet, it is contemplated that each IP packet identifies the quantity after identified IP coating recombination and the recombination is set Each IP packet that preparation is sent identifies the quantity of identified IP packet;
The computing unit is also used to calculate the IP packet mark according to the third group parameter and the 4th group of parameter The number of dropped packets of the IP packet identified on the transmit path.
The 5th aspect of the embodiment of the present invention provides a kind of fragment equipment, comprising:
Receiving unit, for the instruction that receiving control apparatus is sent, the instruction includes the feature of target service stream;
First statistic unit counts the received target of the fragment equipment for the feature according to target service stream The quantity of the IP packet of Business Stream;
Expected cell, for the IP packet according to the received target service stream of the fragment equipment, it is contemplated that after being fragmented The target service stream IP packet quantity;
Sharding unit, for according to the maximum transmission unit of the fragment equipment by the received mesh of the fragment equipment The IP packet fragmentation of Business Stream is marked, and sends the IP packet after being fragmented;
Second statistic unit, the quantity of the IP packet for counting the target service stream sent;
Transmission unit, for sending the IP packet of the received target service stream of the fragment equipment to the control equipment Quantity, the fragment equipment is estimated be fragmented after the target service stream IP packet quantity and fragment equipment transmission The target service stream IP packet quantity.
The 6th aspect of the embodiment of the present invention provides a kind of reconstitution device, comprising:
Receiving unit, for the instruction that receiving control apparatus is sent, the instruction includes the feature of target service stream;
It is received described to count the reconstitution device for the feature according to the target service stream for first statistic unit The quantity of the IP packet of target service stream;
Expected cell, for the IP packet according to the received target service stream of the reconstitution device, it is contemplated that after recombinating The target service stream IP packet quantity;
Recomposition unit for the IP package-restructuring to the received target service stream of the reconstitution device, and sends and is weighed IP packet after group;
Second statistic unit, the quantity of the IP packet for counting the target service stream sent;
Transmission unit, for sending the IP packet of the received target service stream of the reconstitution device to the control equipment Quantity, the reconstitution device is estimated recombinated after the target service stream IP packet quantity and reconstitution device transmission The target service stream IP packet quantity.
The 7th aspect of the embodiment of the present invention provides a kind of control equipment, comprising:
Interface & processor;
The processor is for obtaining transmission path of the target service stream in network topology, wherein in the transmission path Active end edge device, fragment equipment, reconstitution device and destination edge device;
The processor is also used to first group of parameter by the interface from the source edge device, described First group of parameter includes the quantity of the IP packet of the target service stream transmitted by the source edge device;
The processor is also used to second group of parameter by the interface from the destination edge device, institute State second group of parameter include the destination edge device the IP packet of the received target service stream quantity;
The processor is also used to the third group parameter by the interface from the fragment equipment, the third Group parameter includes the fragment equipment institute quantity of the IP packet of the received target service stream, the fragment equipment it is expected that being divided The number of the IP packet for the target service stream that the quantity of the IP packet of the target service stream after piece and the fragment equipment are sent Amount
The processor is also used to the 4th group of parameter by the interface from the reconstitution device, and the described 4th Group parameter includes the reconstitution device institute quantity of the IP packet of the received target service stream, the reconstitution device it is expected that being weighed The number of the IP packet for the target service stream that the quantity of the IP packet of the target service stream after group and the reconstitution device are sent Amount;
The processor is also used to according to first group of parameter, second group of parameter, the third group parameter and institute It states the 4th group of parameter and calculates the number of dropped packets of the target service stream on the transmit path.
In conjunction with the embodiment of the present invention the 7th aspect, the embodiment of the present invention the 7th aspect the first implementation in,
The third group parameter that the processor passes through the interface further includes that the fragment equipment institute is received described The IP packet of at least one IP packet in the IP packet of target service stream identifies, it is contemplated that each IP packet identifies identified IP and is coated with fragment Each IP packet that quantity and the fragment equipment afterwards is sent identifies the quantity of identified IP packet;
The 4th group of parameter further include the reconstitution device in the IP packet of the received target service stream at least The IP packet mark of one IP packet, it is contemplated that each IP packet identifies the quantity after identified IP coating recombination and the recombination is set Each IP packet that preparation is sent identifies the quantity of identified IP packet;
The processor is also used to calculate IP packet mark institute according to the third group parameter and the 4th group of parameter The number of dropped packets of the IP packet of mark on the transmit path.
Eighth aspect of the embodiment of the present invention provides a kind of fragment equipment, comprising:
Interface, processor and Content Addressable Memory;
The interface is used for the instruction that receiving control apparatus is sent, and the instruction includes the feature of target service stream;
The Content Addressable Memory is used for according to the feature of target service stream received from received multiple IP packets In find out the IP packet of received target service stream, and find out from multiple IP packets of transmission the target service stream of transmission IP packet;
The processor for count the quantity of the IP packet of the received target service stream and the target of transmission The quantity of the IP packet of Business Stream, and according to the received target service stream IP packet calculate after estimated be fragmented described in The quantity of the IP packet of target service stream;
The processor is also used to the received mesh of the fragment equipment according to the maximum transmission unit of fragment equipment The IP packet fragmentation of Business Stream is marked, and the IP packet after being fragmented is sent by interface 801;
The processor is also used to count the quantity of the IP packet of the target service stream of transmission;
The quantity of the IP packet for the target service stream that the interface is also used to count the processor expects to be fragmented The quantity of the IP packet of the target service stream of the quantity and transmission of the IP packet of the target service stream afterwards is sent to control and sets It is standby.
The 9th aspect of the embodiment of the present invention provides a kind of reconstitution device, comprising:
Interface, processor and Content Addressable Memory;
The interface is used for the instruction that receiving control apparatus is sent, and the instruction includes the feature of target service stream;
The Content Addressable Memory is used for according to the feature of target service stream received from received multiple IP packets In find out the IP packet of received target service stream, and find out from multiple IP packets of transmission the target service stream of transmission IP packet;
The processor be used to count the quantity of the IP packet of received target service stream and the target service stream of transmission The quantity of IP packet, and according to the IP packet of the received target service stream calculate the target service after estimated recombinated The quantity of the IP packet of stream;
The processor is also used to the IP package-restructuring of the target service stream received to the reconstitution device, and by connecing Mouth 801 sends the IP packet after being recombinated;
The processor is also used to count the quantity of the IP packet of the target service stream of transmission;
The quantity of the IP packet for the target service stream that the interface is also used to count the processor expects to be recombinated The quantity of the IP packet of the target service stream of the quantity and transmission of the IP packet of the target service stream afterwards is sent to control and sets It is standby.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In the embodiment of the present invention, since the variation of the quantity of IP packet occurs in fragment equipment and reconstitution device, because This, quantity of the control equipment by obtaining the IP packet of the transmission from source edge device, connecing from destination edge device The quantity of the IP packet of receipts, the quantity of the received IP packet from the fragment equipment, the quantity and hair for expecting the IP packet after fragment The quantity of IP packet after the quantity of the IP packet sent, and the quantity of the received IP packet from the reconstitution device, estimated recombination With the quantity of the IP packet of transmission,;In this way, control equipment can the quantity of these IP packets based on the received transmitted to calculate The quantity of the IP packet loss that do not exist together in path, moreover, calculating number of dropped packets is by control equipment come responsible, it will not be to transmission path On each transmission device bring performance to influence, reduce improvement cost.
Detailed description of the invention
Fig. 1 is the flow chart that packet discarding method is counted in one embodiment of the present of invention;
Fig. 2 is the flow chart that packet discarding method is counted in another embodiment of the invention;
Fig. 3 is the structural schematic diagram of one embodiment of the transmission path of target service stream;
Fig. 4 is the quantity of the IP packet for the target service stream that control equipment shown in Fig. 3 receives and the number of dropped packets of calculating Schematic diagram;
Fig. 5 is the structural schematic diagram that equipment is controlled in one embodiment of the present of invention;
Fig. 6 is the structural schematic diagram of fragment equipment in one embodiment of the present of invention;
Fig. 7 is the structural schematic diagram that equipment is controlled in one embodiment of the present of invention;
Fig. 8 is the structural schematic diagram of fragment equipment in one embodiment of the present of invention.
Specific embodiment
The embodiment of the invention provides statistics packet discarding method, control equipment, fragment equipment and reconstitution devices, can be to IP packet Packet drop in transmission process is counted.
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical solution in the embodiment of the present invention are explicitly described, it is clear that described embodiment is only the present invention The embodiment of a part, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not having Every other embodiment obtained under the premise of creative work is made, should fall within the scope of the present invention.
Referring to Fig. 1, statistics packet discarding method includes: in one embodiment of the present of invention
101, control equipment obtains transmission path of the target service stream in network topology, wherein having in the transmission path Source edge device, fragment equipment, reconstitution device and destination edge device.
In the present embodiment, in order to obtain packet drop of the business with certain feature in transmission process, equipment is controlled Passed through during needing the transmission path got the business in network topology namely the business to transmit in a network first Equipment, which is referred to as transmission device, which is referred to as target service stream.The feature of target service stream is with can be source IP Location, purpose IP address, source media access control (English: media access control, abbreviation: MAC) address, purpose MAC Address, port numbers, at least one in DSCP (Differentiated Services Code Point, differentiated services code points) It is a, it can also be that other can be identified for that the feature of business.
In the present embodiment, control device memory has network topology.Equipment is controlled after the feature for getting target service stream The transmission path of the target service stream can be got.
Active end edge device, fragment equipment, reconstitution device and destination boundary are set in the transmission path of target service stream It is standby.Wherein, source edge device and destination edge device refer respectively to the First in the transmission path of target service stream With last transmission device.On the transmit path, when the IP packet of target service stream enters the biography that MTU is less than the size of the IP packet When transfer device, which carries out fragment to the IP packet, so that each fragment is less than or equal to the MTU of the transmission device, that The transmission device is known as fragment equipment.In practice, source edge device is also possible to fragment equipment, does not limit herein System.The quantity of fragment equipment in transmission path can be one or more.
Reconstitution device is located at the downstream of fragment equipment, obtains after at least one fragment equipment fragment for recombinating an IP packet To each fragment to obtain the IP packet, and send the transmission device of the IP packet to downstream.In practice, destination edge device It is also possible to reconstitution device, this is not restricted.Serving as on source boundary does not have other fragments in fragment equipment and transmission path In the case where equipment, can also there is no reconstitution device in transmission path.
For convenience of description, the source edge device hereinafter collectively referred to as in the transmission path of target service stream, fragment equipment, again Group equipment and destination edge device are key equipment.There can also be other transmission devices in the transmission path of target service stream, Other transmission devices only circulate to target service and send out, not to the IP packet fragmentation of target service stream and recombination.
102, the control equipment obtains first group of parameter from the source edge device, first group of parameter packet Include the quantity of the IP packet of the target service stream transmitted by the source edge device.
The control equipment obtains second group of parameter from the destination edge device, and second group of parameter includes The destination edge device the IP packet of the received target service stream quantity.
The control equipment obtains the third group parameter from the fragment equipment, and the third group parameter includes described point Piece equipment the quantity of the IP packet of the received target service stream, the fragment equipment are estimated be fragmented after the target industry The quantity of the IP packet of the quantity of the IP packet flowed of being engaged in and the target service stream of fragment equipment transmission.
The control equipment obtains the 4th group of parameter from the reconstitution device, and the 4th group of parameter includes described heavy The group equipment institute quantity of the IP packet of the received target service stream, the reconstitution device are it is expected that the target industry after being recombinated The quantity of the IP packet of the quantity of the IP packet flowed of being engaged in and the target service stream of reconstitution device transmission.
After control equipment gets the transmission path of target service stream, the transmission device transmission in transmission path refers to It enables, which includes the feature of target service stream, which is used to indicate transmission device according to the feature pair of the target service stream The quantity of the IP packet of the target service stream is counted.Specifically, controlling transmission of the equipment to target service stream in the present embodiment All transmission devices on path send instruction.
If transmission device is source edge device, the quantity of the IP packet of the target service stream of transmission is counted, and is sent to Control equipment.If transmission device is destination edge device, the quantity of the IP packet of received target service stream is counted, and is sent Give control equipment.
If transmission device is fragment equipment, fragment equipment is received according to the characteristic statistics of the target service stream fragment equipment Target service stream IP packet quantity, also according to the IP packet of the received target service stream of the fragment equipment, it is contemplated that after being fragmented Target service stream IP packet quantity.Fragment equipment is according to the MTU of the fragment equipment by the received target industry of the fragment equipment The IP packet fragmentation of business stream, and send the IP packet after being fragmented.Wherein, each IP of target service stream is obtained after being fragmented equipment fragment To each IP packet be still target service stream IP packet.The quantity of the IP packet for the target service stream that fragment device statistics are sent, and will It is received, estimated be fragmented after and the quantity of IP packet of target service stream of transmission be sent to control equipment, set to control It is standby can be according to the quantity of the practical IP packet sent and it is expected that the quantity of the IP packet after fragment exists to calculate target service stream Number of dropped packets at the fragment equipment.Wherein, it is contemplated that the quantity of the IP packet after being fragmented refers to fragment equipment according to theoretical calculation To the quantity of obtained IP packet estimated after the IP packet fragmentation received.
If transmission device is reconstitution device, reconstitution device is received according to the characteristic statistics of the target service stream reconstitution device Target service stream IP packet quantity, also according to the IP packet of the received target service stream of the reconstitution device, it is contemplated that after recombinating Target service stream IP packet quantity.Reconstitution device is to the IP package-restructuring of the received target service stream of the reconstitution device, concurrently Send the IP packet after being recombinated.The quantity of the IP packet for the target service stream that reconstitution device statistics is sent, and weighed received, estimated The quantity of the IP packet of after group and transmission target service stream is sent to control equipment, can be according to the reality to control equipment The quantity of the IP packet of transmission and it is expected that the quantity of IP packet after being recombinated calculates target service stream at the reconstitution device Number of dropped packets.Wherein, it is contemplated that the quantity of the IP packet after recombination refers to reconstitution device according to theoretical calculation to the IP packet weight received The quantity of estimated obtained IP packet after group.
Other transmission devices need to only count the quantity of the IP packet of target service stream that is received and sending.
In the present embodiment, the different IP packets in target service stream are sent to from the different port of fragment equipment different respectively When transmission device, the quantity of the IP packet of the target service stream for the transmission that fragment equipment is counted can also be each sending port The quantity of the IP packet of transmitted target service stream.Since the IP packet that the different sending ports of fragment equipment are sent is by not In same link transmission to different transmission devices, the quantity for counting the IP packet that each port is sent can facilitate subsequent calculating Number of dropped packets on this two different chain roads.If not needing to calculate the number of dropped packets of this two different chain roads but calculating one In the case where a total number of dropped packets, the quantity of IP packet transmitted by each sending port of fragment equipment can not also be counted, But count the quantity of the total transmission IP packet of fragment equipment.
Control equipment can be equally to the instruction that different transmission devices is sent, but each transmission device is receiving instruction The type for being sent to the quantity of the IP packet of control equipment is determined according to the transmission device afterwards.
In the present embodiment, source edge device can be fragment equipment, and destination edge device can be reconstitution device.? It has included the source edge device, i.e. fragment equipment, hair in third group parameter in the case that source edge device is fragment equipment The quantity of the IP packet of the target service stream sent, thus source edge device to first group of parameter transmitted by control equipment such as above The third group parameter sent needed for described fragment equipment.In the case where destination edge device is reconstitution device, the 4th It has included the destination edge device, i.e. reconstitution device, the quantity of the IP packet of received target service stream, therefore mesh in group parameter End edge device to the 4th of transmission needed for second group of parameter reconstitution device as described above transmitted by control equipment Group parameter.
103, the control equipment is according to first group of parameter, second group of parameter, the third group parameter and institute It states the 4th group of parameter and calculates the number of dropped packets of the target service stream on the transmit path.
Equipment is controlled when calculating number of dropped packets, packet loss of the target service stream in fragment equipment and reconstitution device can be calculated Number.Specifically, the quantity that the fragment equipment in third group parameter expects the IP packet of the target service stream after being fragmented can be used The quantity for subtracting the IP packet of the target service stream of transmission obtains number of dropped packets of the target service stream in the fragment equipment;It can be used Reconstitution device expects that the quantity of the IP packet of the target service stream after being recombinated subtracts the target service stream of transmission in 4th group of parameter IP packet quantity, obtain number of dropped packets of the target service stream in the reconstitution device.
Control equipment can also calculate target service stream between fragment equipment or reconstitution device and other transmission devices The packet drop of chain road.Specifically, target industry that control equipment can send the fragment equipment in third group parameter The quantity (quantity of the IP packet i.e. after the target service flow fragmentation) of the IP packet of business stream subtracts the mesh that other transmission devices receive The quantity of the IP packet of Business Stream is marked to obtain the IP in target service stream and be coated with number of dropped packets on the link after fragment.Control is set Quantity (the IP i.e. after the target service flow fragmentation of the IP packet of the standby target service stream that other transmission devices can also be sent The quantity of packet) subtract the target service stream that reconstitution device receives in the 4th group of parameter IP packet quantity (i.e. target service The quantity of IP packet before stream recombination) to obtain the IP in target service stream it is coated with number of dropped packets on the link after fragment.
Different transmission devices are sent to from the different sending ports of fragment equipment respectively in the different IP packets of target service stream In the case where, fragment equipment respectively has a link between the transmission device different from this respectively.Calculating wherein link It is that the fragment equipment is corresponded to the quantity of IP packet of the target service stream that the sending port of the link is sent to subtract down when number of dropped packets The quantity of the IP packet for the target service stream that the transmission device of trip receives.If not needing to calculate target service stream in fragment equipment The number of dropped packets of chain road corresponding to each sending port, but calculate corresponding to whole sending ports of fragment equipment The total number of discarded packets of whole chain roads, the then quantity for calculating the IP packet for the target service stream of fragment equipment always sent subtract the fragment The corresponding next key equipment of each sending port of equipment distinguishes the total of the quantity of the IP packet of received target service stream With obtained difference.
Control equipment can also calculate number of dropped packets of the target service stream on key equipment on the link number of dropped packets it With obtain the total number of discarded packets of target service stream on the transmit path.
In the embodiment of the present invention, since the variation of the quantity of IP packet occurs in fragment equipment and reconstitution device, because This, quantity of the control equipment by obtaining the IP packet of the transmission from source edge device, connecing from destination edge device The quantity of the IP packet of receipts, the quantity of the received IP packet from the fragment equipment, the quantity and hair for expecting the IP packet after fragment The quantity of IP packet after the quantity of the IP packet sent, and the quantity of the received IP packet from the reconstitution device, estimated recombination With the quantity of the IP packet of transmission,;In this way, control equipment can the quantity of these IP packets based on the received calculate target industry Business stream will not moreover, calculating number of dropped packets is by control equipment come responsible in the quantity of the IP packet loss that do not exist together of transmission path It brings performance to influence each transmission device in transmission path, reduces improvement cost.
Preferably, in the present embodiment, controlling in third group parameter acquired in equipment further includes that the fragment equipment is connect The IP packet mark of at least one IP packet in the IP packet for the target service stream received, it is contemplated that each IP packet identifies identified IP Each IP packet that quantity and the fragment equipment after being coated with fragment are sent identifies the quantity of identified IP packet;Control is set Further include in standby the 4th group of acquired parameter the reconstitution device in the IP packet of the received target service stream at least The IP packet mark of one IP packet, it is contemplated that each IP packet identifies the quantity after identified IP coating recombination and the recombination is set Each IP packet that preparation is sent identifies the quantity of identified IP packet.Specifically, IP packet mark can be the IP packet The combination of Identification field and target service stream feature.Certainly, IP packet mark is also possible to other, does not limit herein System.
Each IP packet of calculating can also be identified according to the IP packet of each IP packet of target service stream on the transmit path by controlling equipment Number of dropped packets.It is set specifically, control equipment can calculate the identified IP packet of each IP packet mark according to third group parameter in fragment The number of dropped packets at standby place can calculate each IP packet according to the 4th group of parameter and identify packet loss of the identified IP packet at reconstitution device Number.There is identical IP packet to identify in the 4th group of parameter if third group parameter neutralizes, control equipment can also calculate the identical IP Packet identifies number of dropped packets of the identified IP packet on the chain road between fragment equipment and reconstitution device.
For concrete example, IP packet A at fragment equipment 1 estimated fragment at n new IP packet a, but control equipment according to IP packet mark calculates fragment equipment 1 and actually has sent x new IP packet a, then the IP packet A losing at the fragment equipment 1 Packet number is n-x.And it controls equipment and calculates the reconstitution device 1 for being located at 1 downstream of fragment equipment in transmission path according to IP packet mark Y new IP packet a are received only to IP packet A, then the IP packet A is on the chain road between fragment equipment 1 and reconstitution device 1 Number of dropped packets is x-y.In the present embodiment, control equipment, which understands, can indicate that source edge device is lost to having after the number of dropped packets of each IP packet The IP packet of packet situation is retransmitted.
In the present embodiment, the quantity of the IP packet of the target service stream of key equipment statistics is obtained in step 102 control equipment In, specifically all transmission devices in transmission path send instruction to control equipment, then send again from all transmission devices IP packet quantity in determine key equipment statistics IP packet quantity.
In practice, it is preferred that control equipment first can also be determined to transmit according to the transmission path of target service stream The key equipment in path.Since source and destination edge device set for the First in transmission path with last transmission It is standby, therefore control equipment can thereby determine that out source edge device and destination edge device.When determining fragment equipment, control Control equipment first obtains the MTU of all transmission devices in transmission path, if the MTU of one of transmission device 2 in transmission path Than the MTU hour for being located at 2 upstream of transmission device and adjacent transmission device 1, it may be determined that transmission device 2 is fragment equipment, or Person, if the MTU of one of transmission device 1 in transmission path is than being located at 1 downstream of transmission device and adjacent transmission device 2 MTU it is big when, it may be determined that transmission device 2 be fragment equipment.
It after control equipment determines the key equipment in transmission path, sends and instructs to the key equipment, which is used for Instruction key equipment counts the quantity of the IP packet of target service stream.
It controls equipment and receives first group of parameter from the source edge device, first group of parameter includes the source Hold the quantity of the IP packet of the target service stream transmitted by edge device;Receive second from the destination edge device Group parameter, second group of parameter include the destination edge device the IP packet of the received target service stream number Amount;Receive the third group parameter from the fragment equipment, the third group parameter includes received institute of the fragment equipment institute The quantity of the IP packet of the target service stream after stating that the quantity of the IP packet of target service stream, the fragment equipment are estimated and being fragmented The quantity of the IP packet of the target service stream sent with the fragment equipment;Receive the 4th group of ginseng from the reconstitution device Number, the 4th group of parameter include the reconstitution device the quantity of the IP packet of the received target service stream, the recombination Equipment expects the target service that the quantity of the IP packet of the target service stream after being recombinated and the reconstitution device are sent The quantity of the IP packet of stream.
In this way, only have key equipment to count the quantity of IP packet in transmission path, other in addition to key equipment Transmission device improves the forwarding performance of whole network without counting to IP packet.
In above example, the IP packet of target service stream can undergo at least one fragment equipment on the transmit path.It is practical In, the equipment also available minimum MTU in transmission path is controlled, and the IP packet of target service stream is made to be less than this most Small MTU is fragmented again to avoid the IP packet.Statistics packet discarding method in the embodiment of the present invention is described below.It please refers to Fig. 2, statistics packet discarding method includes: in another embodiment of the invention
201, control equipment obtains transmission path of the target service stream in network topology, wherein having in the transmission path Source edge device, fragment equipment, reconstitution device and destination edge device.
The explanation of step 101 in embodiment shown in Figure 1 is described in detail.
202, the control equipment obtains the MTU of all transmission devices in the transmission path.
203, the control equipment determines preset MTU, sets wherein the preset MTU is less than or equal to all transmission Minimum MTU in standby.
Control equipment can from transmission path the MTU of all transmission devices find out wherein the smallest MTU as preset MTU can also perhaps find out the smallest MTU as preset MTU or can also be with from the MTU of all devices in network topology By other methods, as long as determining the minimum in all transmission devices less than or equal to the transmission path of target service stream The preset MTU of MTU.
204, source edge device and destination edge device transmission of the control equipment in the transmission path refer to Enable, wherein described instruction be used to indicate the source edge device serve as fragment equipment come the IP packet to the target service stream into Row fragment so that each IP packet after fragment is less than or equal to the preset MTU, be also used to indicate the source edge device and Destination edge device counts the quantity of the IP packet of the target service stream.
In the present embodiment, after source edge device receives the instruction from control equipment, serves as fragment equipment and come to mesh The IP packet for marking Business Stream carries out fragment, and the size of each the new IP packet obtained after fragment is less than or equal to preset MTU, to keep away Exempt from the IP packet of target service stream and carries out fragment again in subsequent transmission device on the transmit path.In this way, source edge device The IP packet of transmission is during the entire process of being transferred to destination edge device, the reason of removing packet loss, will not be again because other are former Thus generate the variation of quantity.
205, the control equipment, which receives, comes from first group of parameter of the source edge device, and first group of parameter includes The quantity of the IP packet of the received target service stream, the source edge device are estimated be fragmented after the target service The quantity of the IP packet for the target service stream that the quantity of the IP packet of stream and the source edge device are sent, also receives and comes from institute Second group of parameter of destination edge device is stated, second group of parameter includes the received mesh of the destination edge device Mark the quantity of the IP packet of Business Stream.
206, the control equipment calculates the target service stream in institute according to first group of parameter and second group of parameter State the number of dropped packets in transmission path.
Specifically, control equipment, which can calculate source edge device described in first group of parameter, expects the target after being fragmented The difference of the quantity of the IP packet of the target service stream of the quantity and transmission of the IP packet of Business Stream, the difference are target service stream on source side Number of dropped packets in boundary's equipment.Alternatively, control equipment can calculate the received mesh of destination edge device in second group of parameter Mark the quantity and the IP packet of the target service stream of the transmission of source edge device described in first group of parameter of the IP packet of Business Stream Quantity difference, the difference be packet loss of the target service stream on the chain road between source edge device and destination edge device Number.
Controlling equipment compared to embodiment one, in the present embodiment can simplify the algorithm for calculating packet loss.
For ease of understanding, it is retouched below with statistics packet discarding method of the practical application scene to the embodiment of the present invention It states.
As shown in figure 3, Fig. 3 is the structural schematic diagram of one embodiment of the transmission path of target service stream.User is being controlled The characteristic value of target service stream is configured on control equipment 30.It controls equipment 30 and the target is got according to the feature of the target service stream The transmission path of Business Stream.In the transmission path, the IP packet of target service stream is issued from departure place 38 through source edge device Fragment equipment 32 is reached after 31.IP is coated with 32 fragment of fragment equipment, and different fragments is respectively from the first end of fragment equipment 32 Mouth and second port are sent to different transmission devices.
The IP packet issued from the first port of fragment equipment 32 reaches fragment equipment 33, and sends out after being fragmented 33 fragment of equipment It send, is transferred to reconstitution device 34.Reconstitution device 34 is by the IP package-restructuring received and is sent to destination edge device 35.
The IP packet sent from the second port of fragment equipment 32 is successively by reaching destination after two transmission devices 36 Edge device 35.Received all IP packets are sent to destination 37 by destination edge device 35.
It controls all transmission devices of the equipment 30 in transmission path and sends instruction, include target service stream in the instruction Feature, the instruction are used to indicate each transmission device according to the feature of the target service stream to the IP packet of the target service stream Quantity is counted.
Specifically, after each transmission device in transmission path receives the instruction:
The quantity of the IP packet of the target service stream of 31 pairs of source edge device transmissions counts.
Fragment equipment 32 counts the quantity of the IP packet of the target service stream received, expects the target service stream after being fragmented IP packet quantity, issue to fragment equipment 33 target service stream IP packet quantity and sending to transmission device 36 target The quantity of the IP packet of Business Stream.
Fragment equipment 33 counts the quantity of the IP packet received, expects the quantity of the IP packet after being fragmented and the IP packet of transmission Quantity.
Reconstitution device 34 counts the quantity of the IP packet received, expects the quantity of the IP packet after being recombinated and the IP packet of transmission Quantity.
Other transmission devices 36 then need to only count the quantity of the quantity of received IP packet and the IP packet of transmission.
Destination edge device 35 counts the quantity of received IP packet.
The quantity of the IP packet counted is sent to control equipment 30 by each transmission device in transmission path.
Timestamp of each transmission device also by the IP packet of target service stream when entering the transmission device in transmission path And the IP packet identification record of each IP packet gets off, and the quantity of the IP packet counted is sent to control equipment 30 together, wherein The IP packet of each IP packet is identified as the combination of the Identification field and Business Stream feature of the IP packet.Control equipment 30 connects It receives and stores the data that all transmission devices are sent in the transmission path of target service stream.
As shown in figure 4, Fig. 4 is the quantity and meter of the IP packet for the target service stream that control equipment shown in Fig. 3 receives The schematic diagram of the number of dropped packets of calculation.When controlling equipment 30 to target service stream calculation number of dropped packets, control equipment 30 finds out target industry The quantity of all IP packets of business stream, and find out from the quantity of all IP packets of the target service stream and set respectively from source boundary The quantity of the IP packet of standby, fragment equipment, reconstitution device and destination edge device.Then, control equipment 30 according to each IP packet into Timestamp when entering transmission device will successively come from source edge device, fragment equipment, reconstitution device and destination edge device The quantity of IP packet be ranked up.
Specifically, in the embodiment shown in fig. 4, the quantity of the IP packet for the target service stream that source edge device 31 receives It is 20, the quantity of the IP packet of the target service stream of transmission is 18, then packet loss of the target service stream at source edge device 31 Number is 20-18=2.
The quantity of the IP packet for the target service stream that fragment equipment 32 receives is 18, then, target service stream is set in fragment The number of dropped packets on link 41 between standby 32 and source edge device 31 is 18-18=0.After the estimated fragment of fragment equipment 32 The quantity of the IP packet of target service stream is 36, and the quantity for being sent to the IP packet of the target service stream of the transmission of fragment equipment 33 is 14, the quantity for being sent to the IP packet of the target service stream of the transmission of transmission device 36 is 18.So target service stream is set in fragment Number of dropped packets at standby 32 is 36-14-18=4.
The quantity for the IP packet that fragment equipment 33 receives is 18, then target service stream is in fragment equipment 32 and fragment equipment The number of dropped packets on link 42 between 33 is 18-18=0.The quantity of IP packet after the estimated fragment of fragment equipment 33 is 45, hair The quantity of the IP packet sent is 45, then number of dropped packets of the target service stream at fragment equipment 33 is 45-45=0.
The quantity for the IP packet that reconstitution device 34 receives is 40, then target service stream is in reconstitution device 34 and fragment equipment The number of dropped packets on link 43 between 33 is 45-40=5.The quantity of IP packet after the estimated recombination of reconstitution device 34 is 18, hair The quantity of the IP packet sent is 9, then number of dropped packets of the target service stream at reconstitution device 34 is 18-9=9.
The quantity for the IP packet that destination edge device 35 receives is 10, then target service stream is in fragment equipment 33 and mesh End edge device 35 between link 44 on number of dropped packets be 14-10=4;Target service stream is in reconstitution device 34 and destination The number of dropped packets on link 45 between edge device 35 is 9-9=0.
The statistics packet discarding method in the embodiment of the present invention is described above, below to the control in the embodiment of the present invention Control equipment is described.Referring to Fig. 5, control equipment 500 includes: in the embodiment of the present invention
First acquisition unit 501, for obtaining transmission path of the target service stream in network topology, wherein the transmission Active end edge device, fragment equipment, reconstitution device and destination edge device on path;
Second acquisition unit 502, for obtaining first group of parameter from the source edge device, first group of ginseng Number includes the quantity of the IP packet of the target service stream transmitted by the source edge device;
The second acquisition unit 502 is also used to obtain second group of parameter from the destination edge device, described Second group of parameter include the destination edge device the IP packet of the received target service stream quantity;
The second acquisition unit 502 is also used to obtain the third group parameter from the fragment equipment, the third group Parameter include the fragment equipment the quantity of the IP packet of the received target service stream, the fragment equipment are estimated is fragmented The quantity of the IP packet for the target service stream that the quantity of the IP packet of the target service stream afterwards and the fragment equipment are sent;
The second acquisition unit 502 is also used to obtain the 4th group of parameter from the reconstitution device, and described 4th group Parameter include the reconstitution device the quantity of the IP packet of the received target service stream, the reconstitution device are estimated is recombinated The quantity of the IP packet for the target service stream that the quantity of the IP packet of the target service stream afterwards and the reconstitution device are sent;
Computing unit 503, for according to first group of parameter, second group of parameter, the third group parameter and institute It states the 4th group of parameter and calculates the number of dropped packets of the target service stream on the transmit path.
In the present embodiment, since the variation of the quantity of IP packet occurs in fragment equipment and reconstitution device, control Quantity of the control equipment by obtaining the IP packet of the transmission from source edge device, the received IP from destination edge device The quantity of packet, the quantity of the received IP packet from the fragment equipment expect the quantity of the IP packet after fragment and the IP of transmission The quantity and transmission of IP packet after the quantity of packet, and the quantity of the received IP packet from the reconstitution device, estimated recombination IP packet quantity,;In this way, control equipment can the quantity of these IP packets based on the received calculate in transmission path Do not exist together the quantity of IP packet loss, moreover, calculating number of dropped packets is by control equipment come responsible, it will not be to each in transmission path Transmission device brings performance to influence, and reduces improvement cost.
Preferably, in the present embodiment, the third group parameter further includes the received target industry of the fragment equipment institute The IP packet mark at least one the IP packet being engaged in the IP packet of stream, it is contemplated that each IP packet identifies the number after identified IP coating fragment Each IP packet that amount and the fragment equipment are sent identifies the quantity of identified IP packet;
The 4th group of parameter further include the reconstitution device in the IP packet of the received target service stream at least The IP packet mark of one IP packet, it is contemplated that each IP packet identifies the quantity after identified IP coating recombination and the recombination is set Each IP packet that preparation is sent identifies the quantity of identified IP packet;
The computing unit 503 is also used to calculate the IP packet mark according to the third group parameter and the 4th group of parameter Know the number of dropped packets of identified IP packet on the transmit path.
It can refer to the description in embodiment illustrated in fig. 1 in the present embodiment, details are not described herein.
The control equipment in the embodiment of the present invention is described above, the fragment in the embodiment of the present invention is set below It is standby to be described.Referring to Fig. 6, fragment equipment 600 includes: in the embodiment of the present invention
Receiving unit 601, for the instruction that receiving control apparatus is sent, wherein the instruction includes the spy of target service stream Sign;
Statistic unit 602, for count institute after the quantity of IP packet of the received target service stream, estimated fragment State the quantity of the IP packet of the quantity of the IP packet of target service stream and the target service stream of transmission;
Transmission unit 603, for will count after the quantity of IP packet of the received target service stream, estimated fragment The target service stream the quantity of IP packet and the quantity of IP packet of the target service stream of transmission be sent to the control Equipment.
In the present embodiment, fragment equipment by statistics after the quantity of IP packet of received target service stream, estimated fragment The target service stream the quantity of IP packet and the quantity of IP packet of the target service stream of transmission be sent to the control Equipment can facilitate control equipment to number of dropped packets of the target service stream at fragment equipment and in fragment equipment and other transmission The number of dropped packets of chain road between equipment is calculated.
The fragment equipment in the embodiment of the present invention is described above, the recombination in the embodiment of the present invention is set below It is standby to be described.Referring to Fig. 6, reconstitution device 600 includes: in the embodiment of the present invention
Receiving unit 601, for the instruction that receiving control apparatus is sent, wherein the instruction includes the spy of target service stream Sign;
Statistic unit 602, for count institute after the quantity of IP packet of the received target service stream, estimated recombination State the quantity of the IP packet of the quantity of the IP packet of target service stream and the target service stream of transmission;
Transmission unit 603, for will count after the quantity of IP packet of the received target service stream, estimated recombination The target service stream the quantity of IP packet and the quantity of IP packet of the target service stream of transmission be sent to the control Equipment.
In the present embodiment, reconstitution device by statistics after the quantity of IP packet of received target service stream, estimated recombination The target service stream the quantity of IP packet and the quantity of IP packet of the target service stream of transmission be sent to the control Equipment can facilitate control equipment to number of dropped packets of the target service stream at reconstitution device and in reconstitution device and other transmission The number of dropped packets of chain road between equipment is calculated.
Above from the angle of blocking functional entity respectively to control equipment, the fragment equipment and again in the embodiment of the present invention Group equipment is described, below from the angle of hardware handles respectively to control equipment, the fragment equipment in the embodiment of the present invention It is described with reconstitution device.
Referring to Fig. 7, Fig. 7 is the structural schematic diagram of control equipment of the invention.
In the present embodiment, the specific form of the control equipment can be server, router, the network switch, and gateway is set It is standby, firewall box etc..The control equipment 700 includes interface 701 and processor 702.Processor 702 passes through bus and interface 701 connections.Bus is indicated with thick line in Fig. 7.
Interface 701 can be by optical transceiver, electric transceiver, wireless transceiver or any combination thereof realization.For example, light is received and dispatched Device can be Small Form-Factor Pluggable (English: small form-factor pluggable transceiver, abbreviation: SFP) and receive It sends out device (English: transceiver), enhancing Small Form-Factor Pluggable (English: enhanced small form-factor Pluggable, abbreviation: SFP+) transceiver or 10 gigabit Small Form-Factor Pluggables (English: 10Gigabit small form- Factor pluggable, abbreviation: XFP) transceiver.Electric transceiver can be Ethernet (English: Ethernet) network interface Controller (English: network interface controller, abbreviation: NIC).Wireless transceiver can be wireless network and connect Mouth controller (English: wireless network interface controller, abbreviation: WNIC).Interface 701 can wrap Multiple physical interfaces are included, such as interface 701 includes multiple Ethernet interfaces.
Processor 702 can be central processing unit (English: central processing unit, abbreviation: CPU), can also To be hardware chip, the combination of CPU and hardware chip can also be.Above-mentioned hardware chip can be the group of one or more of Close: field programmable gate array (English: field-programmable gate array, abbreviation: FPGA), complexity can Programmed logic device (English: complex programmable logic device, abbreviation: CPLD) and network processing unit (English: network processor, abbreviation: NP).
Processor 702 be CPU or processor 502 be CPU and hardware chip combination in the case where, the control equipment It can also include memory 703, be transferred to the processor for storing program code, and by the program code.Memory can be with Including volatile memory (English: volatile memory), such as random access memory (English: random-access Memory, abbreviation: RAM);Memory also may include nonvolatile memory (English: non-volatile memory), example Such as flash memory (English: flash memory), hard disk (English: hard disk drive, abbreviation: HDD) or solid state hard disk (English: solid-state drive, abbreviation: SSD);Memory can also include the combination of the memory of mentioned kind.Processing Device 702 is connected by bus and memory 703.
In first scene of the present embodiment, which executes following steps:
Firstly, processor 702 obtains transmission path of the target service stream in network topology, wherein in the transmission path Active end edge device, fragment equipment, reconstitution device and destination edge device.
Secondly, processor 702 receives first group of parameter from the source edge device by interface 701, described the One group of parameter includes the quantity of the IP packet of the target service stream transmitted by the source edge device.
Processor 702 also receives second group of parameter from the destination edge device by interface 701, and described second Group parameter include the destination edge device the IP packet of the received target service stream quantity.
Processor 702 also receives the third group parameter from the fragment equipment, the third group parameter by interface 701 Including the fragment equipment the received target service stream the quantity of IP packet, the fragment equipment it is estimated be fragmented after The quantity of the IP packet for the target service stream that the quantity of the IP packet of the target service stream and the fragment equipment are sent.
Processor 702 also receives the 4th group of parameter from the reconstitution device, the 4th group of parameter by interface 701 Including the reconstitution device the received target service stream the quantity of IP packet, the reconstitution device it is estimated recombinated after The quantity of the IP packet for the target service stream that the quantity of the IP packet of the target service stream and the reconstitution device are sent.
Optionally, processor 702 can also be by first group of parameter, second group of parameter, the third group parameter With the 4th group of reference record in memory 703.Alternatively, if memory includes RAM, processor 702 can will be described First group of parameter, second group of parameter, the third group parameter and the 4th group of reference record are in RAM.
Again, processor 702 is according to first group of parameter, second group of parameter, the third group parameter and described 4th group of parameter calculates the number of dropped packets of the target service stream on the transmit path.
In the second scenario of the present embodiment, processor 702 executes following steps:
Processor 702 further includes the received mesh of the fragment equipment institute by the received third group parameter of interface 701 Mark the IP packet mark of at least one IP packet in the IP packet of Business Stream, it is contemplated that after each IP packet identifies identified IP coating fragment Quantity and the quantity of the identified IP packet of each IP packet mark that sends of the fragment equipment.
The 4th group of parameter further include the reconstitution device in the IP packet of the received target service stream at least The IP packet mark of one IP packet, it is contemplated that each IP packet identifies the quantity after identified IP coating recombination and the recombination is set Each IP packet that preparation is sent identifies the quantity of identified IP packet.
Processor 702 calculates what the IP packet was identified also according to the third group parameter and the 4th group of parameter The number of dropped packets of IP packet on the transmit path.
Referring to Fig. 8, Fig. 8 is the structural schematic diagram of fragment equipment of the invention.
As shown in figure 8, the fragment equipment include interface 801, processor 802 and Content Addressable Memory (English: Content-addressable memory, abbreviation: CAM) 803.Processor 802 by bus respectively with interface 801, CAM 803 connections.Bus is indicated with thick line in Fig. 8.
Interface 801 can be by optical transceiver, electric transceiver, wireless transceiver or any combination thereof realization.For example, light is received and dispatched Device can be SFP transceiver, SFP+ transceiver or 10 gigabit small package pluggable transceivers.Electric transceiver can be Ethernet NIC.Wireless transceiver can be WNIC.Interface 801 may include multiple physical interfaces, such as interface 801 includes multiple ether Network interface.Interface 801 is used for the instruction that receiving control apparatus is sent, and the instruction includes the feature of target service stream.
Processor 802 can be the combination of one or more of: CPU, FPGA, NP.
CAM803 can be tri-state CAM (English: ternary CAM, abbreviation: TCAM).CAM803 is used for basis and receives The feature of target service stream find out the IP packet of received target service stream from received multiple IP packets, and from transmission The IP packet of the target service stream of transmission is found out in multiple IP packets.
Processor 802 for count the quantity of the IP packet of the received target service stream and the target industry of transmission Be engaged in stream IP packet quantity, and according to the IP packet of the received target service stream calculate the mesh it is expected that after being fragmented Mark the quantity of the IP packet of Business Stream.
Processor 802 is also used to the received target of the fragment equipment according to the maximum transmission unit of fragment equipment The IP packet fragmentation of Business Stream, and the IP packet after being fragmented is sent by interface 801.
Processor 802 is also used to count the quantity of the IP packet of the target service stream of transmission.
Interface 801 by the quantity of the IP packet for the target service stream that processor 802 counts, it is estimated be fragmented after described in The quantity of the IP packet of the target service stream of the quantity and transmission of the IP packet of target service stream is sent to control equipment.
Reconstitution device is similar with the structure of fragment equipment, unlike, processor in fragment equipment is used for according to being connect The IP packet for the target service stream received calculates the quantity of the IP packet of the estimated target service stream after being fragmented, Yi Jigen According to the maximum transmission unit of fragment equipment by the IP packet fragmentation of the received target service stream of the fragment equipment;And it recombinates and sets Processor in standby is used for the IP packet of the target service stream according to interface, it is contemplated that the target service after being recombinated The quantity of the IP packet of stream, and the IP package-restructuring to the received target service stream of the reconstitution device.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.At this In several embodiments provided by applying, it should be understood that system disclosed by embodiment, device and method can pass through it Its mode is realized.The apparatus embodiments described above are merely exemplary.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.In addition, the functional units in various embodiments of the present invention may be integrated into one processing unit, it can also To be that each unit physically exists alone, can also be integrated in one unit with two or more units.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
The all or part of technical solution of the present invention can be embodied in the form of software products, the computer software Product is stored in a storage medium, including some instructions are used so that processor executes side described in each embodiment of the present invention The all or part of the steps of method.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of statistics packet discarding method characterized by comprising
It controls equipment and obtains transmission path of the target service stream in network topology, wherein active end edge circle in the transmission path Equipment, fragment equipment, reconstitution device and destination edge device;
The control equipment obtains first group of parameter from the source edge device, and first group of parameter includes the source Hold the quantity of the Internet protocol IP packet of the target service stream transmitted by edge device;
The control equipment obtains second group of parameter from the destination edge device, and second group of parameter includes described Destination edge device the IP packet of the received target service stream quantity;
The control equipment obtains the third group parameter from the fragment equipment, and the third group parameter includes that the fragment is set Quantity, the fragment equipment of standby institute's IP packet of the received target service stream are it is expected that the target service stream after being fragmented IP packet quantity and the fragment equipment send the target service stream IP packet quantity;
The control equipment obtains the 4th group of parameter from the reconstitution device, and the 4th group of parameter includes that the recombination is set Quantity, the reconstitution device of standby institute's IP packet of the received target service stream are it is expected that the target service stream after being recombinated IP packet quantity and the reconstitution device send the target service stream IP packet quantity;
The control equipment is according to first group of parameter, second group of parameter, the third group parameter and 4th group described Parameter calculates the number of dropped packets of the target service stream on the transmit path.
2. statistics packet discarding method according to claim 1, which is characterized in that the third group parameter further includes the fragment Equipment at least one IP packet in the IP packet of the received target service stream IP packet mark, it is contemplated that each IP packet mark institute Each IP packet that quantity and the fragment equipment after the IP coating fragment of mark are sent identifies the number of identified IP packet Amount;
The 4th group of parameter further include the reconstitution device the received target service stream at least one of IP packet The IP packet of IP packet identifies, it is contemplated that each IP packet identifies quantity and reconstitution device hair after identified IP coating recombination The each IP packet sent identifies the quantity of identified IP packet;
The control equipment calculates what the IP packet was identified also according to the third group parameter and the 4th group of parameter The number of dropped packets of IP packet on the transmit path.
3. a kind of statistics packet discarding method characterized by comprising
The instruction that fragment equipment receiving control apparatus is sent, the instruction include the feature of target service stream, the target service The feature of stream includes source Internet protocol IP address, purpose IP address, source MAC address, target MAC (Media Access Control) address, end At least one of slogan, differentiated services code points DSCP;
The fragment equipment counts the received target service stream of the fragment equipment according to the feature of target service stream The quantity of IP packet;
The fragment equipment is according to the IP packet of the received target service stream of the fragment equipment, it is contemplated that described after being fragmented The quantity of the IP packet of target service stream;
The fragment equipment is according to the maximum transmission unit of the fragment equipment by the received target industry of the fragment equipment The IP packet fragmentation of business stream, and send the IP packet after being fragmented;
The quantity of the IP packet for the target service stream that the fragment device statistics are sent;
The fragment equipment sends the number of the IP packet of the received target service stream of the fragment equipment to the control equipment Amount, the fragment equipment expect the institute that the quantity of the IP packet of the target service stream after being fragmented and the fragment equipment are sent State the quantity of the IP packet of target service stream.
4. statistics packet discarding method according to claim 3, which is characterized in that
The IP at least one IP packet in IP packet that the fragment equipment also sends the target service stream to the control equipment Packet mark, it is contemplated that quantity and the fragment equipment after the identified IP coating fragment of each IP packet mark send each IP packet identifies the quantity of identified IP packet.
5. a kind of statistics packet discarding method characterized by comprising
The instruction that reconstitution device receiving control apparatus is sent, the instruction include the feature of target service stream, the target service The feature of stream includes source Internet protocol IP address, purpose IP address, source MAC address, target MAC (Media Access Control) address, end At least one of slogan, differentiated services code points DSCP;
The reconstitution device counts the received target service of the reconstitution device according to the feature of the target service stream The quantity of the IP packet of stream;
The reconstitution device is according to the IP packet of the received target service stream of the reconstitution device, it is contemplated that described in after being recombinated The quantity of the IP packet of target service stream;
The IP package-restructuring of the reconstitution device target service stream received to the reconstitution device, and send recombinated after IP packet;
The quantity of the IP packet for the target service stream that the reconstitution device statistics is sent;
The reconstitution device sends the number of the IP packet of the received target service stream of the reconstitution device to the control equipment Amount, the reconstitution device expect the institute that the quantity of the IP packet of the target service stream after being recombinated and the reconstitution device are sent State the quantity of the IP packet of target service stream.
6. statistics packet discarding method according to claim 5, which is characterized in that
The IP at least one IP packet in IP packet that the reconstitution device also sends the target service stream to the control equipment Packet mark, it is contemplated that quantity and the reconstitution device after the identified IP coating recombination of each IP packet mark send each IP packet identifies the quantity of identified IP packet.
7. a kind of control equipment characterized by comprising
First acquisition unit, for obtaining transmission path of the target service stream in network topology, wherein in the transmission path Active end edge device, fragment equipment, reconstitution device and destination edge device;
Second acquisition unit, for obtaining first group of parameter from the source edge device, first group of parameter includes The quantity of the IP packet of the target service stream transmitted by the source edge device;
The second acquisition unit is also used to obtain second group of parameter from the destination edge device, second group of ginseng Number include the destination edge device the IP packet of the received target service stream quantity;
The second acquisition unit is also used to obtain the third group parameter from the fragment equipment, and the third group parameter includes The fragment equipment the quantity of the IP packet of the received target service stream, the fragment equipment are estimated be fragmented after it is described The quantity of the IP packet for the target service stream that the quantity of the IP packet of target service stream and the fragment equipment are sent;
The second acquisition unit is also used to obtain the 4th group of parameter from the reconstitution device, and the 4th group of parameter includes The reconstitution device the quantity of the IP packet of the received target service stream, the reconstitution device are estimated recombinated after described in The quantity of the IP packet for the target service stream that the quantity of the IP packet of target service stream and the reconstitution device are sent;
Computing unit, for according to first group of parameter, second group of parameter, the third group parameter and 4th group described Parameter calculates the number of dropped packets of the target service stream on the transmit path.
8. control equipment according to claim 7, which is characterized in that the third group parameter further includes the fragment equipment At least one IP packet in the IP packet of the received target service stream IP packet mark, it is contemplated that each IP packet is identified IP coating fragment after quantity and the quantity of the identified IP packet of each IP packet mark that sends of the fragment equipment;
The 4th group of parameter further include the reconstitution device the received target service stream at least one of IP packet The IP packet of IP packet identifies, it is contemplated that each IP packet identifies quantity and reconstitution device hair after identified IP coating recombination The each IP packet sent identifies the quantity of identified IP packet;
The computing unit is also used to calculate the IP packet according to the third group parameter and the 4th group of parameter and be marked The number of dropped packets of the IP packet of knowledge on the transmit path.
9. a kind of fragment equipment characterized by comprising
Receiving unit, for the instruction that receiving control apparatus is sent, the instruction includes the feature of target service stream, the target The feature of Business Stream includes source Internet protocol IP address, purpose IP address, source MAC address, purpose MAC At least one of location, port numbers, differentiated services code points DSCP;
First statistic unit counts the received target service of the fragment equipment for the feature according to target service stream The quantity of the IP packet of stream;
Expected cell, for the IP packet according to the received target service stream of the fragment equipment, it is contemplated that the institute after being fragmented State the quantity of the IP packet of target service stream;
Sharding unit, for according to the maximum transmission unit of the fragment equipment by the received target industry of the fragment equipment The IP packet fragmentation of business stream, and send the IP packet after being fragmented;
Second statistic unit, the quantity of the IP packet for counting the target service stream sent;
Transmission unit, the number of the IP packet for sending the received target service stream of the fragment equipment to the control equipment Amount, the fragment equipment expect the institute that the quantity of the IP packet of the target service stream after being fragmented and the fragment equipment are sent State the quantity of the IP packet of target service stream.
10. a kind of reconstitution device characterized by comprising
Receiving unit, for the instruction that receiving control apparatus is sent, the instruction includes the feature of target service stream, the target The feature of Business Stream includes source Internet protocol IP address, purpose IP address, source MAC address, purpose MAC At least one of location, port numbers, differentiated services code points DSCP;
First statistic unit counts the received target of the reconstitution device for the feature according to the target service stream The quantity of the IP packet of Business Stream;
Expected cell, for the IP packet according to the received target service stream of the reconstitution device, it is contemplated that the institute after being recombinated State the quantity of the IP packet of target service stream;
Recomposition unit, for the IP package-restructuring to the received target service stream of the reconstitution device, and after sending and being recombinated IP packet;
Second statistic unit, the quantity of the IP packet for counting the target service stream sent;
Transmission unit, the number of the IP packet for sending the received target service stream of the reconstitution device to the control equipment Amount, the reconstitution device expect the institute that the quantity of the IP packet of the target service stream after being recombinated and the reconstitution device are sent State the quantity of the IP packet of target service stream.
CN201410526307.5A 2014-09-30 2014-09-30 Count packet discarding method, control equipment, fragment equipment and reconstitution device Active CN105515885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410526307.5A CN105515885B (en) 2014-09-30 2014-09-30 Count packet discarding method, control equipment, fragment equipment and reconstitution device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410526307.5A CN105515885B (en) 2014-09-30 2014-09-30 Count packet discarding method, control equipment, fragment equipment and reconstitution device

Publications (2)

Publication Number Publication Date
CN105515885A CN105515885A (en) 2016-04-20
CN105515885B true CN105515885B (en) 2019-01-08

Family

ID=55723544

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410526307.5A Active CN105515885B (en) 2014-09-30 2014-09-30 Count packet discarding method, control equipment, fragment equipment and reconstitution device

Country Status (1)

Country Link
CN (1) CN105515885B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973070B (en) * 2020-07-22 2023-07-21 中国移动通信有限公司研究院 Information acquisition method, device and test equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141225A (en) * 2006-09-08 2008-03-12 中兴通讯股份有限公司 Data loss processing method in mobile communication system
CN101272314A (en) * 2007-03-21 2008-09-24 大唐移动通信设备有限公司 Jamming control method and device
CN101656677A (en) * 2009-09-18 2010-02-24 杭州迪普科技有限公司 Message diversion processing method and device
CN101662418A (en) * 2008-08-26 2010-03-03 华为技术有限公司 Detecting method and terminal of file transmission
CN102404151A (en) * 2011-11-28 2012-04-04 曙光信息产业(北京)有限公司 Network card device for supporting complex flow statistic and related complex flow statistic method
CN102546397A (en) * 2011-12-16 2012-07-04 福建星网锐捷网络有限公司 Method, apparatus and device for balancing traffic of uplink aggregation port
CN103975551A (en) * 2014-03-11 2014-08-06 华为技术有限公司 Terminal-terminal network QoS control system, communication device, and terminal-terminal network QoS control method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101152956B1 (en) * 2008-11-28 2012-06-08 한국전자통신연구원 System for controlling path maximum transimission unit by detecting repetitional IP packet fragmentation and method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101141225A (en) * 2006-09-08 2008-03-12 中兴通讯股份有限公司 Data loss processing method in mobile communication system
CN101272314A (en) * 2007-03-21 2008-09-24 大唐移动通信设备有限公司 Jamming control method and device
CN101662418A (en) * 2008-08-26 2010-03-03 华为技术有限公司 Detecting method and terminal of file transmission
CN101656677A (en) * 2009-09-18 2010-02-24 杭州迪普科技有限公司 Message diversion processing method and device
CN102404151A (en) * 2011-11-28 2012-04-04 曙光信息产业(北京)有限公司 Network card device for supporting complex flow statistic and related complex flow statistic method
CN102546397A (en) * 2011-12-16 2012-07-04 福建星网锐捷网络有限公司 Method, apparatus and device for balancing traffic of uplink aggregation port
CN103975551A (en) * 2014-03-11 2014-08-06 华为技术有限公司 Terminal-terminal network QoS control system, communication device, and terminal-terminal network QoS control method

Also Published As

Publication number Publication date
CN105515885A (en) 2016-04-20

Similar Documents

Publication Publication Date Title
EP3516833B1 (en) Methods, systems, and computer readable media for discarding messages during a congestion event
US8737221B1 (en) Accelerated processing of aggregate data flows in a network environment
US8743690B1 (en) Selective packet sequence acceleration in a network environment
US8792353B1 (en) Preserving sequencing during selective packet acceleration in a network environment
US9722933B2 (en) Selective packet sequence acceleration in a network environment
CN111788803B (en) Flow management in a network
US8891543B1 (en) Method and system for processing packets in a network device
US10848437B2 (en) Quality of service control method and device for software-defined networking
US11314417B2 (en) Methods and systems for NVMe target load balancing based on real time metrics
CN105357137B (en) Message filtering method and the FPGA being applicable in, intelligent substation
US10616382B2 (en) Efficient capture and streaming of data packets
CN112600684B (en) Bandwidth management and configuration method of cloud service and related device
US20170353391A1 (en) Self-Protecting Computer Network Router with Queue Resource Manager
US20170142208A1 (en) System and method for discovering internet protocol (ip) network address and port translation bindings
JP2018500851A (en) Method and network node for traffic management in a network node in a packet switched network
JP2018500851A5 (en)
CN110290072A (en) Flow control methods, device, the network equipment and storage medium
WO2009027513A1 (en) Method and system for managing transmission of fragmented data packets
US8537676B1 (en) Rate limiting for DTCP message transport
CN105515885B (en) Count packet discarding method, control equipment, fragment equipment and reconstitution device
WO2017132987A1 (en) Method and system for recognizing packet loss type in data transmission of reliable transmission protocol
CN116614378A (en) Bandwidth management and configuration method of cloud service and related device
US20220150759A1 (en) Systems and methods for differentiation of service using in-band signaling
US10778613B2 (en) Systems and methods for running network egress links with small buffers at a high utilization
Abdelmoniem et al. Alleviating Congestion via Switch Design for Fair Buffer Allocation in Datacenters

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant