CN107332773A - A kind of method and PTN device for learning ARP - Google Patents

A kind of method and PTN device for learning ARP Download PDF

Info

Publication number
CN107332773A
CN107332773A CN201610286581.9A CN201610286581A CN107332773A CN 107332773 A CN107332773 A CN 107332773A CN 201610286581 A CN201610286581 A CN 201610286581A CN 107332773 A CN107332773 A CN 107332773A
Authority
CN
China
Prior art keywords
message
arp
forwarding information
message forwarding
car
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
CN201610286581.9A
Other languages
Chinese (zh)
Other versions
CN107332773B (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 CN201610286581.9A priority Critical patent/CN107332773B/en
Publication of CN107332773A publication Critical patent/CN107332773A/en
Application granted granted Critical
Publication of CN107332773B publication Critical patent/CN107332773B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of method and PTN device for learning ARP, when reporting the speed of ARP miss message to solve to limit the Forwarding plane of PTN device in the prior art, the problem of control plane of PTN device learns the speed of ARP is impacted or influenceed on the CPU of PTN device.In the method, multiple message forwarding information set and CAR corresponding relation are preserved in PTN device, different CAR are set for different message forwarding information set, therefore, the corresponding CAR of each message forwarding information set can be adjusted flexibly in the PTN device, the speed of ARP miss message is reported for the message forwarding information of different credibilities for limitation forwarding plane, the message setting identical CAR avoided for any credibility causes the impact of the CPU to the PTN device, also ensure that the control plane of the PTN device learns the speed of ARP.

Description

A kind of method and PTN device for learning ARP
Technical field
Set the present invention relates to communication technical field, more particularly to a kind of method and PTN for learning ARP It is standby.
Background technology
At present, mobile bearer network uses Packet Transport Network (Packet Transport Network, PTN) group Network technology, and two layers of (Layer2) PTN for moving bearer network generally carry out networking using Ethernet, for example, Networking is carried out using gigabit Ethernet (Gigabit Ethernet, GE), 10GE or 100GE.
Address resolution protocol (the Address that the PTN device of three layers of (Layer3) PTN in PTN is safeguarded Processing Unit, ARP) list item is that the three-tier message of PTN device forwarding enters two layers of Ethernet Bridge.Wherein, ARP in the forward-path of the three-tier message interval Ethernet it is adjacent Internet Protocol (Internet Protocol, IP) address of PTN device (i.e. next three-layer network appliance) (i.e. next-hop ip address) and virtual flow-line forwarding instance (Virtual Routing Forwarding, VRF) With media access control (Media Access Control, MAC) address of next three-layer network appliance Mapping relations, three-tier message can be IP messages or multiprotocol label switching (Multi-Protocol Label Switching, MPLS) message etc..
The flow that one PTN device turns transmitting IP packet is:
The PTN device is received after the IP messages, and the Forwarding plane of the PTN device is according to described The routing table that purpose IP address and VRF inquiries in IP messages are locally stored, with obtaining next-hop IP Location, the ARP being then locally stored according to next-hop ip address and VRF inquiries;
If inquiring the ARP comprising the next-hop ip address and the VRF, basis is inquired ARP in MAC Address the IP messages are packaged, encapsulation obtains ethernet frame and gone forward side by side Row forwarding, the MAC Address is encapsulated in the Ethernet frame head;
If not inquiring the ARP comprising the next-hop ip address and the VRF, study is initiated ARP flow:Central processing unit (Central Processing from the Forwarding plane to the PTN device Unit, CPU) ARP miss message is reported, the control plane broadcast arp for triggering the PTN device please Ask and the next-hop ip address is included in message, the ARP request message;Receiving the next-hop After the arp response that the corresponding network equipment of IP address is returned, the control plane is according to the next-hop IP The MAC Address of the network equipment included in address and the VRF, and arp response message, ARP is generated, the Forwarding plane forwards the IP messages according to the ARP of generation.
Wherein, wrapped in the framework that the PTN device is separated using forwarding with control, i.e., described PTN device Include Forwarding plane and control plane.
But, it is generally the case that the speed of the Forwarding plane forwarding three-tier message of PTN device is very high, works as pin Do not inquire ARP to a three-tier message, ARP miss message can be reported to CPU, then pin To the purpose IP address each included that subsequently forwards and above-mentioned three-tier message identical three-tier message, also not ARP can be inquired, ARP miss message equally can be also reported to CPU, this results in PTN and set CPU in standby can receive substantial amounts of ARP miss message in the short time, and the CPU is impacted.
Therefore, be provided with traditional PTN device committed access rate (Committed Access Rate, CAR), the speed of the ARP miss message reported for limitation forwarding plane, for example, certain PTN device The CAR of middle setting is 100KB/s, then in one second, and the Forwarding plane of the PTN device can be to The CPU of the PTN device reports 100KB ARP miss message, beyond more than 100KB ARP miss message is directly given up.
CAR is set in PTN device, the ARP miss that the Forwarding plane of PTN device is reported can be limited The speed of message, however, the value of the CAR is fixed value, when the value of the CAR sets larger, The speed of the ARP miss message so reported is higher, and still the CPU of PTN device can be impacted, Reduce the security of the control plane of PTN device;When the value of the CAR sets smaller, then on The speed of the ARP miss message of report is smaller, the control plane study ARP of influence PTN device Speed, and then extend the time that three-tier message arrives at next three-layer network appliance, that is, extend business insertion Time.
The content of the invention
The present invention provides a kind of method and PTN device for learning ARP, is set to solve limitation PTN When standby Forwarding plane reports the speed of ARP miss message, the CPU of PTN device is impacted or Influence the problem of control plane of PTN device learns the speed of ARP.
The concrete technical scheme that the present invention is provided is as follows:
On the one hand, the embodiments of the invention provide a kind of method for learning ARP, this method includes:
The Forwarding plane of Packet Transport Network PTN device obtains the first message forwarding letter of the first message to be forwarded Breath, and according to the first message forwarding information, the comprising the first message forwarding information is not inquired One ARP list item;Wherein, the first message forwarding information is that virtual flow-line is forwarded in fact Example VRF and next-hop Internet protocol IP address, first ARP forward for first message The mapping relations of information and MAC address;
The Forwarding plane determines the first message forwarding information set belonging to the first message forwarding information;
The Forwarding plane is according to multiple message forwarding information set of storage with committed access rate CAR's Corresponding relation, obtains the first message forwarding information set corresponding first CAR, the first CAR The first ARP of the control plane of the PTN device is reported to for the Forwarding plane in setting time unit The quantity threshold of miss message and the 2nd ARP miss message, the 2nd ARP miss message turns to be described Plane is sent out for the second message generation to be forwarded, the second message forwarding information of second message to be forwarded Identical with the first message forwarding information, the first ARP miss message is that the Forwarding plane is directed to The first message generation to be forwarded;
The Forwarding plane generates the first ARP miss message for the described first message to be forwarded, and by institute The first ARP miss information reportings are stated to the control plane, and according to the first CAR, to follow-up 2nd ARP miss message of generation is reported;
The control plane carries out first ARP according to the first ARP miss message Practise.
Using the above method, due to be stored with the PTN device multiple message forwarding information set with CAR corresponding relation, i.e., set different CAR for different message forwarding information set, therefore, The corresponding CAR of each message forwarding information set can be adjusted flexibly in the PTN device, turn for limiting Hair plane reports the speed of ARP miss message for user's (i.e. message forwarding information) of different credibilities Rate, it is to avoid identical CAR is set for the message of any credibility, caused to the PTN device CPU impact, it is ensured that the security of the control plane of the PTN device, also ensure the PTN The control plane of equipment learns the speed of ARP.
In a possible design, the Forwarding plane determines belonging to the first message forwarding information One message forwarding information set, including:
The Forwarding plane retrieves the first message forwarding in multiple message forwarding information set of storage Information;
When the Forwarding plane retrieves the first message forwarding letter in a message forwarding information set During breath, determine that the message forwarding information collection is combined into the first message forwarding information set.
By the above method, due to multiple message forwarding information set that are stored with the PTN device, this Multiple message forwarding informations can be divided into multiple message forwarding information set by PTN device described in sample, and According to multiple message forwarding information set and CAR corresponding relation, for different message forwarding information collection Message forwarding information in conjunction determines corresponding CAR, and corresponding report to be forwarded is handled according to the CAR of determination Text, is easy to the PTN device to treat to E-Packet and be managed.
In a possible design, the control plane is carried out according to the first ARP miss message The study of first ARP, including:
The control plane generates corresponding ARP study and appointed according to the first ARP miss message Business;
Multiple message forwarding information set and the corresponding relation of priority of the control plane according to storage, really Corresponding first priority of the fixed first message forwarding information set, using first priority as described The priority of the control plane processing ARP learning tasks;
The control plane handles the ARP learning tasks, generation according to first priority First ARP.
By the above method, because the control plane in the PTN device is stored with multiple messages forwarding letters Breath set and the corresponding relation of priority, i.e., set different for different message forwarding information set The corresponding priority of each message forwarding information set can be adjusted flexibly in CAR, therefore, the PTN, User's (i.e. message forwarding information) that the control plane is directed to different credibilities is limited, learns ARP The priority of list item, it is ensured that the speed of the ARP study of trusted users, when shortening legitimate traffic insertion Between, it is to avoid the PTN device is attacked by the ARP miss message of invalid packet, it is ensured that the PTN The security of the control plane of equipment.
In a possible design, the Forwarding plane according to the first CAR, to be subsequently generated Two ARP miss message are reported, including:
When the number for the 2nd ARP miss message that the Forwarding plane is generated in the setting time unit During less than or equal to the first CAR and 1 difference, the Forwarding plane is by all 2nd ARP of generation Miss message all reports the control plane;
When the number for the 2nd ARP miss message that the Forwarding plane is generated in the setting time unit During more than the first CAR and 1 difference, the Forwarding plane disappears the ARP miss of part the 2nd of generation Breath reports the control plane, and the number of the ARP miss message of part the 2nd is the first CAR With 1 difference.
By the above method, the Forwarding plane can limit the Forwarding plane by the first CAR The speed of ARP miss message is reported for the first message forwarding information.
In a possible design, before the control plane generates first ARP, institute Stating method also includes:
Control plane generation includes the second ARP of the first message forwarding information, and described the Two ARPs are used to indicate that the Forwarding plane is inquiring the 2nd ARP for a message to be forwarded During list item, by the packet loss to be forwarded, the first ageing time of second ARP be for What the first message forwarding information set was set;
The control plane is subsequently generating second ARP every time, by second ARP First ageing time extension setting the first duration, until second ARP extend after institute State the first ageing time and be more than or equal to the second ageing time set for the second message forwarding information set When, the first message forwarding information in the first message forwarding information set is deleted, and described The first message forwarding information is added in second message forwarding information set;Wherein, subsequently generate every time Second ARP, is that after the ageing time for the second ARP that last time generates, and the control is flat Face receives what is generated during the 2nd ARP miss message;
Wherein, the first CAR is more than corresponding 2nd CAR of the second message forwarding information set, First priority is higher than corresponding second priority of the second message forwarding information set, and for institute The first ageing time for stating the first message forwarding information set setting is less than second ageing time.
By the above method, the control plane of the PTN device is in multiple message forwarding information set Message forwarding information adjustment, improves the ability of the flexible response environment change of the PTN device.
In a possible design, after the control plane generates first ARP, institute Stating method also includes:
The control plane deletes second ARP.
In a possible design, the first CAR be not the multiple message forwarding information set with Maximum in the multiple CAR included in CAR corresponding relation;
After the control plane generates first ARP, methods described also includes:
The control plane is by the first message forwarding information in the second message forwarding information set Delete, and the first message forwarding information is added in the 3rd message forwarding information set, wherein, Corresponding 3rd CAR of the 3rd message forwarding information set, is the maximum in the multiple CAR.
By the above method, the control plane of the PTN device successfully learns to first ARP When, the control plane using the first message forwarding information as legal believable message forwarding information, Therefore, the first message forwarding information is moved in most legal believable message forwarding information set, by In the legal corresponding CAR maximums of the corresponding message forwarding information set of credible message (such as white list), And pass through above-mentioned discussion, the corresponding highest priority of message forwarding information set, accordingly, it would be desirable to will The first message forwarding information moves to the 3rd maximum message forwarding information set of corresponding CAR.
Second aspect, the embodiment of the present invention additionally provides a kind of PTN device, and the PTN device, which has, to be realized The function of the behavior of PTN device in above method example.The function can be realized by hardware, also may be used Realized with performing corresponding software by hardware.The hardware or software include one or more and above-mentioned functions Corresponding module.
In a kind of possible design, the structure of the PTN device includes retransmission unit and control unit, These units can perform the corresponding function in above method example, referring specifically to retouching in detail in method example State, do not repeat herein.
In a kind of possible design, the structure of the PTN device includes transceiver, processor, total Line and memory, the equipment that the transceiver is used to be connected with the PTN device carry out communication interaction, The processor is configured as supporting the PTN device to perform corresponding function in the above method.It is described to deposit Reservoir is coupled with the processor, and it preserves the necessary programmed instruction of PTN device and data.
Multiple messages that are stored with the method for the study ARP provided using the present invention, PTN device are turned Photos and sending messages set and CAR corresponding relation, i.e., set different for different message forwarding information set The corresponding CAR of each message forwarding information set can be adjusted flexibly in CAR, therefore, the PTN device, User's (i.e. message forwarding information) for limitation forwarding plane for different credibilities reports ARP miss The speed of message, it is to avoid identical CAR is set for the message of any credibility, caused to described The CPU of PTN device is impacted, it is ensured that the security of the control plane of the PTN device, is also protected The control plane for demonstrate,proving the PTN device learns the speed of ARP.
Brief description of the drawings
Fig. 1 is a kind of PTN Organization Charts for the method for realizing study ARP provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram for learning ARP provided in an embodiment of the present invention;
Fig. 3 is a kind of example flow schematic diagram for learning ARP provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of PTN device provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of PTN device provided in an embodiment of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing to this hair It is bright to be described in further detail, it is clear that described embodiment is only a part of embodiment of the invention, Rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not doing Go out all other embodiment obtained under the premise of creative work, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of method and PTN device for learning ARP, existing to solve When the Forwarding plane that PTN device is limited in technology reports the speed of ARP miss message, to PTN device CPU impacts or influenceed the problem of control plane of PTN device learns the speed of ARP.Wherein, The method of the invention and device are based on same inventive concept, because method and device solves the principle phase of problem Seemingly, therefore the implementation of apparatus and method can be repeated part and repeated no more with cross-reference.
Be stored with multiple message forwarding information set and CAR pair in the embodiment of the present invention, in PTN device It should be related to, be directed to the first message to be forwarded in the Forwarding plane of the PTN device, do not inquire comprising institute When stating the first ARP of the first message forwarding information of the first message to be forwarded, determine that described first treats E-Packet the first affiliated message forwarding information set, and then determines the first message forwarding information set Corresponding first CAR, the Forwarding plane is according to the first CAR, to the 2nd ARP being subsequently generated Miss message is reported, and is treated wherein the second ARP miss message is the Forwarding plane for second E-Packet generation, and the second message forwarding information and first message of second message to be forwarded turn Photos and sending messages are identical;The Forwarding plane generates the first ARP miss message for the described first message to be forwarded And the control plane of the PTN device is reported, the control plane is carried out first ARP Study.Closed because multiple message forwarding information set that are stored with the PTN device are corresponding with CAR System, i.e., set different CAR, therefore, the PTN device for different message forwarding information set The corresponding CAR of each message forwarding information set can be adjusted flexibly, for limitation forwarding plane for difference User's (i.e. message forwarding information) of credibility reports the speed of ARP miss message, it is to avoid be directed to The message of any credibility sets identical CAR, causes to impact the CPU of the PTN device, The security of the control plane of the PTN device is ensure that, also ensures the control plane of the PTN device Learn the speed of ARP.
A kind of method for learning ARP provided in an embodiment of the present invention, it is adaptable to PTN as shown in Figure 1 In, L2PTN carries out including in networking, the L3PTN of the PTN using Ethernet in the PTN Multiple PTN devices, PTN device can for based on ARP standard agreements router or other have route Multiple network equipments, the equipment such as Ethernet switch 102 are included in the equipment of function, the Ethernet.
Wherein, the PTN device 101 in L3PTN issues L3PTN passing through Ethernet by three-tier message In the flow of PTN device 103 include:
The PTN device 101 receives a three-tier message (such as IP messages), and this three layers are obtained first The VRF and purpose IP address of message, the routing table being locally stored according to above-mentioned two information inquiries, are obtained Adjacent PTN device (such as figure PTN device of Ethernet is spaced into the forward-path of the three-tier message 103) IP address (i.e. next-hop ip address);
Then, the PTN device 101 is according to the next-hop ip address and the VRF, and inquiry is local Multiple ARPs of storage;
It is described when inquiring the first ARP comprising the next-hop ip address and the VRF PTN device 101 obtains the MAC Address included in first ARP, and according to the MAC The three-tier message is forwarded to the PTN device 103 by address, is specifically included:The PTN device 101 The three-tier message is encapsulated as ethernet frame, and the MAC Address is encapsulated in the Ethernet frame head Interior, the PTN device 101 is by the ethernet frame after encapsulation by the network equipment in Ethernet (as handed over Change planes 102), be eventually sent to the PTN device 103;
It is described when not inquiring the first ARP comprising the next-hop ip address and the VRF PTN device 101 triggers the learning process of first ARP, and first ARP table is arrived in study Xiang Hou, being forwarded according to the MAC Address that is included in first ARP follow-up has the next-hop The three-tier message to be forwarded of IP address and the VRF.
In embodiments of the present invention, the PTN device 101 is using the framework of forwarding and control separation, institute State and Forwarding plane and control plane are included in PTN device 101, wherein, the Forwarding plane is used to connect Receive after three-tier message, inquire about the routing table and ARP being locally stored, be additionally operable to do not inquiring During first ARP, ARP miss message, triggering control plane hair are reported to the control plane Play the learning process of first ARP;The control plane is used for the study of ARP.
As shown in fig.2, a kind of method for learning ARP provided in an embodiment of the present invention, this method Can be, but not limited to be applied to PTN as shown in Figure 1 in, the present embodiments relate to PTN device can Think the PTN device 101 in Fig. 1.The handling process of this method includes:
Step 201:The Forwarding plane of PTN device obtains the first message forwarding information of the first message to be forwarded, And according to the first message forwarding information, do not inquire and include the first of the first message forwarding information ARP;Wherein, the first message forwarding information is VRF and next-hop ip address, described first ARP is the mapping relations of the first message forwarding information and MAC Address.
Forwarding and the framework of control separation that the PTN device being related in embodiments of the present invention is used, therefore, The PTN device includes Forwarding plane and control plane.
Wherein, the PTN device obtains the VRF of first message to be forwarded, including:
The PTN device determines the port pair according to receiving the port of first message to be forwarded The VPN (Virtual Private Network, VPN) answered, according to being determined the VPN The VRF of first message to be forwarded.
Wherein, the PTN device obtains the next-hop ip address of first message to be forwarded, specific bag Include:
The PTN device obtains the purpose IP address included in first message to be forwarded;According to described Purpose IP address and the VRF obtained, are inquired about in the routing table being locally stored, a route entry IP address and VRF and next-hop ip address mapping relations;
After the first routing table comprising the purpose IP address and the VRF is inquired, institute is obtained State the next-hop ip address included in the first routing table.
Step 202:The Forwarding plane determines the first message forwarding belonging to the first message forwarding information Information aggregate.
Optionally, the Forwarding plane of the PTN device is specifically included when performing step 202:
The Forwarding plane retrieves the first message forwarding in multiple message forwarding information set of storage Information;
When the Forwarding plane retrieves the first message forwarding letter in a message forwarding information set During breath, determine that the message forwarding information collection is combined into the first message forwarding information set.
Be stored with multiple message forwarding information set in the PTN device, and so described PTN device can be with Multiple message forwarding informations are divided into multiple message forwarding information set, and according to multiple message forwarding informations Set and CAR corresponding relation, it is true for the message forwarding information in different message forwarding information set Fixed corresponding CAR, handles corresponding message to be forwarded according to the CAR of determination, is easy to the PTN device Treat to E-Packet and be managed.
For example, blacklist, 3 set of white list and gray list can be included with multiple message forwarding information set, Message to be forwarded with the message forwarding information in white list is legal credible message maximum probability, and is had The message to be forwarded for having the message forwarding information in blacklist is the maximum probability of invalid packet, and with grey name The credibility of the message to be forwarded of message forwarding information in list is not known, and therefore, white list is corresponding CAR is maximum, and the corresponding CAR of gray list is moderate, and the corresponding CAR of blacklist is minimum.
Optionally, multiple message forwarding information set can user be pre-configured with, or by described PTN device adaptive configuration, the present invention is not limited this.For example, the PTN device network road White list is adaptively included in by next-hop ip address, and by the next-hop ip address being routed to, or it is described The next-hop ip address in PTN device static state tunnel (Tunnel) is adaptively included in white list, or described PTN device is by once successfully study is included in white list automatically to the next-hop ip address of ARP.
Step 203:The Forwarding plane is corresponding with CAR according to multiple message forwarding information set of storage Relation, obtains the first message forwarding information set corresponding first CAR, the first CAR to set The Forwarding plane reports to the first ARP miss of the control plane of the PTN device in unit of fixing time The quantity threshold of message and the 2nd ARP miss message, the 2nd ARP miss message is flat for the forwarding Face is for the second message generation to be forwarded, the second message forwarding information of second message to be forwarded and institute State the first message forwarding information identical, the first ARP miss message is the Forwarding plane for described First message generation to be forwarded.
Optionally, the CAR in the set of message forwarding information and CAR corresponding relation can include promising to undertake letter Cease speed (Committed Information Rate, CIR) and/or highest information rate (Peak Information Rate, PIR), wherein, the CIR is the Mean Speed for allowing to report ARP miss message, and PIR To allow the maximum rate for reporting ARP miss message, the ARP miss that the CIR and the PIR are directed to Message is that the Forwarding plane is directed to what the message to be forwarded with same message forwarding information was generated.
Optionally, when the multiple message forwarding information collection is combined into blacklist, 3 collection of white list and gray list During conjunction, the corresponding CAR of multiple message forwarding information set value is as shown in table 1:
The corresponding CAR of more than 1 message forwarding information set of table
Message forwarding information set CAR It is corresponding to report ARP miss message rates
White list Greatly It is high
Gray list In In
Blacklist It is small It is low
In practical application scene, when PTN device is as aggregation node, the base station number being attached thereto is huge, Accordingly, it would be desirable to learn substantial amounts of ARP, and Long Term Evolution (Long Term Evolution, LTE) In scene, aggregation node PTN device carries X2 business (business i.e. between base station), therefore PTN is set It is standby to be easier to be attacked by invalid packet, can so cause the PTN device CPU extra process this The ARP miss message of a little invalid packets, therefore, occupies cpu resource so that the insertion of legitimate traffic Time delay increase.
Due to the corresponding relation of be stored with the PTN device multiple message forwarding information set and CAR, Different CAR are set for different message forwarding information set, and therefore, the PTN device can be with The corresponding CAR of each message forwarding information set is adjusted flexibly, for limitation forwarding plane for different credible User's (i.e. message forwarding information) of degree reports the speed of ARP miss message, it is to avoid for any The message of credibility sets identical CAR, it is to avoid the CPU of the PTN device is impacted, and protects The security of the control plane of the PTN device has been demonstrate,proved, has also ensured the control plane of the PTN device Practise the speed of ARP.
Step 204:The Forwarding plane generates the first ARP miss for the described first message to be forwarded and disappeared Breath, and the control plane is given by the first ARP miss information reportings, and according to described first CAR, is reported to the 2nd ARP miss message being subsequently generated.
In step 204, the Forwarding plane to the control plane by sending the first ARP miss Message, triggers the study that the control plane carries out first ARP.
Optionally, the Forwarding plane is according to the first CAR, to the 2nd ARP miss being subsequently generated Message is reported, including:
When the number for the 2nd ARP miss message that the Forwarding plane is generated in the setting time unit During less than or equal to the first CAR and 1 difference, the Forwarding plane is by all 2nd ARP of generation Miss message all reports the control plane;
When the number for the 2nd ARP miss message that the Forwarding plane is generated in the setting time unit During more than the first CAR and 1 difference, the Forwarding plane disappears the ARP miss of part the 2nd of generation Breath reports the control plane, and the number of the ARP miss message of part the 2nd is the first CAR With 1 difference.
By the above method, the Forwarding plane can limit the Forwarding plane by the first CAR The speed of ARP miss message is reported for the first message forwarding information.
Step 205:The control plane carries out the first ARP according to the first ARP miss message The study of list item.
Optionally, the control plane perform step 205 when, including:
The control plane generates corresponding ARP study and appointed according to the first ARP miss message Business;
Multiple message forwarding information set and the corresponding relation of priority of the control plane according to storage, really Corresponding first priority of the fixed first message forwarding information set, using first priority as described The priority of the control plane processing ARP learning tasks;
The control plane handles the ARP learning tasks, generation according to first priority First ARP.
The corresponding relation of multiple message forwarding information set and priority is preserved in the control plane, it is different Message forwarding information to combine corresponding priority different, for example, when the multiple message forwarding information set During for blacklist, white list and the set of gray list 3, the corresponding priority of multiple message forwarding information set As shown in table 2:
The corresponding priority of more than 2 message forwarding information set of table
Message forwarding information set Priority Control plane handles the priority of ARP learning tasks
White list It is high It is high
Gray list In In
Blacklist It is low It is low
Wherein, optionally, the control plane can put ARP learning tasks according to priority Put in the corresponding task queue of priority, such as described control plane will be directed to message forwarding letter in white list The ARP learning tasks of generation are ceased, are placed in high-priority queue.
By the above method, because the control plane in the PTN device is stored with multiple messages forwarding letters Breath set and the corresponding relation of priority, i.e., set different for different message forwarding information set The corresponding priority of each message forwarding information set can be adjusted flexibly in CAR, therefore, the PTN, User's (i.e. message forwarding information) that the control plane is directed to different credibilities is limited, learns ARP The priority of list item, it is ensured that the speed of the ARP study of trusted users, when shortening legitimate traffic insertion Between, it is to avoid the PTN device is attacked by the ARP miss message of invalid packet, it is ensured that the PTN The security of the control plane of equipment.
Wherein, the control plane is before step 205 is performed, and methods described also includes:
Control plane generation includes the second ARP of the first message forwarding information, and described the Two ARPs are used to indicate that the Forwarding plane is inquiring the 2nd ARP for a message to be forwarded During list item, by the packet loss to be forwarded, the first ageing time of second ARP be for What the first message forwarding information set was set;
The control plane is subsequently generating second ARP every time, by second ARP First ageing time extension setting the first duration, until second ARP extend after institute State the first ageing time and be more than or equal to the second ageing time set for the second message forwarding information set When, the first message forwarding information in the first message forwarding information set is deleted, and described The first message forwarding information is added in second message forwarding information set;Wherein, subsequently generate every time Second ARP, is that after the ageing time for the second ARP that last time generates, and the control is flat Face receives what is generated during the 2nd ARP miss message;
Wherein, the first CAR is more than corresponding 2nd CAR of the second message forwarding information set, First priority is higher than corresponding second priority of the second message forwarding information set, and for institute The first ageing time for stating the first message forwarding information set setting is less than second ageing time.
Second ARP is properly termed as blackhole route list item or pseudo- (dummy) list items of ARP, uses In by the packet loss to be forwarded with the first message forwarding information, it is to avoid the follow-up pin of Forwarding plane Continue to report ARP miss message to the message to be forwarded with the first message forwarding information to the control Plane processed.
Wherein, the ARP of the message forwarding information generation included for different message forwarding information set The ageing time of dummy list items is different, the aging of the ARP dummy list items for example generated for blacklist Time is most long, and the ageing time of the ARP dummy list items generated for white list is most short, so, can be with Improve the PTN device prevent invalid packet ARP miss message attack ability, accelerate it is legal The speed of the ARP study of trusted users, shortens legitimate traffic cutting through time, it is ensured that the PTN is set The security of standby control plane.
From discussed above, the 2nd ARP for including the first message forwarding information is generated in first time List item to control plane study arrive first ARP between during it is longer, and described second The ageing time of ARP is shorter, therefore, is arrived in the ageing time of the second ARP generated first After reaching, the Forwarding plane may can also receive the message to be forwarded with the first message forwarding information, Therefore, the plane that turns can generate second ARP again, because the Forwarding plane is repeatedly received Turn to the substantial amounts of message to be forwarded with the first message forwarding information, therefore with first message The message to be forwarded of photos and sending messages is the probability increase of invalid packet, and by the above method, second is generated every time During ARP, by the first ageing time extension setting the first duration (such as 2 of the ARP of generation list item Second (second, s), 5s or 10s etc.) is until when the first ageing time of second ARP is more than Or during equal to the second ageing time set for the second message forwarding information set, first message is turned Photos and sending messages are adjusted to the second message forwarding information set.
For example, the control plane is 10s for the ageing time that white list is set, set for gray list Ageing time be 30s, generation includes first message in the white list for the first time for the control plane During the second ARP of forwarding information, the ageing time of second ARP is 10s, follow-up to pass through After the ageing time of second ARP, the ARP is generated again, and each ageing time extends 5s, Then second ARP is collectively generated 5 times, and the ageing time of the 5th second ARP is 30s, When now the PTN device is not learnt to the first ARP also, the PTN device is by the white list In the first message forwarding information delete, and move in gray list.
By the above method, the control plane of the PTN device is in multiple message forwarding information set Message forwarding information adjustment, improves the ability of the flexible response environment change of the PTN device.
The situation of the second ARP comprising the first message forwarding information is generated in the control plane Under, after the control plane generates first ARP, methods described also includes:
The control plane deletes second ARP.
Optionally, the first CAR is not the multiple message forwarding information set pass corresponding with CAR Maximum in the multiple CAR included in system;The control plane generate first ARP it Afterwards, methods described also includes:
The control plane is by the first message forwarding information in the second message forwarding information set Delete, and the first message forwarding information is added in the 3rd message forwarding information set, wherein, Corresponding 3rd CAR of the 3rd message forwarding information set, is the maximum in the multiple CAR.
By the above method, the control plane of the PTN device successfully learns to first ARP When, the control plane using the first message forwarding information as legal believable message forwarding information, Therefore, the first message forwarding information is moved in most legal believable message forwarding information set, by In the legal corresponding CAR maximums of the corresponding message forwarding information set of credible message (such as white list), And pass through above-mentioned discussion, the corresponding highest priority of message forwarding information set, accordingly, it would be desirable to will The first message forwarding information moves to the 3rd maximum message forwarding information set of corresponding CAR.
By the above method, the control plane of the PTN device is in multiple message forwarding information set Message forwarding information adjustment, improves the ability of the flexible response environment change of the PTN device.
Using the method for the study ARP in the above embodiment of the present invention, it is stored with PTN device many Individual message forwarding information set and CAR corresponding relation, the PTN device Forwarding plane for the One message to be forwarded, first of the first message forwarding information comprising the described first message to be forwarded is not inquired During ARP, the first message forwarding information set belonging to the described first message to be forwarded is determined, and then really Determine corresponding first CAR of the first message forwarding information set, the Forwarding plane is according to described first CAR, is reported to the 2nd ARP miss message being subsequently generated, wherein the second ARP miss disappear It is that the Forwarding plane is generated for the second message to be forwarded to cease, the second report of second message to be forwarded Literary forwarding information is identical with the first message forwarding information;The Forwarding plane is to be forwarded for described first Message generates the first ARP miss message and reports the control plane of the PTN device, makes the control Plane carries out the study of first ARP.Due to being stored with the PTN device, multiple messages turn Photos and sending messages set and CAR corresponding relation, i.e., set different for different message forwarding information set The corresponding CAR of each message forwarding information set can be adjusted flexibly in CAR, therefore, the PTN device, User's (i.e. message forwarding information) for limitation forwarding plane for different credibilities reports ARP miss The speed of message, it is to avoid identical CAR is set for the message of any credibility, caused to described The CPU of PTN device is impacted, it is ensured that the security of the control plane of the PTN device, is also protected The control plane for demonstrate,proving the PTN device learns the speed of ARP.
Based on above example, the embodiment of the present invention additionally provides a kind of example for learning ARP, such as Shown in Fig. 3, safeguard there are 3 message forwarding information set in PTN device:White list, gray list and Blacklist.
When the Forwarding plane of the PTN device receives an IP message, the Forwarding plane obtains institute State the first message forwarding information (next-hop ip address and VRF) of IP messages;The Forwarding plane according to The ARP that the first message forwarding information inquiry is locally preserved, is not being inquired comprising described first During the first ARP of message forwarding information, each message forwarding information of the Forwarding plane in storage The first message forwarding information is retrieved in set;When in a message forwarding information set (white list) When retrieving the first message forwarding information, it to determine by the first message forwarding information the white list First message forwarding information set of category;The Forwarding plane continues multiple message forwarding informations according to storage Set and CAR corresponding relation, obtain corresponding first CAR of the white list;
The Forwarding plane generates the first ARP miss message for the described first message to be forwarded, and should First ARP miss information reportings give the control plane, and according to the first CAR, to being subsequently directed to 2nd ARP miss message of the message to be forwarded generation with the first message forwarding information is reported;
The control plane generates corresponding ARP study and appointed according to the first ARP miss message Business, multiple message forwarding information set that can be according to storage and the corresponding relation of priority, determine white list Corresponding first priority (high priority), the ARP learning tasks are placed in high-priority queue;
The control plane handles ARP learning tasks according to the sequence of priority, i.e., preferential Handle the ARP learning tasks in high-priority queue;The control plane is handling an ARP During habit task, ARP request is sent by the adjacent PTN device of Forwarding plane to interval Ethernet (Request);
The control plane can also generate the second ARP (ARP comprising the first message forwarding information Dummy list items), the ageing time of the ARP dummy list items is to be set for the white list;Institute Forwarding plane is stated when inquiring the ARP dummy list items for a message to be forwarded, waits to turn by described Send out packet loss;
The control plane can also adaptively adjust the message forwarding information in message forwarding information set, specifically The description in the step 205 in above-described embodiment is referred to, here is omitted;
When the control plane receives arp response (relpy) by the adjacent PTN device, according to The arp response, generates first ARP, and deleted after first ARP is generated Except second ARP.
Based on above example, present invention also offers a kind of PTN device, the PTN device can be figure PTN device in 1, as shown in fig.4, the PTN device 400 includes:The He of retransmission unit 401 Control unit 402, wherein,
Retransmission unit 401, the first message forwarding information for obtaining the first message to be forwarded, and according to institute The first message forwarding information is stated, the first address resolution association comprising the first message forwarding information is not inquired Discuss ARP;Wherein, the first message forwarding information is virtual flow-line forwarding instance VRF and next Internet protocol IP address is jumped, first ARP is that the first message forwarding information is visited with media Ask the mapping relations of control MAC Address;
Determine the first message forwarding information set belonging to the first message forwarding information;
According to multiple message forwarding information set of storage and committed access rate CAR corresponding relation, obtain It is setting time list to take the first message forwarding information set corresponding first CAR, the first CAR The retransmission unit 401 reports to the first ARP of the control unit 402 of the PTN device 400 in position The quantity threshold of miss message and the 2nd ARP miss message, the 2nd ARP miss message turns to be described Bill member 401 is for the second message generation to be forwarded, the second message forwarding of second message to be forwarded Information is identical with the first message forwarding information, and the first ARP miss message is the retransmission unit 401 for the described first message generation to be forwarded;And
The first ARP miss message is generated for the described first message to be forwarded, and by the first ARP Miss information reportings are to described control unit 402, and according to the first CAR, to be subsequently generated Two ARP miss message are reported;
Described control unit 402, for according to the first ARP miss message, carrying out the first ARP The study of list item.
Optionally, the retransmission unit 401, it is determined that first belonging to the first message forwarding information reports During literary forwarding information set, specifically for:
The first message forwarding information is retrieved in multiple message forwarding information set of storage;
When retrieving the first message forwarding information in a message forwarding information set, it is determined that described Message forwarding information collection is combined into the first message forwarding information set.
Optionally, described control unit 402, specifically for:
According to the first ARP miss message, corresponding ARP learning tasks are generated;
According to multiple message forwarding information set of storage and the corresponding relation of priority, first report is determined Corresponding first priority of literary forwarding information set, regard first priority as described control unit 402 Handle the priority of the ARP learning tasks;
According to first priority, the ARP learning tasks are handled, the first ARP is generated List item.
Optionally, the retransmission unit 401, according to the first CAR, to be subsequently generated second ARP miss message is given the correct time on carrying out, specifically for:
The 2nd ARP miss message generated in the setting time unit when the retransmission unit 401 When number is less than or equal to the first CAR and 1 difference, by all 2nd ARP miss message of generation All report described control unit 402;
The 2nd ARP miss message generated in the setting time unit when the retransmission unit 401 When number is more than the first CAR and 1 difference, the ARP miss information reportings of part the 2nd of generation are given Described control unit 402, the number of the ARP miss message of part the 2nd is the first CAR and 1 Difference.
Optionally, described control unit 402, are additionally operable to:
Before first ARP is generated, generation includes the second of the first message forwarding information ARP, second ARP is used to indicate the retransmission unit 401 for a report to be forwarded When query text is to second ARP, by the packet loss to be forwarded, second ARP The first ageing time be for the first message forwarding information set set;And
Second ARP is subsequently being generated every time, it is old by described the first of second ARP Change time lengthening set the first duration, until second ARP extend after first aging when Between be more than or equal to for the second message forwarding information set set the second ageing time when, by described first The first message forwarding information in message forwarding information set is deleted, and forwards letter in second message The first message forwarding information is added in breath set;Wherein, the second ARP subsequently generated every time, It is that and described control unit 402 receives institute after the ageing time for the second ARP that last time generates State what is generated during the 2nd ARP miss message;
Wherein, the first CAR is more than corresponding 2nd CAR of the second message forwarding information set, First priority is higher than corresponding second priority of the second message forwarding information set, and for institute The first ageing time for stating the first message forwarding information set setting is less than second ageing time.
Optionally, described control unit 402, are additionally operable to:
After first ARP is generated, second ARP is deleted.
Optionally, the first CAR is not the multiple message forwarding information set pass corresponding with CAR Maximum in the multiple CAR included in system;
Described control unit 402, is additionally operable to:
After first ARP is generated, described in the second message forwarding information set First message forwarding information is deleted, and adds first message in the 3rd message forwarding information set Forwarding information, wherein, corresponding 3rd CAR of the 3rd message forwarding information set, is the multiple Maximum in CAR.
PTN device is provided using the embodiment of the present invention, due to multiple messages that are stored with the PTN device Forwarding information set and CAR corresponding relation, i.e., set different for different message forwarding information set CAR, therefore, it is corresponding that each message forwarding information set can be adjusted flexibly in the PTN device CAR, user's (i.e. message forwarding information) for limitation forwarding plane for different credibilities reports The speed of ARP miss message, it is to avoid identical CAR is set for the message of any credibility, led Cause to impact the CPU of the PTN device, it is ensured that the safety of the control plane of the PTN device Property, also ensure that the control plane of the PTN device learns the speed of ARP.
It should be noted that being schematical to the division of unit in the embodiment of the present invention, only one kind is patrolled Collect function to divide, there can be other dividing mode when actually realizing.Each work(in embodiments herein Energy unit can be integrated in a processing unit or unit is individually physically present, can also Two or more units are integrated in a unit.Above-mentioned integrated unit can both use the shape of hardware Formula is realized, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and is used as independent production marketing Or in use, can be stored in a computer read/write memory medium.Understood based on such, this Shen Part that technical scheme please substantially contributes to prior art in other words or the technical scheme it is complete Portion or part can be embodied in the form of software product, and the computer software product is stored in a storage In medium, including some instructions to cause a computer equipment (can be personal computer, server, Or the network equipment etc.) or processor (processor) perform the complete of the application each embodiment methods described Portion or part steps.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic Dish or CD etc. are various can be with the medium of store program codes.
Based on above example, the embodiment of the present invention additionally provides a kind of PTN device, the PTN device Can be the PTN device 101 in PTN as shown in Figure 1, the study ARP as shown in Figure 2 for realizing The method of list item, and the function with PTN device 400 as shown in Figure 4, as shown in fig.5, institute Stating PTN device 500 includes:Transceiver 501, processor 502, bus 503 and memory 504, Wherein,
The transceiver 501, the processor 502 and the memory 504 pass through the phase of bus 503 Connect;Bus 503 can be Peripheral Component Interconnect standard (peripheral component interconnect, Abbreviation PCI) bus or EISA (extended industry standard architecture, Abbreviation EISA) bus etc..The bus can be divided into address bus, data/address bus, controlling bus etc.. For ease of representing, only represented in Fig. 5 with a thick line, it is not intended that only one bus or a type Bus.
The transceiver 501, the equipment for being connected with the PTN device carries out communication interaction, for example, connect Receiving text, E-Packets.
The processor 502 includes Forwarding plane and control plane, the study as shown in Figure 2 for realizing The method of ARP, including:
The Forwarding plane obtains the first message forwarding information of the first message to be forwarded, and according to described first Message forwarding information, the first ARP for including the first message forwarding information is not inquired;Wherein, The first message forwarding information is VRF and next-hop ip address, and first ARP is described the The mapping relations of one message forwarding information and MAC Address;
The Forwarding plane determines the first message forwarding information set belonging to the first message forwarding information;
Multiple message forwarding information set and CAR corresponding relation of the Forwarding plane according to storage, are obtained It is setting time list to take the first message forwarding information set corresponding first CAR, the first CAR The Forwarding plane reports to the first ARP miss message and the 2nd ARP miss of the control plane in position The quantity threshold of message, the 2nd ARP miss message is that the processor 502 is to be forwarded for second Message generation, the second message forwarding information of second message to be forwarded is forwarded with first message to be believed Manner of breathing is same, and the first ARP miss message is the Forwarding plane for the described first message life to be forwarded Into;
The Forwarding plane generates the first ARP miss message for the described first message to be forwarded, and by institute The first ARP miss information reportings are stated to the control plane, and according to the first CAR, to follow-up 2nd ARP miss message of generation is reported;
The control plane carries out first ARP according to the first ARP miss message Practise.
Optionally, the Forwarding plane determines the first message forwarding letter belonging to the first message forwarding information Breath set, including:
The Forwarding plane retrieves the first message forwarding in multiple message forwarding information set of storage Information;
When the Forwarding plane retrieves the first message forwarding letter in a message forwarding information set During breath, determine that the message forwarding information collection is combined into the first message forwarding information set.
Optionally, the control plane carries out the first ARP according to the first ARP miss message The study of list item, including:
The control plane generates corresponding ARP study and appointed according to the first ARP miss message Business;
Multiple message forwarding information set and the corresponding relation of priority of the control plane according to storage, really Corresponding first priority of the fixed first message forwarding information set, using first priority as described The priority of the control plane processing ARP learning tasks;
The control plane handles the ARP learning tasks, generation according to first priority First ARP.
Optionally, the Forwarding plane is according to the first CAR, to the 2nd ARP miss being subsequently generated Message is reported, including:
When the number for the 2nd ARP miss message that the Forwarding plane is generated in the setting time unit During less than or equal to the first CAR and 1 difference, the Forwarding plane is by all 2nd ARP of generation Miss message all reports the control plane;
When the number for the 2nd ARP miss message that the Forwarding plane is generated in the setting time unit During more than the first CAR and 1 difference, the Forwarding plane disappears the ARP miss of part the 2nd of generation Breath reports the control plane, and the number of the ARP miss message of part the 2nd is the first CAR With 1 difference.
Optionally, the control plane, is additionally operable to before first ARP is generated, generation bag The second ARP containing the first message forwarding information, second ARP is described for indicating Forwarding plane for a message to be forwarded when inquiring second ARP, by the report to be forwarded Text is abandoned, and the first ageing time of second ARP is for the first message forwarding information collection Close what is set;And
The control plane is subsequently generating second ARP every time, by second ARP First ageing time extension setting the first duration, until second ARP extend after institute State the first ageing time and be more than or equal to the second ageing time set for the second message forwarding information set When, the first message forwarding information in the first message forwarding information set is deleted, and described The first message forwarding information is added in second message forwarding information set;Wherein, subsequently generate every time Second ARP, is that after the ageing time for the second ARP that last time generates, and the control is flat Face receives what is generated during the 2nd ARP miss message;
Wherein, the first CAR is more than corresponding 2nd CAR of the second message forwarding information set, First priority is higher than corresponding second priority of the second message forwarding information set, and for institute The first ageing time for stating the first message forwarding information set setting is less than second ageing time.
Optionally, the control plane is additionally operable to after first ARP is generated, and deletes described Second ARP.
Optionally, the first CAR is not the multiple message forwarding information set pass corresponding with CAR Maximum in the multiple CAR included in system;
The control plane is after first ARP is generated, by the second message forwarding information The first message forwarding information in set is deleted, and is added in the 3rd message forwarding information set The first message forwarding information, wherein, corresponding 3rd CAR of the 3rd message forwarding information set, For the maximum in the multiple CAR.
The PTN device 500 also includes memory 504, for depositing program etc..Specifically, program can So that including program code, the program code includes computer-managed instruction.Memory 504 may be comprising random Access memory (random access memory, abbreviation RAM), it is also possible to also deposited including non-volatile Reservoir (non-volatile memory), for example, at least one magnetic disk storage.Processor 502 is performed and deposited The application program that reservoir 504 is deposited, realizes above-mentioned functions, so as to realize study ARP as shown in Figure 2 The method of list item.
PTN device is provided using the embodiment of the present invention, due to multiple messages that are stored with the PTN device Forwarding information set and CAR corresponding relation, i.e., set different for different message forwarding information set CAR, therefore, it is corresponding that each message forwarding information set can be adjusted flexibly in the PTN device CAR, user's (i.e. message forwarding information) for limitation forwarding plane for different credibilities reports The speed of ARP miss message, it is to avoid identical CAR is set for the message of any credibility, led Cause to impact the CPU of the PTN device, it is ensured that the safety of the control plane of the PTN device Property, also ensure that the control plane of the PTN device learns the speed of ARP.
Stored in the method and PTN device of study ARP provided in an embodiment of the present invention, PTN device There are multiple message forwarding information set and CAR corresponding relation, in the Forwarding plane pin of the PTN device To the first message to be forwarded, the first message forwarding information comprising the described first message to be forwarded is not inquired During the first ARP, the first message forwarding information set belonging to the described first message to be forwarded is determined, And then corresponding first CAR of the first message forwarding information set is determined, the Forwarding plane is according to described First CAR, is reported to the 2nd ARP miss message being subsequently generated, wherein the second ARP miss Message is the Forwarding plane for the second message generation to be forwarded, the second of second message to be forwarded Message forwarding information is identical with the first message forwarding information;The Forwarding plane is waited to turn for described first Text the first ARP miss message of generation of transmitting messages and the control plane for reporting the PTN device, make the control Plane processed carries out the study of first ARP.Due to multiple messages that are stored with the PTN device Forwarding information set and CAR corresponding relation, i.e., set different for different message forwarding information set CAR, therefore, it is corresponding that each message forwarding information set can be adjusted flexibly in the PTN device CAR, user's (i.e. message forwarding information) for limitation forwarding plane for different credibilities reports The speed of ARP miss message, it is to avoid identical CAR is set for the message of any credibility, led Cause to impact the CPU of the PTN device, it is ensured that the safety of the control plane of the PTN device Property, also ensure that the control plane of the PTN device learns the speed of ARP.
, but those skilled in the art once know base although preferred embodiments of the present invention have been described This creative concept, then can make other change and modification to these embodiments.So, appended right will Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without de- to the embodiment of the present invention From the spirit and scope of the embodiment of the present invention.So, if these modifications and variations category of the embodiment of the present invention Within the scope of the claims in the present invention and its equivalent technologies, then the present invention be also intended to comprising these change and Including modification.

Claims (14)

1. a kind of method for learning ARP, it is characterised in that including:
The Forwarding plane of Packet Transport Network PTN device obtains the first message forwarding letter of the first message to be forwarded Breath, and according to the first message forwarding information, the comprising the first message forwarding information is not inquired One ARP list item;Wherein, the first message forwarding information is that virtual flow-line is forwarded in fact Example VRF and next-hop Internet protocol IP address, first ARP forward for first message The mapping relations of information and MAC address;
The Forwarding plane determines the first message forwarding information set belonging to the first message forwarding information;
The Forwarding plane is according to multiple message forwarding information set of storage with committed access rate CAR's Corresponding relation, obtains the first message forwarding information set corresponding first CAR, the first CAR The first ARP of the control plane of the PTN device is reported to for the Forwarding plane in setting time unit The quantity threshold of miss message and the 2nd ARP miss message, the 2nd ARP miss message turns to be described Plane is sent out for the second message generation to be forwarded, the second message forwarding information of second message to be forwarded Identical with the first message forwarding information, the first ARP miss message is that the Forwarding plane is directed to The first message generation to be forwarded;
The Forwarding plane generates the first ARP miss message for the described first message to be forwarded, and by institute The first ARP miss information reportings are stated to the control plane, and according to the first CAR, to follow-up 2nd ARP miss message of generation is reported;
The control plane carries out first ARP according to the first ARP miss message Practise.
2. the method as described in claim 1, it is characterised in that the Forwarding plane determines described first The first message forwarding information set belonging to message forwarding information, including:
The Forwarding plane retrieves the first message forwarding in multiple message forwarding information set of storage Information;
When the Forwarding plane retrieves the first message forwarding letter in a message forwarding information set During breath, determine that the message forwarding information collection is combined into the first message forwarding information set.
3. method as claimed in claim 1 or 2, it is characterised in that the control plane is according to described First ARP miss message, carries out the study of first ARP, including:
The control plane generates corresponding ARP study and appointed according to the first ARP miss message Business;
Multiple message forwarding information set and the corresponding relation of priority of the control plane according to storage, really Corresponding first priority of the fixed first message forwarding information set, using first priority as described The priority of the control plane processing ARP learning tasks;
The control plane handles the ARP learning tasks, generation according to first priority First ARP.
4. the method as described in claim any one of 1-3, it is characterised in that the Forwarding plane according to First CAR, is reported to the 2nd ARP miss message being subsequently generated, including:
When the number for the 2nd ARP miss message that the Forwarding plane is generated in the setting time unit During less than or equal to the first CAR and 1 difference, the Forwarding plane is by all 2nd ARP of generation Miss message all reports the control plane;
When the number for the 2nd ARP miss message that the Forwarding plane is generated in the setting time unit During more than the first CAR and 1 difference, the Forwarding plane disappears the ARP miss of part the 2nd of generation Breath reports the control plane, and the number of the ARP miss message of part the 2nd is the first CAR With 1 difference.
5. method as claimed in claim 3, it is characterised in that in control plane generation described the Before one ARP, methods described also includes:
Control plane generation includes the second ARP of the first message forwarding information, and described the Two ARPs are used to indicate that the Forwarding plane is inquiring the 2nd ARP for a message to be forwarded During list item, by the packet loss to be forwarded, the first ageing time of second ARP be for What the first message forwarding information set was set;
The control plane is subsequently generating second ARP every time, by second ARP First ageing time extension setting the first duration, until second ARP extend after institute State the first ageing time and be more than or equal to the second ageing time set for the second message forwarding information set When, the first message forwarding information in the first message forwarding information set is deleted, and described The first message forwarding information is added in second message forwarding information set;Wherein, subsequently generate every time Second ARP, is that after the ageing time for the second ARP that last time generates, and the control is flat Face receives what is generated during the 2nd ARP miss message;
Wherein, the first CAR is more than corresponding 2nd CAR of the second message forwarding information set, First priority is higher than corresponding second priority of the second message forwarding information set, and for institute The first ageing time for stating the first message forwarding information set setting is less than second ageing time.
6. method as claimed in claim 5, it is characterised in that in control plane generation described the After one ARP, methods described also includes:
The control plane deletes second ARP.
7. the method as described in claim 5 or 6, it is characterised in that the first CAR is not described Maximum in the multiple CAR included in multiple message forwarding information set and CAR corresponding relation;
After the control plane generates first ARP, methods described also includes:
The control plane is by the first message forwarding information in the second message forwarding information set Delete, and the first message forwarding information is added in the 3rd message forwarding information set, wherein, Corresponding 3rd CAR of the 3rd message forwarding information set, is the maximum in the multiple CAR.
8. a kind of Packet Transport Network PTN device, it is characterised in that including:
Retransmission unit, the first message forwarding information for obtaining the first message to be forwarded, and according to described the One message forwarding information, the first address resolution protocol for including the first message forwarding information is not inquired ARP;Wherein, the first message forwarding information is virtual flow-line forwarding instance VRF and next-hop Internet protocol IP address, first ARP is the first message forwarding information and media interviews Control the mapping relations of MAC Address;
Determine the first message forwarding information set belonging to the first message forwarding information;
According to multiple message forwarding information set of storage and committed access rate CAR corresponding relation, obtain It is setting time list to take the first message forwarding information set corresponding first CAR, the first CAR The retransmission unit reports to the first ARP miss message and the of the control unit of the PTN device in position The quantity threshold of two ARP miss message, the 2nd ARP miss message is the retransmission unit for the Two message generations to be forwarded, the second message forwarding information of second message to be forwarded and the described first report Literary forwarding information is identical, and the first ARP miss message is that the retransmission unit is waited to turn for described first Transmit messages what text was generated;And
The first ARP miss message is generated for the described first message to be forwarded, and by the first ARP Miss information reportings are to described control unit, and according to the first CAR, to be subsequently generated second ARP miss message is reported;
Described control unit, for according to the first ARP miss message, carrying out first ARP table The study of item.
9. PTN device as claimed in claim 8, it is characterised in that the retransmission unit, it is determined that During the first message forwarding information set belonging to the first message forwarding information, specifically for:
The first message forwarding information is retrieved in multiple message forwarding information set of storage;
When retrieving the first message forwarding information in a message forwarding information set, it is determined that described Message forwarding information collection is combined into the first message forwarding information set.
10. PTN device as claimed in claim 8 or 9, it is characterised in that described control unit, Specifically for:
According to the first ARP miss message, corresponding ARP learning tasks are generated;
According to multiple message forwarding information set of storage and the corresponding relation of priority, first report is determined Corresponding first priority of literary forwarding information set, first priority is handled as described control unit The priority of the ARP learning tasks;
According to first priority, the ARP learning tasks are handled, the first ARP is generated List item.
11. the PTN device as described in claim any one of 8-10, it is characterised in that the forwarding list Member, according to the first CAR, carries out giving the correct time to the 2nd ARP miss message being subsequently generated, has Body is used for:
When the number for the 2nd ARP miss message that the retransmission unit is generated in the setting time unit It is during less than or equal to the first CAR and 1 difference, all 2nd ARP miss message of generation are whole Report described control unit;
When the number for the 2nd ARP miss message that the retransmission unit is generated in the setting time unit During more than the first CAR and 1 difference, by the ARP miss information reportings of part the 2nd of generation to described Control unit, the number of the ARP miss message of part the 2nd is the first CAR and 1 difference.
12. PTN device as claimed in claim 10, it is characterised in that described control unit, is also used In:
Before first ARP is generated, generation includes the second of the first message forwarding information ARP, second ARP is used to indicate that the retransmission unit is looked into for a message to be forwarded When asking second ARP, by the packet loss to be forwarded, the of second ARP One ageing time is to be set for the first message forwarding information set;And
Second ARP is subsequently being generated every time, it is old by described the first of second ARP Change time lengthening set the first duration, until second ARP extend after first aging when Between be more than or equal to for the second message forwarding information set set the second ageing time when, by described first The first message forwarding information in message forwarding information set is deleted, and forwards letter in second message The first message forwarding information is added in breath set;Wherein, the second ARP subsequently generated every time, It is that after the ageing time for the second ARP that last time generates, and described control unit receives described the Generated during two ARP miss message;
Wherein, the first CAR is more than corresponding 2nd CAR of the second message forwarding information set, First priority is higher than corresponding second priority of the second message forwarding information set, and for institute The first ageing time for stating the first message forwarding information set setting is less than second ageing time.
13. PTN device as claimed in claim 12, it is characterised in that described control unit, is also used In:
After first ARP is generated, second ARP is deleted.
14. the PTN device as described in claim 12 or 13, it is characterised in that the first CAR In the multiple CAR included in the corresponding relation for not being the multiple message forwarding information set and CAR most Big value;
Described control unit, is additionally operable to:
After first ARP is generated, described in the second message forwarding information set First message forwarding information is deleted, and adds first message in the 3rd message forwarding information set Forwarding information, wherein, corresponding 3rd CAR of the 3rd message forwarding information set, is the multiple Maximum in CAR.
CN201610286581.9A 2016-04-29 2016-04-29 Method for learning ARP table entry and PTN equipment Active CN107332773B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610286581.9A CN107332773B (en) 2016-04-29 2016-04-29 Method for learning ARP table entry and PTN equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610286581.9A CN107332773B (en) 2016-04-29 2016-04-29 Method for learning ARP table entry and PTN equipment

Publications (2)

Publication Number Publication Date
CN107332773A true CN107332773A (en) 2017-11-07
CN107332773B CN107332773B (en) 2020-01-10

Family

ID=60192353

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610286581.9A Active CN107332773B (en) 2016-04-29 2016-04-29 Method for learning ARP table entry and PTN equipment

Country Status (1)

Country Link
CN (1) CN107332773B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019179319A1 (en) * 2018-03-21 2019-09-26 Huawei Technologies Co., Ltd. Method and system for network access discovery
CN110365811A (en) * 2019-07-22 2019-10-22 杭州迪普科技股份有限公司 A kind of MAC address learning method for limiting, device and equipment
WO2019218740A1 (en) * 2018-05-16 2019-11-21 中兴通讯股份有限公司 Packet priority determining method and apparatus, packet priority sending method and apparatus, and routing system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179486A (en) * 2006-11-10 2008-05-14 中兴通讯股份有限公司 Computer network data packet forwarding CAR queue management method
CN101478539A (en) * 2008-12-31 2009-07-08 华为技术有限公司 Method and network appliance for preventing network attack
WO2014207412A1 (en) * 2013-06-28 2014-12-31 Orange Method for adapting a link for selecting a frame transmission mode and corresponding wi-fi access point
WO2015196799A1 (en) * 2014-06-24 2015-12-30 中兴通讯股份有限公司 Packet processing method and device, and line card
CN105450527A (en) * 2014-06-05 2016-03-30 华为技术有限公司 Message processing, information transmitting and information receiving method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179486A (en) * 2006-11-10 2008-05-14 中兴通讯股份有限公司 Computer network data packet forwarding CAR queue management method
CN101478539A (en) * 2008-12-31 2009-07-08 华为技术有限公司 Method and network appliance for preventing network attack
WO2014207412A1 (en) * 2013-06-28 2014-12-31 Orange Method for adapting a link for selecting a frame transmission mode and corresponding wi-fi access point
CN105450527A (en) * 2014-06-05 2016-03-30 华为技术有限公司 Message processing, information transmitting and information receiving method and device
WO2015196799A1 (en) * 2014-06-24 2015-12-30 中兴通讯股份有限公司 Packet processing method and device, and line card

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019179319A1 (en) * 2018-03-21 2019-09-26 Huawei Technologies Co., Ltd. Method and system for network access discovery
US10764235B2 (en) 2018-03-21 2020-09-01 Huawei Technologies Co., Ltd. Method and system for network access discovery
WO2019218740A1 (en) * 2018-05-16 2019-11-21 中兴通讯股份有限公司 Packet priority determining method and apparatus, packet priority sending method and apparatus, and routing system
CN110505176A (en) * 2018-05-16 2019-11-26 中兴通讯股份有限公司 Determination, sending method and device, the route system of message priority
US11303567B2 (en) 2018-05-16 2022-04-12 Xi'an Zhongxing New Software Co., Ltd. Method and device for determining and sending priority of packet, and routing system
CN110505176B (en) * 2018-05-16 2023-02-21 中兴通讯股份有限公司 Method and device for determining and sending message priority, and routing system
CN110505176B9 (en) * 2018-05-16 2023-04-11 中兴通讯股份有限公司 Method and device for determining and sending message priority, and routing system
CN110365811A (en) * 2019-07-22 2019-10-22 杭州迪普科技股份有限公司 A kind of MAC address learning method for limiting, device and equipment

Also Published As

Publication number Publication date
CN107332773B (en) 2020-01-10

Similar Documents

Publication Publication Date Title
EP3069484B1 (en) Shortening of service paths in service chains in a communications network
CN103595648B (en) Method and system for balancing load at receiving side of server
US11277440B2 (en) Infrastructure distributed denial of service protection
EP2224645B1 (en) A method and equipment for transmitting a message based on the layer-2 tunnel protocol
US20200120168A1 (en) Differentiated services within a service mesh
JP2012217178A5 (en)
US20060153187A1 (en) Fibre channel forwarding information base
CN105591974B (en) Message processing method, apparatus and system
CN106664258A (en) Methods and systems for transmitting packets through an aggregated connection
US10305805B2 (en) Technologies for adaptive routing using aggregated congestion information
CN111788803A (en) Flow management in a network
US10505759B2 (en) Access layer-2 virtual private network from layer-3 virtual private network
CN104184708B (en) Suppress the method and edge device ED of MAC Address attack in EVI networks
US10805240B2 (en) System and method of processing network data
CN107332773A (en) A kind of method and PTN device for learning ARP
JPWO2013141340A1 (en) Control device, communication device, communication system, communication method, and program
WO2015123988A1 (en) Congestion control method, apparatus and device
US9270593B2 (en) Prediction based methods for fast routing of IP flows using communication/network processors
WO2022028342A1 (en) Method for processing congestion flow and device
US10177935B2 (en) Data transfer system, data transfer server, data transfer method, and program recording medium
CN107070797A (en) A kind of method and system of message forwarding
EP4104106A1 (en) Method and system for privacy preserving information exchange
WO2015039616A1 (en) Method and device for packet processing
WO2015154393A1 (en) Method and apparatus for processing service node ability, service classifier and service controller
CN110365667B (en) Attack message protection method and device and electronic equipment

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