CN107547311A - A kind of flow statistical method and device - Google Patents

A kind of flow statistical method and device Download PDF

Info

Publication number
CN107547311A
CN107547311A CN201710754687.1A CN201710754687A CN107547311A CN 107547311 A CN107547311 A CN 107547311A CN 201710754687 A CN201710754687 A CN 201710754687A CN 107547311 A CN107547311 A CN 107547311A
Authority
CN
China
Prior art keywords
implicit
arp
list item
null label
null
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710754687.1A
Other languages
Chinese (zh)
Other versions
CN107547311B (en
Inventor
黄玉成
李华舟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Information Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201710754687.1A priority Critical patent/CN107547311B/en
Publication of CN107547311A publication Critical patent/CN107547311A/en
Application granted granted Critical
Publication of CN107547311B publication Critical patent/CN107547311B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the present application provides a kind of flow statistical method and device, and applied to head node, method includes:By the ARP index record of the ARP of next-hop device on implicit-null label tunnel in implicit-null label list item;It is determined that the destination address matching implicit-null label list item of the multiple three layer datas messages received;The ARP table entry index recorded according to implicit-null label list item reads the next hop information in ARP, multiple three layer datas messages of matching are encapsulated, and three layer data messages after encapsulation are sent to next-hop device corresponding to the next hop information of reading by implicit-null label tunnel;Count the matching times of implicit-null label list item;The flow of three layer data messages of implicit-null label tunnel forwarding is calculated according to matching times.Using the embodiment of the present application, software alteration is reduced when realizing traffic statistics.

Description

A kind of flow statistical method and device
Technical field
The application is related to communication technical field, more particularly to a kind of flow statistical method and device.
Background technology
MPLS (Multi-Protocol Lable Switching, multiprotocol label switching) TE (Traffic Engineering, traffic engineering) tunnel is one from head node to destination node virtual point-to-point connection.Wherein, head node For three layer data messages to be introduced to the equipment of MPLS traffic engineering tunnels, destination node is to obtain three layer data messages from MPLS traffic engineering tunnels Equipment.In general, head node can be three layer data messages encapsulation mark when three layer data messages are introduced into MPLS traffic engineering tunnels Label, the corresponding mpls-te tunnel of each label.Implicit-null label is a kind of special MPLS label, passes through implicit-null label tunnel Three layer data messages of road forwarding do not need encapsulated tags, directly encapsulate next hop information.
Specifically, the process for forwarding three layer data messages by MPLS traffic engineering tunnels is:Head node receives three layer data reports Wen Hou, search and route corresponding to the destination address of three layer data messages, the route includes a FEC (Forwarding Equivalence Class, forwarding equivalence class) index, by FEC index search to FEC list items, if route points to non-implicit sky Label tunnel, the FEC list items include tab indexes, and non-implicit empty label list item, the non-implicit sky are searched according to tab indexes Label list item includes label information and ARP (Address Resolution Protocol, address resolution protocol) list item rope Draw, three layer data report messages are encapsulated according to label information, and according to ARP index search ARP, according in ARP Next hop information encapsulated message again, and then three layer data messages are introduced into non-implicit empty label tunnel;But if route is pointed to Implicit-null label tunnel, the FEC list items include ARP table entry index, and ARP is directly searched according to ARP table entry index, according to Next hop information in ARP encapsulates three layer data messages, and then three layer data messages are introduced into implicit-null label tunnel.
In order to preferably supervise implicit-null label tunnel, it is necessary to forward the stream of three layer data messages to implicit-null label tunnel Amount is counted.At present, traffic statistics mainly are realized by additionally establishing an ARP for implicit-null label tunnel: Three layer data messages of implicit-null label tunnel forwarding obtain next hop information from the ARP additionally established, so, system The number can counted from the ARP acquisition next hop information additionally established counts the three of the forwarding of implicit-null label tunnel The flow of layer data message.However, additionally establishing the immediate problem that an ARP is brought is:Need to the extra foundation ARP is individually safeguarded that software alteration is larger.
The content of the invention
The purpose of the embodiment of the present application is to provide a kind of flow statistical method and device, to reduce software alteration.Specifically Technical scheme is as follows:
On the one hand, the embodiment of the present application discloses a kind of flow statistical method, and applied to head node, methods described includes:
By the ARP index record of the ARP of next-hop device on implicit-null label tunnel in implicit-null label list ;
It is determined that the destination address of the multiple three layer datas messages received matches the implicit-null label list item;
The ARP table entry index recorded according to the implicit-null label list item reads the next hop information in ARP, encapsulation Multiple three layer datas messages of matching, and three layer data messages after encapsulation are sent to reading by the implicit-null label tunnel Next hop information corresponding to next-hop device;
Count the matching times of the implicit-null label list item;
The flow of three layer data messages of the implicit-null label tunnel forwarding is calculated according to the matching times.
Two aspects, the embodiment of the present application disclose a kind of flow statistic device, and applied to head node, described device includes:
Recording unit, for the ARP index record of the ARP of next-hop device on implicit-null label tunnel to be existed Implicit-null label list item;
Determining unit, the destination address of multiple three layer datas messages for determining to receive match the implicit-null label list ;
Encapsulation unit, under the ARP table entry index for being recorded according to the implicit-null label list item is read in ARP One hop-information, multiple three layer datas messages of matching are encapsulated, and three layer data messages after encapsulation are passed through into the implicit-null mark Label tunnel is sent to next-hop device corresponding to the next hop information of reading;
Statistic unit, for counting the matching times of the implicit-null label list item;
Computing unit, three layer data messages are forwarded for calculating the implicit-null label tunnel according to the matching times Flow.
In the embodiment of the present application, head node is by the ARP rope of the ARP of next-hop device on implicit-null label tunnel Draw and be recorded in implicit-null label list item, however, it is determined that the destination address of the multiple three layer datas messages received matches the implicit-null mark List item is signed, the ARP table entry index recorded according to the implicit-null label list item reads the next hop information in ARP, for matching The next hop information that reads of multiple three layer datas messages encapsulation, and three layer data messages after encapsulation are passed through into implicit-null label Tunnel is sent to next-hop device corresponding to the next hop information of reading, counts the matching times of the implicit-null label list item, implicitly Once, implicit-null label tunnel forwards a three layer data messages, according to the matching times of record for the often matching of empty label list item The flow that implicit-null label tunnel forwards three layer data messages is calculated in can.Here, implicit-null label list item is passed through Matching times obtain the flow that implicit-null label tunnel forwards three layer data messages, and to be head node Central Plains originally deposit label list item Resource, implicit-null label list item can be safeguarded simultaneously with non-implicit empty label list item, be reduced when realizing traffic statistics Software alteration.Certainly, implementing any product of the application or method must be not necessarily required to reach all the above excellent simultaneously Point.
Brief description of the drawings
, below will be to embodiment or existing in order to illustrate more clearly of the embodiment of the present application or technical scheme of the prior art There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of application, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of schematic diagram of MPLS traffic engineering tunnel networkings;
Fig. 2 is the simplification figure of the MPLS traffic engineering tunnel networkings shown in Fig. 1;
Fig. 3 is a kind of schematic flow sheet for the flow statistical method that the embodiment of the present application provides;
Fig. 4 is a kind of schematic flow sheet for the message forwarding method that the embodiment of the present application provides;
Fig. 5 is a kind of structural representation for the flow statistic device that the embodiment of the present application provides.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation describes, it is clear that described embodiment is only some embodiments of the present application, rather than whole embodiments.It is based on Embodiment in the application, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of the application protection.
MPLS traffic engineering tunnels include implicit-null label tunnel and non-implicit empty label tunnel.
The networking of MPLS traffic engineering tunnels as shown in Figure 1, traffic engineering tunnel 1 are MPLS traffic engineering tunnels, and traffic engineering tunnel 1 passes through PE (Provider Edge, there is provided business edge) 1-PE 2-PE 3 are established;If PE 1, which receives one, to be needed to send to the three of PE 3 Layer data message, PE 1 send three layer data messages introducing traffic engineering tunnel 1 to PE 3, therefore, the MPLS shown in Fig. 1 through PE 2 The networking of traffic engineering tunnel can be reduced to the networking of MPLS traffic engineering tunnels as shown in Figure 2, and a TE tunnel is established between PE 1 and PE 3 Road 1, PE 1 are sent three layer data messages to PE 3 by traffic engineering tunnel 1.Here, PE 1 is head node, and PE 3 is purpose node.
At present, Layer 2 data message, protocol massages, three layer data messages etc. obtain next hop information from ARP, If traffic engineering tunnel 1 is implicit-null label tunnel, when the three layer data messages forwarded to traffic engineering tunnel 1 count, to ensure statistics knot Fruit it is accurate, additionally established on PE 1 one be directed to traffic engineering tunnel 1 ARP X, traffic engineering tunnel 1 forward three layer data messages Next hop information is obtained from ARP X, without obtaining next hop information, and Layer 2 data from original ARP The message that the non-traffic engineering tunnel 1 such as message, protocol massages forwards does not obtain next hop information from ARP X.So, count from ARP The number can that next hop information is obtained in list item X counts the flow for the three layer data messages that traffic engineering tunnel 1 forwards.However, Additionally establishing the immediate problem that an ARP brings for each implicit-null label tunnel is:Need to the extra foundation ARP is individually safeguarded that software alteration is larger.
In order to reduce software alteration, the embodiment of the present application provides a kind of flow statistical method and device.
With reference to figure 3, Fig. 3 is a kind of schematic flow sheet for the flow statistical method that the embodiment of the present application provides, applied to hidden The head node in formula sky label tunnel, head node are the equipment that three layer data messages are introduced to implicit-null label tunnel, in head node It is stored with the implicit-null label list item for pointing to implicit-null label tunnel;Method includes:
S301:By the ARP index record of the ARP of next-hop device on implicit-null label tunnel in implicit-null mark Sign list item;
S302:It is determined that the destination address matching implicit-null label list item of the multiple three layer datas messages received;
S303:The ARP table entry index recorded according to implicit-null label list item reads the next hop information in ARP, envelope Multiple three layer datas messages of matching are filled, and three layer data messages after encapsulation are sent to reading by implicit-null label tunnel Next-hop device corresponding to next hop information;
S304:Count the matching times of implicit-null label list item;
S305:The flow of three layer data messages of implicit-null label tunnel forwarding is calculated according to matching times.
In the embodiment of the present application, a label list item corresponds to a MPLS traffic engineering tunnel, three layer data messages and a label List item matches, then obtains ARP table entry index once from the label list item, i.e., is matched once with the label list item, by this MPLS traffic engineering tunnels corresponding to label list item E-Packet one.
Head node is by the ARP index record of the ARP of next-hop device on implicit-null label tunnel in implicit-null In label list item;After three layer data messages are received, however, it is determined that the destination address and implicit-null of the three layer data messages received Label list item matches, and the ARP table entry index recorded according to implicit-null label list item reads the next hop information in ARP, is The three layer datas message encapsulates next hop information, and three layer data messages after encapsulation are sent into reading by implicit-null label tunnel Next-hop device corresponding to the next hop information taken;In addition, implicit-null label tunnel forwarding message with implicit-null label list Item matching, the matching times of implicit-null label list item are counted, the matching times can for passing through the implicit-null label list item calculates Obtain the flow that implicit-null label tunnel corresponding to the implicit-null label list item forwards three layer data messages.And label list item is head The originally existing resource in node Central Plains, implicit-null label list item can be safeguarded simultaneously with non-implicit empty label list item, be flowed realizing Software alteration is reduced during amount statistics.
Above-mentioned purpose address can the IP for the purpose of (Internet Protocol, procotol) address, purpose MAC (Media Access Control, media access control) address etc..
In one embodiment of the application, in order to guarantee to guide three layer data messages into implicit-null label list item, The tab indexes of implicit-null label list item are recorded in the FEC list items for pointing to implicit-null label tunnel.So, when head node connects After receiving three layer data messages, search and route corresponding to the destination address of three layer data messages, the FEC ropes included according to route Draw and find FEC list items, if FEC list items point to implicit-null label tunnel, the FEC list items include the mark of implicit-null label list item Label index, and then the tab indexes included according to the FEC list items found determine the destination address with three layer data messages The implicit-null label list item matched somebody with somebody.
In correlation technique, the implicit-null mark for being just implicit-null label tunnel distributing when establishing implicit-null label tunnel List item is signed, only for implicit-null label tunnel, is not required to as three layer data message encapsulated tags information, therefore without using to be hidden The implicit-null label list item of formula sky label tunnel distributing.The embodiment of the present application, former allocated implicit-null label list item is make use of, List item need not additionally be established, it is not necessary to individually safeguarded, it is only necessary to be recorded in the tab indexes of implicit-null label list item In FEC list items corresponding to implicit-null label tunnel, software alteration is smaller, realizes simple.
In one embodiment of the application, in order to ensure that the three layer data messages received are turned by implicit-null label tunnel Send out, the label information that the implicit-null label list item stored in head node includes can be sky, and here, sky can be " 0 ", " * " Deng the character for representing sky.When three layer data messages matching label list item in label information be space-time, determine the label list item It is not three layer data message encapsulated tags information of reception for implicit-null label list item, is directly matched according to three layer data messages Label list item in the ARP table entry index that records read ARP.
In another embodiment of the application, in order to ensure that the three layer data messages received pass through implicit-null label tunnel Forward, the implicit-null label list item stored in head node can not include label information.When the label of three layer data messages matching When not including label information in list item, it is implicit-null label list item to determine the label list item, is not three layer data messages of reception Encapsulated tags information, ARP table is directly read according to the ARP table entry index recorded in the label list item of three layer data messages matching .
In one embodiment of the application, the path in the implicit-null label tunnel of head node to destination node have it is a plurality of, The equative route in a plurality of implicit-null label tunnel, the equivalence in every implicit-null label tunnel between head node and destination node be present A next-hop device on path be present, in this case, head node can get multiple including on implicit-null label tunnel The ARP table entry index of the ARP of next-hop device, by next-hop on every equative route in the implicit-null label tunnel of acquisition The ARP index record of the ARP of equipment is in implicit-null label list item.
When receiving three layer data messages, head node if it is determined that the destination address of the three layer data messages received with it is implicit Empty label list item is matched, and next-hop on every equative route in implicit-null label tunnel is have recorded in the implicit-null label list item and is set The ARP table entry index of standby ARP, the then multiple ARP that can be recorded according to Load Sharing Algorithm from implicit-null label list item An ARP table entry index is selected in table item index, the next hop information in ARP is read according to the ARP table entry index of selection, The next hop information read for three layer datas message encapsulation, and three layer data messages after encapsulation are passed through into implicit-null label tunnel Road is sent to next-hop device corresponding to the next hop information of reading.
Here, head node receives multiple three layer data messages matched with implicit-null label list item and may be by implicit-null The different equative routes in label tunnel are sent to next-hop device, but these three layer datas messages with implicit-null label list item Match somebody with somebody, count the matching times of implicit-null label list item, the forwarding of implicit-null label tunnel is calculated according to the matching times of statistics The flow of three layer data messages.
In one embodiment of the application, to ensure the forwarding of message, and the accuracy of traffic statistics is improved, right overhead When nodal test has a paths failure into a plurality of equative route in implicit-null label tunnel, such as detect implicit-null label The next-hop failure of one paths in tunnel, delete the ARP table of the next-hop device of the failure path in implicit-null label list item ARP table entry index, to avoid head node from have selected the ARP table entry index of the failure path, cause message can not send to The problem of destination node, and avoid by this matching statistics in the matching times of implicit-null label list item, and then cause Implicit-null label tunnel forwards the problem of inaccuracy of the statistical result of three layer data messages.
Network environment is constantly changing, and constantly has that equipment is reached the standard grade or offline, facility information changes.In this Shen In one embodiment please, if detecting, the next-hop device in implicit-null label tunnel refreshes, such as next-hop device becomes Change or the facility information of next-hop device changes, by the ARP table entry index of the ARP of the next-hop device after refreshing Implicit-null label list item is recorded in, to ensure the forwarding of message, improves the system that implicit-null label tunnel forwards three layer data messages Count the accuracy of result.
By taking the message forwarding process shown in Fig. 4 as an example, illustrate the flow statistical method that the embodiment of the present application provides.
In Fig. 4, FEC_entry is FEC list items, and Lable encap_entry are non-implicit empty label list item, Null Encap_entry is implicit-null label list item, and ARP encap_entry are ARP, Count engine_1 and Count Engine_2 is statistics engine, and Count engine_1 associate with Lable encap_entry, Count engine_2 and Null Encap_entry is associated;
Head node obtains the ARP index record of the ARP of next-hop device on implicit-null label tunnel in Null In encap_entry, the ARP index record for obtaining the ARP of next-hop device on non-implicit empty label tunnel exists In Lable encap_entry;
1st, after head node receives three layer data message F, search and route corresponding to three layer data message F destination address, FEC indexes are got from the route found;
2nd, FEC_entry corresponding to the FEC indexes that head node lookup is got, gets label rope from FEC_entry Draw;
3rd, label list item corresponding to the tab indexes that head node lookup is got, that is, three layer data message F purpose is determined The label list item of address matching;If it is determined that three layer data message F destination address matching Null encap_entry, the Null Encap_entry points to implicit-null label tunnel, is not three layer data message F encapsulated tags information;If it is determined that three layer data reports The literary F non-implicit empty label tunnel of destination address matching Lable encap_entry, the Lable encap_entry sensing, it is The label information that the Lable encap_entry that three layer data message F encapsulation is found include;In addition, from three layer data reports ARP table entry index is got in the label list item of literary F destination address matching;
In the embodiment of the present application, it have recorded in non-implicit empty label list item and implicit-null label list item and point to MPLS TE The ARP table entry index of the ARP in tunnel, three layer data messages of MPLS traffic engineering tunnels forwarding are matched with label list item, passed through Label list item can realizes traffic statistics.Traffic statistics are realized compared to using ARP, effectively avoid a variety of differences Message obtains the problem of next hop information causes traffic statistics result inaccuracy from ARP;Compared to extra increase by one For the APR list items in implicit-null label tunnel, label list item is the originally existing resource in head node Central Plains, implicit-null label list item It can simultaneously be safeguarded with non-implicit empty label list item, reduce software alteration.
4th, head node searches ARP encap_entry corresponding to the ARP table entry index got, from the ARP found Next hop information is got in encap_entry, is a three layer data message F hop-informations, and then by corresponding under the package MPLS traffic engineering tunnels forward;
5th, the statistics engine for the label list item association that head node is found is accumulative to add 1.For example, the Null that head node is found Encap_entry, Count engine_2 are accumulative to add 1;The Lable encap_entry, Count that head node is found Engine_1 is accumulative to add 1.
The CPU of head node can read the accumulative information of statistics engine, get MPLS traffic engineering tunnels and forward three layer data reports The quantity of text, and then calculate the flow that MPLS traffic engineering tunnels forward three layer data messages.MPLS traffic engineering tunnels include:Non-implicit sky Label tunnel and implicit-null label tunnel.
In the embodiment of the present application, head node is by the ARP rope of the ARP of next-hop device on implicit-null label tunnel Draw and be recorded in implicit-null label list item, however, it is determined that the destination address of the multiple three layer datas messages received matches the implicit-null mark List item is signed, the ARP table entry index recorded according to the implicit-null label list item reads the next hop information in ARP, for matching The next hop information that reads of multiple three layer datas messages encapsulation, and three layer data messages after encapsulation are passed through into implicit-null label Tunnel is sent to next-hop device corresponding to the next hop information of reading, counts the matching times of the implicit-null label list item, implicitly Once, implicit-null label tunnel forwards a three layer data messages, according to the matching times of record for the often matching of empty label list item The flow that implicit-null label tunnel forwards three layer data messages is calculated in can.Here, implicit-null label list item is passed through Matching times obtain the flow that implicit-null label tunnel forwards three layer data messages, and to be head node Central Plains originally deposit label list item Resource, implicit-null label list item can be safeguarded simultaneously with non-implicit empty label list item, be reduced when realizing traffic statistics Software alteration.
With reference to figure 5, Fig. 5 is a kind of structural representation for the flow statistic device that the embodiment of the present application provides, applied to head Node, the device include:
Recording unit 501, for the ARP table entry index of the ARP of next-hop device on implicit-null label tunnel to be remembered Record is in implicit-null label list item;
Determining unit 502, the destination address of multiple three layer datas messages for determining to receive match implicit-null label list ;
Encapsulation unit 503, under the ARP table entry index for being recorded according to implicit-null label list item is read in ARP One hop-information, multiple three layer datas messages of matching are encapsulated, and three layer data messages after encapsulation are passed through into implicit-null label tunnel Road is sent to next-hop device corresponding to the next hop information of reading;
Statistic unit 504, for counting the matching times of implicit-null label list item;
Computing unit 505, for calculating the flow of three layer data messages of implicit-null label tunnel forwarding according to matching times.
In one embodiment of the application, recording unit 501, specifically it can be used for:
By the ARP index record of the ARP of next-hop device on every equative route in implicit-null label tunnel In implicit-null label list item.
In one embodiment of the application, encapsulation unit 503, specifically it can be used for:
ARP rope is selected in the multiple ARP table entry indexs recorded according to Load Sharing Algorithm from implicit-null label list item Draw;Next hop information in ARP is read according to the ARP table entry index of selection, encapsulates multiple three layer datas messages of matching, And three layer data messages after encapsulation are sent to next-hop corresponding to the next hop information of reading by implicit-null label tunnel and set It is standby.
In one embodiment of the application, above-mentioned flow statistic device can also include:
First detection unit, for detecting the paths failure in equative route;
Unit is deleted, for deleting the ARP table of the ARP of the next-hop device of failure path in implicit-null label list item Entry index.
In one embodiment of the application, above-mentioned flow statistic device can also include:Second detection unit;
Second detection unit, for detecting that the next-hop device in implicit-null label tunnel refreshes;
Recording unit 501, it can be also used for the ARP index record of the ARP of the next-hop device after refreshing In implicit-null label list item.
In the embodiment of the present application, head node is by the ARP rope of the ARP of next-hop device on implicit-null label tunnel Draw and be recorded in implicit-null label list item, however, it is determined that the destination address of the multiple three layer datas messages received matches the implicit-null mark List item is signed, the ARP table entry index recorded according to the implicit-null label list item reads the next hop information in ARP, for matching The next hop information that reads of multiple three layer datas messages encapsulation, and three layer data messages after encapsulation are passed through into implicit-null label Tunnel is sent to next-hop device corresponding to the next hop information of reading, counts the matching times of the implicit-null label list item, implicitly Once, implicit-null label tunnel forwards a three layer data messages, according to the matching times of record for the often matching of empty label list item The flow that implicit-null label tunnel forwards three layer data messages is calculated in can.Here, implicit-null label list item is passed through Matching times obtain the flow that implicit-null label tunnel forwards three layer data messages, and to be head node Central Plains originally deposit label list item Resource, implicit-null label list item can be safeguarded simultaneously with non-implicit empty label list item, be reduced when realizing traffic statistics Software alteration.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of related, identical similar portion between each embodiment Divide mutually referring to what each embodiment stressed is the difference with other embodiment.United particularly with flow For counter device embodiment, because it is substantially similar to flow statistical method embodiment, so description is fairly simple, correlation Place illustrates referring to the part of flow statistical method embodiment.
The preferred embodiment of the application is the foregoing is only, is not intended to limit the protection domain of the application.It is all Any modification, equivalent substitution and improvements made within spirit herein and principle etc., it is all contained in the protection domain of the application It is interior.

Claims (10)

1. a kind of flow statistical method, it is characterised in that applied to head node, methods described includes:
By the ARP index record of the ARP list item of next-hop device on implicit-null label tunnel implicit Empty label list item;
It is determined that the destination address of the multiple three layer datas messages received matches the implicit-null label list item;
The ARP table entry index recorded according to the implicit-null label list item reads the next hop information in ARP, encapsulation matching Multiple three layer datas messages, and three layer data messages after encapsulation are sent under reading by the implicit-null label tunnel Next-hop device corresponding to one hop-information;
Count the matching times of the implicit-null label list item;
The flow of three layer data messages of the implicit-null label tunnel forwarding is calculated according to the matching times.
2. according to the method for claim 1, it is characterised in that described by next-hop device on implicit-null label tunnel The ARP index record of ARP in implicit-null label list item, including:
By the ARP index record of the ARP of next-hop device on every equative route in implicit-null label tunnel hidden Formula sky label list item.
3. according to the method for claim 2, it is characterised in that the ARP recorded according to the implicit-null label list item Table item index reads the next hop information in ARP, encapsulates multiple three layer datas messages of matching, and by three layers after encapsulation Data message is sent to next-hop device corresponding to the next hop information of reading by the implicit-null label tunnel, including:
ARP rope is selected in the multiple ARP table entry indexs recorded according to Load Sharing Algorithm from the implicit-null label list item Draw;
Next hop information in ARP is read according to the ARP table entry index of selection, encapsulates multiple three layer datas reports of matching Text, and under three layer data messages after encapsulation are sent to corresponding to the next hop information of reading by the implicit-null label tunnel One jumps equipment.
4. according to the method for claim 2, it is characterised in that methods described also includes:
Detect the paths failure in the equative route;
Delete the ARP table entry index of the ARP of the next-hop device of failure path in the implicit-null label list item.
5. according to the method for claim 1, it is characterised in that methods described also includes:
Detect that the next-hop device in the implicit-null label tunnel refreshes;
By the ARP index record of the ARP of the next-hop device after refreshing in the implicit-null label list item.
6. a kind of flow statistic device, it is characterised in that applied to head node, described device includes:
Recording unit, for by the ARP rope of the ARP list item of next-hop device on implicit-null label tunnel Draw and be recorded in implicit-null label list item;
Determining unit, the destination address of multiple three layer datas messages for determining to receive match the implicit-null label list item;
Encapsulation unit, the ARP table entry index for being recorded according to the implicit-null label list item read the next-hop in ARP Information, multiple three layer datas messages of matching are encapsulated, and three layer data messages after encapsulation are passed through into the implicit-null label tunnel Road is sent to next-hop device corresponding to the next hop information of reading;
Statistic unit, for counting the matching times of the implicit-null label list item;
Computing unit, for calculating the stream of three layer data messages of the implicit-null label tunnel forwarding according to the matching times Amount.
7. device according to claim 6, it is characterised in that the recording unit, be specifically used for:
By the ARP index record of the ARP of next-hop device on every equative route in implicit-null label tunnel hidden Formula sky label list item.
8. device according to claim 7, it is characterised in that the encapsulation unit, be specifically used for:
ARP rope is selected in the multiple ARP table entry indexs recorded according to Load Sharing Algorithm from the implicit-null label list item Draw;Next hop information in ARP is read according to the ARP table entry index of selection, encapsulates multiple three layer datas messages of matching, And three layer data messages after encapsulation are sent to by the implicit-null label tunnel next corresponding to the next hop information of reading Jump equipment.
9. device according to claim 7, it is characterised in that described device also includes:
First detection unit, for detecting the paths failure in the equative route;
Unit is deleted, for deleting the ARP table of the ARP of the next-hop device of failure path in the implicit-null label list item Entry index.
10. device according to claim 6, it is characterised in that described device also includes:Second detection unit;
Second detection unit, for detecting that the next-hop device in the implicit-null label tunnel refreshes;
The recording unit, the ARP index record by the ARP of the next-hop device after refreshing is additionally operable to described hidden Formula sky label list item.
CN201710754687.1A 2017-08-29 2017-08-29 Flow statistical method and device Active CN107547311B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710754687.1A CN107547311B (en) 2017-08-29 2017-08-29 Flow statistical method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710754687.1A CN107547311B (en) 2017-08-29 2017-08-29 Flow statistical method and device

Publications (2)

Publication Number Publication Date
CN107547311A true CN107547311A (en) 2018-01-05
CN107547311B CN107547311B (en) 2020-04-17

Family

ID=60957866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710754687.1A Active CN107547311B (en) 2017-08-29 2017-08-29 Flow statistical method and device

Country Status (1)

Country Link
CN (1) CN107547311B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494619A (en) * 2018-02-28 2018-09-04 新华三技术有限公司 Flow statistical method, device and provider's router
CN109889453A (en) * 2019-01-31 2019-06-14 新华三技术有限公司 A kind of HQoS implementation method and device
CN112804145A (en) * 2020-12-31 2021-05-14 锐捷网络股份有限公司 Flow statistical method and device based on segmented identification list
CN116303474A (en) * 2023-05-09 2023-06-23 新华三技术有限公司 Tunnel information statistical method, device, network equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656663A (en) * 2008-08-20 2010-02-24 华为技术有限公司 Method, device and system for forwarding MPLS multicast message
US20140160975A1 (en) * 2011-07-28 2014-06-12 Telecom Italia S.P.A. Measurement on data traffic in a communication network
CN106911538A (en) * 2017-04-24 2017-06-30 新华三技术有限公司 Flow statistical method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101656663A (en) * 2008-08-20 2010-02-24 华为技术有限公司 Method, device and system for forwarding MPLS multicast message
US20140160975A1 (en) * 2011-07-28 2014-06-12 Telecom Italia S.P.A. Measurement on data traffic in a communication network
CN106911538A (en) * 2017-04-24 2017-06-30 新华三技术有限公司 Flow statistical method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈剑 等: "VxWorks系统中MPLS的实现", 《计算机工程》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108494619A (en) * 2018-02-28 2018-09-04 新华三技术有限公司 Flow statistical method, device and provider's router
CN108494619B (en) * 2018-02-28 2021-01-01 新华三技术有限公司 Traffic statistical method and device and provider router
CN109889453A (en) * 2019-01-31 2019-06-14 新华三技术有限公司 A kind of HQoS implementation method and device
CN112804145A (en) * 2020-12-31 2021-05-14 锐捷网络股份有限公司 Flow statistical method and device based on segmented identification list
CN112804145B (en) * 2020-12-31 2022-06-21 锐捷网络股份有限公司 Flow statistical method and device based on segmented identification list
CN116303474A (en) * 2023-05-09 2023-06-23 新华三技术有限公司 Tunnel information statistical method, device, network equipment and storage medium
CN116303474B (en) * 2023-05-09 2023-08-18 新华三技术有限公司 Tunnel information statistical method, device, network equipment and storage medium

Also Published As

Publication number Publication date
CN107547311B (en) 2020-04-17

Similar Documents

Publication Publication Date Title
CN107547311A (en) A kind of flow statistical method and device
CN105224692A (en) Support the system and method for the SDN multilevel flow table parallel search of polycaryon processor
US20170075710A1 (en) Automatically determining sensor location in a virtualized computing environment
CN109525451A (en) A kind of implementation method, device, the network equipment and the controller of MPLS network detection
CN106559340A (en) The network centered on information with little multipath or single footpath forwarding state
CN102857414B (en) A kind of forwarding table write-in, message forwarding method and device
CN105704041A (en) Ccn routing using hardware-assisted hash tables
CN106878048A (en) Fault handling method and device
CN104333510B (en) A kind of Tag switching retransmission method in name data network
CN108429701A (en) network acceleration system
CN106330597B (en) Path between VXLAN endpoint of a tunnel VTEP is up to detection method and device
CN109474495A (en) A kind of tunnel detection method and device
CN109495320B (en) Data message transmission method and device
CN109150684A (en) Message processing method, device, communication equipment and computer readable storage medium
CN109951371A (en) Data forwarding method and device
CN102916893B (en) Device and method for setting internet protocol (IP) multicast retransmission port in three-layer switchboard
CN109167700A (en) The detection method and device in the section routing tunnel SR
US9584387B1 (en) Systems and methods of sending a packet in a packet-switched network through a pre-determined path to monitor network health
CN106453091A (en) Equivalent routing management method and device of router forwarding plane
CN103475507B (en) Forwarding-table item fault detection method and device
CN113904985A (en) Segment list acquisition method, message forwarding method, device and electronic equipment
CN109495404A (en) A kind of message processing method, device, switch device and storage medium
US20130258871A1 (en) Psuedowire extended group messaging in a packet switched network
CN102098189A (en) Method for monitoring CE and routing equipment
CN105022689A (en) Method for discovering key test function of large object-oriented software system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230626

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.