CN101510845A - Method and apparatus for forwarding label - Google Patents

Method and apparatus for forwarding label Download PDF

Info

Publication number
CN101510845A
CN101510845A CNA2009100807255A CN200910080725A CN101510845A CN 101510845 A CN101510845 A CN 101510845A CN A2009100807255 A CNA2009100807255 A CN A2009100807255A CN 200910080725 A CN200910080725 A CN 200910080725A CN 101510845 A CN101510845 A CN 101510845A
Authority
CN
China
Prior art keywords
label
message
forwarding
eject
unit
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
CNA2009100807255A
Other languages
Chinese (zh)
Other versions
CN101510845B (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

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, abbreviation IPv6), the Internet packet exchange agreement (Internetwork PacketExchange protocol, be 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 determine 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 the IP message is encapsulated as the message of tape label, this message can be transmitted by tag switching in the MPLS network, on the outlet edge switch, need to remove label packet, the IP message is forwarded 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 to 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 finished by Label Forwarding Information Base, and on outlet device, needs to use routing table to realize the IP message forwarding.
Fig. 1 for example understands the forwarding process of MPLS network:
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) to send purpose IP address be the IP datagram literary composition of 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, message will eject outer field public network label after through 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 this IP message to be transmitted to CE2 by CE2, message arrives website 2 (Site 2) at last
Modular switch is made 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 may be for following several:
Business module 1 → business module 1
Business module 1 → administration module → business module 2
Business module 1 → administration module CPU
Business module 1 → abandon
In modular switch inside, 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 finished message forwarding.The form of internal data 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 by the administration module relaying.When transmitting on this business module, 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, then the public network label that can be used on backbone network, transmitting with last layer again, 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 to ejected the public network label on the switch of the last two jump, 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 (as 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 (as 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 situations of situation, and can only select a kind of behavior in the practical operation.Promptly, can't finish and handle situation 1 and situation 2 described situations 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 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
As can be seen, the behavior of corresponding public network label can only be specified a kind of.
In situation 1, after the message that carries public network label and private network tags enters egress switch, 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 to 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, the public network label is ejected the back message and is not just had 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, after ejecting the public network label, because message still carries privately owned label, when removing table of query and routing according to the behavior of setting, because this message still be MPLS message but not IP message, so can't inquire correct route according to purpose IP and abandon this message.
Occur if prevent above problem, just need in on-premise network, make restriction: as 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 achieving the above object, the invention provides a kind of label forwarding method, described method comprises:
Receiving the ground floor label is the message of first label; The subsequent data unit adjacent with described first label is label or IP message;
Eject described first label, and the message that will eject behind described first label sends to the winding port.
To achieve these goals, the present invention also provides a kind of label forwarding device, and described device comprises message receiving element and message process unit;
Described 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 described first label is label or IP message;
Described message process unit is connected with the message receiving element, is used to eject described first label, and the message that will eject behind described first label sends to the winding port.
The port that the present invention only needs to 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, by 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, broken through deployment MPLS, 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 schematic diagram of modular switch
Fig. 3 is a modular switch internal data format schematic diagram
Fig. 4 is a kind of label forwarding method embodiment one schematic diagram of the present invention
Fig. 5 is a kind of label forwarding method embodiment two schematic diagrames of the present invention
Fig. 6 is a kind of label forwarding method embodiment three schematic diagrames of the present invention
Fig. 7 is a kind of label forwarding method embodiment four schematic diagrames of the present invention
Fig. 8 is the schematic diagram that message format changes in a kind of label forwarding method embodiment four implementation processes according to the present invention
Fig. 9 is the schematic diagram 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 schematic diagram 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 schematic diagram
Figure 12 is a kind of label forwarding device of the present invention embodiment two schematic diagrames
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.Below in conjunction with accompanying drawing the present invention is carried out specific description.
Fig. 4 has provided a kind of label forwarding method embodiment one schematic diagram 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 described 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 described first label can be the public network label, when message carries two-layer label, the adjacent subsequent data unit of public network label is 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 described first label, and the message that will eject behind described first label sends to the winding port.Described 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, and the not use port that can select the speed maximum usually is as the winding port.
Fig. 5 has provided a kind of label forwarding method embodiment two schematic diagrames 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 described second label is the IP message; Promptly the adjacent subsequent data unit of first label can only be the IP message, and for example described 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 described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described second label.
Step S3 and step S4 can carry out after step S1 and step S2, message carries two-layer label when for example initial, the ground floor label is first label, second layer label is second label, when switch receives this message, execution in step S1 and step S2, ejected first label, and the message that will eject first label sends to the winding port, receives described message again through described winding port behind the winding, and this moment, only there was one deck label in message, be that the ground floor label is second label, this moment, execution in step S3 and step S4 promptly ejected described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described 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, perhaps switch can receive a message two that only comprises second label, 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 schematic diagrames 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 described first label of configuration in Label Forwarding Information Base: eject described first label, and the message that will eject behind described first label sends to the winding port;
Step S6: the forwarding behavior of the message correspondence that inquiry tag is transmitted and obtained described ground floor label is first label.
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 schematic diagrames 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 described second label of configuration in Label Forwarding Information Base: eject described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described second label;
Step S8: the forwarding behavior of the message correspondence that inquiry tag is transmitted and obtained described ground floor label is second label.
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 Chu Kou module I D 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.The forwarding behavior that therefore public network label correspondence 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 message with two-layer label, the message that has ejected outer layer label can continue to continue the retrieval list item according to vpn label on switch 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 to continue the retrieval list item according to purpose IP address on switch 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 situations that have multilayer labels to need all to eject or part ejects, also can use this programme, allow message repeatedly Checking label transmit, the result of each retrieval ejects label, message is sent to the winding port, after getting back to this machine, carries 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 schematic diagram that message format changes in a kind of label forwarding method embodiment four implementation processes according to the present invention, has illustrated that the message format in the repeating process that obtains according to above-mentioned Label Forwarding Information Base changes.
The message that enters 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 described 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, 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, enter switch behind the winding again, this moment, message still carried a private network tags, switch judges that it is the MPLS message, can eject label afterwards and transmit according to routing table according to privately owned label lookup Label Forwarding Information Base.
Fig. 9 has provided the schematic diagram 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 enters 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 described 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, the situation 2 that be equivalent to mention in the background technology this moment, promptly carry 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, enter 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.From the example of Fig. 8 and Fig. 9 as can be seen, by utilizing the winding port, make Label Forwarding Information Base can satisfy the forwarding demand of two kinds of situations simultaneously.
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, wherein the subsequent data unit that 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 detailed; 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 schematic diagram, comprises message receiving element M1 and message process unit M2;
Described 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 described first label is label or IP message;
Described message process unit M2 is connected with message receiving element M1, is used to eject described first label, and the message that will eject behind described first label sends to the winding port.
Described 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 described second label is the IP message;
Described message process unit M2 also is used for: eject described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described second label.
Figure 12 has provided a kind of label forwarding device of the present invention embodiment two schematic diagrames, 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;
Described tag configurations unit M3 is used for the forwarding behavior at described first label of Label Forwarding Information Base configuration: eject described first label, and the message that will eject behind described first label sends to the winding port;
Described memory cell M4 is connected with tag configurations unit M3, is used for storage tags and transmits;
Described searching label unit M5 is connected M4 with message process unit M2 with memory cell, is used for the forwarding behavior that inquiry tag is transmitted the message correspondence that to obtain described ground floor label be first label.
Described message process unit M2 also is used for calling searching label unit M5 before ejecting described first label.
Described tag configurations unit M3 also is used for the forwarding behavior at described second label of Label Forwarding Information Base configuration: eject described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described second label;
Described searching label unit M5 also is used for the forwarding behavior that inquiry tag is transmitted the message correspondence that to obtain described ground floor label be second label.
Described message process unit M2 also is used for calling searching label unit M5 before ejecting described second label.
The port that the present invention only needs to 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, by 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, broken through deployment MPLS, restriction when MPLS QoS and 3 layers of VPN application network environment, increased the flexibility ratio of network design, reduced cost.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, 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 modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (10)

1. a label forwarding method is characterized in that, described method comprises:
Receiving the ground floor label is the message of first label, and the subsequent data unit adjacent with described first label is label or IP message;
Eject described first label, and the message that will eject behind described first label sends to the winding port.
2. label forwarding method according to claim 1 is characterized in that, also comprises:
Receiving the ground floor label is the message of second label, and the subsequent data unit adjacent with described second label is the IP message;
Eject described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described second label.
3. label forwarding method according to claim 1 and 2 is characterized in that,
Also comprise the forwarding behavior of described first label of configuration in Label Forwarding Information Base: eject described first label, and the message that will eject behind described first label sends to the winding port before the message that described reception ground floor label is first label;
Also comprise before described first label of described ejection: the forwarding behavior of the message correspondence that inquiry tag is transmitted and obtained described ground floor label is first label.
4. label forwarding behavior according to claim 2 is characterized in that,
Also comprise the forwarding behavior of described second label of configuration in Label Forwarding Information Base before the message that described reception ground floor label is second label: eject described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described second label;
Also comprise before described second label of described ejection: the forwarding behavior of the message correspondence that inquiry tag is transmitted and obtained described ground floor label is second label.
5. according to claim 1,2 or 4 described arbitrary label forwarding methods, it is characterized in that described first label is the public network label.
6. according to claim 2 or 4 described label forwarding methods, it is characterized in that described second label is a private network tags.
7. a label forwarding device is characterized in that, comprises message receiving element and message process unit;
Described 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 described first label is label or IP message;
Described message process unit is connected with the message receiving element, is used to eject described first label, and the message that will eject behind described first label sends to the winding port.
8. label forwarding device according to claim 7 is characterized in that,
Described message receiving element also is used for: receiving the ground floor label is the message of second label, and sends to message process unit; The subsequent data unit adjacent with described second label is the IP message;
Described message process unit also is used for: eject described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described second label.
9. according to claim 7 or 8 described label forwarding devices, it is characterized in that, also comprise tag configurations unit, memory cell and searching label unit;
Described tag configurations unit is used for the forwarding behavior at described first label of Label Forwarding Information Base configuration: eject described first label, and the message that will eject behind described first label sends to the winding port;
Described memory cell is connected with the tag configurations unit, is used for storage tags and transmits;
Described searching label unit is connected with memory cell with message process unit, is used for the forwarding behavior that inquiry tag is transmitted the message correspondence that to obtain described ground floor label be first label;
Described message process unit also is used for calling the searching label unit before ejecting described first label.
10. label forwarding device according to claim 9 is characterized in that,
Described tag configurations unit also is used for the forwarding behavior at described second label of Label Forwarding Information Base configuration: eject described second label, and table of query and routing obtains ejecting the forwarding behavior of message correspondence behind described second label;
Described searching label unit also is used for the forwarding behavior that inquiry tag is transmitted the message correspondence that to obtain described ground floor label be second label;
Described message process unit also is used for calling the searching label unit before ejecting described second label.
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 true CN101510845A (en) 2009-08-19
CN101510845B 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)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102111338A (en) * 2011-03-22 2011-06-29 北京星网锐捷网络技术有限公司 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
CN103124236A (en) * 2013-02-27 2013-05-29 迈普通信技术股份有限公司 Method and device for managing routes and tags
CN103401782A (en) * 2013-07-24 2013-11-20 杭州华三通信技术有限公司 MAC (Media Access Control) address synchronizing method and equipment
CN104348721A (en) * 2013-07-24 2015-02-11 中兴通讯股份有限公司 Label searching method and device
WO2015100751A1 (en) * 2014-01-06 2015-07-09 华为技术有限公司 Packet forwarding method and device
CN104796353A (en) * 2014-01-17 2015-07-22 华为技术有限公司 Packet forwarding method and switch
CN105337884A (en) * 2015-09-25 2016-02-17 盛科网络(苏州)有限公司 Method and device for achieving multistage message editing service control on the basis of logic port
CN105450528A (en) * 2014-08-29 2016-03-30 国际商业机器公司 Method to routing forward data packet and corresponding device
CN106789430A (en) * 2016-12-26 2017-05-31 深圳市风云实业有限公司 A kind of point-to-point link fault detection method
CN106789921A (en) * 2016-11-28 2017-05-31 成都广达新网科技股份有限公司 A kind of exchange method and interchanger for supporting that member port is isolated in VLAN
CN113411257A (en) * 2020-03-16 2021-09-17 华为技术有限公司 Method, device, computing equipment and storage medium for transmitting message

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100558072C (en) * 2007-07-20 2009-11-04 华为技术有限公司 The method of converting message in three-layer virtual special network, system and equipment

Cited By (19)

* 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
CN102111338A (en) * 2011-03-22 2011-06-29 北京星网锐捷网络技术有限公司 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
CN103124236A (en) * 2013-02-27 2013-05-29 迈普通信技术股份有限公司 Method and device for managing routes and tags
CN103401782A (en) * 2013-07-24 2013-11-20 杭州华三通信技术有限公司 MAC (Media Access Control) address synchronizing method and equipment
CN104348721A (en) * 2013-07-24 2015-02-11 中兴通讯股份有限公司 Label searching method and device
WO2015100751A1 (en) * 2014-01-06 2015-07-09 华为技术有限公司 Packet forwarding method and device
CN104796353A (en) * 2014-01-17 2015-07-22 华为技术有限公司 Packet forwarding method and switch
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
CN105450528A (en) * 2014-08-29 2016-03-30 国际商业机器公司 Method to routing forward data packet and corresponding device
US10237083B2 (en) 2014-08-29 2019-03-19 International Business Machines Corporation RBridge for routing and forwarding a 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
CN106789430A (en) * 2016-12-26 2017-05-31 深圳市风云实业有限公司 A kind of point-to-point link fault detection method
CN106789430B (en) * 2016-12-26 2019-11-05 深圳市风云实业有限公司 A kind of point-to-point link fault detection method
CN113411257A (en) * 2020-03-16 2021-09-17 华为技术有限公司 Method, device, computing equipment and storage medium for transmitting message
CN113411257B (en) * 2020-03-16 2022-10-18 华为技术有限公司 Method, device, computing equipment and storage medium for transmitting message

Also Published As

Publication number Publication date
CN101510845B (en) 2012-10-10

Similar Documents

Publication Publication Date Title
CN101510845B (en) Method and apparatus for forwarding label
CN101674249B (en) Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN107040462A (en) Method for routing and intermediate router
CN1866919B (en) Service switching method based on VLAN stack
US8259725B2 (en) Method, system and device for removing media access control addresses
US8750314B2 (en) Method and device for link protection in virtual private local area network
CN104935516B (en) Communication system and method based on software defined network
CN101110745A (en) Method, device and system for engaging second layer network and third layer network
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
CN102413060B (en) User private line communication method and equipment used in VPLS (Virtual Private LAN (Local Area Network) Service) network
CN101534209B (en) A method and device for sending multicast messages
CN101656663B (en) Method, device and system for forwarding MPLS multicast message
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
CN101651630A (en) Switching method and switching device based on link fault
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
CN100484080C (en) Routing access method, system and operator edge equipment for virtual private network
CN102368726A (en) Forwarding method and device applied to L2VPN (layer 2 virtual private network)
CN101159674A (en) Packet routing switch device and method thereof
CN102801622B (en) A kind of retransmission method of data message and retransmission unit
CN100373892C (en) Virtual exchanging method capable of routing
CN113726653B (en) Message processing method and device
EP1858213B1 (en) A method for implementing mpls message forwarding and an equipment thereof
CN102724126A (en) Method, device and equipment for forwarding Ethernet tree (E-tree) service message

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