CN109347740A - Message forwarding method and device - Google Patents

Message forwarding method and device Download PDF

Info

Publication number
CN109347740A
CN109347740A CN201811375140.1A CN201811375140A CN109347740A CN 109347740 A CN109347740 A CN 109347740A CN 201811375140 A CN201811375140 A CN 201811375140A CN 109347740 A CN109347740 A CN 109347740A
Authority
CN
China
Prior art keywords
ldp
message
sid
label
mapping
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
CN201811375140.1A
Other languages
Chinese (zh)
Other versions
CN109347740B (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 CN201811375140.1A priority Critical patent/CN109347740B/en
Publication of CN109347740A publication Critical patent/CN109347740A/en
Application granted granted Critical
Publication of CN109347740B publication Critical patent/CN109347740B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing

Landscapes

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

Abstract

Present disclose provides message forwarding methods and device.In the disclosure, mapping relations between SID and LDP label are established by LDP agent node dynamic, even if finally realizing on path between two SR nodes, there are LDP nodes, also can mapping relations between SID and LDP label based on the foundation, realize the business access of two SR nodes.

Description

Message forwarding method and device
Technical field
This disclosure relates to network communication technology, in particular to message forwarding method and device.
Background technique
(SR:Segment Routing) agreement and tag distribution protocol (LDP:Label Distribution are routed in section Protocol) in the networking mixed, if there are LDP node on path between two SR nodes, according to current SR agreement, It is that can not to interact the SR node of MPLS vpn service here be to support SR agreement but do not support the section of LDP between the two SR nodes Point, LDP node here are the node supported LDP but do not support SR agreement.
Summary of the invention
Present disclose provides message forwarding methods and device, with there are LDP nodes on the path between two SR nodes Under the premise of realize the business accesses of two SR nodes.
Technical solution provided by the present disclosure includes:
A kind of message forwarding method, which is characterized in that this method is applied to support section routing SR agreement and supports label point Send out the network node of agreement LDP, comprising:
Establish the mapping relations between segment identification SID and LDP label according to received protocol message dynamic, the SID with IP address prefix is corresponding, and the IP address prefix is the prefix of the IP address of the first SR node;The first SR node is to support Any node of SR agreement;
Receive the service message for being sent to the first SR node;
If the service message is LDP by the next-hop of the SR interface and the service message that enable SR agreement Node, the then SID carried the service message according to the mapping relations replace with the LDP label and according to described LDP label forwarding;
If the service message is second by the next-hop of the LDP interface and the service message that enable LDP SR node or the first SR node, the then LDP label carried the service message according to the mapping relations replace with The SID is simultaneously forwarded according to the SID, the 2nd SR node be support SR agreement and be different from the first SR node its His node.
A kind of apparatus for forwarding message, the device are applied to support section routing SR agreement and support tag distribution protocol LDP's Network node, comprising:
Mapping block is closed for establishing the mapping between segment identification SID and LDP label according to received protocol message dynamic System, the SID is corresponding with IP address prefix, and the IP address prefix is the prefix of the IP address of the first SR node;Described first SR node is any node for supporting SR agreement;
Receiving module, for receiving the service message for being sent to the first SR node;
Forwarding module, for when the service message by enable SR agreement SR interface and the business report When the next-hop of text is LDP node, the SID carried the service message according to the mapping relations replaces with described LDP label is simultaneously forwarded according to the LDP label;When the service message is by enabling the LDP interface of LDP and described When the next-hop of service message is the 2nd SR node or the first SR node, then according to the mapping relations by the service message The LDP label carried replaces with the SID and is forwarded according to the SID, and the 2nd SR node is to support SR association View and other nodes for being different from the first SR node.
As can be seen from the above technical solutions, it in the disclosure, is established between SID and LDP label by LDP agent node dynamic Mapping relations, even if finally realizing on the path between two SR nodes, there are LDP nodes, also can be based on the foundation Mapping relations between SID and LDP label realize the business access of two SR nodes.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows the implementation for meeting the disclosure Example, and together with specification for explaining the principles of this disclosure.
Fig. 1 is SR agreement and LDP mixed networking schematic diagram;
Fig. 2 is the method flow diagram that the disclosure provides;
Fig. 3 is the embodiment networking schematic diagram that the disclosure provides;
Fig. 4 is the apparatus structure schematic diagram that the disclosure provides;
Fig. 5 is the hardware structural diagram for Fig. 4 shown device that the disclosure provides.
Specific embodiment
In order to keep the embodiment of the present disclosure clearer, first the technical term that the embodiment of the present disclosure is related to is retouched below It states:
SR, using source path selection mechanism, in advance the packaged path of source node to be passed through section segment identification (SID: Segment Identifier), when the node on path receives message, message is forwarded according to the SID that message encapsulates. In addition to source node, other node Maintenance free path status.
The segment type of SR has the following two kinds:
Prefix types section (Prefix Segment): purpose IP address prefix assignment SID is pressed.
Adjacency type section (Adjacency Segment): different SID are distributed for different neighbours by adjacent.
It in an mpls network, will when the SR based on MPLS (also referred to as MPLS sections of routing) is referred in an mpls network using SR Label is forwarded message as SID.When being forwarded using label as SID to message, message paths traversed is known as Label-switched path (SR LSP:Segment Routing Label Switched Paths) based on section routing.
In the networking that SR agreement and LDP are mixed, if there are LDP nodes on path between two SR nodes, this two It is that can not interact MPLS vpn service between a SR node.Such as in mixed networking shown in FIG. 1, node R 1, R6 support SR association It discussing but does not support LDP (R1, R2 can be described as SR node), R2, R5 had not only supported SR but also had supported LDP (R2, R5 can be described as boundary node), R3, R4 support LDP but do not support SR agreement (R3, R4 can be described as LDP node).Exist on path between R1, R6 and does not support SR but R3, the R4 for supporting LDP, are that can not interact MPLS vpn service according to current agreement, between R1, R6.
In order to which there are the business for realizing two SR nodes under the premise of LDP node on the path between two SR nodes Access, present disclose provides processes as shown in Figure 2.
Referring to fig. 2, Fig. 2 is the method flow diagram that the disclosure provides.The process is applied to support SR agreement and supports LDP's Network node (also referred to as LDP agent node claims LDP agent node below).As shown in Fig. 2, the process can comprise the following steps that
Step 201, LDP agent node is established the mapping between SID and LDP label according to received protocol message dynamic and is closed System, the SID is corresponding with IP address prefix, and the IP address prefix is the prefix of the IP address of the first SR node.
In one example, protocol message here can be SR Interior Gateway Protocol (IGP:Interior Gateway Protocol) message.It can hereafter specifically describe and how according to received SR IGP message to establish reflecting between SID and LDP label Penetrate relationship.
In another example, protocol message here can map (Mapping) message for LDP.Here LDP mapping disappears Breath carries IP address prefix and LDP label.LDP mapping message can be hereafter introduced, wouldn't be repeated here.
Step 202, the service message for being sent to the first SR node is received, when the service message is by enabling SR agreement When the next-hop of SR interface and the service message is LDP node, then according to the mapping relations by the service message The SID carried replaces with the LDP label and forwards according to the LDP label, when the service message is by enabling When the next-hop of the LDP interface of LDP and the service message is the 2nd SR node or the first SR node, then according to institute The LDP label that mapping relations carry the service message is stated to replace with the SID and be forwarded according to the SID.
Here, the first SR node, the 2nd SR node are to support two of SR agreement different nodes, the application be only convenient for The name for describing and carrying out, is not intended to limit.
By process shown in above-mentioned Fig. 2 can be seen that in the disclosure, by above-mentioned LDP agent node dynamic establish SID with Mapping relations between LDP label, then when the reception of LDP agent node is sent to the service message of the first SR node, if the business Message by enable SR agreement SR interface and the service message next-hop be LDP node when, then according to mapping The SID that relationship carries the service message replaces with the LDP label and forwards according to the LDP label, if described Service message is the 2nd SR node or first by the next-hop of the LDP interface and the service message that enable LDP SR node constantly, then the LDP label carried the service message according to the mapping relations replace with the SID and according to It is forwarded according to the SID, even if finally realizing on the path between two SR nodes, there are LDP nodes, are based on two SR The mapping relations between SID and LDP label that LDP agent node dynamic on path between node is established, are also able to achieve this The business access of two SR nodes.
Citing description is carried out to process shown in Fig. 2 below by a specific embodiment:
Referring to Fig. 3, Fig. 3 is the embodiment networking diagram that the disclosure provides.As shown in figure 3, the embodiment networking mainly includes 6 nodes below: R31 to R37.Wherein, R31, R36 support SR agreement, can be described as SR node, and R33, R34 support LDP, referred to as LDP node, R32, R35 not only supported SR agreement but also supported LDP, referred to as LDP agent node.R32, R35 as LDP agent node, Enabled LDP agent functionality.
By taking R36 accesses R31 as an example, if the path of R36 access R31 is as follows:
R36->R35->R34->R33->R32->R31。
It is then based on above-mentioned path, the SR lsp tunnel of R36 to R31 can be established, to realize that R36 is visited by the SR lsp tunnel Ask R31.
The SR lsp tunnel for how establishing R36 to R31 is described below:
SID corresponding with specified IP address prefix is configured on R31.Here, the IP address for specifying IP address prefix to refer to R31 Prefix, for ease of description, specified IP address prefix can be denoted as prefix 300.The specified corresponding SID of IP address prefix can be denoted as SID301。
Prefix 300 and SID301 are carried and are sent in SR IGP message by local each interface by R31.
R32 is connect with R31, can receive SR IGP message.
R32 receives SR IGP message by enabling the interface (referred to as SR interface, be denoted as Port2_1) of SR agreement, wound Build the SR lsp tunnel from this R32 to R31.Later, R32 can send service message to R31 by the SR lsp tunnel.
R32 enables LDP agent functionality, find it is local exist enable the interface of LDP (referred to as LDP interface, be denoted as Port2_3), then LDP label corresponding with the prefix 300 carried in SR IGP message is generated.Here, R32 is according to preset LDP Labeling algorithm generates only one LDP label corresponding with prefix 300.For ease of description, LDP label here is denoted as LDP mark Label 302.
R32 establishes the mapping relations between SID301 and LDP label 302.
R32 replicates SR IGP message, obtains two parts of SR IGP message of corresponding Port2_3.R32 is by a copy of it SR IGP Message is sent by Port2_3, and is generated LDP mapping message according to another SR IGP message and forwarded by Port2_3, LDP mapping message includes prefix 300, LDP label 302.In one example, LDP mapping message is generated according to SR IGP message Can include: the SID301 in SR IGP message is replaced with into LDP label 302 and obtains LDP mapping message.
R33 is connect by enabling the interface (LDP interface, be denoted as Port3_2) of LDP with R32, can receive SR IGP Message can also receive LDP mapping message.
When R33 receives SR IGP message, due to SR IGP message be in existing IGP message by increase TLV or The form of sub TLV obtains, and R33 supports LDP, IGP, being capable of transparent transmission SR IGP message.
R33 supports LDP, also can transparent transmission LDP mapping message.
R34 is connect by enabling the interface (LDP interface, be denoted as Port4_3) of LDP with R33, can receive SR IGP Message can also receive LDP mapping message.
It is similar with above-mentioned R33 when R34 receives SR IGP message, it being capable of transparent transmission SR IGP message.
R34 supports LDP, also can transparent transmission LDP mapping message.
R35 receives SR IGP message by enabling the interface (referred to as LDP interface, be denoted as Port5_4) of LDP, creation SR lsp tunnel from this R35 to R31.Later, R35 can send service message to R31 by the SR lsp tunnel.
R35 enables LDP agent functionality, when the interface (referred to as LDP interface, be denoted as Port5_4) by enabling LDP connects SR IGP message is received, then searches LDP label 302 corresponding with the prefix 300 that SR IGP message carries and is built if finding The mapping relations between SID301 and LDP label 302 that vertical SR IGP message carries store SR IGP and disappear if not finding Cease the corresponding relationship between the prefix 300 carried and SID301.
R35 continues through other each interfaces (including LDP interface in addition to the SR interface for receiving the SR IGP message With SR interface) the forwarding SR IGP message.
R35 receives LDP mapping message by enabling the interface (referred to as LDP interface, be denoted as Port5_4) of LDP.
R35 enables LDP agent functionality, when the interface (referred to as LDP interface, be denoted as Port5_4) by enabling LDP connects LDP mapping message is received, then searches SID301 corresponding with the prefix 300 that LDP mapping message carries and is established if finding The mapping relations between LDP label 302 that SID301 and LDP mapping message carries store LDP mapping and disappear if not finding Cease the corresponding relationship between the prefix 300 carried and LDP label 302.
R35 checks local whether enable there is also other in addition to the LDP interface for receiving the LDP mapping message The LDP interface of LDP, if so, the LDP mapping message is forwarded by other LDP interfaces for enabling LDP, if it is not, then stopping turning Send out LDP mapping message described.In Fig. 3, R35 enables the LDP interface of LDP there is no other, then so far, R35 is no longer forwarded LDP mapping message.
It should be noted that above-mentioned R35 time for receiving SR IGP message and LDP mapping message, there is no successively suitable Sequence.
R36 receives SR IGP message by enabling the interface (referred to as SR interface, be denoted as Port6_5) of SR agreement, wound Build the SR lsp tunnel from this R36 to R31.Later, R36 can send service message to R31 by the SR lsp tunnel.It retouches below State how R36 passes through the SR lsp tunnel to R31 transmission service message:
R36 encapsulates SID301 on the message for be sent to R31, and sends to R35.Here, the message note of SID301 is encapsulated For message a1.
R35 receives message a1 by enabling the interface (SR interface, be denoted as Port5_6) of SR agreement.
R35 has found that next-hop is LDP node, that is, R34, then the SID301 according to message a1 encapsulation is found has with SID301 There is the LDP label 302 of mapping relations.
The message a1 SID301 encapsulated is revised as LDP label 302 by R35, and is forwarded to R34.Message a1 at this time can remember For message a2.
R34 receives message a2 by enabling the interface (LDP interface, be denoted as Port4_5) of LDP, and passes through R33.
R33 receives message a2 by enabling the interface (LDP interface, be denoted as Port3_4) of LDP, and passes through R32.
R32 receives message a2 by enabling the interface (SR interface, be denoted as Port2_3) of SR agreement.
R32 has found that next-hop is SR node, that is, R31, then the LDP label 302 according to message a2 encapsulation is found marks with LDP SID301 of the label 302 with mapping relations.
The LDP label 302 that message a2 is encapsulated is revised as SID301 by R32, and is forwarded to R31.Finally R36 is realized to pass through SR LSP normally carries out business access to R31.
So far, the description of embodiment is completed.
It can be seen from above-described embodiment that in the disclosure, establishing SID and LDP according to received protocol message dynamic Mapping relations between label are mainly according to protocol message.
In one example, when protocol message is SR IGP message, if SR IGP message is by enabling SR agreement SR interface, then establish the mapping between SID and LDP label according to received protocol message dynamic in above-mentioned steps 201 Relationship can include:
LDP label corresponding with the IP address prefix that the SR IGP message carries is generated, the SID and institute are established State the mapping relations between LDP label.
In this example, it establishes after the mapping relations between the SID and the LDP label, can further comprise: duplication Two parts of SR IGP message corresponding with the interface of LDP is locally enabled, a copy of it SR IGP message is sent out by the interface It send, and generates LDP mapping message according to another SR IGP message and forwarded by the interface, the LDP mapping message packet Include the IP address prefix, the LDP label.
In another example, when protocol message is SR IGP message, if SR IGP message is by enabling LDP LDP interface is then established the mapping between SID and LDP label according to received protocol message dynamic in above-mentioned steps 201 and is closed System can include: search LDP label corresponding with the IP address prefix that the SR IGP message carries;If finding, build Found the mapping relations between the SID and the LDP label.
In this example, if not finding the corresponding LDP label of the IP address prefix, further comprise: described in storage Corresponding relationship between the IP address prefix that SR IGP message carries and the SID;By disappearing except receiving the SR IGP Other each interfaces except the SR interface of breath forward the SR IGP message.
In another example, when protocol message is LDP mapping message, if LDP mapping message is by enabling LDP LDP interface, then the mapping relations established between SID and LDP label according to received protocol message dynamic include: to search SID corresponding with the IP address prefix that the LDP mapping message carries;If finding, establishes the SID and LDP and mark Mapping relations between label
In this example, if not finding the corresponding SID of the IP address prefix, further comprise: storing the LDP and reflect Penetrate the corresponding relationship between the IP address prefix and the LDP label of message carrying;Check locally whether there is also except receipts Other except to the LDP interface of the LDP mapping message enable the LDP interface of LDP, if so, enabling LDP by other LDP interface forward the LDP mapping message.
The method provided above the disclosure is described, and the device provided below the disclosure is described:
Referring to fig. 4, Fig. 4 is the structure drawing of device that the disclosure provides.The device is applied to support SR agreement and supports LDP's Network node, comprising:
Mapping block is closed for establishing the mapping between segment identification SID and LDP label according to received protocol message dynamic System, the SID is corresponding with IP address prefix, and the IP address prefix is the prefix of the IP address of the first SR node;Described first SR node is any node for supporting SR agreement;
Receiving module, for receiving the service message for being sent to the first SR node;
Forwarding module, for when the service message by enable SR agreement SR interface and the business report When the next-hop of text is LDP node, the SID carried the service message according to the mapping relations replaces with described LDP label is simultaneously forwarded according to the LDP label;When the service message is by enabling the LDP interface of LDP and described When the next-hop of service message is the 2nd SR node or the first SR node, then according to the mapping relations by the service message The LDP label carried replaces with the SID and is forwarded according to the SID, and the 2nd SR node is to support SR association View and other nodes for being different from the first SR node.
In one example, the mapping block establishes segment identification SID and LDP label according to received protocol message dynamic Between mapping relations include: SR interface SR Interior Gateway Protocol IGP message by enabling SR agreement, SR IGP disappears Breath carries the IP address prefix and the SID;Generate corresponding with IP address prefix LDP label, establish the SID and Mapping relations between the LDP label;
In this example, the mapping block further replicates two part SR IGP corresponding with the interface of LDP is locally enabled Message triggers the forwarding module by the interface and sends a copy of it SR IGP message, and disappears according to another SR IGP Breath generates LDP mapping message and the triggering forwarding module forwards the LDP mapping message by the interface, and the LDP reflects Penetrating message includes the IP address prefix, the LDP label.
In one example, the mapping block establishes segment identification SID and LDP label according to received protocol message dynamic Between mapping relations include:
By enabling the LDP interface SR IGP message of LDP, the SR IGP message carries the IP address prefix With the SID;Search LDP label corresponding with the IP address prefix;If finding, establishes the SID and LDP and mark Mapping relations between label;
In this example, the mapping block is further when finding the corresponding LDP label of the IP address prefix, into One step stores the corresponding relationship between the IP address prefix that the SR IGP message carries and the SID;Triggering is described to be turned It sends out module and forwards the SR IGP message by other each interfaces in addition to the SR interface for receiving the SR IGP message.
In one example, the mapping block establishes segment identification SID and LDP label according to received protocol message dynamic Between mapping relations include: LDP interface LDP mapping message by enabling LDP, the LDP mapping message carries The IP address prefix and the LDP label;Search SID corresponding with the IP address prefix;If finding, described in foundation Mapping relations between SID and the LDP label;
In this example, the mapping block is not further when finding the corresponding SID of the IP address prefix, further Store the corresponding relationship between the IP address prefix and the LDP label that the LDP mapping message carries;Checking is locally Other no there is also in addition to the LDP interface for receiving the LDP mapping message enable the LDP interface of LDP, if so, triggering The forwarding module forwards the LDP mapping message by other LDP interfaces for enabling LDP.
So far, the structure description of Fig. 4 shown device is completed.
The embodiment of the present disclosure additionally provides the hardware structure diagram of Fig. 5 shown device.In the embodiments of the present disclosure, shown in Fig. 5 The hardware configuration of device can include: machine readable storage medium and processor, in which:
Machine readable storage medium: store instruction code.Here the message that instruction code provides for realizing the disclosure Retransmission method.
Processor: communicating with machine readable storage medium, read and execute stored in machine readable storage medium it is described Instruction code.
So far, the hardware structure diagram of Fig. 5 shown device is completed.
In the embodiments of the present disclosure, machine readable storage medium can be any electronics, magnetism, optics or other physics and deposit Storage device may include or store information, such as executable instruction, data, etc..For example, machine readable storage medium may is that 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 hard disk, any kind of storage dish (such as CD, dvd) or similar storage are situated between Matter or their combination.
Device, module or the unit that above-described embodiment illustrates can specifically be realized, Huo Zheyou by computer chip or entity Product with certain function is realized.A kind of typically to realize that equipment is computer, the concrete form of computer can be a People's computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media player, navigation It is any several in equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment The combination of kind equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when open.
It should be understood by those skilled in the art that, embodiment of the disclosure can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the disclosure Apply the form of example.Moreover, it wherein includes computer usable program code that the embodiment of the present disclosure, which can be used in one or more, The computer implemented in computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of program product.
The disclosure is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present disclosure Figure and/or block diagram describe.It is generally understood that being realized by computer program instructions each in flowchart and/or the block diagram The combination of process and/or box in process and/or box and flowchart and/or the block diagram.It can provide these computer journeys Sequence instruct to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices processor with A machine is generated, so that the instruction generation executed by computer or the processor of other programmable data processing devices is used for Realize the dress for the function of specifying in one or more flows of the flowchart and/or one or more blocks of the block diagram It sets.
Moreover, these computer program instructions also can store be able to guide computer or other programmable datas processing set In standby computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates Manufacture including command device, the command device are realized in one process of flow chart or multiple processes and/or block diagram one The function of being specified in a box or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing devices, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer Or the instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram The step of function of being specified in one box or multiple boxes.
The foregoing is merely the preferred embodiments of the disclosure, not to limit the disclosure, all essences in the disclosure Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of disclosure protection.

Claims (10)

1. a kind of message forwarding method, which is characterized in that this method is applied to support section routing SR agreement and supports label distribution The network node of agreement LDP, comprising:
The mapping relations between segment identification SID and LDP label are established according to received protocol message dynamic, the SID and IP Location prefix is corresponding, and the IP address prefix is the prefix of the IP address of the first SR node;The first SR node is to support SR association Any node of view;
Receive the service message for being sent to the first SR node;
If the service message is LDP section by the next-hop of the SR interface and the service message that enable SR agreement Point, the then SID carried the service message according to the mapping relations replace with the LDP label and according to described LDP label forwarding;
If the service message is the 2nd SR section by the next-hop of the LDP interface and the service message that enable LDP Point or the first SR node, the then LDP label carried the service message according to the mapping relations replace with described SID is simultaneously forwarded according to the SID, and the 2nd SR node is other sections supported SR agreement and be different from the first SR node Point.
2. the method according to claim 1, wherein described establish segment identification according to received protocol message dynamic Mapping relations between SID and LDP label include:
By enabling the SR interface SR Interior Gateway Protocol IGP message of SR agreement, SR IGP message is with carrying the IP Location prefix and the SID;
LDP label corresponding with the IP address prefix is generated, the mapping relations between the SID and the LDP label are established.
3. according to the method described in claim 2, it is characterized in that, this method further comprises:
Duplication two parts of SR IGP message corresponding with the interface of LDP is locally enabled, a copy of it SRIGP message is passed through described Interface is sent, and is generated LDP mapping message according to another SR IGP message and forwarded by the interface, the LDP mapping Message includes the IP address prefix, the LDP label.
4. the method according to claim 1, wherein described establish segment identification according to received protocol message dynamic Mapping relations between SID and LDP label include:
By enabling the LDP interface SR IGP message of LDP, the SR IGP message carries the IP address prefix and institute State SID;
Search LDP label corresponding with the IP address prefix;
If finding, the mapping relations between the SID and the LDP label are established.
5. according to the method described in claim 4, it is characterized in that, if not finding the corresponding LDP mark of the IP address prefix Label then further comprise:
Store the corresponding relationship between the IP address prefix and the SID that the SR IGP message carries;
The SR IGP message is forwarded by other each interfaces in addition to the SR interface for receiving the SR IGP message.
6. the method according to claim 1, wherein described establish segment identification according to received protocol message dynamic Mapping relations between SID and LDP label include:
By enabling the LDP interface LDP mapping message of LDP, the LDP mapping message carry the IP address prefix and The LDP label;
Search SID corresponding with the IP address prefix;
If finding, the mapping relations between the SID and the LDP label are established.
7. according to the method described in claim 6, it is characterized in that, if not finding the corresponding SID of the IP address prefix, Further comprise:
Store the corresponding relationship between the IP address prefix and the LDP label that the LDP mapping message carries;
Check local whether there is also other in addition to the LDP interface for receiving the LDP mapping message enable the LDP of LDP Interface, if so, forwarding the LDP mapping message by other LDP interfaces for enabling LDP.
8. a kind of apparatus for forwarding message, which is characterized in that the device is applied to support section routing SR agreement and supports label distribution The network node of agreement LDP, comprising:
Mapping block, for establishing the mapping relations between segment identification SID and LDP label according to received protocol message dynamic, The SID is corresponding with IP address prefix, and the IP address prefix is the prefix of the IP address of the first SR node;The first SR section Point is any node for supporting SR agreement;
Receiving module, for receiving the service message for being sent to the first SR node;
Forwarding module, for when the service message by enable SR agreement SR interface and the service message When next-hop is LDP node, the SID for carrying the service message according to the mapping relations replaces with the LDP mark It signs and is forwarded according to the LDP label;When the service message by enable LDP LDP interface and the business report When the next-hop of text is the 2nd SR node or the first SR node, then the service message is carried according to the mapping relations The LDP label replaces with the SID and is forwarded according to the SID, and the 2nd SR node is to support SR agreement and not It is same as other nodes of the first SR node.
9. device according to claim 8, which is characterized in that the mapping block is built according to received protocol message dynamic Mapping relations between vertical segment identification SID and LDP label include: the SR interface SR internal gateway by enabling SR agreement Agreement IGP message, SR IGP message carry the IP address prefix and the SID;It generates corresponding with the IP address prefix LDP label establishes the mapping relations between the SID and the LDP label;
The mapping block, which is further replicated, enables the corresponding two parts of SR IGP message of the interface of LDP with local, described in triggering Forwarding module sends a copy of it SR IGP message by the interface, and generates LDP mapping according to another SR IGP message Message and the triggering forwarding module pass through the interface and forward the LDP mapping message, and the LDP mapping message includes described IP address prefix, the LDP label.
10. device according to claim 8, which is characterized in that the mapping block is according to received protocol message dynamic The mapping relations established between segment identification SID and LDP label include:
By enabling the LDP interface SR IGP message of LDP, the SR IGP message carries the IP address prefix and institute State SID;Search LDP label corresponding with the IP address prefix;If finding, establish the SID and the LDP label it Between mapping relations;
The mapping block is not further when finding the corresponding LDP label of the IP address prefix, further described in storage Corresponding relationship between the IP address prefix that SR IGP message carries and the SID;The forwarding module is triggered by removing It receives other each interfaces except the SR interface of the SR IGP message and forwards the SR IGP message;And/or
The mapping block establishes the mapping relations packet between segment identification SID and LDP label according to received protocol message dynamic Include: the LDP interface LDP mapping message by enabling LDP, the LDP mapping message carry the IP address prefix and The LDP label;Search SID corresponding with the IP address prefix;If finding, the SID and the LDP label are established Between mapping relations;
The mapping block further when not finding the corresponding SID of the IP address prefix, further stores the LDP and reflects Penetrate the corresponding relationship between the IP address prefix and the LDP label of message carrying;Check locally whether there is also except receipts Other except to the LDP interface of the LDP mapping message enable the LDP interface of LDP, if so, triggering the forwarding module The LDP mapping message is forwarded by other LDP interfaces for enabling LDP.
CN201811375140.1A 2018-11-19 2018-11-19 Message forwarding method and device Active CN109347740B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811375140.1A CN109347740B (en) 2018-11-19 2018-11-19 Message forwarding method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811375140.1A CN109347740B (en) 2018-11-19 2018-11-19 Message forwarding method and device

Publications (2)

Publication Number Publication Date
CN109347740A true CN109347740A (en) 2019-02-15
CN109347740B CN109347740B (en) 2022-03-01

Family

ID=65316126

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811375140.1A Active CN109347740B (en) 2018-11-19 2018-11-19 Message forwarding method and device

Country Status (1)

Country Link
CN (1) CN109347740B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111371686A (en) * 2020-03-19 2020-07-03 刘奇峰 Message forwarding method and device
CN112202671A (en) * 2020-09-09 2021-01-08 中盈优创资讯科技有限公司 Method and device for realizing service arrangement through proxy
CN112311673A (en) * 2019-07-24 2021-02-02 瞻博网络公司 Using and processing per-slice segment identifiers in networks employing segment routing
CN112565077A (en) * 2019-09-25 2021-03-26 北京华为数字技术有限公司 Method, device and system for determining mapping relation between routing prefix and segment identifier
CN113645136A (en) * 2019-03-11 2021-11-12 华为技术有限公司 Method, network node and network system for forwarding message in network
WO2024001205A1 (en) * 2022-06-29 2024-01-04 中兴通讯股份有限公司 Traffic message processing method and device, storage medium, and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014055903A1 (en) * 2012-10-05 2014-04-10 Cisco Technology, Inc. Mpls segment-routing
US20140269698A1 (en) * 2013-03-15 2014-09-18 Cisco Technology, Inc. Label distribution protocol over segment routing
CN104980350A (en) * 2014-04-02 2015-10-14 华为技术有限公司 Message processing method and label switching router
CN105210336A (en) * 2013-05-17 2015-12-30 思科技术公司 Segment routing mapping server for LDP/SR interoperability
CN105450437A (en) * 2014-09-19 2016-03-30 中兴通讯股份有限公司 SID allocation method and SR node
CN105871722A (en) * 2015-01-19 2016-08-17 中兴通讯股份有限公司 Tag structure and tag message forwarding method and device
CN106487686A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 SR forwarding entry generation method and device
CN106656781A (en) * 2015-11-02 2017-05-10 中兴通讯股份有限公司 Message transmission method, apparatus and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014055903A1 (en) * 2012-10-05 2014-04-10 Cisco Technology, Inc. Mpls segment-routing
US20140269698A1 (en) * 2013-03-15 2014-09-18 Cisco Technology, Inc. Label distribution protocol over segment routing
CN105075195A (en) * 2013-03-15 2015-11-18 思科技术公司 Label distribution protocol over segment routing
US20170019330A1 (en) * 2013-03-15 2017-01-19 Cisco Technology, Inc. Segment routing into a label distribution protocol domain
CN105210336A (en) * 2013-05-17 2015-12-30 思科技术公司 Segment routing mapping server for LDP/SR interoperability
CN104980350A (en) * 2014-04-02 2015-10-14 华为技术有限公司 Message processing method and label switching router
CN105450437A (en) * 2014-09-19 2016-03-30 中兴通讯股份有限公司 SID allocation method and SR node
CN105871722A (en) * 2015-01-19 2016-08-17 中兴通讯股份有限公司 Tag structure and tag message forwarding method and device
CN106487686A (en) * 2015-08-28 2017-03-08 中兴通讯股份有限公司 SR forwarding entry generation method and device
CN106656781A (en) * 2015-11-02 2017-05-10 中兴通讯股份有限公司 Message transmission method, apparatus and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李吉良: "MPLS网络核心交换设备――标签交换路由器", 《无线电通信技术》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113645136A (en) * 2019-03-11 2021-11-12 华为技术有限公司 Method, network node and network system for forwarding message in network
CN113645136B (en) * 2019-03-11 2022-12-06 华为技术有限公司 Method, network node and network system for forwarding message in network
CN112311673A (en) * 2019-07-24 2021-02-02 瞻博网络公司 Using and processing per-slice segment identifiers in networks employing segment routing
CN112565077A (en) * 2019-09-25 2021-03-26 北京华为数字技术有限公司 Method, device and system for determining mapping relation between routing prefix and segment identifier
WO2021057530A1 (en) * 2019-09-25 2021-04-01 华为技术有限公司 Method, apparatus and system for determining mapping relationship between routing prefix and segment identification
CN111371686A (en) * 2020-03-19 2020-07-03 刘奇峰 Message forwarding method and device
CN111371686B (en) * 2020-03-19 2023-01-24 刘奇峰 Message forwarding method and device
CN112202671A (en) * 2020-09-09 2021-01-08 中盈优创资讯科技有限公司 Method and device for realizing service arrangement through proxy
CN112202671B (en) * 2020-09-09 2022-04-08 中盈优创资讯科技有限公司 Method and device for realizing service arrangement through proxy
WO2024001205A1 (en) * 2022-06-29 2024-01-04 中兴通讯股份有限公司 Traffic message processing method and device, storage medium, and electronic device

Also Published As

Publication number Publication date
CN109347740B (en) 2022-03-01

Similar Documents

Publication Publication Date Title
CN109347740A (en) Message forwarding method and device
EP4024785A1 (en) Computing power routing method and apparatus
CN111682996B (en) Method for forwarding message in network, network node and network system
CN108259299B (en) Forwarding table item generating method and device and machine-readable storage medium
CN112019433B (en) Message forwarding method and device
CN110430076B (en) Route management method and device
CN107547242B (en) The acquisition methods and device of VM configuration information
JP6633775B2 (en) Packet transmission
CN109412926B (en) Tunnel establishment method and device
CN108259347A (en) A kind of message transmitting method and device
CN102594657B (en) A kind of route iteration method and route exchange device
CN109379241A (en) A kind of routing information determines method and device
CN108965092A (en) A kind of data message transmission method and device
CN113411259A (en) Message forwarding method, device and equipment
CN109412949A (en) A kind of data message transmission method and device
CN111147382B (en) Message forwarding method and device
CN113301667A (en) Message forwarding method and device
CN107547386B (en) Message forwarding method and device
CN102904814A (en) Data transmission method, source PE (Provider Edge router), object PE and data transmission system
CN109039903A (en) Route determining methods, device and machine readable storage medium
CN111147376B (en) Route updating method, device, equipment and medium
CN112448876B (en) Method and device for realizing message transmission
CN111130978B (en) Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN112272144A (en) Message forwarding method and device
CN109286565B (en) Message forwarding method and device

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