CN101977156A - Method, device and routing equipment for learning maximum transmission unit - Google Patents

Method, device and routing equipment for learning maximum transmission unit Download PDF

Info

Publication number
CN101977156A
CN101977156A CN2010105499431A CN201010549943A CN101977156A CN 101977156 A CN101977156 A CN 101977156A CN 2010105499431 A CN2010105499431 A CN 2010105499431A CN 201010549943 A CN201010549943 A CN 201010549943A CN 101977156 A CN101977156 A CN 101977156A
Authority
CN
China
Prior art keywords
mtu
bgp
ipv6
routing information
route
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
CN2010105499431A
Other languages
Chinese (zh)
Other versions
CN101977156B (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2010105499431A priority Critical patent/CN101977156B/en
Publication of CN101977156A publication Critical patent/CN101977156A/en
Application granted granted Critical
Publication of CN101977156B publication Critical patent/CN101977156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method, a device and routing equipment for learning the maximum transmission unit. The method comprises the following steps of: receiving border gateway protocol (BGP) routing information reaching an IPv6 network and informed by an upstream BGP neighbor in an IPv6 message transmission tunnel, wherein the BGP routing information carries a first maximum transmission unit (MTU) reaching a route of the IPv6 network and determined by the upstream BGP neighbor; detecting a second MTU corresponding to the next hop of the BGP route carried by the BGP routing information; comparing the size of the first MTU and the second MTU, taking the small value as the determined third MTU reaching the BGP route of the IPv6 network, and saving the small value; and when a downstream BGP neighbor is present in the tunnel is determined, carrying the third MTU in the BGP routing information reaching the IPv6 network and informing the downstream BGP neighbor. The invention solves the problem of low message forwarding efficiency caused by transmission blockage and segmentation for multiple times of IPv6 messages in the transmission process.

Description

A kind of learning method of MTU, device and routing device
Technical field
The present invention relates to the computer network communication technology field, relate in particular to learning method, device and the routing device of a kind of MTU MTU.
Background technology
Existing internet protocol version 6 (IPv6) network is as next generation network, and is not universal fully as yet at present, still is dispersed among internet protocol version 4 (IPv4) network as island network.Can realize interconnecting by the IPv4 network in order to realize these IPv6 networks, the general tunneling technique that adopts, as utilize internet protocol version 4-multiprotocol label switching (IPv4-MPLS) network that IPv6 message transmissions tunnel is provided, thereby realize interconnecting of isolated IPv6 site network, the Internet engineering duty group (The Internet EngineeringTask Force, IETF) corresponding standard that has been this solution formulation, be called IPv6 operator edge (IPv6 Provider Edge, 6PE) scheme.
Shown in Figure 1 is to adopt the 6PE scheme to realize an object lesson of the IPv6 network interconnection, this example is single autonomous territory (Autonomous System, AS) Nei IPv6 network interconnects, in Fig. 1, routing device 6PE-1,6PE-2, the router (Provider of operator, be called for short P) and 6PE-3 formed entire I Pv4MPLS network, wherein P equipment is IPv4 list protocol stack routing device in the network, other each equipment are all supported IPv6, IPv4 dual stack.6PE-1,6PE-2, pass through Internal BGP (Internal Border Gateway Protocol between the 6PE-3, IBGP) the IPv6 routing iinformation of distribution tape label, with 6PE-1 announcement IPv6 network address S1 is example, 6PE-1 is by multi-protocols Internal BGP (Multiprotocol-IBGP, MP-IBGP) agreement is to the IPv6 route of 6PE-3 announcement tape label, the network address is S1, corresponding label value is L1,6PE-3 is after receiving this label route, with interpolation IPv6 route, outgoing label is L1, and next is jumped and is 6PE-1, has promptly had the IPv6 route of arrival S1 in the IPv6 S3 network like this.Same principle can realize that the IPv6 route interconnects between S1, S2, the S3.
How the IPv6 message transmits in the MPLS network if being described below, 6PE-3 is when receiving that destination address is the IPv6 message of S1, to search local IPv6 routing table, confirm that next is jumped is 6PE-1, and outgoing label is L1 (this message is distributed by 6PE-1), 6PE-3 is that label L1 is gone up in this IPv6 message encapsulation afterwards, searches the outlet that next jumps 6PE-1 simultaneously.Transmit according to MPLS and to determine to reach 6PE-1, need to insert label T1 (for the MPLS tunnel label of 6PE-3 to 6PE-1), and be forwarded to P, original IPv6 message will comprise double-layer label this moment, vpn label is IPv6 routing tag (L1), and outer layer label is MPLS tunnel label (T1).P is after receiving this message, and it is indifferent to what encapsulate in the message is IPv4 data or IPv6 data, determines that according to outer layer label T1 this message will be forwarded to 6PE-1, and switch label T1 is T2, and this moment, the label stack of message became T2/L1.6PE-1 will eject label T2 after receiving this message, determine to be forwarded to the correct network segment according to IPv6 label L1 simultaneously.
Above-mentioned IP v6 message is run into two problems easily in transmission, on the one hand, equipment P in the IPv4 network will carry out MTU (Maximum Transmission Unit when E-Packeting, MTU) inspection checks promptly whether this message length surpasses the MTU of outgoing interface, when if the length of the message of current reception surpasses the MTU of its outgoing interface, P can only abandon this message owing to can't discern the IPv6 message; On the other hand, even the length of message does not surpass the MTU of P outgoing interface, successfully be forwarded to 6PE-1 by P, 6PE-1 confirms to be forwarded to certain outgoing interface according to the label L1 and the IPv6 route of this message, when if the length of current message surpasses the MTU of 6PE-1 outgoing interface, 6PE-1 will carry out burst once more for this IPv6 message, cause like this IPv6 message through the tunnel transmission course by burst repeatedly, reduced the message forward efficiency.
Shown in Figure 2 is to adopt the 6PE scheme to realize the another one object lesson of the IPv6 network interconnection, this example is the interconnecting of IPv6 network of striding a plurality of autonomous territories, AS1 is by 6PE-1 among Fig. 2, P and Autonomous System Boundary Router, AS Boundary Router (Autonomous System Border Router, ASBR) 1 forms, AS2 is made up of ASBR2 and 6PE-2 (can also comprise some P equipment between ASBR2 and the 6PE-2, in Fig. 2, do not illustrate), IPv6 S1 connects autonomous territory AS1 by 6PE-1, IPv6 S2 connects autonomous territory AS2, setting up MP-IBGP between 6PE-1 and the ASBR1 connects, 6PE-1 gives ASBR1 with the IPv6 advertising of route of tape label, set up multiprotocol bgp agreement (Multiprotocol Extensions BGP between ASBR1 and the ASBR2, MP-EBGP) connect, ASBR1 announces the tape label IPv6 route of 6PE-1 to ASBR-2 by MP-EBGP, ASBR2 sets up MP-IBGP with 6PE-2 and is connected, ASBR2 announces the tape label IPv6 route of ASBR1 announcement to 6PE-2 by MP-IBGP again, 6PE-2 can learn the tape label Ipv6 route of 6PE-1 like this, and S2 and S1 learn IPv6 route separately mutually.
The IPv6 message forwarding then realizes by setting up three MPLS tunnels, T3 (tunnel between 6PE-1 and the ASBR1), T2 (tunnel between ASBR1 and the ASBR2) and T1 (tunnel between ASBR2 and the 6PE-2) in showing as Fig. 2,6PE-2 is after receiving the IPv6 message that arrives S1, will by tunnel T1 message be forwarded to ASBR2 earlier, ASBR2 is forwarded to ASBR1 by tunnel T2 again, ASBR1 then is forwarded to 6PE-1 by MPLS tunnel T3 with message, thereby realizes the IPv6 message forwarding.Because 6PE-2 does not need to know how to arrive ASBR1 and 6PE-1, it only need be forwarded to ASBR2 with message, remaining forwarding operation then has ASBR2 to carry out, when message is forwarded to ASBR2, ASBR2 can carry out mtu checking, if the length of message surpasses the MTU of its outgoing interface, transmit after needing so to carry out burst, similarly, ASBR2 and 6PE-2 need to carry out the inspection of MTU too at repeating process, may cause like this IPv6 message through the tunnel transmission course by burst repeatedly, reduced the message forward efficiency.In addition, message is via the P device forwards among AS1 and the AS2 during to boundary routing device, also might make the transmission course of IPv6 message be obstructed and cause to realize intercommunication between the IPv6 network because its length make P equipment directly abandon this message greater than the MTU of P equipment outgoing interface.
Summary of the invention
The embodiment of the invention provides learning method, device and the routing device of a kind of MTU MTU, causes transmit the message forward efficiency low problem of being obstructed and by repeatedly burst being caused because length scale surpasses routing device outgoing interface MTU in order to solve in existing 6PE technology IPv6 message in transmission course.
The learning method of a kind of MTU that the embodiment of the invention provides comprises:
Receive the bgp routing information of the arrival IPv6 network of IPv6 message transmissions tunnel middle and upper reaches Border Gateway Protocol (BGP) neighbor advertisement; Carry a MTU of the route of the arrival IPv6 network that described upstream bgp neighbor determines in the described bgp routing information;
The 2nd MTU of the BGP route next jump correspondence of this IPv6 network of arrival that the described bgp routing information that receives is carried surveys;
The size of a more described MTU and the 2nd MTU that detects is with three MTU and the preservation of the smaller value among both as the BGP route of the arrival IPv6 network of determining;
Determine whether also there is the downstream bgp neighbor in the described tunnel, if exist, be carried at described the 3rd MTU in the bgp routing information that arrives this IPv6 network and announcement to described downstream bgp neighbor.
The learning device of a kind of MTU that the embodiment of the invention provides comprises:
The bgp routing information receiving element is used to receive the bgp routing information of the arrival IPv6 network of IPv6 message transmissions tunnel middle and upper reaches Border Gateway Protocol (BGP) neighbor advertisement; Carry a MTU of the route of the arrival IPv6 network that described upstream bgp neighbor determines in the described bgp routing information;
The MTU probe unit, the 2nd MTU that is used for the BGP route next jump correspondence of this IPv6 network of arrival that the described bgp routing information that receives is carried surveys;
Comparing unit is used for the size with the 2nd MTU that detects with a more described MTU, with three MTU and the preservation of smaller value among both as the BGP route of the arrival IPv6 network of determining;
The advertising of route unit is used for determining whether described tunnel also exists the downstream bgp neighbor, if exist, be carried at described the 3rd MTU in the bgp routing information that arrives this IPv6 network and announcement to described downstream bgp neighbor.
The routing device that the embodiment of the invention provides comprises the learning device of the above-mentioned MTU that the embodiment of the invention provides.
The beneficial effect of the embodiment of the invention comprises:
The learning method of the MTU that the embodiment of the invention provides, device and routing device, for the routing device of each the operation BGP in the IPv6 message transmissions tunnel that forms in the IPv4 network, carry out following operation promptly: the bgp routing information that receives the arrival IPv6 network of upstream bgp neighbor announcement; This bgp routing information carries a MTU of the route of the arrival IPv6 network that this upstream bgp neighbor determines; The 2nd MTU of the BGP route next jump correspondence of this IPv6 network of arrival that the bgp routing information that receives is carried surveys; The size of the 2nd MTU that compares a MTU and detect is with three MTU and the preservation of smaller value among both as the BGP route of the arrival IPv6 network of determining; If also there is the downstream bgp neighbor, then the 3rd MTU is carried in the bgp routing information that arrives this IPv6 network and announcement to the downstream bgp neighbor, the routing device of each the operation BGP in this tunnel has all learnt to arrive the MTU of the BGP route correspondence of this IPv6 network.The embodiment of the invention is transmitted the value of MTU by the BGP route between the operator edge device of supporting bgp protocol and autonomous system boundary route, the operator edge device that makes the terminal point in tunnel of transmission IPv6 message promptly connect another IPv6 network can calculate the minimum value of each MTU that jumps in the route that arrives purpose IPv6 network, and whether it needed to carry out the foundation of burst as sending the IPv6 message, through after the said process, when the terminal point in this tunnel is received the IPv6 message that mails to this IPv6 network, the size of the size of this message and the MTU that self preserves is compared, whether decision needs burst, if carry out burst, the length of the message behind the burst is to arrive the minimum value of respectively jumping MTU in the route of this IPv6 network, therefore, especially stride the application scenarios that interconnects that the IPv6 network is realized in the autonomous territory of a plurality of IPv4 for realize the application scenarios that interconnects of IPv6 network by the IPv4 network, no matter how many intermediate equipments (for example P equipment) or edge device need be crossed in the tunnel of transmission IPv6 message in the IPv4 network, any intermediate equipment or edge device, can not exceed because of the size of IPv6 message length this routing device outgoing interface MTU size and abandon this IPv6 message, thereby the situation that the transmission of having avoided the IPv6 message of existing 6PE technology appearance is obstructed, and after the terminal point in this tunnel carries out Fragmentation to the IPv6 message of receiving, other routing devices also can not carried out the Fragmentation of message again in this tunnel, have improved IPv6 message forward efficiency in the tunnel.
Description of drawings
Fig. 1 is one of network connection diagram that the 6PE scheme realizes the IPv6 network interconnection in the prior art;
Fig. 2 is two of the 6PE scheme realizes the IPv6 network interconnection in the prior art a network connection diagram;
The flow chart of the learning method of the MTU that Fig. 3 provides for the embodiment of the invention;
Fig. 4 is the form schematic diagram of self-defined group attribute;
The network connection diagram of first instantiation that Fig. 5 provides for the embodiment of the invention;
The structural representation of the learning device of the MTU that Fig. 6 provides for the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing, learning method, device and the routing device of a kind of MTU (MTU) that the embodiment of the invention is provided are described in detail.
The MTU learning method that the embodiment of the invention provides as shown in Figure 3, comprises the steps:
The bgp routing information of the arrival IPv6 network of S301, the tunnel middle and upper reaches bgp neighbor announcement of reception IPv6 message transmissions; Carry a MTU of the route of the arrival IPv6 network that this upstream bgp neighbor determines in this bgp routing information;
The 2nd MTU of the BGP route next jump of S302, this IPv6 network of arrival that the bgp routing information that receives is carried surveys;
The size of S303, a more described MTU and the 2nd MTU that detects is with three MTU and the preservation of smaller value among both as the BGP route of the arrival IPv6 network of determining;
S304, determine whether also there is the downstream bgp neighbor in the IPv6 message transmissions tunnel; If exist, carry out following step S305; If there is not process ends;
S305, be carried at the 3rd MTU in the bgp routing information that arrives this IPv6 network and announcement to the downstream bgp neighbor.
Among the above-mentioned steps S301, IPv6 message transmissions tunnel refers to the IPv6 message transmissions passage that the IPv4-MPLS network that connects two IPv6 networks provides.
Among above-mentioned steps S301 and the step S305, in the bgp routing information that arrives the IPv6 network, carry a MTU or carry the 3rd MTU, can realize by following manner: the extended community attribute in the self-defined bgp routing information is encapsulated in the value of a MTU or the 3rd MTU in the Value field of described extended community attribute.
Extended community attribute (Extended Communities Attribute) is the class in the routing property in the bgp routing information, its form as shown in Figure 4, self-defined group attribute, can self-defined type field (type of extended community attribute) wherein be MTU, the value of a MTU or the 3rd MTU is encapsulated in the Value field of self-defining extended community attribute.
Preferably, in embodiments of the present invention, also need to preserve simultaneously the MTU that obtains in this MTU learning process and the 2nd MTU also with the bgp routing information that arrives the IPv6 network, so that when follow-up MTU changes, can in time upgrade the 3rd MTU that preserves according to a MTU who preserves and the 2nd MTU.
Below in conjunction with two concrete examples, the MTU learning method that the embodiment of the invention is provided is described in detail.
First example:
This example adopts the network topology of the IPv6 network interconnection in the autonomous territory of list shown in Figure 5, operator edge device R1 links to each other with IPv6 S1 network, operator edge device R2 links to each other with IPv6 S2 network, R1 and R2 belong to the IPv4-MPLS network simultaneously, in order to realize that the IPv6 message of IPv6 S2 network is sent to IPv6 S1 network, need before sending, message carry out the routing device R1 of bgp protocol and R2 carries out MTU study respectively according to following flow process step:
The bgp neighbor of step 1, R1 its upstream in IPv6 message transmissions tunnel is the bgp routing information that R2 announcement arrives the IPv6S1 network, carries the MTU1 of the route of the arrival IPv6S1 network that R1 determines in the BGP route of announcement;
In this step 1, because R1 is the operator edge device that directly links to each other with IPv6 S1 network, the value of MTU1, the value of the MTU that R1 can be by obtaining outgoing interface corresponding with the route of arrival IPv6 S1 network among the R1 obtains MTU1.
R1 is carried at the value of MTU1 in the self-defining extended community attribute, and concrete grammar is referring to the explanation of abovementioned steps S301.
Step 2, R2 receive after this bgp routing information, and the MTU2 of the BGP route next jump correspondence of the route of the arrival IPv6 S1 network that this bgp routing information is carried surveys;
R2 extracts the IP address of next jumping of this BGP route from the bgp routing information that receives, next jumping of BGP route is a kind of of routing property in the bgp routing information, is used to indicate the routing device (being R1) that the network (IPv6 S1 network) that arrives this route prefix correspondence need be forwarded to message BGP next hop.
According to the IP address of next jumping (R1) of this BGP route, R2 can survey this automatically, and next jumps corresponding MTU value.Specifically can adopt existing automatic detection method, for example by sending Internet Control Message Protocol (Internet Control Message Protocol, ICMP) message is found MTU2, if also be connected with some P equipment or other routing devices on the path in this transmission tunnel between R1 and the R2, survey the process of MTU2, promptly determine to arrive through some P equipment or other routing devices the minimum value of the MTU value of respectively jumping the path of R1 from R2.Concrete detection method belongs to prior art, does not repeat them here.
Step 3, R2 be the size of MTU1 and MTU2 relatively, the smaller value among both is defined as arriving IPv6 S1 network BGP route correspondence MTU3 and preserve.
MTU3 can be stored in the routing table with the BGP route that arrives IPv6 S1 network, so as follow-up when transmitting the IPv6 message of this route, can judge whether that needs carry out the operation of burst to message according to the size of MTU3.
Step 4, R2 judge whether there is the downstream bgp neighbor in this tunnel, because R2 is the operator edge device that links to each other with IPv6 S2 network, there is not bgp neighbor in it, so flow process leaves it at that.
After process above-mentioned steps 1~4, what preserve among the R2 is the minimum value that the route that arrives IPv6 S1 network is respectively jumped MTU, after R2 receives that IPv6 S2 network is sent to the IPv6 message of IPv6 S1 network, the size of the MTU3 of the size of this message and preservation is compared, whether decision needs burst, if carry out burst, the length of the message behind the burst is the minimum value of MTU that arrives the route of IPv6 S1 network, therefore, P equipment between R2 and R1 can not exceed the size of MTU of this route outgoing interface because of the size of message length and dropping packets, in R1, also can not carry out the Fragmentation of message again, improved message forwarding efficient.
Second example:
This example adopts the network topology of the IPv6 network interconnection of striding autonomous territory shown in Figure 2, wherein IPv6 S1 network links to each other with IPv6 S2 network by AS1, AS2, AS1 is made up of 6PE-1, P and ASBR1, AS2 is made up of ASBR2 and 6PE-2, AS1 and AS2 belong to the IPv4-MPLS network, and 6PE-1 and 6PE-2 are operator edge devices.
In order to realize that the IPv6 message of IPv6 S2 network is sent to IPv6 S1 network, need be before message send, each is carried out the routing device of bgp protocol and carries out the step that MTU learns respectively according to following flow process:
Step 1 ', 6PE-1 arrives the bgp routing information of IPv6 S1 network to ASBR1 announcement, carries the MTU1 of the route of this IPv6 S1 network of arrival that 6PE-1 determines in the BGP route of announcement;
S501 is similar to step, and 6PE-1 carries MTU1 by the extended community attribute in the routing iinformation; 6PE-1 also comprises the information of next jumping of this BGP route in the bgp routing information of ASBR1 announcement, the information of this BGP next hop is the address of 6PE-1.
Step 2 ', ASBR1 is according to the address of the BGP next hop in the bgp routing information that receives, the MTU2 of this BGP route next jump correspondence is surveyed;
Step 3 ', the ASBR1 size of MTU1 and MTU2 relatively, with MTU3 value and the preservation of smaller value among both as this BGP route.
Step 4 ', ASBR1 determines also to exist in this tunnel downstream bgp neighbor ASBR2;
Step 5 ', ASBR1 arrives the bgp routing information of IPv6 S1 network to ASBR2 announcement, carries the MTU3 of the route of this IPv6 S1 network of arrival that ASBR1 determines in this bgp routing information.
Step 6 ', ASBR2 receives after this bgp routing information, similar with the processing mode of ASBR1, address according to the BGP next hop in this bgp routing information (ASBR1), MTU4 to this BGP route next jump correspondence surveys, ASBR2 compares the size of MTU4 and MTU3, with MTU5 and the preservation of smaller value among both as this BGP route.ASBR2 determines also to exist in this tunnel downstream bgp neighbor 6PE-2, continues to arrive to the 6PE-2 announcement bgp routing information of IPv6 S1 network, carries the MTU5 of the route of this IPv6 S1 network of arrival that ASBR2 determines in this bgp routing information.
Step 7 ', 6PE-2 receives after this bgp routing information, and is similar with the processing mode of ASBR2, according to the address of the BGP next hop in this bgp routing information (ASBR2), the MTU6 of this BGP route next jump correspondence is surveyed; 6PE-2 compares the size of MTU5 and MTU6, with MTU7 and the preservation of smaller value among both as this BGP route.Because 6PE-2 is the operator edge device that directly links to each other with IPv6 S2 network, therefore, the flow process of MTU study leaves it at that.
Through after the above-mentioned flow process, preserve among the 6PE-2 be arrive IPv6 S1 network route respectively jump minimum value among the MTU, after 6PE-2 receives that IPv6 S2 network is sent to the IPv6 message of IPv6 S1 network, the size of the MTU7 of the size of this message and preservation is compared, whether decision needs burst, if carry out burst, the length of the message behind the burst is the minimum value that arrives the MTU that respectively jumps in the route of IPv6 S1 network, therefore, P equipment between 6PE-2 and 6PE-1 can not exceed because of the size of message length this route outgoing interface MTU size and abandon this IPv6 message, and at ASBR2, among ASBR1 and the 6PE-1, also can not carry out the Fragmentation of message again, improve message forwarding efficient.
In above-mentioned two examples, after if changing appears in the MTU1 of the outgoing interface of the route correspondence that the R1 of connection IPv6 S1 network or 6PE-1 discovery arrive the IPv6 network, the bgp routing information of the MTU1 after carrying renewal is announced in meeting to its downstream neighbor R2 or ASBR1, after R2 or ASBR1 receive this bgp routing information, the MTU1 in the bgp routing information of the current reception of meeting discovery and the MTU1 value of preservation are unequal, at this moment, MTU1 after relatively upgrading and the size of the local MTU2 that preserves are determined the smaller value among both, and when the MTU3 of smaller value of determining and preservation is unequal, and use this smaller value to upgrade the MTU3 that preserves; If ASBR1, because also there is downstream neighbor ASBR2 in it, so also need to be carried at the MTU3 after upgrading in the bgp routing information that arrives this IPv6 and to announce to ASBR2, after ASBR2 receives this routing iinformation, carry out similar operation, in whole tunnel, obtain upgrading until the calculating of MTU.
In above-mentioned two examples, R2, ASBR1, ASBR2 or 6PE-2 can also be after the process of learning MTU first finish, periodically the MTU to the BGP route next jump correspondence that arrives this IPv6 network surveys automatically, and according to the result of automatic detection, and the result of MTU study is upgraded.With ASBR1 is example, ASBR1 is when the MTU2 of current MTU2 that detects and preservation is unequal, then need the MTU1 value that the value of the current MTU2 that detects is corresponding with this route of preservation to compare the smaller value of determining among both, and when the MTU3 of smaller value among both and preservation is unequal, use this smaller value to upgrade the MTU3 that preserves, be carried at the MTU3 after upgrading in the bgp routing information that reaches IPv6 S1 network and announce to ASBR2, after ASBR2 receives, according to aforementioned update method the MTU that preserves is upgraded, also upgraded the MTU7 of its preservation until the operator edge device 6PE-2 that connects IPv6 S2 network.
Based on same inventive concept, the embodiment of the invention also provides a kind of MTU learning device and routing device, because the principle that this device and equipment are dealt with problems is similar to aforementioned a kind of MTU learning method, therefore the enforcement of this device and routing device can repeat part and not give unnecessary details referring to the enforcement of method.
The learning device of a kind of MTU MTU that the embodiment of the invention provides as shown in Figure 6, comprising:
Bgp routing information receiving element 601 is used to receive the bgp routing information of the arrival IPv6 network of IPv6 message transmissions tunnel middle and upper reaches Border Gateway Protocol (BGP) neighbor advertisement; Carry a MTU of the route of the arrival IPv6 network that described upstream bgp neighbor determines in the described bgp routing information;
MTU probe unit 602, the 2nd MTU that is used for the BGP route next jump correspondence of this IPv6 network of arrival that the described bgp routing information that receives is carried surveys;
Comparing unit 603 is used for the size with the 2nd MTU that detects with a more described MTU, with three MTU and the preservation of smaller value among both as the BGP route of the arrival IPv6 network of determining;
Advertising of route unit 604 is used for determining whether described tunnel also exists the downstream bgp neighbor, if exist, be carried at described the 3rd MTU in the bgp routing information that arrives this IPv6 and announcement to described downstream bgp neighbor.
Further, above-mentioned advertising of route unit 604 is used for the extended community attribute of self-defined bgp routing information, and the type field of self-defining extended community attribute is set to MTU; The value of the 3rd MTU is encapsulated in the Value field of described extended community attribute.
Further, the learning device of the MTU that the embodiment of the invention provides also comprises: MTU updating block 605;
Correspondingly, comparing unit 603, also be used for when a MTU value of MTU of the bgp routing information of the upstream of bgp routing information receiving element 601 current receptions bgp neighbor announcement and preservation is unequal, the size of MTU in the described bgp routing information of more current reception and the 2nd MTU of preservation is determined the smaller value among both;
MTU updating block 605 is used for when the 3rd MTU of described smaller value and preservation is unequal, uses described smaller value to upgrade the 3rd MTU that preserves;
Advertising of route unit 604 is used for also determining whether described tunnel also exists the downstream bgp neighbor, if exist, be carried at the 3rd MTU after upgrading in the bgp routing information that arrives this IPv6 and announcement to described downstream bgp neighbor.
Further, MTU probe unit 602 in the learning device of the MTU that the embodiment of the invention provides, also be used for described the 3rd MTU being carried at the bgp routing information that arrives this IPv6 network and announcement to the step of described downstream bgp neighbor in advertising of route unit 604, the 2nd MTU to the BGP route next jump that arrives this IPv6 network surveys periodically;
Comparing unit 603 also is used for when the 2nd MTU of MTU probe unit 602 current the 2nd MTU that detect and preservation is unequal, and a MTU of more current the 2nd MTU that detects and preservation determines the smaller value among both;
MTU updating block 605 also is used for when the 3rd MTU of described smaller value and preservation is unequal, uses described smaller value to upgrade the value of the 3rd MTU that preserves;
Advertising of route unit 604 is used for also determining whether the tunnel also exists the downstream bgp neighbor, if exist, is carried at the 3rd MTU after upgrading in the bgp routing information that arrives this IPv6 and the downstream bgp neighbor of announcement to the tunnel.
Further, when the learning device of the MTU that provides when the embodiment of the invention is arranged in the operator edge device that connects this IPv6 network, can also comprise:
Acquiring unit 606 is used for obtaining the MTU of the described operator edge device outgoing interface corresponding with the route that arrives the IPv6 network;
Correspondingly, advertising of route unit 604 is used for also determining whether described tunnel also exists the downstream bgp neighbor, if exist, be carried at the MTU that gets access to described outgoing interface in the bgp routing information that arrives this IPv6 network and announcement to described downstream bgp neighbor.
The learning device of the MTU that the embodiment of the invention provides, in the specific implementation, can realize by design following function module: BGP module, routing table administration module, the automatic detecting module of MTU, wherein:
The BGP module is used to announce bgp routing information, preferably with calculate optimum route, upgrade the route correspondence MTU value and install to routing table and to upgrade route table items.
The routing table administration module is used to manage route table items, as next jumping, the outgoing interface of definite route correspondence, and the value of outgoing interface MTU, also be responsible for information simultaneously to BGP module announcement routing update.
The automatic detecting module of MTU is used for surveying automatically the transmission MTU value that arrives certain address, and reaches the MTU value of certain address to the announcement of BGP module.
In order to realize utilizing the above-mentioned MTU that learns to carry out data forwarding, in this device, data forwarding module can also be set, be used to utilize the MTU that learns to carry out the burst and the forwarding of data message.
The division of above-mentioned functions module and implementation only are instantiations, and the learning device of the MTU that the embodiment of the invention provides is not limited to above-mentioned specific implementation.
The embodiment of the invention also provides a kind of routing device, and this routing device comprises the MT reconnaissance U learning device that the embodiment of the invention provides.
Preferably, the above-mentioned routing device that the embodiment of the invention provides when actual networking, can be used as operator edge device or Autonomous System Boundary Router, AS Boundary Router in the 6PE application scenarios.
The learning method of the MTU that the embodiment of the invention provides, device and routing device, for the routing device of each the operation BGP in the IPv6 message transmissions tunnel that forms in the IPv4 network, carry out following operation promptly: the bgp routing information that receives the arrival IPv6 network of upstream bgp neighbor announcement; This bgp routing information carries a MTU of the route of the arrival IPv6 network that this upstream bgp neighbor determines; The 2nd MTU of the BGP route next jump correspondence of this IPv6 network of arrival that the bgp routing information that receives is carried surveys; The size of the 2nd MTU that compares a MTU and detect is with three MTU and the preservation of smaller value among both as the BGP route of the arrival IPv6 network of determining; If also there is the downstream bgp neighbor, then the 3rd MTU is carried in the bgp routing information that arrives this IPv6 network and announcement to the downstream bgp neighbor, the routing device of each the operation BGP in this tunnel has all learnt to arrive the MTU of the BGP route correspondence of this IPv6 network.The embodiment of the invention is transmitted the value of MTU by the BGP route between the operator edge device of supporting bgp protocol and autonomous system boundary route, the operator edge device that makes the terminal point in tunnel of transmission IPv6 message promptly connect another IPv6 network can calculate the minimum value of each MTU that jumps in the route that arrives purpose IPv6 network, and whether it needed to carry out the foundation of burst as sending the IPv6 message, through after the said process, when the terminal point in this tunnel is received the IPv6 message that mails to this IPv6 network, the size of the size of this message and the MTU that self preserves is compared, whether decision needs burst, if carry out burst, the length of the message behind the burst is to arrive the minimum value of respectively jumping MTU in the route of this IPv6 network, therefore, especially stride the application scenarios that interconnects that the IPv6 network is realized in the autonomous territory of a plurality of IPv4 for realize the application scenarios that interconnects of IPv6 network by the IPv4 network, no matter how many intermediate equipments (for example P equipment) or edge device need be crossed in the tunnel of transmission IPv6 message in the IPv4 network, any intermediate equipment or edge device, can not exceed because of the size of IPv6 message length this routing device outgoing interface MTU size and abandon this IPv6 message, thereby the situation that the transmission of having avoided the IPv6 message of existing 6PE technology appearance is obstructed, and after the terminal point in this tunnel carries out Fragmentation to the IPv6 message of receiving, other routing devices also can not carried out the Fragmentation of message again in this tunnel, have improved IPv6 message forward efficiency in the tunnel.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (12)

1. the learning method of a MTU MTU is characterized in that, comprising:
Receive the bgp routing information of the arrival IPv6 network of IPv6 message transmissions tunnel middle and upper reaches Border Gateway Protocol (BGP) neighbor advertisement; Carry a MTU of the route of the arrival IPv6 network that described upstream bgp neighbor determines in the described bgp routing information;
The 2nd MTU of the BGP route next jump correspondence of this IPv6 network of arrival that the described bgp routing information that receives is carried surveys;
The size of a more described MTU and the 2nd MTU that detects is with three MTU and the preservation of the smaller value among both as the BGP route of the arrival IPv6 network of determining;
Determine whether also there is the downstream bgp neighbor in the described tunnel, if exist, be carried at described the 3rd MTU in the bgp routing information that arrives this IPv6 network and announcement to described downstream bgp neighbor.
2. the method for claim 1 is characterized in that, carries a MTU or the 3rd MTU in the bgp routing information that arrives the IPv6 network, realizes by following manner:
Extended community attribute in the self-defined bgp routing information, the type field of self-defining extended community attribute is set to MTU; The value of the one MTU or the 3rd MTU is encapsulated in the Value field of described extended community attribute.
3. the method for claim 1, it is characterized in that, described upstream bgp neighbor is when connecting the operator edge device of this IPv6 network, and a described MTU is the MTU of outgoing interface corresponding with the route that arrives the IPv6 network in the described operator edge device that obtains of described operator edge device.
4. as each described method of claim 1-3, it is characterized in that, also comprise:
Preserve the value of a described MTU value and described the 2nd MTU that detects.
5. method as claimed in claim 4 is characterized in that, when a MTU in the bgp routing information of the upstream of current reception bgp neighbor announcement and a MTU value of preservation are unequal, also comprises:
The size of a MTU in the described bgp routing information of more current reception and the 2nd MTU of preservation is determined the smaller value among both, and when the 3rd MTU of described smaller value and preservation is unequal, use described smaller value to upgrade the 3rd MTU that preserves, determine whether also there is the downstream bgp neighbor in the described tunnel, if exist, be carried at the 3rd MTU after upgrading in the bgp routing information that arrives this IPv6 and announcement to described downstream bgp neighbor.
6. method as claimed in claim 4 is characterized in that, described the 3rd MTU is carried in the bgp routing information that arrives this IPv6 network and announcement to the step of described downstream bgp neighbor, also comprise:
The 2nd MTU to the BGP route next jump that arrives this IPv6 network surveys periodically, and when the 2nd MTU of current the 2nd MTU that detects and preservation was unequal, a MTU of more current the 2nd MTU that detects and preservation determined the smaller value among both; And when the 3rd MTU of described smaller value and preservation is unequal, use described smaller value to upgrade the value of the 3rd MTU that preserves, determine whether also there is the downstream bgp neighbor in the described tunnel, if exist, be carried at the 3rd MTU after upgrading in the bgp routing information that arrives this IPv6 and the downstream bgp neighbor of announcement to the tunnel.
7. the learning device of a MTU MTU is characterized in that, comprising:
The bgp routing information receiving element is used to receive the bgp routing information of the arrival IPv6 network of IPv6 message transmissions tunnel middle and upper reaches Border Gateway Protocol (BGP) neighbor advertisement; Carry a MTU of the route of the arrival IPv6 network that described upstream bgp neighbor determines in the described bgp routing information;
The MTU probe unit, the 2nd MTU that is used for the BGP route next jump correspondence of this IPv6 network of arrival that the described bgp routing information that receives is carried surveys;
Comparing unit is used for the size with the 2nd MTU that detects with a more described MTU, with three MTU and the preservation of smaller value among both as the BGP route of the arrival IPv6 network of determining;
The advertising of route unit is used for determining whether described tunnel also exists the downstream bgp neighbor, if exist, be carried at described the 3rd MTU in the bgp routing information that arrives this IPv6 network and announcement to described downstream bgp neighbor.
8. device as claimed in claim 7 is characterized in that, described advertising of route unit is further used for the extended community attribute in the self-defined bgp routing information, and the type field of self-defining extended community attribute is set to MTU; The value of the 3rd MTU is encapsulated in the Value field of described extended community attribute.
9. as claim 7 or 8 described devices, it is characterized in that, also comprise: the MTU updating block;
Described comparing unit, also be used for when a MTU value of MTU of the bgp routing information of the upstream of the current reception of bgp routing information receiving element bgp neighbor announcement and preservation is unequal, the size of MTU in the described bgp routing information of more current reception and the 2nd MTU of preservation is determined the smaller value among both;
Described MTU updating block is used for when the 3rd MTU of described smaller value and preservation is unequal, uses described smaller value to upgrade the 3rd MTU that preserves;
Described advertising of route unit is used for also determining whether described tunnel also exists the downstream bgp neighbor, if exist, be carried at the 3rd MTU after upgrading in the bgp routing information that arrives this IPv6 and announcement to described downstream bgp neighbor.
10. as claim 7 or 8 described devices, it is characterized in that, also comprise: the MTU updating block;
Described MTU probe unit, also be used for described the 3rd MTU being carried at the bgp routing information that arrives this IPv6 network and announcement to the step of described downstream bgp neighbor in the advertising of route unit, the 2nd MTU to the BGP route next jump that arrives this IPv6 network surveys periodically;
Described comparing unit also is used for when the 2nd MTU of current the 2nd MTU that detects of described MTU probe unit and preservation is unequal, and a MTU of more current the 2nd MTU that detects and preservation determines the smaller value among both;
Described MTU updating block is used for when the 3rd MTU of described smaller value and preservation is unequal, uses described smaller value to upgrade the value of the 3rd MTU that preserves;
Described advertising of route unit is used for also determining whether described tunnel also exists the downstream bgp neighbor, if exist, is carried at the 3rd MTU after upgrading in the bgp routing information that arrives this IPv6 and the downstream bgp neighbor of announcement to the tunnel.
11. device as claimed in claim 7 is characterized in that, when described device is arranged in the operator edge device that connects this IPv6 network, also comprises:
Acquiring unit is used for obtaining the MTU of the described operator edge device outgoing interface corresponding with the route that arrives the IPv6 network;
Described advertising of route unit is used for also determining whether described tunnel also exists the downstream bgp neighbor, if exist, be carried at the MTU that gets access to described outgoing interface in the bgp routing information that arrives this IPv6 network and announcement to described downstream bgp neighbor.
12. a routing device is characterized in that, comprises the learning device as each described MTU MTU of claim 7~11.
CN2010105499431A 2010-11-18 2010-11-18 Method, device and routing equipment for learning maximum transmission unit Active CN101977156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105499431A CN101977156B (en) 2010-11-18 2010-11-18 Method, device and routing equipment for learning maximum transmission unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105499431A CN101977156B (en) 2010-11-18 2010-11-18 Method, device and routing equipment for learning maximum transmission unit

Publications (2)

Publication Number Publication Date
CN101977156A true CN101977156A (en) 2011-02-16
CN101977156B CN101977156B (en) 2012-11-21

Family

ID=43577003

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105499431A Active CN101977156B (en) 2010-11-18 2010-11-18 Method, device and routing equipment for learning maximum transmission unit

Country Status (1)

Country Link
CN (1) CN101977156B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195888A (en) * 2011-06-01 2011-09-21 华为技术有限公司 Method and device for acquiring MTU (Maximum Transmission Unit) for forwarding guidance in BGP LSP (Border Gateway protocol Label Switched Path)
CN103166846A (en) * 2013-03-27 2013-06-19 杭州华三通信技术有限公司 Message forwarding method and device
CN103220217A (en) * 2013-04-27 2013-07-24 杭州华三通信技术有限公司 Route generating method and equipment
WO2013120416A1 (en) * 2012-02-15 2013-08-22 Hangzhou H3C Technologies Co., Ltd. Path maximum transmission unit learning
CN104601469A (en) * 2015-01-12 2015-05-06 杭州华三通信技术有限公司 Multicast message forwarding method and device
CN105634770A (en) * 2014-10-29 2016-06-01 杭州华三通信技术有限公司 Method for disposing virtual extensible local area network (VXLAN)
CN108965122A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 Route selection method, equipment and computer readable storage medium
CN110391984A (en) * 2019-07-26 2019-10-29 新华三大数据技术有限公司 A kind of message forwarding method and device
US20230006941A1 (en) * 2021-07-01 2023-01-05 Vmware, Inc. Hypervisor implemented pmtu functionality and fragmentation in a cloud datacenter

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494296A (en) * 2002-10-10 2004-05-05 ض� Defining network path transmission unit
KR20060011656A (en) * 2004-07-30 2006-02-03 삼성전자주식회사 System and method for setting packet maximum transmission unit of ipv6 transition tunnel using packet too big message
CN101616078A (en) * 2009-07-16 2009-12-30 杭州华三通信技术有限公司 A kind of discover method of PMTU, router and node device
CN101640645A (en) * 2009-09-09 2010-02-03 中兴通讯股份有限公司 Message transmission method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494296A (en) * 2002-10-10 2004-05-05 ض� Defining network path transmission unit
KR20060011656A (en) * 2004-07-30 2006-02-03 삼성전자주식회사 System and method for setting packet maximum transmission unit of ipv6 transition tunnel using packet too big message
CN101616078A (en) * 2009-07-16 2009-12-30 杭州华三通信技术有限公司 A kind of discover method of PMTU, router and node device
CN101640645A (en) * 2009-09-09 2010-02-03 中兴通讯股份有限公司 Message transmission method and system

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012163160A1 (en) * 2011-06-01 2012-12-06 华为技术有限公司 Method and device for acquiring directed and forwarded mtu in bgp lsp
CN102195888A (en) * 2011-06-01 2011-09-21 华为技术有限公司 Method and device for acquiring MTU (Maximum Transmission Unit) for forwarding guidance in BGP LSP (Border Gateway protocol Label Switched Path)
WO2013120416A1 (en) * 2012-02-15 2013-08-22 Hangzhou H3C Technologies Co., Ltd. Path maximum transmission unit learning
CN103166846A (en) * 2013-03-27 2013-06-19 杭州华三通信技术有限公司 Message forwarding method and device
CN103220217B (en) * 2013-04-27 2016-05-04 杭州华三通信技术有限公司 A kind of route generating method and equipment
CN103220217A (en) * 2013-04-27 2013-07-24 杭州华三通信技术有限公司 Route generating method and equipment
CN105634770A (en) * 2014-10-29 2016-06-01 杭州华三通信技术有限公司 Method for disposing virtual extensible local area network (VXLAN)
US10263808B2 (en) 2014-10-29 2019-04-16 Hewlett Packard Enterprise Development Lp Deployment of virtual extensible local area network
CN104601469A (en) * 2015-01-12 2015-05-06 杭州华三通信技术有限公司 Multicast message forwarding method and device
CN104601469B (en) * 2015-01-12 2018-01-12 新华三技术有限公司 Method for forwarding multicast message and equipment
CN108965122A (en) * 2017-05-19 2018-12-07 中兴通讯股份有限公司 Route selection method, equipment and computer readable storage medium
CN108965122B (en) * 2017-05-19 2022-03-11 中兴通讯股份有限公司 Routing method, device and computer readable storage medium
CN110391984A (en) * 2019-07-26 2019-10-29 新华三大数据技术有限公司 A kind of message forwarding method and device
US20230006941A1 (en) * 2021-07-01 2023-01-05 Vmware, Inc. Hypervisor implemented pmtu functionality and fragmentation in a cloud datacenter

Also Published As

Publication number Publication date
CN101977156B (en) 2012-11-21

Similar Documents

Publication Publication Date Title
CN101977156B (en) Method, device and routing equipment for learning maximum transmission unit
CN109873760B (en) Method and device for processing route, and method and device for data transmission
EP2761827B1 (en) Incremental deployment of mrt based ipfrr
EP3065342A1 (en) Update of mac routes in evpn single-active topology
CN102377680B (en) Route convergence method and device
CN105743689A (en) Fast convergence on link failure in multi-homed ethernet virtual private networks
CN106664252A (en) Method, device and system for realizing service link
EP3920476A1 (en) Fault protection method, node, and storage medium
CN104283789B (en) Route convergent method and system
CN102368727A (en) Crossed IP network TRILL network communication method, system thereof and devices
CN104869042A (en) Message forwarding method and message forwarding device
CN102037685A (en) IP forwarding across a link state protocol controlled Ethernet network
CN101651630A (en) Switching method and switching device based on link fault
CN101355486A (en) Method, equipment and system for switching route
CN102413059A (en) Multicast forwarding method based on SPB (Shortest Path Bridging) network and SPBM (MAC-in-MAC SPB) bridge
CN103023773A (en) Method, device and system for forwarding message in multi-topology network
CN102546433A (en) Data forwarding method based on MPLS (Multi Protocol Label Switching) VPN (Virtual Private Network) and PEs (Provider Edges)
CN102291305B (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN103297338A (en) Virtual private network (VPN) router advertisement method and device
CN103220217B (en) A kind of route generating method and equipment
CN103200107B (en) Message transmitting method and message transmitting equipment
CN107547347B (en) VNI-based path adjustment method and device
CN103685029B (en) Message forwarding method and equipment in a kind of rapid ring protection protocol networking
CN102752210A (en) Inter-LAN (local area network) message transmission method and system
CN102710519A (en) Method, system and device for establishing and removing cross-domain LSP (Label Switching Path)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant