CN103986654A - LSP generating method and device - Google Patents

LSP generating method and device Download PDF

Info

Publication number
CN103986654A
CN103986654A CN201410186498.5A CN201410186498A CN103986654A CN 103986654 A CN103986654 A CN 103986654A CN 201410186498 A CN201410186498 A CN 201410186498A CN 103986654 A CN103986654 A CN 103986654A
Authority
CN
China
Prior art keywords
equipment
lsp
route
information
label
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
CN201410186498.5A
Other languages
Chinese (zh)
Other versions
CN103986654B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201410186498.5A priority Critical patent/CN103986654B/en
Publication of CN103986654A publication Critical patent/CN103986654A/en
Application granted granted Critical
Publication of CN103986654B publication Critical patent/CN103986654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses an LSP generating method and device. The method comprises the steps that a 6PE device is used for receiving LSP information, wherein the LSP information comprises a source address and a destination address; the 6PE device is used for determining tag information corresponding to the source address and sending routing information and the tag information which correspond to the source address to other 6PE devices; the 6PE device is used for selecting an optimal route corresponding to the destination address from 6PE neighborhood routes, applying tag information for the optimal route and generating a transmission LSP according to the tag information applied for the optimal route and the tag information corresponding to the optimal route in the 6PE neighborhood routes. The LSP can be dynamically generated, static LSP configuration is avoided, and the workload of configuration is reduced.

Description

A kind of LSP generates method and apparatus
Technical field
The present invention relates to communication technical field, relate in particular to a kind of LSP and generate method and apparatus.
Background technology
As shown in Figure 1, for the networking application schematic diagram in 6to4 tunnel, 6to4 tunnel is point-to-multipoint automatic tunnel, mainly be based upon between edge device (as the device A in Fig. 1, equipment B and equipment C), for connecting multiple isolated IPv6 sites by IPv4 network, this isolated IPv6 site is 6to4 network or IPv6 network.Wherein, if the equipment in isolated IPv6 site adopts 6to4 address, this isolated IPv6 site is called 6to4 network; If the equipment in isolated IPv6 site adopts IPv6 address, this isolated IPv6 site is called IPv6 network, and in IPv6 network, need to forward the message from the arrival IPv6 network in 6to4 tunnel by 6to4 trunking (being equipment C).
Wherein, when the equipment in IPv6 network adopts IPv6 address, the long form of IPv6 address does not repeat them here; In addition,, when the equipment in 6to4 network adopts 6to4 address, two ends, 6to4 tunnel adopt 6to4 address, and the form of this 6to4 address is: 2002:abcd:efgh: subnet number:: interface ID/48.Further, 2002 represent fixing IPv6 address prefix; Abcd:efgh is the IPv4 address (as 1.1.1.1 can be expressed as 0101:0101) that uses 16 systems to represent, be used for 6to4 network of unique identification, and the interface IP address that connects IPv4 network on the edge device of this 6to4 network need to configure IPv4 address for this reason; Subnet number is for subnet division in 6to4 network; Subnet number and interface ID have identified the position of an equipment in 6to4 network jointly.
If need to dispose MPLS (Multiprotocol Label Switching at isolated IPv6 site, multiprotocol label switching) business, need to be at two ends, 6to4 tunnel static configuration LSP (Label Switched Path, label switched path), thereby cause the configuration effort amount of LSP larger, and the situations such as configuration error can occur.
Summary of the invention
The embodiment of the present invention provides a kind of LSP to generate method and apparatus, dynamically generates LSP by 6PE (IPv6Provider Edge, IPv6 Provider Edge) equipment, avoids static configuration LSP, reduces configuration effort amount.
In order to achieve the above object, the embodiment of the present invention provides a kind of label switching path LSP generation method, is applied on the IPv6 Provider Edge 6PE equipment in the isolated IPv6 site being connected with other isolated IPv6 site by IPv4 network, said method comprising the steps of:
Described 6PE equipment receives LSP information, and described LSP information comprises source address and the destination address that LSP to be generated is corresponding; Wherein, the address of the network equipment in described source address is this isolated IPv6 site, when described destination address is the address of the network equipment in other isolated IPv6 site,
Described 6PE equipment is determined the label information that described source address is corresponding, routing iinformation corresponding described source address and label information are sent to the 6PE equipment in described other isolated IPv6 site, in 6PE neighbours' route, store described routing iinformation and label information by the 6PE equipment in described other isolated IPv6 site; And,
Described 6PE equipment is selected the optimum route that described destination address is corresponding from 6PE neighbours' route of this 6PE device storage, for described optimum route applying label information, and be utilized as the label information of described optimum route application and described optimum route corresponding label information in described 6PE neighbours' route and generate the transmission LSP of described 6PE equipment to the destination address map network equipment in described other isolated IPv6 site; Wherein, the described label information for described optimum route application is the label that enters of described transmission LSP, and described optimum route corresponding label information in described 6PE neighbours' route is the outgoing label of described transmission LSP.
Described method further comprises:
Described 6PE equipment is being received after described LSP information, determine the label information of the network equipment corresponding to described source address to this 6PE devices allocation, and utilize the described network equipment to generate the transmission LSP of described 6PE equipment to described source address map network equipment to label information and the label information corresponding to described source address of this 6PE devices allocation; Label information corresponding to described source address is the label that enters of described transmission LSP, and the described network equipment is the outgoing label of described transmission LSP to the label information of this 6PE devices allocation.
Described method further comprises: the described label information for described optimum route application is published to the each network equipment in this isolated IPv6 site by described 6PE equipment, and optimum route corresponding described destination address is published to the each network equipment in this isolated IPv6 site.
Described LSP information is carried in the LSA LSA based on ospf ospf protocol; It is LSP information that the type field of described LSA is used to indicate what in LSA, carry, in the Source IP field of described LSA, carries described source address, in the Destination IP field of described LSA, carries described destination address.
Described method further comprises: if described 6PE equipment is not received LSP information in route synchronizing process,, after route synchronously completes, described 6PE equipment sends local all routes to the 6PE equipment in other isolated IPv6 site; After all routes in this locality are sent completely, if described 6PE equipment is received LSP information, described 6PE equipment is to other route outside route corresponding to LSP information described in the 6PE device revocation in other isolated IPv6 site; Or if described 6PE equipment is received LSP information in route synchronizing process, after route synchronously completes, described 6PE equipment is forbidden sending other route outside route corresponding to described LSP information to the 6PE equipment in other isolated IPv6 site.
The embodiment of the present invention provides a kind of IPv6 Provider Edge 6PE equipment, and the isolated IPv6 site at described 6PE equipment place is connected with other isolated IPv6 site by IPv4 network, and described 6PE equipment comprises:
Receiver module, for receiving label switching path LSP information, described LSP information comprises source address and the destination address that LSP to be generated is corresponding; Wherein, described source address is the address of the network equipment in this isolated IPv6 site, and described destination address is the address of the network equipment in other isolated IPv6 site;
Source address processing module, for determining label information corresponding to described source address, routing iinformation corresponding described source address and label information are sent to the 6PE equipment in described other isolated IPv6 site, in 6PE neighbours' route, store described routing iinformation and label information by the 6PE equipment in other isolated IPv6 site;
Destination address processing module, for selecting from 6PE neighbours' route the optimum route that described destination address is corresponding, for described optimum route applying label information, and be utilized as the label information of described optimum route application and described optimum route corresponding label information in described 6PE neighbours' route and generate the transmission LSP of this 6PE equipment to the destination address map network equipment in described other isolated IPv6 site; Wherein, the described label information for described optimum route application is the label that enters of described transmission LSP, and described optimum route corresponding label information in described 6PE neighbours' route is the outgoing label of described transmission LSP.
Described source address processing module, also for receiving after LSP information, determine the label information of the network equipment corresponding to described source address to this 6PE devices allocation, utilize the described network equipment to generate the transmission LSP of this 6PE equipment to described source address map network equipment to label information and the label information corresponding to described source address of this 6PE devices allocation; Label information corresponding to described source address is the label that enters of described transmission LSP, and the described network equipment is the outgoing label of described transmission LSP to the label information of this 6PE devices allocation.
Described destination address processing module, also for the described label information for described optimum route application is published to the each network equipment in this isolated IPv6 site, and is published to the each network equipment in this isolated IPv6 site by optimum route corresponding described destination address.
Described LSP information is carried in the LSA LSA based on ospf ospf protocol; It is LSP information that the type field of described LSA is used to indicate what in LSA, carry, in the Source IP field of described LSA, carries described source address, in the Destination IP field of described LSA, carries described destination address.
Also comprise:
Route processing module, for when this 6PE equipment is not in the time that route synchronizing process is received LSP information, after route synchronously completes, the 6PE equipment in other isolated IPv6 site sends local all routes; After all routes in this locality are sent completely, if this 6PE equipment is received LSP information, to other route outside route corresponding to LSP information described in the 6PE device revocation in other isolated IPv6 site; Or, if this 6PE equipment is received LSP information in route synchronizing process, after route synchronously completes, forbid sending other route outside route corresponding to described LSP information to the 6PE equipment in other isolated IPv6 site.
Compared with prior art, the embodiment of the present invention at least has the following advantages: in the embodiment of the present invention, 6PE equipment can be based on from the network equipment LSP information (source address of wherein carrying is the address of the network equipment in this isolated IPv6 site, the destination address wherein carrying is the address of the network equipment in other isolated IPv6 site) dynamically generate LSP, thereby avoid static configuration LSP, and can reduce configuration effort amount.
Brief description of the drawings
Fig. 1 is the networking application schematic diagram in 6to4 tunnel in prior art;
Fig. 2 is the application scenarios schematic diagram of the embodiment of the present invention;
Fig. 3 is that a kind of LSP that the embodiment of the present invention provides generates method flow schematic diagram;
Fig. 4 and Fig. 5 are the form schematic diagrames of the LSP information that proposes in the embodiment of the present invention;
Fig. 6 is the structural representation of a kind of 6PE equipment of providing of the embodiment of the present invention.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of LSP generation method, the method is applied on the 6PE equipment in the isolated IPv6 site being connected with other isolated IPv6 site by IPv4 network, be applied in by IPv4 network and connect in the network of multiple isolated IPv6 sites, in each isolated IPv6 site, comprise 6PE equipment, and miscellaneous equipment outside 6PE equipment is the network equipment.Wherein, this isolated IPv6 site is 6to4 network or IPv6 network; If the network equipment in isolated IPv6 site adopts 6to4 address, this isolated IPv6 site is called 6to4 network; If the network equipment in isolated IPv6 site adopts IPv6 address, this isolated IPv6 site is called IPv6 network.Application scenarios schematic diagram taking Fig. 2 as the embodiment of the present invention, R9 is the 6PE equipment in isolated IPv6 site 1, R1, R7 and R10 are the network equipment in isolated IPv6 site 1; R5 is the 6PE equipment in isolated IPv6 site 2, and R6 is the network equipment in isolated IPv6 site 2; R2, R3 and R4 are the network equipment in IPv4 network; In the embodiment of the present invention, isolated IPv6 site 3 and isolated IPv6 site 4 are repeated no more.
Under the application scenarios shown in Fig. 2, on R1, the interface IP address that R1 connects R2 is 1.2.0.1/24, and the interface IP address that R1 connects R3 is 1.3.0.1/24; On R2, the interface IP address that R2 connects R1 is 1.2.0.2/24, and the interface IP address that R2 connects R4 is 2.4.0.2/24, and the interface IP address that R2 connects R9 is 9.2.0.2/24; On R7, the loopback port address of R7 is 2002:0101:0101:1::7/128, and the interface IP address that R7 connects R9 is 2002:0101:0101:9::7/64; On R5, the interface IP address that R5 connects R4 is 4.5.0.5/24; On R4, the interface IP address that R4 connects R5 is 4.5.0.4/24; On R6, the loopback port address of R6 is 2002:0505:0505:1::6/128; On R8, the loopback port address of R8 is 2002:0707:0707:1::8/128; On R9, the loopback port address of R9 is 9.9.9.9, and the interface IP address that R9 connects R7 is 2002:0101:0101:9::9/64, and the interface IP address that R9 connects R2 is 9.2.0.9/24.
In embodiments of the present invention, the network equipment in each isolated IPv6 site and 6PE equipment all can enable OSPF (Open Shortest Path First, ospf) agreement (as OSPFv3 agreement) and MPLS (Multi-Protocol Label Switching, multiprotocol label switching) LDPv6 (Label Distribution Protocol, tag distribution protocol) agreement, and each network equipment in IPv4 network all can enable ospf protocol (as OSPFv3 agreement) and MPLS LDP agreement.Wherein, each network equipment and 6PE equipment will be by OSPFv3 agreement study routing iinformations, and each network equipment and 6PE equipment will be by MPLS LDPv6 agreement (MPLS LDP agreement) distribution label informations.
Under above-mentioned application scenarios, as shown in Figure 3, this LSP generation method comprises the following steps:
Step 301, when the network equipment in isolated IPv6 site need to generate present networks equipment to the LSP of the network equipment in other isolated IPv6 site, the 6PE equipment in this isolated IPv6 site sends LSP information.Wherein, this LSP information comprises the source address that LSP to be generated is corresponding (being source FEC (Forwarding Equivalence Class forwarding equivalence class) information) and destination address (being object FEC information), this source address is the address of present networks equipment, and this destination address is the address of the network equipment in above-mentioned other isolated IPv6 site.
Under the application scenarios shown in Fig. 2, if need to set up LSP between R7 and R6, to meet related service (as MPLS business etc.) demand,: the R7 in (1) isolated IPv6 site 1 need to generate the LSP of R7 to the R6 in isolated IPv6 site 2, and R7 sends LSP information to the 6PE equipment (R9) in isolated IPv6 site 1; (2) R6 in isolated IPv6 site 2 need to generate the LSP of R6 to the R7 in isolated IPv6 site 1, and R6 sends LSP information to the 6PE equipment (R5) in isolated IPv6 site 2.
In the time that R7 sends LSP information, R7 can send to LSP information all devices in isolated IPv6 site 1, sends to the 6PE equipment (R9) in isolated IPv6 site 1 with this LSP information the most at last.Wherein, the loopback port address (2002:0101:0101:1::7/128) that the source address of carrying in this LSP information is R7, the loopback port address (2002:0505:0505:1::6/128) that the destination address carrying in this LSP information is R6.In the time that R6 sends LSP information, R6 can send to LSP information all devices in isolated IPv6 site 2, sends to the 6PE equipment (R5) in isolated IPv6 site 2 with this LSP information the most at last.Wherein, the loopback port address (2002:0505:0505:1::6/128) that the source address of carrying in this LSP information is R6, the loopback port address (2002:0101:0101:1::7/128) that the destination address carrying in this LSP information is R7.
In the embodiment of the present invention, above-mentioned LSP information can be carried in the LSA (Link State Advertisement, LSA) of ospf protocol.As shown in Figure 4, for carrying the form schematic diagram of LSP information in LSA.Wherein, in this LSA, can include but not limited to following field: (1) Type (type) field, being used to indicate what in LSA, carry is LSP information; (2) Length (length) field, is used to indicate the length of LSA; (3) Source (source) FEC Number (mark) field, is used to indicate the quantity of source address; (4) Source Mask (mask) Length field, is used to indicate the length of source address; (5) Source IP field, for carrying source address, and the source address of carrying in LSA can be for multiple; (6) Destination (object) FEC Number field, is used to indicate the quantity of destination address; (7) Destination Mask Length field, is used to indicate the length of destination address; (8) Destination IP field, for carrying destination address, and the destination address carrying in LSA can be for multiple.
Further, form schematic diagram based on above-mentioned LSP information, the LSP information that R7 sends can be as shown in Figure 5, Source IP field is carried the loopback port address (2002:0101:0101:1::7/128) of R7, and Destination IP field is carried the loopback port address (2002:0505:0505:1::6/128) of R6.
Step 302,6PE equipment receives LSP information.The network equipment in the isolated IPv6 site that this LSP information is this 6PE equipment place sends, and the source address of wherein carrying is the address of the network equipment in this isolated IPv6 site, and the destination address wherein carrying is the address of the network equipment in other isolated IPv6 site.
Step 303,6PE equipment is determined label information corresponding to source address carrying in LSP information, and routing iinformation corresponding source address and label information are sent to the 6PE equipment in other isolated IPv6 site (being isolated IPv6 site corresponding to destination address carrying in LSP information), in 6PE neighbours' route, store routing iinformation corresponding to this source address and label information by the 6PE equipment in other isolated IPv6 site.
6PE equipment is in the time determining label information corresponding to source address, because the network equipment in each isolated IPv6 site and 6PE devices enable have MPLS LDPv6 agreement, and each network equipment and 6PE equipment can be by MPLS LDPv6 agreement distribution label informations, therefore 6PE equipment is being received after LSP information, if be source address distribution label information based on MPLS LDPv6 agreement before 6PE equipment, before can directly determining, the label information of distribution is label information corresponding to source address; If be not source address distribution label information based on MPLS LDPv6 agreement before 6PE equipment, be source address applying label information based on MPLS LDPv6 agreement, and determine that the label information of current application is label information corresponding to source address.
6PE equipment is before the routing iinformation that source address is corresponding and label information send to the 6PE equipment in other isolated IPv6 site, and this 6PE equipment also needs to determine routing iinformation corresponding to source address.Concrete, because the network equipment in each isolated IPv6 site and 6PE devices enable have OSPFv3 agreement, and each network equipment and 6PE equipment can be by OSPFv3 agreement study routing iinformations, therefore 6PE equipment is being received after LSP information, can directly determine routing iinformation corresponding to source address carrying in LSP information, the routing iinformation of the network equipment at the source address place of learning by OSPFv3 agreement before 6PE equipment.
6PE equipment is in the time that the routing iinformation that source address is corresponding and label information send to the 6PE equipment in other isolated IPv6 site, 6PE equipment encapsulates routing iinformation corresponding to source address and label information according to 6PE routed-format, and by the public network tunnel between the 6PE equipment in this 6PE equipment and other isolated IPv6 site, routing iinformation and label information after encapsulation is sent to the 6PE equipment in other isolated IPv6 site.
In the embodiment of the present invention, 6PE equipment is after receiving LSP information, can also determine the label information of the network equipment corresponding to the source address of carrying in this LSP information to this 6PE devices allocation, and utilize label information and label information (be in step 303 definite label information) corresponding to source address of the network equipment corresponding to source address to this 6PE devices allocation, generate the transmission LSP of this 6PE equipment to source address map network equipment.Wherein, label information corresponding to source address is the label that enters of this transmission LSP, and the network equipment corresponding to source address is the outgoing label of this transmission LSP to the label information of this 6PE devices allocation.
Under the application scenarios shown in Fig. 2, R9 receives the LSP information from R7, the loopback port address (2002:0101:0101:1::7/128) that the source address of carrying in this LSP information is R7.For the source address of carrying in LSP information (2002:0101:0101:1::7/128), R9 searches local IPv6 routing table, suppose that current R9 learns this route (2002:0101:0101:1::7/128) based on OSPFv3 agreement, down hop is R7, and R7 is to R9 distributing labels information 1110.In addition, if be not source address (2002:0101:0101:1::7/128) distribution label information based on MPLS LDPv6 agreement before R9, R9 is current is source address (2002:0101:0101:1::7/128) applying label information 1111 based on MPLS LDPv6 agreement, and the label information 1111 of current application is label information (being to need the corresponding label information of definite source address in step 303) corresponding to source address (2002:0101:0101:1::7/128).
Further, as shown in table 1, for source address (2002:0101:0101:1::7/128), the label information 1110 distributing to R9 based on R7 and the label information 1111 of the current application of R9, R9 can generate the transmission LSP (Transit LSP) of R9 to R7.Wherein, the label that enters that the label information 1111 of the current application of R9 is transmission LSP, the outgoing label that the label information 1110 that R7 distributes to R9 is transmission LSP.
Table 1
Route prefix Enter label/outgoing label Outlet information
2002:0101:0101:1::7/128 1111/1110 R9-R7
Further, R9 encapsulates source address (2002:0101:0101:1::7/128) corresponding routing iinformation (2002:0101:0101:1::7/128) and label information (being the label information 1111 of the current application of R9) according to 6PE routed-format, and by the public network tunnel between R9 and R5, routing iinformation (2002:0101:0101:1::7/128) and label information (1111) after encapsulation are sent to R5, in 6PE neighbours' route, stored routing iinformation (2002:0101:0101:1::7/128) and label information (1111) by R5.
In addition, under the application scenarios shown in Fig. 2, R5 receives the LSP information from R6, the loopback port address (2002:0505:0505:1::6/128) that the source address of carrying in this LSP information is R6, and R5 current be source address (2002:0505:0505:1::6/128) applying label information 5000 based on MPLS LDPv6 agreement.Further, R5 encapsulates source address (2002:0505:0505:1::6/128) corresponding routing iinformation (2002:0505:0505:1::6/128) and label information (5000) according to 6PE routed-format.Further, R5 sends to R9 by the public network tunnel between R5 and R9 by routing iinformation (2002:0505:0505:1::6/128) and label information (5000) after R5 encapsulation.Afterwards, R9 stores routing iinformation (2002:0505:0505:1::6/128) and label information (5000) in 6PE neighbours' route.In addition, other of R5 processed with the relevant treatment of R9 similar, in the embodiment of the present invention, repeats no longer in detail.
Step 304,6PE equipment optimum route corresponding to location (being the destination address carrying in LSP information) that select your destination from this 6PE device storage 6PE neighbours route, for this optimum route applying label information, and be the label information of this optimum route applying label information and optimum route correspondence in 6PE neighbours' route, generation 6PE equipment arrives the transmission LSP of the destination address map network equipment in other isolated IPv6 site.
Wherein, for this optimum route applying label information is the label that enters of transmission LSP, optimum route corresponding label information in 6PE neighbours' route is the outgoing label of transmission LSP.
6PE equipment is in the time being optimum route applying label information corresponding to destination address, because the network equipment in each isolated IPv6 site and 6PE devices enable have MPLS LDPv6 agreement, and each network equipment and 6PE equipment can be by MPLS LDPv6 agreement distribution label informations, therefore 6PE equipment is being received after LSP information, if be not the optimum route distribution label information that destination address is corresponding based on MPLS LDPv6 agreement before 6PE equipment, be this optimum route applying label information based on MPLS LDPv6 agreement.
When 6PE equipment selects your destination optimum route corresponding to location from 6PE neighbours' route, need to from 6PE neighbours' route, search the route that mate completely with destination address mask and address, and optimize the optimum route that destination address is corresponding from the route of coupling completely.Further, in the time only having a route corresponding to destination address in 6PE neighbours' route, to select this route be the optimum route that destination address is corresponding to 6PE equipment; Or when in 6PE neighbours' route on purpose when many routes corresponding to location, to select the route of mating most with destination address from many routes be the optimum route that destination address is corresponding to 6PE equipment.
In the embodiment of the present invention, 6PE equipment is after optimum route corresponding to the location that selects your destination from 6PE neighbours' route, 6PE equipment can be published to optimum route corresponding destination address the each network equipment in the isolated IPv6 site of this 6PE equipment place, as 6PE equipment is published to the each network equipment in isolated IPv6 site by the OSPFv3 agreement on this 6PE equipment by optimum route corresponding destination address, or by the MPLS LDPv6 agreement on this 6PE equipment, the label information for described optimum route application is published to the each network equipment in isolated IPv6 site.
Under the application scenarios shown in Fig. 2, R9 receives the LSP information from R7, the loopback port address (2002:0505:0505:1::6/128) that the destination address carrying in this LSP information is R6.For the destination address carrying in LSP information (2002:0505:0505:1::6/128), R9 searches local 6PE neighbours' route, due to the corresponding relation storing in local 6PE neighbours' route between routing iinformation (2002:0505:0505:1::6/128) and label information (5000), therefore, R9 optimum route corresponding to location (2002:0505:0505:1::6/128) that can select your destination from 6PE neighbours' route is (2002:0505:0505:1::6/128), and optimum route corresponding label information in 6PE neighbours' route is 5000.Further, R9 is this optimum route (2002:0505:0505:1::6/128) applying label information (being assumed to be 1112), as: R9 is current is optimum route (2002:0505:0505:1::6/128) applying label information 1112 based on MPLS LDPv6 agreement.As shown in table 2, for destination address (2002:0505:0505:1::6/128), be based upon the label information (1112) of optimum route application and the label information (5000) of optimum route correspondence in 6PE neighbours' route, R9 can generate the transmission LSP (Transit LSP) of R9 to R6 (destination address map network equipment).Wherein, R9 be the label information 1112 of optimum route application to be this transmission LSP enter label, and optimum route corresponding label information 5000 in 6PE neighbours' route is the outgoing label of this transmission LSP.
Table 2
Route prefix Enter label/outgoing label Outlet information
2002:0505:0505:1::6/128 1112/5000 NHLFE1000 (i.e. outlet is MPLS tunnel)
In the transmission LSP shown in table 2, the relevant information in MPLS tunnel specifically can be as shown in table 3.Wherein, the outgoing label 1000 in table 3 is R9 label informations corresponding to loopback mouth LSP to R5.
Table 3
NHLFE?ID Outgoing label Outgoing interface Down hop
NHLFE1000 1000 R9-R2 9.2.0.2
Under the application scenarios shown in Fig. 2, R9 optimum route (2002:0505:0505:1::6/128) corresponding to location that select your destination from 6PE neighbours' route, and after being optimum route (2002:0505:0505:1::6/128) applying label information 1112, R9 can be published to the each network equipment in isolated IPv6 site 1 by label information 1112 by MPLS LDPv6 agreement.In addition, R9 also can notice to the each network equipment in isolated IPv6 site 1 optimum route (2002:0505:0505:1::6/128) as external routes by OSPFv3 agreement.
On this basis, R7, after receiving optimum route (2002:0505:0505:1::6/128) and label information 1112, can be formed into route and the LSP of 2002:0505:0505:1::6/128, as shown in table 4.
Table 4
Route prefix Outgoing interface Down hop Label information
2002:0505:0505:1::6/128 R7-R9 2002:0101:0101:9::9 1112
Under the application scenarios shown in Fig. 2, R5 receives the LSP information from R6, the loopback port address (2002:0101:0101:1::7/128) that the destination address carrying in this LSP information is R7.The relevant treatment of R5 and the relevant treatment of R9 are similar, and in the embodiment of the present invention, it is no longer repeated.
Based on above-mentioned handling process, R7 can forward through LSP to the message (or R6 is to message of R7) of R6.For example, when R7 need to send message to R6, owing to there being the LSP that arrives R6 on R7, therefore R7 carries label information 1112 in message, and forwards the packet to R9, and the message format that is transmitted to R9 is as shown in table 5.R9 is receiving after message, and label information 1112 is converted to label information 5000, and in message, adds the tunnel label 1000 of R5 to, and message after treatment is sent to R2, and the message format that is transmitted to R2 is as shown in table 6.Further, message arrives after R5 along IPv4 public network tunnel, R5 peels public network label off, according to vpn label 5000, label information 5000 is converted to label information 6660 (R6 is the label of R5 distribution), and the message after conversion is sent to R6, the message format that is transmitted to R6 is as shown in table 7.
Table 5
Object MAC Source MAC Label Source IP Object IP Data content
R9MAC R7MAC 1112 R7IP R6IP Data
Table 6
Object MAC Source MAC Label Vpn label Source IP Object IP Data content
R2MAC R9MAC 1000 5000 R7IP R6IP Data
Table 7
Object MAC Source MAC Label Source IP Object IP Data content
R5MAC R6MAC 6660 R7IP R6IP Data
In the embodiment of the present invention, 6PE equipment does not send route to the 6PE equipment in other isolated IPv6 site under initial situation.In route synchronizing process (in OSPFv3 route synchronizing process), if 6PE equipment is not received LSP information,, after route synchronously completes, 6PE equipment sends local all routes to the 6PE equipment in other isolated IPv6 site; After all routes in this locality are sent completely, if 6PE equipment is received LSP information, 6PE equipment is to other route outside route corresponding to the 6PE device revocation LSP information in other isolated IPv6 site.Or if 6PE equipment is received LSP information in route synchronizing process, after route synchronously completes, this 6PE equipment is forbidden sending other route outside route corresponding to LSP information to the 6PE equipment in other isolated IPv6 site.
In sum, in the embodiment of the present invention, 6PE equipment can be based on from the network equipment LSP information (source address of carrying in this LSP information is the address of the network equipment in the isolated IPv6 site at this 6PE equipment place, the destination address carrying in this LSP information is the address of the network equipment in other isolated IPv6 site) dynamically generate LSP, thereby avoid static configuration LSP, and can reduce configuration effort amount.Further, can be the in the situation that of route and LSP controlled amounts, ensure that route can reach with LSP and can use.
Based on the inventive concept same with said method, a kind of IPv6 Provider Edge 6PE equipment is also provided in the embodiment of the present invention, the isolated IPv6 site at described 6PE equipment place is connected with other isolated IPv6 site by IPv4 network, and as shown in Figure 6, described 6PE equipment specifically comprises:
Receiver module 11, for receiving label switching path LSP information, described LSP information comprises source address and the destination address that LSP to be generated is corresponding; Wherein, described source address is the address of the network equipment in this isolated IPv6 site, and described destination address is the address of the network equipment in other isolated IPv6 site;
Source address processing module 12, for determining label information corresponding to described source address, routing iinformation corresponding described source address and label information are sent to the 6PE equipment in described other isolated IPv6 site, in 6PE neighbours' route, store described routing iinformation and label information by the 6PE equipment in other isolated IPv6 site;
Destination address processing module 13, for selecting from 6PE neighbours' route the optimum route that described destination address is corresponding, for described optimum route applying label information, and be utilized as the label information of described optimum route application and described optimum route corresponding label information in described 6PE neighbours' route and generate the transmission LSP of this 6PE equipment to the destination address map network equipment in described other isolated IPv6 site;
Wherein, the described label information for described optimum route application is the label that enters of described transmission LSP, and described optimum route corresponding label information in described 6PE neighbours' route is the outgoing label of described transmission LSP.
Described source address processing module 12 is also for receiving after LSP information, determine the label information of the network equipment corresponding to described source address to this 6PE devices allocation, utilize the described network equipment to generate the transmission LSP of this 6PE equipment to described source address map network equipment to label information and the label information corresponding to described source address of this 6PE devices allocation; Label information corresponding to described source address is the label that enters of described transmission LSP, and the described network equipment is the outgoing label of described transmission LSP to the label information of this 6PE devices allocation.
In the embodiment of the present invention, described destination address processing module 13, also for the described label information for described optimum route application is published to the each network equipment in this isolated IPv6 site, and optimum route corresponding described destination address is published to the each network equipment in this isolated IPv6 site.
In the embodiment of the present invention, described LSP information is carried in the LSA LSA based on ospf ospf protocol; It is LSP information that the type field of described LSA is used to indicate what in LSA, carry, in the Source IP field of described LSA, carries described source address, in the Destination IP field of described LSA, carries described destination address.
In the embodiment of the present invention, described 6PE equipment also comprises: route processing module 14, and for when this 6PE equipment is not in the time that route synchronizing process is received LSP information, after route synchronously completes, the 6PE equipment in other isolated IPv6 site sends local all routes; After all routes in this locality are sent completely, if this 6PE equipment is received LSP information, to other route outside route corresponding to LSP information described in the 6PE device revocation in other isolated IPv6 site; Or, if this 6PE equipment is received LSP information in route synchronizing process, after route synchronously completes, forbid sending other route outside route corresponding to described LSP information to the 6PE equipment in other isolated IPv6 site.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can separate deployment.Above-mentioned module can be merged into a module, also can further split into multiple submodules.
Through the above description of the embodiments, those skilled in the art can be well understood to the mode that the present invention can add essential general hardware platform by software and realize, and can certainly pass through hardware, but in a lot of situation, the former is better execution mode.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words can embody with the form of software product, this computer software product is stored in a storage medium, comprise that some instructions (can be personal computers in order to make a computer equipment, server, or the network equipment etc.) carry out the method described in each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into multiple submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Disclosed is above only several specific embodiment of the present invention, and still, the present invention is not limited thereto, and the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (10)

1. a label switching path LSP generation method, is applied on the IPv6 Provider Edge 6PE equipment in the isolated IPv6 site being connected with other isolated IPv6 site by IPv4 network, it is characterized in that, said method comprising the steps of:
Described 6PE equipment receives LSP information, and described LSP information comprises source address and the destination address that LSP to be generated is corresponding; Wherein, the address of the network equipment in described source address is this isolated IPv6 site, when described destination address is the address of the network equipment in other isolated IPv6 site,
Described 6PE equipment is determined the label information that described source address is corresponding, routing iinformation corresponding described source address and label information are sent to the 6PE equipment in described other isolated IPv6 site, in 6PE neighbours' route, store described routing iinformation and label information by the 6PE equipment in described other isolated IPv6 site; And,
Described 6PE equipment is selected the optimum route that described destination address is corresponding from 6PE neighbours' route of this 6PE device storage, for described optimum route applying label information, and be utilized as the label information of described optimum route application and described optimum route corresponding label information in described 6PE neighbours' route and generate the transmission LSP of described 6PE equipment to the destination address map network equipment in described other isolated IPv6 site;
Wherein, for the label information of described optimum route application is the label that enters of described transmission LSP, described optimum route corresponding label information in described 6PE neighbours' route is the outgoing label of described transmission LSP.
2. the method for claim 1, is characterized in that, described method further comprises:
Described 6PE equipment is being received after described LSP information, determine the label information of the network equipment corresponding to described source address to this 6PE devices allocation, and utilize the described network equipment to generate the transmission LSP of described 6PE equipment to described source address map network equipment to label information and the label information corresponding to described source address of this 6PE devices allocation; Label information corresponding to described source address is the label that enters of described transmission LSP, and the described network equipment is the outgoing label of described transmission LSP to the label information of this 6PE devices allocation.
3. the method for claim 1, is characterized in that, described method further comprises:
The label information for described optimum route application is published to the each network equipment in this isolated IPv6 site by described 6PE equipment, and optimum route corresponding described destination address is published to the each network equipment in this isolated IPv6 site.
4. the method for claim 1, is characterized in that, described LSP information is carried in the LSA LSA based on ospf ospf protocol; It is LSP information that the type field of described LSA is used to indicate what in LSA, carry, in the Source IP field of described LSA, carries described source address, in the Destination IP field of described LSA, carries described destination address.
5. the method for claim 1, is characterized in that, described method further comprises:
If described 6PE equipment is not received LSP information in route synchronizing process,, after route synchronously completes, described 6PE equipment sends local all routes to the 6PE equipment in other isolated IPv6 site; After all routes in this locality are sent completely, if described 6PE equipment is received LSP information, described 6PE equipment is to other route outside route corresponding to LSP information described in the 6PE device revocation in other isolated IPv6 site; Or if described 6PE equipment is received LSP information in route synchronizing process, after route synchronously completes, described 6PE equipment is forbidden sending other route outside route corresponding to described LSP information to the 6PE equipment in other isolated IPv6 site.
6. an IPv6 Provider Edge 6PE equipment, the isolated IPv6 site at described 6PE equipment place is connected with other isolated IPv6 site by IPv4 network, it is characterized in that, and described 6PE equipment comprises:
Receiver module, for receiving label switching path LSP information, described LSP information comprises source address and the destination address that LSP to be generated is corresponding; Wherein, described source address is the address of the network equipment in this isolated IPv6 site, and described destination address is the address of the network equipment in other isolated IPv6 site;
Source address processing module, for determining label information corresponding to described source address, routing iinformation corresponding described source address and label information are sent to the 6PE equipment in described other isolated IPv6 site, in 6PE neighbours' route, store described routing iinformation and label information by the 6PE equipment in other isolated IPv6 site;
Destination address processing module, for selecting from 6PE neighbours' route the optimum route that described destination address is corresponding, for described optimum route applying label information, and be utilized as the label information of described optimum route application and described optimum route corresponding label information in described 6PE neighbours' route and generate the transmission LSP of this 6PE equipment to the destination address map network equipment in described other isolated IPv6 site;
Wherein, for the label information of described optimum route application is the label that enters of described transmission LSP, described optimum route corresponding label information in described 6PE neighbours' route is the outgoing label of described transmission LSP.
7. 6PE equipment as claimed in claim 6, is characterized in that,
Described source address processing module, also for receiving after LSP information, determine the label information of the network equipment corresponding to described source address to this 6PE devices allocation, utilize the described network equipment to generate the transmission LSP of this 6PE equipment to described source address map network equipment to label information and the label information corresponding to described source address of this 6PE devices allocation; Label information corresponding to described source address is the label that enters of described transmission LSP, and the described network equipment is the outgoing label of described transmission LSP to the label information of this 6PE devices allocation.
8. 6PE equipment as claimed in claim 6, it is characterized in that, described destination address processing module, also for being published to the each network equipment in this isolated IPv6 site for the label information of described optimum route application, and optimum route corresponding described destination address is published to the each network equipment in this isolated IPv6 site.
9. 6PE equipment as claimed in claim 6, is characterized in that, described LSP information is carried in the LSA LSA based on ospf ospf protocol; It is LSP information that the type field of described LSA is used to indicate what in LSA, carry, in the Source IP field of described LSA, carries described source address, in the Destination IP field of described LSA, carries described destination address.
10. 6PE equipment as claimed in claim 6, is characterized in that, also comprises:
Route processing module, for when this 6PE equipment is not in the time that route synchronizing process is received LSP information, after route synchronously completes, the 6PE equipment in other isolated IPv6 site sends local all routes; After all routes in this locality are sent completely, if this 6PE equipment is received LSP information, to other route outside route corresponding to LSP information described in the 6PE device revocation in other isolated IPv6 site; Or, if this 6PE equipment is received LSP information in route synchronizing process, after route synchronously completes, forbid sending other route outside route corresponding to described LSP information to the 6PE equipment in other isolated IPv6 site.
CN201410186498.5A 2014-05-05 2014-05-05 A kind of LSP generation methods and equipment Active CN103986654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410186498.5A CN103986654B (en) 2014-05-05 2014-05-05 A kind of LSP generation methods and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410186498.5A CN103986654B (en) 2014-05-05 2014-05-05 A kind of LSP generation methods and equipment

Publications (2)

Publication Number Publication Date
CN103986654A true CN103986654A (en) 2014-08-13
CN103986654B CN103986654B (en) 2017-11-28

Family

ID=51278481

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410186498.5A Active CN103986654B (en) 2014-05-05 2014-05-05 A kind of LSP generation methods and equipment

Country Status (1)

Country Link
CN (1) CN103986654B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161244A (en) * 2015-04-16 2016-11-23 中兴通讯股份有限公司 Node device and the method setting up Label Forwarding Information Base thereof
CN106549870A (en) * 2015-09-16 2017-03-29 华为技术有限公司 The method of the global label of distribution, the method and relevant apparatus that obtain global label
WO2017193733A1 (en) * 2016-05-13 2017-11-16 华为技术有限公司 Route propagation method, and node
CN107995113A (en) * 2017-11-16 2018-05-04 新华三技术有限公司 Path establishment method and device
CN109361782A (en) * 2018-11-02 2019-02-19 迈普通信技术股份有限公司 A kind of message forwarding method and the network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060161673A1 (en) * 2005-01-18 2006-07-20 Se-Woong Moon Routing apparatus and method for 6to4 network
CN1852214A (en) * 2005-11-02 2006-10-25 华为技术有限公司 Routing method of virtual special network
CN1852212A (en) * 2005-09-09 2006-10-25 华为技术有限公司 Method for providing communication between virtual special network stations
CN102984066A (en) * 2012-12-14 2013-03-20 杭州华三通信技术有限公司 Method and equipment for route distribution

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060161673A1 (en) * 2005-01-18 2006-07-20 Se-Woong Moon Routing apparatus and method for 6to4 network
CN1852212A (en) * 2005-09-09 2006-10-25 华为技术有限公司 Method for providing communication between virtual special network stations
CN1852214A (en) * 2005-11-02 2006-10-25 华为技术有限公司 Routing method of virtual special network
CN102984066A (en) * 2012-12-14 2013-03-20 杭州华三通信技术有限公司 Method and equipment for route distribution

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106161244A (en) * 2015-04-16 2016-11-23 中兴通讯股份有限公司 Node device and the method setting up Label Forwarding Information Base thereof
CN106161244B (en) * 2015-04-16 2020-05-22 中兴通讯股份有限公司 Node equipment and method for establishing label forwarding table
CN106549870A (en) * 2015-09-16 2017-03-29 华为技术有限公司 The method of the global label of distribution, the method and relevant apparatus that obtain global label
CN106549870B (en) * 2015-09-16 2019-11-15 华为技术有限公司 The method and relevant apparatus distributed the method for global label, obtain global label
WO2017193733A1 (en) * 2016-05-13 2017-11-16 华为技术有限公司 Route propagation method, and node
CN107370675A (en) * 2016-05-13 2017-11-21 华为技术有限公司 It route the method disseminated and node
CN107370675B (en) * 2016-05-13 2021-02-23 华为技术有限公司 Method and node for route dissemination
CN107995113A (en) * 2017-11-16 2018-05-04 新华三技术有限公司 Path establishment method and device
CN107995113B (en) * 2017-11-16 2020-12-25 新华三技术有限公司 Path establishing method and device
CN109361782A (en) * 2018-11-02 2019-02-19 迈普通信技术股份有限公司 A kind of message forwarding method and the network equipment

Also Published As

Publication number Publication date
CN103986654B (en) 2017-11-28

Similar Documents

Publication Publication Date Title
EP3143732B1 (en) Scalable segment identifier allocation in segment routing
CN105634940B (en) SR information acquisition method and method for establishing segment routing network
EP3148131B1 (en) Address information publishing method and apparatus
CN100550841C (en) Autonomous System Boundary Router, AS Boundary Router route issuing method and Autonomous System Boundary Router, AS Boundary Router
CN101243648B (en) Method and apparatus for enabling routing of label switched data packets
CN101243654B (en) Method and apparatus for enabling routing of label switched data packets
CN104380673A (en) System and method for using label distribution protocol (LDP) in IPv6 networks
CN107370675B (en) Method and node for route dissemination
US9088498B2 (en) Communication networks that provide a common transport domain for use by multiple service domains and methods and computer program products for using the same
CN110784407B (en) Interface configuration method, data transmission method and device and electronic equipment
CN106059932B (en) Method and device for generating routing table item
US8964749B2 (en) Method, device and system for establishing a pseudo wire
CN103986654A (en) LSP generating method and device
WO2017211164A1 (en) Method, apparatus, and system for determining inter-as label switched path tunnel
CN103326915A (en) Method, device and system for achieving three-layer VPN
CN103220217B (en) A kind of route generating method and equipment
US20210281507A1 (en) Parameter notification and obtaining methods and devices, and storage medium
CN102291305A (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
CN113726653B (en) Message processing method and device
CN107294849A (en) Method, device and system for establishing service path
CN106230730B (en) Multicast transmission method and device
US20190334814A1 (en) Path establishment method and device, and network node
CN102244615B (en) Forwarding entry sending method, device and system as well as autonomous system border router
CN102739519B (en) Rooted multipoint service implementation method, device and system, and provider edge equipment
CN113542126A (en) Generalized SRv6 full-path compression method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant