CN101510845B - Method and apparatus for forwarding label - Google Patents

Method and apparatus for forwarding label Download PDF

Info

Publication number
CN101510845B
CN101510845B CN200910080725A CN200910080725A CN101510845B CN 101510845 B CN101510845 B CN 101510845B CN 200910080725 A CN200910080725 A CN 200910080725A CN 200910080725 A CN200910080725 A CN 200910080725A CN 101510845 B CN101510845 B CN 101510845B
Authority
CN
China
Prior art keywords
label
message
forwarding
eject
behavior
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.)
Active
Application number
CN200910080725A
Other languages
Chinese (zh)
Other versions
CN101510845A (en
Inventor
欧阳熙羽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Zhigu Tech Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN200910080725A priority Critical patent/CN101510845B/en
Publication of CN101510845A publication Critical patent/CN101510845A/en
Application granted granted Critical
Publication of CN101510845B publication Critical patent/CN101510845B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a label retransmission method and a device thereof. The method comprises the following steps: a first layer of label is received as a message of a first label; a following data unit adjacent to the first label is taken as a label or an IP message; and the first label is popped up and message following the first label popped up is transmitted to a loopback port. The method is used for meeting the requirement of processing message of a plurality of labels and a single label at the same time when an exchanger cannot support PHP.

Description

A kind of label forwarding method and device
Technical field
The present invention relates to a kind of label forwarding method and device, belong to data communication technology field.
Background technology
Multiprotocol label switching (MultiProtocol Label Switching is called for short MPLS) is a kind of system that is used for rapid data packet switch and route, and it provides abilities such as target, route, forwarding and exchange for network traffic data.MPLS supports the multiple network layer protocol; Internet protocol (Internet Protocol for example; Abbreviation IP), Internet protocol sixth version (Internet Protocolversion 6; Be called for short IPv6), internet packet exchange agreement (Internetwork PacketExchange protocol is called for short IPX) etc., and compatibility comprises asynchronous transfer mode (Asynchronous Transfer Mode; Abbreviation ATM), frame relay, Ethernet, point-to-point protocol (Point to Point Protocol is called for short PPP) etc. are in interior multiple link-layer technologies; So-called label exchange is enclosed label to message exactly, transmits according to label.
Label Forwarding Information Base (Incoming Label Map, be called for short ILM) is used for that each is gone into label and is mapped to a series of next redirect and sends out entity (in general also being switch or router).The MPLS message that ILM is mainly used in the tape label of receiving carries out forwarding inquiries.When switch judges that the message of receiving is the MPLS message, will go inquiry tag to transmit, where mail to confirm next jumping.
Routing table is the table of storing on router or the three-tier switch equipment, has the path that arrives the particular network terminal in this table.Each IP datagram can search out an optimal transmission paths according to routing table, and these IP data are sent to the purpose website effectively.When switch judges that the message of receiving is the IP message, will remove table of query and routing.
The 2nd ricochet reciprocal goes out (Penultimate Hop Popping, abbreviation PHP) and is meant when the last two jump switch is received the message that has label, searches the ILM table, ejects one deck label.
In the MPLS core network, can realize the tape label message forwarding.The entrance boundary switch of MPLS network is responsible for being encapsulated as the IP message message of tape label; This message can be transmitted through tag switching in the MPLS network; On the outlet edge switch, need to remove label packet, be forwarded to the IP message in the common user network.In the application of (VirtualPrivate Network is called for short VPN) of 3 layer virtual private networks, the IP message can be with two-layer label on the access device, and one deck is the public network label of provider network, and another layer is the private network tags of VPN network.If support the PHP technology, on the equipment of the last two jump, can eject one deck public network label like this, on outlet device, only need eject one deck label then and get final product, carry out the IP message forwarding at last.In the MPLS network, the forwarding of label packet is accomplished through Label Forwarding Information Base, and on outlet device, needs to use routing table to realize the IP message forwarding.
Fig. 1 is the forwarding process of clear MPLS network for example:
CE is ustomer premises access equipment (Customer Edge is called for short CE) among the figure, and PE is provider edge equipment (Provider Edge is called for short PE).
(Site 1 for website 1; The IP address is 1.1.1.1) send the IP datagram literary composition that purpose IP address is 1.1.1.2; Message arrives PE1 through the CE1 as access device; On PE1,, understand two-layer label on the outer package of the purpose IP address of IP message: a public network label Layer1 and a private network tags Layer2 according to the MPLS/VPN network of setting up.Behind the IP message process PE1 equipment, will be packaged into a MPLS message like this, on first equipment P1, search the ILM table, and delete outer field Layer1 and encapsulate a new public network label Layer3, arrive on second the P equipment according to Layer1; Because second equipment P2 is the last two jump equipment in this MPLS network, will eject outer field public network label behind the message process equipment P2; Arrival equipment PE2's still is the MPLS message, but one deck label: Layer2 is only arranged; Eject label Layer2 at equipment PE2 according to ILM table, and find out next according to the purpose IP table of query and routing in the IP message and jump and be therefore to be transmitted to CE2 to this IP message by CE2, message arrives website 2 (Site2) at last
Modular switch is made up of administration module and business module.Generally comprise a main management module and an administration module that is used for redundancy backup, and several business modules, as shown in Figure 2.
Wherein the path of exchanges data possibly be following several kinds:
Business module 1 → business module 1
Business module 1 → administration module → business module 2
Business module 1 → administration module CPU
Business module 1 → abandon
Inner at modular switch; The forwarding of data message is no longer controlled (Media Access Control according to the purpose media interviews of message; Be called for short MAC) address; Purpose IP address or label value, but module id of application target (ID) and destination interface sign (ID) are accomplished message forwarding.The form of internal data is as shown in Figure 3.
When business module was come in, according to target MAC (Media Access Control) address, purpose IP address or label value were searched mac address table at data message, and routing table or Label Forwarding Information Base add purpose module I D and destination interface ID number to data message.If the purpose module I is for D number the ID of this business module, then directly forward according to the destination slogan; If the purpose module I is not for D number this business module ID, then to transmit through the administration module relaying.When on this business module, transmitting, if message need send CPU to handle, then destination interface ID correspondence is exactly actual cpu port; If message need abandon, then destination interface ID number is a non-existent black hole port, has realized abandoning of message like this; If message need send to other physical ports on this business module, then destination interface ID number is other physical port corresponding port ID number.
In the network of having disposed VPN,, all can encapsulate the privately owned label of last layer, the public network label that can be used on backbone network, transmitting with last layer more then, the just label of service provider in order in network, to hide the information of privately owned VPN network.In the MPLS network of supporting PHP, owing on the switch of the last two jump, ejected the public network label, egress switch just only needs to eject one deck private network tags like this, can E-Packet according to purpose IP address.But under the situation of not supporting PHP, for example in the environment of disposing MPLS service quality (Quality of Service, be called for short QoS), the QoS information that outlet device need carry according to outer layer label just can not be supported PHP in this case.This moment, following problems may be encountered on egress switch:
Situation 1: switch is during as the outlet device in 3 layers of VPN network environment (like the PE2 equipment in the CE1-PE1-P1-P2-Pe2-CE2 topology among Fig. 1); To carrying the message of two-layer label; Need to eject two-layer label; Promptly eject the public network label earlier, eject private network tags again, E-Packet according to purpose IP address then;
Situation 2: switch is during as the outlet device (like the PE2 equipment in the PE1-P1-P2-Pe2 topology among Fig. 1) of a common MPLS network; Need to handle the message that only carries one deck public network label; Promptly eject this public network label, E-Packet according to purpose IP address then.
For same label value, corresponding forwarding behavior can only have a kind of, for example:
A) eject label and look for routing table
B) eject label and look for Label Forwarding Information Base
C) ejecting label directly transmits
Egress switch need be handled situation 1 and 2 two kinds of situation of situation, and can only select a kind of behavior in the practical operation.Promptly, can't accomplish and handle situation 1 and situation 2 described situation simultaneously because the function of current exchange chip limits (label can only be set a kind of behavior).
Label Forwarding Information Base is to be made up of jointly label value and behavior, and in situation 1, the Label Forwarding Information Base that needs to set is:
Label value Behavior
The public network label Eject label, search Label Forwarding Information Base
Private network tags Eject label, then with purpose IP retrieval routing table
In situation 2, the Label Forwarding Information Base that needs to set is:
Label value Behavior
The public network label Eject label, then with purpose IP retrieval routing table
Can find out that the behavior of corresponding public network label can only be specified a kind of.
In situation 1; After carrying the message entering egress switch of public network label and private network tags; According to the coupling behavior of public network searching label Label Forwarding Information Base is to eject the public network label to search Label Forwarding Information Base then, is to eject private network tags table of query and routing again according to the coupling behavior of privately owned label lookup Label Forwarding Information Base more afterwards; In situation 2, the coupling behavior is to eject label and then table of query and routing behind this public network searching label Label Forwarding Information Base, promptly only need eject the public network label, and table of query and routing rather than Label Forwarding Information Base.
The demand that satisfies situation 1 then can not satisfy the demand of situation 2; Because message only carries a public network label in the situation 2; Behind the Label Forwarding Information Base in the public network tag match situation 1; The behavior of finding is to eject label to search Label Forwarding Information Base again, and the public network label is ejected the back message and just do not have label, removes to search Label Forwarding Information Base again and will not abandon this message because there being the label that can mate.
The demand that satisfies situation 2 then can not satisfy the demand of situation 1; Because message carries public network and two labels of private network in the situation 1; Behind the Label Forwarding Information Base in the public network tag match situation 2, the behavior that inquires is to eject label table of query and routing then, behind the ejection public network label; Because message still carries privately owned label; When removing table of query and routing,, so can't inquire correct route according to purpose IP and abandon this message because this message still be MPLS message but not IP message according to the behavior of setting.
Occur if prevent above problem; Just need in on-premise network, make restriction: like two PE equipment among Fig. 1; Can not be simultaneously as the outlet device of 3 layers of VPN network and common MPLS network, but increased device resource so undoubtedly, increased the difficulty of network design.
Summary of the invention
The purpose of this invention is to provide a kind of label forwarding method and device, be used for to support under the situation of PHP, satisfy simultaneously many labels and single processing demands of signing the mark message at switch.
For realizing above-mentioned purpose, the invention provides a kind of label forwarding method, said method comprises:
Receiving the ground floor label is the message of first label; The subsequent data unit adjacent with said first label is second label or IP message; The data cell adjacent with said second label is the IP message;
Eject said first label, and the message that will eject behind said first label sends to the winding port;
When the subsequent data unit adjacent with said first label is second label, receive through the message behind ejection first label of winding port forwarding; Eject second label, and table of query and routing obtain ejecting second label after the corresponding forwarding behavior of message transmit;
When the subsequent data unit adjacent with said first label is the IP message, receive through the message behind ejection first label of winding port forwarding; The corresponding forwarding behavior of message was transmitted after table of query and routing obtained ejecting first label.
To achieve these goals, the present invention also provides a kind of label forwarding device, and said device comprises message receiving element and message process unit;
Said message receiving element is used to receive the message that the ground floor label is first label, and sends to message process unit; The subsequent data unit adjacent with said first label is second label or IP message; The data cell adjacent with said second label is the IP message; And receive through the message behind ejection first label of winding port forwarding;
Said message process unit is connected with the message receiving element, is used to eject said first label, and the message that will eject behind said first label sends to the winding port; And when the subsequent data unit adjacent with said first label is second label, eject second label, and table of query and routing obtain ejecting second label after the corresponding forwarding behavior of message transmit; When the subsequent data unit adjacent with said first label was the IP message, the corresponding forwarding behavior of message was transmitted after table of query and routing obtained ejecting first label.
The port that the present invention only need sacrifice on the switch is used as the winding port that keeps; Can be implemented in and satisfy simultaneously on the egress switch many labels and single processing demands of signing the mark message; Through the winding port realize many labels and single label packet repeatedly Checking label transmit or routing table; Message is correct on egress switch to be ejected label and forwards thereby make, and has broken through deployment MPLS, the restriction when MPLS QoS and 3 layers of VPN application network environment; Increased the flexibility ratio of network design, reduced cost.
Description of drawings
Fig. 1 is the MPLS network diagram
Fig. 2 is the inner forwarding process sketch map of modular switch
Fig. 3 is a modular switch internal data format sketch map
Fig. 4 is a kind of label forwarding method embodiment one sketch map of the present invention
Fig. 5 is a kind of label forwarding method embodiment two sketch mapes of the present invention
Fig. 6 is a kind of label forwarding method embodiment three sketch mapes of the present invention
Fig. 7 is a kind of label forwarding method embodiment four sketch mapes of the present invention
Fig. 8 is the sketch map that message format changes in a kind of label forwarding method embodiment four implementation processes according to the present invention
Fig. 9 is the sketch map that message format changes in a kind of label forwarding method embodiment three implementation processes according to the present invention
Figure 10 can handle the message format sketch map for a kind of label forwarding method of the present invention
Figure 11 is a kind of label forwarding device of the present invention embodiment one sketch map
Figure 12 is a kind of label forwarding device of the present invention embodiment two sketch mapes
Embodiment
The invention provides a kind of label forwarding method and device, be used for to support under the situation of PHP, satisfy simultaneously many labels and single processing demands of signing the mark message at switch.The present invention is carried out bright specifically below in conjunction with accompanying drawing.
Fig. 4 has provided a kind of label forwarding method embodiment one sketch map of the present invention, said method comprising the steps of:
Step S1: receiving the ground floor label is the message of first label; The subsequent data unit adjacent with said first label is label or IP message; Promptly the adjacent subsequent data unit of first label can be label; Also can be the IP message; For example said first label can be for the public network label, and when message carried two-layer label, the adjacent subsequent data unit of public network label was private network tags; When message carried single layer label, the adjacent subsequent data unit of public network label was the IP message.
Step S2: eject said first label, and the message that will eject behind said first label sends to the winding port.Said winding port can be the internal port or the outside port of switch; When the pattern of certain port is set to loop back mode; This port promptly becomes the winding port; The data that mail to this port are got back to the port through behind the winding, can select the maximum not use port of speed as the winding port usually.
Fig. 5 has provided a kind of label forwarding method embodiment two sketch mapes of the present invention, and present embodiment is except the step that comprises method embodiment one, and is further comprising the steps of:
Step S3: receiving the ground floor label is the message of second label; The subsequent data unit adjacent with said second label is the IP message; Promptly the adjacent subsequent data unit of first label can only be the IP message, and for example said second label can be private network tags, and the adjacent subsequent data unit of private network tags can only be the IP message.
Step S4: eject said second label, and table of query and routing obtains ejecting the corresponding forwarding behavior of message behind said second label.
Step S3 and step S4 can carry out after step S1 and step S2, and message carries two-layer label when for example initial, and the ground floor label is first label; Second layer label is second label, when switch receives this message, and execution in step S1 and step S2; Ejected first label, and the message that will eject first label sends to the winding port, receive said message again through said winding port behind the winding; This moment, only there was one deck label in message, and promptly the ground floor label is second label, at this moment execution in step S3 and step S4; Promptly eject said second label, and table of query and routing obtains ejecting the corresponding forwarding behavior of message behind said second label.
The execution of step S3 and step S4 can not have the sequencing relation with the execution of step S1 and step S2 yet; For example switch can receive a message one that only comprises first label; This moment, message one was carried out according to step S1 and step S2, and perhaps switch can receive a message two that only comprises second label, and this moment, message two was carried out according to step S3 and step S4; Because the processing procedure of message one and message two is uncorrelated, so its processing sequence is only relevant with the arrival order of message.
Fig. 6 has provided a kind of label forwarding method embodiment three sketch mapes of the present invention, and present embodiment is except the step that comprises method embodiment one, and is further comprising the steps of:
Step S5: the forwarding behavior of said first label of configuration in Label Forwarding Information Base: eject said first label, and the message that will eject behind said first label sends to the winding port;
Step S6: the forwarding behavior that the message that inquiry tag is transmitted and obtained said ground floor label is first label is corresponding.
Present embodiment also can carry out above-mentioned expansion on the basis of method embodiment two.
Fig. 7 has provided a kind of label forwarding method embodiment four sketch mapes of the present invention, and present embodiment is except the step that comprises method embodiment two, and is further comprising the steps of:
Step S7: the forwarding behavior of said second label of configuration in Label Forwarding Information Base: eject said second label, and table of query and routing obtains ejecting the corresponding forwarding behavior of message behind said second label;
Step S8: the forwarding behavior that the message that inquiry tag is transmitted and obtained said ground floor label is second label is corresponding.
Present embodiment also can carry out above-mentioned expansion on the basis of method embodiment three.
The present invention uses a untapped port as the winding port; Can select the big port of speed as far as possible; If promptly corresponding this port with port id of module I D of outlet after then message is delivered to this port, can carry out one time message forwarding once more on switch.Based on such mechanism; For example for the public network label; Because the subsequent data unit adjacent with the public network label can be private network tags or IP message; Therefore the public network label needs to realize two kinds of operations after ejecting one deck label: when the subsequent data unit adjacent with the public network label is private network tags, then search Label Forwarding Information Base; When the subsequent data unit adjacent with the public network label is the IP message, then search route forwarding table.Therefore the corresponding forwarding behavior of public network label can be set in Label Forwarding Information Base is: eject label, and the message that will eject behind the label sends to the winding port.Because the characteristic of winding port, when original message was the message with two-layer label, the message that has ejected outer layer label can continue on switch, to continue the retrieval list item according to vpn label and transmit after getting back to this machine through the winding port; When original message for only with the message of one deck label the time, the message that has ejected outer layer label can continue on switch, to continue the retrieval list item according to purpose IP address and transmit after getting back to this machine through the winding port.So just be equivalent to message has been carried out twice retrieval:, eject label for the first time according to the public network label value; For the second time according to private network tags once more Checking label transmit, perhaps according to purpose IP address search routing table, realize that message transmits.For private network tags, because the subsequent data unit adjacent with private network tags can only be the IP message, the forwarding behavior that therefore the private network tags correspondence can be set in Label Forwarding Information Base is: eject label, and table of query and routing.
For the situation that have multilayer labels to need all to eject or part ejects, also can use this programme, let message repeatedly Checking label transmit; The result of each retrieval ejects label; Be sent to the winding port to message, after getting back to this machine, carry out retrieval once more through the winding port.
Label Forwarding Information Base example of the present invention is as follows:
Label value Behavior
LABEL1 Eject label, toward purpose module No. 1, the port of destination slogan 1 is transmitted
LABEL2 Eject label, then with purpose IP address search routing table
Wherein the purpose module No. 1, and destination slogan 1 corresponding port is the winding port.The subsequent data unit adjacent with label LABEL1 can be label LABEL2, also can be the IP message; The subsequent data unit adjacent with label LABEL2 can only be the IP message.LABEL1 is first label, public network label for example, and LABEL2 is second label, for example private network tags.Purpose module No. 1, the port of destination slogan 1 is the winding port.
When Checking label is transmitted, in this list item, retrieve as keyword with the label value that message carries, make corresponding operation according to the behavior that retrieves.
Fig. 8 has provided the sketch map that message format changes in a kind of label forwarding method embodiment four implementation processes according to the present invention, has explained that the message format in the repeating process that obtains according to above-mentioned Label Forwarding Information Base changes.
The message that gets into switch is the message that has two label LABEL1 and LABEL2, shown among Fig. 8 101.Switch is transmitted with the LABEL1 Checking label, obtains its behavior: eject label, toward purpose module No. 1, the port of destination slogan 1 is transmitted.Add the internal data header of purpose module No. 1 and destination slogan 1 in the message, shown among Fig. 8 102, and message is forwarded to purpose module No. 1; Destination slogan 1 corresponding port, because said port is the winding port, message is being removed the internal data header after the winding port is got back to this machine; This moment, message format was shown among Fig. 8 103; Switch is transmitted according to the LABEL2 Checking label, obtains its behavior: eject label, then with purpose IP address search routing table; Then after ejecting LABEL2, with purpose IP address search routing table, obtaining should be toward purpose module No. 1, and the port of destination slogan 2 is transmitted.Add the internal data header of purpose module No. 1 and destination slogan 2 in the message, shown among Fig. 8 104.Message is according to purpose module No. 1; The internal data header of destination slogan 2 is forwarded to the corresponding port; No. 2 ports that final message is numbered from switch after removing the internal data header on 1 the business module forward, and the message format that forwards is shown among Fig. 8 105.
LABEL1 can be the public network label, and LABEL2 can be private network tags, the situation 1 that be equivalent to mention in the background technology this moment; Promptly carry two labels, at first according to public network label lookup Label Forwarding Information Base, behavior is to eject label; And mail to the port of purpose module No. 1, destination slogan 1; Get into switch behind the winding again, this moment, message still carried a private network tags, and switch judges that it is the MPLS message; Can eject label afterwards and transmit according to routing table again according to privately owned label lookup Label Forwarding Information Base.
Fig. 9 has provided the sketch map that message format changes in a kind of label forwarding method embodiment three implementation processes according to the present invention.
Different with Fig. 8 is that the message that gets into switch is for only having the message of a label LABEL1, shown among Fig. 9 201.Switch is transmitted with the LABEL1 Checking label, obtains its behavior: eject label, toward purpose module No. 1, the port of destination slogan 1 is transmitted.Add the internal data header of purpose module No. 1 and destination slogan 1 in the message, shown among Fig. 9 202, and message is forwarded to purpose module No. 1; Destination slogan 1 corresponding port, because said port is the winding port, message is being removed the internal data header after the winding port is got back to this machine; This moment, message format was shown among Fig. 9 203; Switch is according to purpose IP address search routing table, and obtaining should be toward purpose module No. 1, and the port of destination slogan 2 is transmitted.Add the internal data header of purpose module No. 1 and destination slogan 2 in the message, shown among Fig. 9 204.Message is according to purpose module No. 1; The internal data header of destination slogan 2 is forwarded to the corresponding port; No. 2 ports that final message is numbered from switch after removing the internal data header on 1 the business module forward, and the message format that forwards is shown among Fig. 9 205.
LABEL1 can be the public network label, and the situation 2 that be equivalent to mention in the background technology this moment is promptly carried a label; At first according to public network label lookup Label Forwarding Information Base, behavior also is to eject label, and mails to the port of purpose module No. 1, destination slogan 1; Get into switch behind the winding again; This moment, switch judged that it is the IP message owing to do not carry label, can directly search routing table according to purpose IP address and transmit.Can find out from the example of Fig. 8 and Fig. 9,, make Label Forwarding Information Base can satisfy the forwarding demand of two kinds of situations simultaneously through utilizing the winding port.
Described among Fig. 8 and Fig. 9 when being with two-layer label LABEL1 and LABEL2 and only having one deck label LABEL1, can both realize ejecting the label forwarding message.The present invention program also can further be generalized to the situation of multilayer labels
For example to three label LABEL3, LABEL4 and LABEL5, the subsequent data unit that wherein LABEL3 and LABEL4 are adjacent can be label or IP message, and the subsequent data unit that LABEL5 is adjacent can only be the IP message.Be that LABEL3 and LABEL4 are first label, LABEL5 is second label.So following Label Forwarding Information Base can be set, promptly can reach the function of ejection multilayer labels according to the forwarding rule of this Label Forwarding Information Base.
Label value Behavior
LABEL3 Eject label, toward purpose module No. 1, the port of destination slogan 1 is transmitted
LABEL4 Eject label, toward purpose module No. 1, the port of destination slogan 1 is transmitted
LABEL5 Eject label, then with purpose IP address search routing table
According to this Label Forwarding Information Base, can handle message 301-306 shown in Figure 10, the method among concrete processing procedure and Fig. 8 and Fig. 9 is similar, repeats no more here.
Under many label condition, the behavior that is about to Label Forwarding Information Base ectomesoderm label all is set to be forwarded to the winding port.
Need to prove; The message format that provides among Fig. 8, Fig. 9 and Figure 10 only is used for method of the present invention is further explained; Do not constitute the qualification to content of the present invention, other message format that satisfies content of the present invention belongs to protection scope of the present invention equally.
The present invention also provides a kind of label forwarding device, and Figure 11 has provided a kind of label forwarding device of the present invention embodiment one sketch map, comprises message receiving element M1 and message process unit M2;
Said message receiving element M1 is used to receive the message that the ground floor label is first label, and sends to message process unit M2; The subsequent data unit adjacent with said first label is label or IP message;
Said message process unit M2 is connected with message receiving element M1, is used to eject said first label, and the message that will eject behind said first label sends to the winding port.
Said message receiving element M1 also is used for: receiving the ground floor label is the message of second label, and sends to message process unit M2; The subsequent data unit adjacent with said second label is the IP message;
Said message process unit M2 also is used for: eject said second label, and table of query and routing obtains ejecting the corresponding forwarding behavior of message behind said second label.
Figure 12 has provided a kind of label forwarding device of the present invention embodiment two sketch mapes, and present embodiment also comprises tag configurations unit M3, memory cell M4 and searching label unit M5 except the architectural feature that comprises embodiment one;
Said tag configurations unit M3 is used for the forwarding behavior at said first label of Label Forwarding Information Base configuration: eject said first label, and the message that will eject behind said first label sends to the winding port;
Said memory cell M4 is connected with tag configurations unit M3, is used for storage tags and transmits;
Said searching label unit M5 is connected M4 with message process unit M2 with memory cell, is used for inquiry tag and transmits the corresponding forwarding behavior of message that to obtain said ground floor label be first label.
Said message process unit M2 also is used for before ejecting said first label, calling searching label unit M5.
Said tag configurations unit M3 also is used for the forwarding behavior at said second label of Label Forwarding Information Base configuration: eject said second label, and table of query and routing obtains ejecting the corresponding forwarding behavior of message behind said second label;
Said searching label unit M5 also is used for inquiry tag and transmits the corresponding forwarding behavior of message that to obtain said ground floor label be second label.
Said message process unit M2 also is used for before ejecting said second label, calling searching label unit M5.
The port that the present invention only need sacrifice on the switch is used as the winding port that keeps; Can be implemented in and satisfy simultaneously on the egress switch many labels and single processing demands of signing the mark message; Through the winding port realize many labels and single label packet repeatedly Checking label transmit or routing table; Message is correct on egress switch to be ejected label and forwards thereby make, and has broken through deployment MPLS, the restriction when MPLS QoS and 3 layers of VPN application network environment; Increased the flexibility ratio of network design, reduced cost.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (8)

1. a label forwarding method is characterized in that, said method comprises:
Receiving the ground floor label is the message of first label, and the subsequent data unit adjacent with said first label is second label or IP message; The data cell adjacent with said second label is the IP message;
Eject said first label, and the message that will eject behind said first label sends to the winding port;
When the subsequent data unit adjacent with said first label is second label, receive through the message behind ejection first label of winding port forwarding; Eject second label, and table of query and routing obtain ejecting second label after the corresponding forwarding behavior of message transmit;
When the subsequent data unit adjacent with said first label is the IP message, receive through the message behind ejection first label of winding port forwarding; The corresponding forwarding behavior of message was transmitted after table of query and routing obtained ejecting first label.
2. label forwarding method according to claim 1 is characterized in that,
Also comprise the forwarding behavior of said first label of configuration in Label Forwarding Information Base: eject said first label, and the message that will eject behind said first label sends to the winding port before the message that said reception ground floor label is first label;
Also comprise before said first label of said ejection: the forwarding behavior that the message that inquiry tag is transmitted and obtained said ground floor label is first label is corresponding.
3. label forwarding method according to claim 1 is characterized in that,
Also comprise the forwarding behavior of said second label of configuration in Label Forwarding Information Base before the message that said reception ground floor label is second label: eject said second label, and table of query and routing obtains ejecting the corresponding forwarding behavior of message behind said second label;
Also comprise before said second label of said ejection: the forwarding behavior that the message that inquiry tag is transmitted and obtained said ground floor label is second label is corresponding.
4. according to claim 1 or 3 described label forwarding methods, it is characterized in that said first label is the public network label.
5. according to claim 1 or 3 described label forwarding methods, it is characterized in that said second label is a private network tags.
6. a label forwarding device is characterized in that, comprises message receiving element and message process unit;
Said message receiving element is used to receive the message that the ground floor label is first label, and sends to message process unit; The subsequent data unit adjacent with said first label is second label or IP message; The data cell adjacent with said second label is the IP message; And receive through the message behind ejection first label of winding port forwarding;
Said message process unit is connected with the message receiving element, is used to eject said first label, and the message that will eject behind said first label sends to the winding port; And when the subsequent data unit adjacent with said first label is second label, eject second label, and table of query and routing obtain ejecting second label after the corresponding forwarding behavior of message transmit; When the subsequent data unit adjacent with said first label was the IP message, the corresponding forwarding behavior of message was transmitted after table of query and routing obtained ejecting first label.
7. label forwarding device according to claim 6 is characterized in that, also comprises tag configurations unit, memory cell and searching label unit;
Said tag configurations unit is used for the forwarding behavior at said first label of Label Forwarding Information Base configuration: eject said first label, and the message that will eject behind said first label sends to the winding port;
Said memory cell is connected with the tag configurations unit, is used for storage tags and transmits;
Said searching label unit is connected with memory cell with message process unit, is used for inquiry tag and transmits the corresponding forwarding behavior of message that to obtain said ground floor label be first label;
Said message process unit also is used for before ejecting said first label, calling the searching label unit.
8. label forwarding device according to claim 7 is characterized in that,
Said tag configurations unit also is used for the forwarding behavior at said second label of Label Forwarding Information Base configuration: eject said second label, and table of query and routing obtains ejecting the corresponding forwarding behavior of message behind said second label;
Said searching label unit also is used for inquiry tag and transmits the corresponding forwarding behavior of message that to obtain said ground floor label be second label;
Said message process unit also is used for before ejecting said second label, calling the searching label unit.
CN200910080725A 2009-03-27 2009-03-27 Method and apparatus for forwarding label Active CN101510845B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910080725A CN101510845B (en) 2009-03-27 2009-03-27 Method and apparatus for forwarding label

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910080725A CN101510845B (en) 2009-03-27 2009-03-27 Method and apparatus for forwarding label

Publications (2)

Publication Number Publication Date
CN101510845A CN101510845A (en) 2009-08-19
CN101510845B true CN101510845B (en) 2012-10-10

Family

ID=41003111

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910080725A Active CN101510845B (en) 2009-03-27 2009-03-27 Method and apparatus for forwarding label

Country Status (1)

Country Link
CN (1) CN101510845B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111338B (en) * 2011-03-22 2012-08-15 北京星网锐捷网络技术有限公司 Label forwarding information storage method and device, and message forwarding method and device
CN102291316A (en) * 2011-09-14 2011-12-21 中兴通讯股份有限公司 Method for realizing zero label popup during MPLS (Multi-Protocol Label Switching) and edge equipment
CN103124236B (en) * 2013-02-27 2015-12-23 迈普通信技术股份有限公司 The management method of route and label and device
CN104348721A (en) * 2013-07-24 2015-02-11 中兴通讯股份有限公司 Label searching method and device
CN103401782B (en) * 2013-07-24 2017-04-05 杭州华三通信技术有限公司 A kind of MAC Address synchronous method and equipment
WO2015100751A1 (en) * 2014-01-06 2015-07-09 华为技术有限公司 Packet forwarding method and device
CN104796353B (en) * 2014-01-17 2018-10-19 华为技术有限公司 Message forwarding method, interchanger
CN105450528B (en) * 2014-08-29 2018-06-08 国际商业机器公司 The method of routing forwarding and corresponding equipment are carried out to data packet
CN105337884A (en) * 2015-09-25 2016-02-17 盛科网络(苏州)有限公司 Method and device for achieving multistage message editing service control on the basis of logic port
CN106789921A (en) * 2016-11-28 2017-05-31 成都广达新网科技股份有限公司 A kind of exchange method and interchanger for supporting that member port is isolated in VLAN
CN106789430B (en) * 2016-12-26 2019-11-05 深圳市风云实业有限公司 A kind of point-to-point link fault detection method
CN113411257B (en) * 2020-03-16 2022-10-18 华为技术有限公司 Method, device, computing equipment and storage medium for transmitting message

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075937A (en) * 2007-07-20 2007-11-21 华为技术有限公司 Method, system and apparatus for converting message in three-layer virtual special network

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075937A (en) * 2007-07-20 2007-11-21 华为技术有限公司 Method, system and apparatus for converting message in three-layer virtual special network

Also Published As

Publication number Publication date
CN101510845A (en) 2009-08-19

Similar Documents

Publication Publication Date Title
CN101510845B (en) Method and apparatus for forwarding label
CN107040462A (en) Method for routing and intermediate router
CN1866919B (en) Service switching method based on VLAN stack
US8750314B2 (en) Method and device for link protection in virtual private local area network
US8259725B2 (en) Method, system and device for removing media access control addresses
CN113645136B (en) Method, network node and network system for forwarding message in network
CN101521631B (en) Treatment method, equipment and system for VPLS network messages
CN101110745A (en) Method, device and system for engaging second layer network and third layer network
CN101674249A (en) Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN100531138C (en) Operator's boundary notes, virtual special LAN service communication method and system
CN105379197A (en) Tunnel establishment method, label allocation method, device, and network system
CN101651630A (en) Switching method and switching device based on link fault
CN101656663B (en) Method, device and system for forwarding MPLS multicast message
CN101848161A (en) Communication method and equipment of MPLS L2VPN (Multiple protocol Label Switching Layer 2 Virtual Private Network) and MPLS L3VPN (Multiple protocol Label Switching Layer 3 Virtual Private Network)
CN102368726B (en) Forwarding method and device applied to L2VPN (layer 2 virtual private network)
US20090135833A1 (en) Ingress node and egress node with improved packet transfer rate on multi-protocol label switching (MPLS) network, and method of improving packet transfer rate in MPLS network system
CN102724118A (en) Label distribution method and device
JP2003046547A (en) Packet transfer method and packet transmitter-receiver
CN102546433A (en) Data forwarding method based on MPLS (Multi Protocol Label Switching) VPN (Virtual Private Network) and PEs (Provider Edges)
CN102255785A (en) Network isolation method in VPLS (Virtual Private Lan Service) and device thereof
CN102413060A (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN100484080C (en) Routing access method, system and operator edge equipment for virtual private network
JP2002247089A (en) Packet routing method and device
CN100373892C (en) Virtual exchanging method capable of routing
CN113726653B (en) Message processing method and device

Legal Events

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

Owner name: BEIJING Z-GOOD TECHNOLOGY SERVICE CO., LTD.

Free format text: FORMER OWNER: BEIJING XINGWANG RUIJIE NETWORK TECHNOLOGIES CO., LTD.

Effective date: 20150119

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100036 HAIDIAN, BEIJING TO: 100085 HAIDIAN, BEIJING

TR01 Transfer of patent right

Effective date of registration: 20150119

Address after: 100085 Beijing city Haidian District No. 33 Xiaoying Road 1 1F06 room

Patentee after: BEIJING ZHIGU TECHNOLOGY SERVICES CO., LTD.

Address before: 100036 Beijing City, Haidian District Fuxing Road No. 29 building 11 floor East Tower Austria Italy Peng

Patentee before: Beijing Xingwang Ruijie Network Technologies Co., Ltd.

EE01 Entry into force of recordation of patent licensing contract

Application publication date: 20090819

Assignee: Beijing Xingwang Ruijie Network Technologies Co., Ltd.

Assignor: BEIJING ZHIGU TECHNOLOGY SERVICES CO., LTD.

Contract record no.: 2015990000068

Denomination of invention: Method and apparatus for forwarding label

Granted publication date: 20121010

License type: Common License

Record date: 20150213