CN108494684A - Create the method and device in tunnel - Google Patents

Create the method and device in tunnel Download PDF

Info

Publication number
CN108494684A
CN108494684A CN201810296441.9A CN201810296441A CN108494684A CN 108494684 A CN108494684 A CN 108494684A CN 201810296441 A CN201810296441 A CN 201810296441A CN 108494684 A CN108494684 A CN 108494684A
Authority
CN
China
Prior art keywords
label
address information
path
equipment
hop address
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
CN201810296441.9A
Other languages
Chinese (zh)
Other versions
CN108494684B (en
Inventor
郭威
王伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201810296441.9A priority Critical patent/CN108494684B/en
Publication of CN108494684A publication Critical patent/CN108494684A/en
Application granted granted Critical
Publication of CN108494684B publication Critical patent/CN108494684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing

Abstract

This disclosure relates to a kind of method and device creating tunnel, the method are applied to Provider Edge PE equipment, the method includes:Synchronization of routing information, the routing iinformation include section routing SR and VPN route;Obtain the next-hop address information of VPN route;If the next-hop address information is matched to SR, and the path between PE equipment corresponding with the next-hop address information is reachable, label forwarding dedicated tunnel is then established between PE equipment corresponding with the next-hop address information, the label forwarding dedicated tunnel is for forwarding private network business corresponding with the next-hop address information.By establishing label forwarding dedicated tunnel, private network business can be enable to select the pattern needed in the case where not influencing the link cost value of routing itself according to the method and device in the establishment tunnel of the embodiment of the present disclosure.

Description

Create the method and device in tunnel
Technical field
This disclosure relates to field of communication technology more particularly to a kind of method and device creating tunnel.
Background technology
SR (Segment Routing, section routing) agreement uses source path selection mechanism, can be encapsulated in advance in source node The SID (Segment Identifier, segment identification) of section is passed through in good path.When message said SR nodes, which can To be forwarded to message according to the SID of message.In addition to source node, other node Maintenance free path status.
SR (Segment based on MPLS (Multi-Protocol Label Switching, multiprotocol label switching) MPLS, MPLS sections of routings of Routing with) refer to being carried out to message using label as SID when using SR in an mpls network Forwarding.Section routing forwarding is carried out to message using label as SID, message paths traversed is known as SRLSP (Segment Routing Label Switched Paths), the label switched path based on section routing.
By the way that the agreements such as existing ISIS, OSPF are extended and are optimized, ISIS can be directly utilized (Intermediate System to Intermediate System, Intermediate System-to-Intermediate System), OSPF (Open Shortest Path First, ospf) etc. agreements carry out label distribution, and rely on MPLS forwarding planes Realize MPLS forwardings.
Invention content
In view of this, the present disclosure proposes a kind of method and device creating tunnel, routing itself can not influenced The label forwarding dedicated tunnel for private network business is formed in the case of link cost value.
According to the one side of the disclosure, a kind of method creating tunnel is provided, the method is applied to Provider Edge PE equipment, the method includes:Synchronization of routing information, the routing iinformation include section routing SR and VPN route;Obtain private network The next-hop address information of routing;If the next-hop address information is matched to SR, and corresponding with the next-hop address information PE equipment between path it is reachable, then it is special to establish label forwarding between PE equipment corresponding with the next-hop address information Tunnel, the label forwarding dedicated tunnel is for forwarding private network business corresponding with the next-hop address information.
According to another aspect of the present disclosure, a kind of device creating tunnel is provided, described device is applied to operator side Edge PE equipment, described device include:Synchronization of routing information, the routing iinformation include section routing SR and VPN route;It obtains private Network by next-hop address information;If the next-hop address information is matched to SR, and with the next-hop address information pair Path between the PE equipment answered is reachable, then it is special to establish label forwarding between PE equipment corresponding with the next-hop address information With tunnel, the label forwarding dedicated tunnel is for forwarding private network business corresponding with the next-hop address information.
According to another aspect of the present disclosure, provide it is a kind of create tunnel device include:Processor;It is handled for storage The memory of device executable instruction;Wherein, the processor is configured as executing the above method.
According to another aspect of the present disclosure, a kind of non-volatile computer readable storage medium storing program for executing is provided, is stored thereon with Computer program instructions, wherein the computer program instructions realize the above method when being executed by processor.
By synchronous SR and VPN route, if the next-hop address information of VPN route is matched to SR, and with it is described next The path jumped between the corresponding PE equipment of address information is reachable, then is built between PE equipment corresponding with the next-hop address information Vertical label forwarding dedicated tunnel, can not influence road according to the method and device in the establishment tunnel of various aspects of the present disclosure embodiment Label forwarding dedicated tunnel is formed in the case of by the link cost value of itself, and private network business is enable to select the pattern needed.
According to below with reference to the accompanying drawings to detailed description of illustrative embodiments, the other feature and aspect of the disclosure will become It is clear.
Description of the drawings
Including in the description and the attached drawing of a part for constitution instruction and specification together illustrate the disclosure Exemplary embodiment, feature and aspect, and for explaining the principles of this disclosure.
Fig. 1 shows the flow chart of the method in the establishment tunnel according to one embodiment of the disclosure.
Fig. 2 shows the MPLS network schematic diagrames according to one embodiment of the disclosure.
Fig. 3 shows the flow chart of the method in the establishment tunnel according to one embodiment of the disclosure.
Fig. 4 shows the flow chart of the method in the establishment tunnel according to one embodiment of the disclosure.
Fig. 5 shows the flow chart of the method in the establishment tunnel according to one embodiment of the disclosure.
Fig. 6 shows the block diagram of the device in the establishment tunnel according to one embodiment of the disclosure.
Fig. 7 shows the block diagram of the device in the establishment tunnel according to one embodiment of the disclosure.
Fig. 8 shows a kind of block diagram of machine readable storage medium according to one embodiment of the disclosure.
Specific implementation mode
Various exemplary embodiments, feature and the aspect of the disclosure are described in detail below with reference to attached drawing.It is identical in attached drawing Reference numeral indicate functionally the same or similar element.Although the various aspects of embodiment are shown in the accompanying drawings, remove It non-specifically points out, it is not necessary to attached drawing drawn to scale.
Dedicated word " exemplary " means " being used as example, embodiment or illustrative " herein.Here as " exemplary " Illustrated any embodiment should not necessarily be construed as preferred or advantageous over other embodiments.
In addition, in order to better illustrate the disclosure, numerous details is given in specific implementation mode below. It will be appreciated by those skilled in the art that without certain details, the disclosure can equally be implemented.In some instances, for Method, means, element and circuit well known to those skilled in the art are not described in detail, in order to highlight the purport of the disclosure.
Fig. 1 shows the flow chart of the method in the establishment tunnel according to one embodiment of the disclosure.Fig. 2 shows according to the disclosure one The MPLS network schematic diagram of embodiment.As shown in Fig. 2, R1, R2, R3, R4, R5, R6, R7 and R8 are routing devices.MPLS network In have a three classes routing device, including CE (Customer Edge, customer network edge) equipment, PE (Provider Edge, operation Quotient edge) equipment and P (Provider, provider) equipment.CE equipment is customer edge, the use that service provider is connected Family end routing device.CE equipment can connect one or more PE equipment, provide service access to the user.CE equipment with connect PE equipment establishes syntople.PE equipment is Provider Edge routing device, can connect CE equipment and P equipment, is equivalent to mark Edge routing device is signed, customer flow can flow into user network by PE equipment, or flow to MPLS backbone by PE equipment Net.PE equipment can will come from CE equipment or LSP (Label Switched Path, label friendship according to the routing iinformation of storage Change path) VPN data processing after be forwarded, while be responsible for and other PE devices exchange routing iinformations.P equipment is to provide quotient Routing device is the backbone network routing device for being not connected to any CE equipment, be equivalent to LSR (Label Switching Router, Tag switching route equipment).P equipment can carry out transparent forwarding according to the outer layer label of grouping to VPN data, and P equipment is only tieed up The routing iinformation for protecting PE equipment, without safeguarding the relevant routing iinformations of VPN.As shown in Fig. 2, R2, R5 are PE equipment, R6 CE Equipment.
In one example, R2 and R5 is denoted as PE1 and PE2, R6 is as CE equipment respectively as PE equipment.PE1 and PE2 Between can carry out route synchronization.For public network service and other business (such as ftp business), routed to by PE2 publications PE1 is needed according to chain circuit planning, is formed equative route between PE1 and PE2 and is carried out load balancing, PE1 to PE2 passes through at this time The expense of both links is identical.For private network business (such as the business such as L2VPN, L3VPN), PE1 is routed to by PE2 publications, PE1 wishes that active-standby path is formed between PE2 improves reliability.At this time, it is desirable that two paths configuration that PE1 to PE2 passes through is not Same expense, and the presence of this equal-cost link before influencing whether.In the related technology, can by create multiple ISIS processes or Person routing policy distinguishes equative route and active-standby path.However multiple ISIS processes are created, it occupies resource and says more, increase network The quantity of the corresponding Router Distinguisher of middle ISIS.And for creating the mode of routing policy, routing quantity was more in network at that time, When irregular, configuration strategy is more, safeguards inconvenient to use.
The method shown in FIG. 1 for creating tunnel can be applied to PE equipment, such as R2 shown in Fig. 2.As shown in Figure 1, should Create tunnel method include:
Step S11, synchronization of routing information, the routing iinformation include SR and VPN route.
SR route for section, and SR is the routing with label.The label of SR bands can be adjacent label etc..Adjacent tag representation The single-hop path of certain link, label only equipment are locally significant on routing device.Each routing device to oneself one jump it is adjacent Equipment the adjacent label of notice is extended by IGP, or be directly each of the links in the domains SR by SDN controllers into row label Distribution.
In one implementation, SR includes the label pass corresponding with the address information of the equipment for the equipment for sending the SR System.For example, the network equipment 1 sends SR to the network equipment 2, which includes the address of the label and the network equipment 1 of the network equipment 1 The correspondence of information.The network equipment 2 receive the SR after, can obtain the network equipment 1 label and the label correspondingly Location information.
VPN route can be used to indicate that the routing that CE equipment is issued to the PE equipment of connection.CE equipment can be to connection PE equipment registers the information about firms of VPN.One PE equipment can be the CE device services of multiple VPN, and PE equipment allows for distinguishing Which VPN other CE belongs to.CE equipment can be by issuing VPN route to the PE equipment of connection.In one implementation, CE Equipment can issue VPN route by ISIS or OSPF to the PE equipment of connection.The PE equipment of CE equipment connection can pass through BGP VPNV4 synchronize the VPN route to other PE equipment.
In one implementation, IGP (Interior Gateway Protocol, inside can be passed through between PE equipment Gateway protocol) synchronize SR, such as OSPF, ISIS etc..
In one implementation, further include the common routing of not tape label in routing iinformation synchronous between PE equipment.
Step S12 obtains the next-hop address information of VPN route.
CE equipment can issue VPN route to the PE equipment of connection, and the next-hop of VPN route is the PE of CE equipment connection Equipment, the next-hop address information of VPN route correspond to the PE equipment of CE equipment connection.
Wherein, next-hop address information can be IP address, MAC Address etc., be not limited to this disclosure.
Step S13, if the next-hop address information is matched to SR, and PE corresponding with the next-hop address information is set Path between standby is reachable, then establishes label forwarding dedicated tunnel between PE equipment corresponding with the next-hop address information, The label forwarding dedicated tunnel is for forwarding private network business corresponding with the next-hop address information.
In one implementation, PE equipment can obtain label and the correspondence of address information from SR;If institute It states in correspondence, finds the next-hop address information, it is determined that the next-hop address information is matched to SR.
SR nodes can synchronize SR to PE equipment, and PE equipment can obtain label from the SR received, and with label pair The address information answered searches next-hop address information from address information corresponding with label later.If with finding next-hop Location information, then PE equipment determine that next hop information is matched to SR.
When the next-hop address information is matched to SR, show that the corresponding PE equipment of the next-hop address information can be with As SR nodes.Path between this PE equipment PE equipment corresponding with the next-hop address information up to when, show this Message can be sent to PE equipment corresponding with the next-hop address information by PE equipment.Therefore, if the next hop address is believed Breath is matched to SR, and the path between this PE equipment PE equipment corresponding with the next-hop address information is reachable, then with this PE Equipment is as head node, and PE equipment corresponding with the next-hop address information is as tail node, this PE equipment is with next-hop Label forwarding dedicated tunnel can be established between the corresponding PE equipment of location information.Wherein, which can use In forwarding private network business corresponding with the next-hop address information.
By synchronous SR and VPN route, if the next-hop address information of VPN route is matched to the SR of tape label, and with Path between the corresponding PE equipment of the next-hop address information is reachable, then PE corresponding with the next-hop address information is set Label forwarding dedicated tunnel is established between standby, routing can not influenced originally according to the method in the establishment tunnel of the embodiment of the present disclosure Label forwarding dedicated tunnel is formed in the case of the link cost value of body, the pattern for enabling private network business that oneself to be selected to need, Such as active-standby mode or equivalent formulations.
In one implementation, label forwarding dedicated tunnel is tag path of equal value.Wherein, tag path of equal value can be with For indicating the identical a pair of tag path of expense.Fig. 3 shows the stream of the method in the establishment tunnel according to one embodiment of the disclosure Cheng Tu.As shown in figure 3, establishing label forwarding dedicated tunnel between PE equipment corresponding with the next-hop address information, realize For step S131 and step S132:
Step S131 is collected on each reachable path outgoing direction of PE equipment rooms corresponding with the next-hop address information and is owned Label.
If there are a plurality of reachable path, this PE equipment can pass through it for PE equipment rooms corresponding with next-hop address information In any one paths to PE device forwards messages corresponding with next-hop address information.The expense of each reachable path may not Together.
Every reachable path can be made of multilink, such as by the reachable of R4 between PE1 shown in Fig. 2 and PE2 Path is made of the link between PE1 and R4 and the link between R4 and PE2.Each of the links are assigned with a label.Up to road The label stack of the label composition of the link of composition reachable path may be used in diameter.Wherein, reachable path has directionality, is divided into Direction and enter the reachable path between direction, such as PE1 and PE2, is outgoing direction relative to PE1, is into direction relative to PE2.
This PE equipment can own every reachable path outgoing direction of PE equipment rooms corresponding with next-hop address information Label, to represent the reachable path using the label stack of all label compositions of a reachable path outgoing direction.
Step S132 selects the label of two reachable paths as the label forwarding dedicated tunnel according to certain rule Tag path of equal value.
If PE equipment rooms corresponding with next-hop address information, there are a plurality of reachable path, this PE equipment can be from described Of equal value tag path of the label of two reachable paths as the label forwarding dedicated tunnel is selected in a plurality of reachable path. In one example, this PE equipment can be according to the label value size of label or neighbours' routing device address size from described a plurality of Two reachable paths are selected in reachable path.For example, this PE equipment can with maximum two labels of label value it is corresponding two can Up to the of equal value tag path of the label as the label forwarding dedicated tunnel in path.
In one implementation, label forwarding dedicated tunnel is active and standby tag path.Wherein, active and standby tag path can be with A pair of tag path for indicating to be formed main and standby relation.The method that Fig. 4 shows the establishment tunnel according to one embodiment of the disclosure Flow chart.As shown in figure 4, label forwarding dedicated tunnel is established between PE equipment corresponding with the next-hop address information, It is embodied as step S133 and step S134:
Step S133 is collected on each reachable path outgoing direction of PE equipment rooms corresponding with the next-hop address information and is owned Available label.
The description of this step is referred to step S131, and which is not described herein again.
Step S134 selects the label of one of two reachable paths as the label forwarding according to certain rule The label of the other of two reachable paths is selected as the label forwarding dedicated tunnel in the main label path of dedicated tunnel Standby tag path.
Wherein, step S132 can be referred to by choosing the rule of two reachable paths, and which is not described herein again.
Fig. 5 shows the flow chart of the method in the establishment tunnel according to one embodiment of the disclosure.As shown in figure 5, this method is also Including:
Step S14 receives data message.
Step S15 obtains the next hop address of the data message from the matched route table items of the data message Information.
If step S16 passes through in the presence of label forwarding dedicated tunnel corresponding with the next-hop address information of data message The label forwarding dedicated tunnel forwards the data message.
In one implementation, if determining this PE equipment PE corresponding with next-hop address information according to network topology What is formed between equipment is active-standby path, then is established between this PE equipment PE equipment corresponding with the next-hop address information Tag path of equal value.In this way, the data message that this PE equipment receives is matched to private corresponding with the next-hop address information When network service, this PE equipment can forward the data message by one in tag path of equal value.
In one implementation, if determining this PE equipment PE corresponding with next-hop address information according to network topology What is formed between equipment is equative route, then is established between this PE equipment PE equipment corresponding with the next-hop address information Active and standby tag path.In this way, the data message that this PE equipment receives is matched to private corresponding with the next-hop address information When network service, this PE equipment can forward the data message by main label path in active and standby tag path.
In one implementation, this PE equipment is built respectively between the corresponding PE equipment of the next-hop address information Found active and standby tag path and tag path of equal value.Later, active and standby tag path or label of equal value road are chosen according to actual demand Diameter carries out the forwarding of data message.
In one implementation, in the case where the label forwarding dedicated tunnel is active and standby tag path, pass through institute Stating label forwarding dedicated tunnel forwards the data message can be implemented as:Judge main label path whether failure;If the master The non-failure of tag path then forwards the data message by the main label path;If the main label path failure, leads to It crosses and forwards the data message for tag path.
Using example
As shown in Fig. 2, public network service 2.2.2.2 or other business route to PE1 by PE2 publications.Between PE1 and PE2 Two reachable paths expense it is identical, two reachable paths form equative route between PE1 and PE2.PE2 is also synchronized to PE SR, the SR include the label of PE2 and the correspondence of 5.5.5.5.
If private network business 20.1.1.2 needs the public network tunnel by being formed between PE1 and PE2 to be forwarded.It is connect with CE PE2 the corresponding VPN routes of private network business 20.1.1.2 are synchronized to PE1, the next-hop address information of the VPN route is 5.5.5.5(PE2).PE1 determines that 5.5.5.5 is matched to SR at this time.PE1 is directed to 5.5.5.5, establishes the label between PE1 and PE2 Forwarding tunnel.The label forwarding tunnel can need to be established as active and standby tag path or tag path of equal value according to user.With Active and standby tag path is established between PE1 and PE2, and is main tag path by the path of R4, and the path by R3 is standby label For path, when PE1 receives data message and is matched to 5.5.5.5 corresponding private network business, PE1 can be by main label path Label indentation data message is forwarded.
In this way, the active and standby label road between PE1 and PE2 can be formed according to the method in the establishment tunnel of the embodiment of the present disclosure Diameter, actual equivalence relation (or main and standby relation) before not influencing PE1 and PE2, only for being matched to the corresponding privates of 5.5.5.5 The data message of network service is forwarded using active and standby tag path (or tag path of equal value).
Fig. 6 shows the block diagram of the device in the establishment tunnel according to one embodiment of the disclosure.Described device is applied to operator Edge PE equipment.As shown in fig. 6, described device 60 includes:
Synchronization module 61, is used for synchronization of routing information, and the routing iinformation includes section routing SR and VPN route;
First acquisition module 62, the next-hop address information for obtaining VPN route;
Establish module 63, if be matched to SR for the next-hop address information, and with the next-hop address information pair Path between the PE equipment answered is reachable, then it is special to establish label forwarding between PE equipment corresponding with the next-hop address information With tunnel, the label forwarding dedicated tunnel is for forwarding private network business corresponding with the next-hop address information.
Fig. 7 shows the block diagram of the device in the establishment tunnel according to one embodiment of the disclosure.As shown in fig. 7, in a kind of possibility Realization method in, the SR includes the correspondence of the label for the equipment for sending the SR and the address information of the equipment, institute Stating device 60 further includes:
Second acquisition module 64, the correspondence for obtaining label and address information from the SR;
Determining module 65, if in the correspondence, finding the next-hop address information, it is determined that described Next-hop address information is matched to SR.
In one possible implementation, the label forwarding dedicated tunnel includes active and standby tag path, described active and standby Tag path is used to indicate to be formed a pair of tag path of main and standby relation, and the module 63 of establishing is specifically used for:
Collect all labels on each reachable path outgoing direction of PE equipment rooms corresponding with the next-hop address information;
According to certain rule, of equal value label of the label of two reachable paths as the label forwarding dedicated tunnel is selected Path.
In one possible implementation, the label forwarding dedicated tunnel includes tag path of equal value, the equivalence Tag path is for indicating that the identical a pair of tag path of expense, the module 63 of establishing are specifically used for:
Collect all labels on each reachable path outgoing direction of PE equipment rooms corresponding with the next-hop address information;
According to certain rule, the label of one of two reachable paths is selected as the label forwarding dedicated tunnel The standby label road of the label as the label forwarding dedicated tunnel of the other of two reachable paths is selected in main label path Diameter.
In one possible implementation, described device 60 further includes:
Receiving module 66, for receiving data message;
Third acquisition module 67, for obtaining the data message from the matched route table items of the data message Next-hop address information;
Forwarding module 68, if in the presence of the special tunnel of label forwarding corresponding with the next-hop address information of data message Road then forwards the data message by the label forwarding dedicated tunnel.
In one possible implementation, the forwarding module 68 is specifically used for:
The label forwarding dedicated tunnel be active and standby tag path in the case of, judge main label path whether failure;
If the non-failure in main label path, the data message is forwarded by the main label path;
If the main label path failure, the data message is forwarded by standby tag path.
Fig. 8 shows a kind of block diagram of machine readable storage medium according to one embodiment of the disclosure.As shown in figure 8, machine Readable storage medium storing program for executing 902 is stored with machine-executable instruction, machine-executable instruction when being called and being executed by processor 901, Machine-executable instruction promotes processor 901 to realize the above-described method for creating tunnel.
Machine readable storage medium 902 referred to herein can be any electronics, magnetism, optics or other physical stores Device can include or store information, such as executable instruction, data, etc..For example, machine readable storage medium can be: RAM (Radom Access Memory, random access memory), volatile memory, nonvolatile memory, flash memory, storage are driven Dynamic device (such as hard disk drive), solid state disk, any kind of storage dish (such as CD, dvd) or similar storage are situated between Matter or combination thereof.
The presently disclosed embodiments is described above, above description is exemplary, and non-exclusive, and It is not limited to disclosed each embodiment.Without departing from the scope and spirit of illustrated each embodiment, for this skill Many modifications and changes will be apparent from for the those of ordinary skill in art field.The selection of term used herein, purport In the principle, practical application or technological improvement to the technology in market for best explaining each embodiment, or this technology is made to lead Other those of ordinary skill in domain can understand each embodiment disclosed herein.

Claims (14)

1. a kind of method creating tunnel, which is characterized in that the method is applied to Provider Edge PE equipment, the method packet It includes:
Synchronization of routing information, the routing iinformation include section routing SR and VPN route;
Obtain the next-hop address information of VPN route;
If the next-hop address information is matched to SR, and the path between PE equipment corresponding with the next-hop address information It is reachable, then establish label forwarding dedicated tunnel, the label forwarding between PE equipment corresponding with the next-hop address information Dedicated tunnel is for forwarding private network business corresponding with the next-hop address information.
2. according to the method described in claim 1, it is characterized in that, the SR includes the label for the equipment for sending the SR and is somebody's turn to do The correspondence of the address information of equipment, the method further include:
The correspondence of label and address information is obtained from the SR;
If in the correspondence, the next-hop address information is found, it is determined that the next-hop address information matching To SR.
3. according to the method described in claim 1, it is characterized in that, the label forwarding dedicated tunnel includes active and standby label road Diameter, the active and standby tag path is used to indicate to be formed a pair of tag path of main and standby relation, described to believe with the next hop address It ceases and forms label forwarding dedicated tunnel between corresponding PE equipment, including:
Collect all labels on each reachable path outgoing direction of PE equipment rooms corresponding with the next-hop address information;
According to certain rule, of equal value label road of the label as the label forwarding dedicated tunnel of two reachable paths is selected Diameter.
4. according to the method described in claim 1, it is characterized in that, the label forwarding dedicated tunnel includes label of equal value road Diameter, the equivalence tag path is for indicating the identical a pair of tag path of expense, the described and next-hop address information pair Label forwarding dedicated tunnel is formed between the PE equipment answered, including:
Collect all labels on each reachable path outgoing direction of PE equipment rooms corresponding with the next-hop address information;
According to certain rule, principal mark of the label of one of two reachable paths as the label forwarding dedicated tunnel is selected Path is signed, standby tag path of the label of the other of two reachable paths as the label forwarding dedicated tunnel is selected.
5. method as claimed in any of claims 1 to 4, which is characterized in that the method further includes:
Receive data message;
The next-hop address information of the data message is obtained from the matched route table items of the data message;
If in the presence of label forwarding dedicated tunnel corresponding with the next-hop address information of data message, pass through the label forwarding Dedicated tunnel forwards the data message.
6. according to the method described in claim 5, it is characterized in that, forwarding the data by the label forwarding dedicated tunnel Message, including:
The label forwarding dedicated tunnel be active and standby tag path in the case of, judge main label path whether failure;
If the non-failure in main label path, the data message is forwarded by the main label path;
If the main label path failure, the data message is forwarded by standby tag path.
7. a kind of device creating tunnel, which is characterized in that described device is applied to Provider Edge PE equipment, described device packet It includes:
Synchronization module, is used for synchronization of routing information, and the routing iinformation includes section routing SR and VPN route;
First acquisition module, the next-hop address information for obtaining VPN route;
Module is established, if being matched to SR, and PE corresponding with the next-hop address information for the next-hop address information Path between equipment is reachable, then establishes the special tunnel of label forwarding between PE equipment corresponding with the next-hop address information Road, the label forwarding dedicated tunnel is for forwarding private network business corresponding with the next-hop address information.
8. device according to claim 7, which is characterized in that the SR includes the label for the equipment for sending the SR and is somebody's turn to do The correspondence of the address information of equipment, described device further include:
Second acquisition module, the correspondence for obtaining label and address information from the SR;
Determining module, if in the correspondence, finding the next-hop address information, it is determined that the next-hop Address information is matched to SR.
9. device according to claim 7, which is characterized in that the label forwarding dedicated tunnel includes active and standby label road Diameter, the active and standby tag path are used to indicate to be formed a pair of tag path of main and standby relation, and the module of establishing is specifically used for:
Collect all labels on each reachable path outgoing direction of PE equipment rooms corresponding with the next-hop address information;
According to certain rule, of equal value label road of the label as the label forwarding dedicated tunnel of two reachable paths is selected Diameter.
10. device according to claim 7, which is characterized in that the label forwarding dedicated tunnel includes label of equal value road Diameter, the equivalence tag path is for indicating that the identical a pair of tag path of expense, the module of establishing are specifically used for:
Collect all labels on each reachable path outgoing direction of PE equipment rooms corresponding with the next-hop address information;
According to certain rule, principal mark of the label of one of two reachable paths as the label forwarding dedicated tunnel is selected Path is signed, standby tag path of the label of the other of two reachable paths as the label forwarding dedicated tunnel is selected.
11. the device according to any one of claim 7 to 10, which is characterized in that described device further includes:
Receiving module, for receiving data message;
Third acquisition module, the next-hop for obtaining the data message from the matched route table items of the data message Address information;
Forwarding module, if in the presence of label forwarding dedicated tunnel corresponding with the next-hop address information of data message, leading to It crosses the label forwarding dedicated tunnel and forwards the data message.
12. according to the devices described in claim 11, which is characterized in that the forwarding module is specifically used for:
The label forwarding dedicated tunnel be active and standby tag path in the case of, judge main label path whether failure;
If the non-failure in main label path, the data message is forwarded by the main label path;
If the main label path failure, the data message is forwarded by standby tag path.
13. a kind of device creating tunnel, which is characterized in that including processor and machine readable storage medium, the machine can It reads storage medium and is stored with the machine-executable instruction that can be executed by the processor, the processor can perform the machine Executable instruction is to realize any methods of claim 1-6.
14. a kind of machine readable storage medium, which is characterized in that be stored with machine-executable instruction, by processor call and When execution, the machine-executable instruction promotes the processor:Realize any methods of claim 1-6.
CN201810296441.9A 2018-03-30 2018-03-30 Method and device for establishing tunnel Active CN108494684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810296441.9A CN108494684B (en) 2018-03-30 2018-03-30 Method and device for establishing tunnel

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810296441.9A CN108494684B (en) 2018-03-30 2018-03-30 Method and device for establishing tunnel

Publications (2)

Publication Number Publication Date
CN108494684A true CN108494684A (en) 2018-09-04
CN108494684B CN108494684B (en) 2021-01-26

Family

ID=63318113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810296441.9A Active CN108494684B (en) 2018-03-30 2018-03-30 Method and device for establishing tunnel

Country Status (1)

Country Link
CN (1) CN108494684B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611616A (en) * 2019-09-18 2019-12-24 下一代互联网重大应用技术(北京)工程研究中心有限公司 Traffic scheduling method, system, device and medium based on Radius server
CN112788637A (en) * 2020-06-29 2021-05-11 中兴通讯股份有限公司 Tunnel protection method, edge router, and computer-readable medium
CN114650250A (en) * 2020-12-18 2022-06-21 中国移动通信有限公司研究院 Processing method, device, management and control system and network equipment of bidirectional segment routing tunnel

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968178A (en) * 2006-11-02 2007-05-23 杭州华为三康技术有限公司 LSP establishing method
CN103841022A (en) * 2014-03-12 2014-06-04 华为技术有限公司 Method and device for building tunnel
US20150109902A1 (en) * 2013-10-18 2015-04-23 Cisco Technology, Inc. SCALABLE EDGE NODE PROTECTION USING IPv6 SEGMENT ROUTING EXTENSION HEADER
CN107306222A (en) * 2016-04-25 2017-10-31 华为技术有限公司 The method and apparatus that traffic engineering tunnel on label switched path is set up
CN107637031A (en) * 2015-07-06 2018-01-26 华为技术有限公司 Path-calculating element central controller (PCECC) for Network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1968178A (en) * 2006-11-02 2007-05-23 杭州华为三康技术有限公司 LSP establishing method
US20150109902A1 (en) * 2013-10-18 2015-04-23 Cisco Technology, Inc. SCALABLE EDGE NODE PROTECTION USING IPv6 SEGMENT ROUTING EXTENSION HEADER
CN103841022A (en) * 2014-03-12 2014-06-04 华为技术有限公司 Method and device for building tunnel
CN107637031A (en) * 2015-07-06 2018-01-26 华为技术有限公司 Path-calculating element central controller (PCECC) for Network
CN107306222A (en) * 2016-04-25 2017-10-31 华为技术有限公司 The method and apparatus that traffic engineering tunnel on label switched path is set up

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110611616A (en) * 2019-09-18 2019-12-24 下一代互联网重大应用技术(北京)工程研究中心有限公司 Traffic scheduling method, system, device and medium based on Radius server
CN112788637A (en) * 2020-06-29 2021-05-11 中兴通讯股份有限公司 Tunnel protection method, edge router, and computer-readable medium
CN114650250A (en) * 2020-12-18 2022-06-21 中国移动通信有限公司研究院 Processing method, device, management and control system and network equipment of bidirectional segment routing tunnel

Also Published As

Publication number Publication date
CN108494684B (en) 2021-01-26

Similar Documents

Publication Publication Date Title
CN101044728B (en) Fast reroute (frr) protection at the edge of a rfc 2547 network
CN101120552B (en) Loop prevention method for MPLS using service labels and network node
US9444677B2 (en) Scalable edge node protection using IPv6 segment routing extension header
US9525619B2 (en) Scalable edge node protection using segment routing
US9143395B2 (en) Scalable BGP protection from edge node failure using context labels in data packets identifying backup router mirror table
CN111385207B (en) Service data forwarding method, network device and network system
US7633859B2 (en) Loop prevention technique for MPLS using two labels
US8842522B2 (en) Incremental deployment of MRT based IPFRR
US7693047B2 (en) System and method for PE-node protection
EP1867106B1 (en) Loop prevention techniques using encapsulation manipulation of ip/mpls field
CN104604192B (en) MPLS Segment routings
US9036463B2 (en) Scalable BGP protection from edge node failure using dynamically assigned labels in data packets
CN112511418A (en) Message indicating method, device, equipment and storage medium
CN111490937B (en) Method, device and system for establishing cross-domain forwarding path
JP5426024B2 (en) Connecting the inner MPLS label and the outer MPLS label
CN108494684A (en) Create the method and device in tunnel
US20220255838A1 (en) A Method and a Device for Routing Traffic Along an IGP Shortcut Path
CN115460107A (en) Route detection method, device, system and storage medium

Legal Events

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