CN103685019B - A kind of label distribution method and equipment - Google Patents

A kind of label distribution method and equipment Download PDF

Info

Publication number
CN103685019B
CN103685019B CN201310659531.7A CN201310659531A CN103685019B CN 103685019 B CN103685019 B CN 103685019B CN 201310659531 A CN201310659531 A CN 201310659531A CN 103685019 B CN103685019 B CN 103685019B
Authority
CN
China
Prior art keywords
label
network equipment
customer premises
message
key side
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
CN201310659531.7A
Other languages
Chinese (zh)
Other versions
CN103685019A (en
Inventor
董海燕
汪亮
吴文
付志华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Technologies Co Ltd
Original Assignee
New H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by New H3C Technologies Co Ltd filed Critical New H3C Technologies Co Ltd
Priority to CN201310659531.7A priority Critical patent/CN103685019B/en
Publication of CN103685019A publication Critical patent/CN103685019A/en
Application granted granted Critical
Publication of CN103685019B publication Critical patent/CN103685019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of label distribution method and equipment, this method includes:Customer Premises Network equipment sends tag block request message to the key side network equipment;The Customer Premises Network equipment, which is received, carries the available label scope that the key side network equipment is chosen in the tag block response message that the key side network equipment is returned, the tag block response message;The available label scope that the key side network equipment described in the Customer Premises Network equipment utilization is chosen determines the label that the Customer Premises Network equipment is used;The Customer Premises Network equipment sends in label confirmation message, the label confirmation message to the key side network equipment and carries the label that the Customer Premises Network equipment is used.It in the embodiment of the present invention, ensure that each key side network equipment is identical for the label that Customer Premises Network equipment is distributed, so as to meet the demand being switched fast, reduce switching time, give user's better services experience sense, improve the service quality of carrier network.

Description

A kind of label distribution method and equipment
Technical field
The present invention relates to communication technical field, more particularly to a kind of label distribution method and equipment.
Background technology
In order to improve the reliability of business, the link between Customer Premises Network equipment and the key side network equipment would generally structure Into main/slave link, such as:L3VPN(L3Virtual Private Network, three layer virtual private network)In VPN FRR (Fast ReRoute, quick heavy-route)PW in networking, L2VPN(Pseudo Wire, pseudo-wire)LDP in networking, L2VPN (Label Distribution Protocol, label distribution protocol)Can all there is active and standby chain in FRR networkings etc., these networks Road.As shown in figure 1, being the PW networking schematic diagrams in L2VPN, Customer Premises Network equipment is UPE(User Provider Edge, User service provider network edge)Equipment, the key side network equipment is NPE(Network Provider Edge, network clothes Business provider network edge)Between equipment, the PW1 and user-end provider edge and NPE equipment 2 between user-end provider edge and NPE equipment 1 PW2 constitutes active and standby PW, and such as PW1 is main PW, and PW2 is standby PW.
In the prior art, each NPE equipment needs to distribute label for user-end provider edge, and the label is prefix label, and prefix label Message is sent for enabling user-end provider edge to be based on the corresponding PW of prefix label.Wherein, each NPE equipment is what user-end provider edge was distributed Label refers to:Length is fixed, and the identifier with local significance, and the label is used for the FEC of unique mark message (Forward Equivalence Class, forwarding equivalence class).
Wherein, set up between NPE equipment 1 and user-end provider edge after PW1, NPE equipment 1 can be user-end provider edge based on itself strategy Distribute label 1(A label 1 is arbitrarily selected such as from locally available label), and record the corresponding pass between PW1 and label 1 System;Likewise, being set up between NPE equipment 2 and user-end provider edge after PW2, NPE equipment 2 can be user-end provider edge point based on itself strategy With label 2(A label 2 is arbitrarily selected such as from locally available label), and record the corresponding relation between PW2 and label 2.
Further, user-end provider edge can be recorded between PW1 and label 1 after label 1 is received by PW1 in forwarding-table item Corresponding relation, and user-end provider edge is when sending the message for carrying label 1, can inquire about the mark that records in forwarding-table item by label 1 The corresponding relation of label and PW, then obtains PW for PW1, and now user-end provider edge will send the message for carrying label 1 by PW1.UPE Equipment can record the corresponding relation between PW2 and label 2, and user-end provider edge after label 2 is received by PW2 in forwarding-table item When sending the message for carrying label 2, the label recorded in forwarding-table item and PW corresponding relation can be inquired about by label 2, after And PW is obtained for PW2, now user-end provider edge will send the message for carrying label 2 by PW2.
Under aforesaid way, when main PW breaks down, the message transmitted on main PW is switched to standby by user-end provider edge needs PW, is switched fast so as to realize.But, in handoff procedure, user-end provider edge also need to update in forwarding-table item the label that records with Corresponding relation between PW, and the time for updating forwarding-table item would generally be long, so as to lead to not meet what is be switched fast Demand.Similarly, when standby PW breaks down, user-end provider edge needs the message transmitted on standby PW being switched to main PW, in handoff procedure In, user-end provider edge also needs to update the corresponding relation in forwarding-table item between the label that records and PW, and update forwarding-table item when Between would generally be long, so as to lead to not meet the demand being switched fast.
The content of the invention
The embodiment of the present invention provides a kind of label distribution method and equipment, when primary link breaks down, it is to avoid to label Switch over, so that quickly the message on primary link is switched on standby link.When standby link breaks down, it is to avoid label is entered Row switching, so that quickly the message on standby link is switched on primary link.
In order to achieve the above object, the embodiment of the present invention provides a kind of label distribution method, and this method is applied to include using In the network of the family side network equipment and multiple key side network equipments, the Customer Premises Network equipment respectively with the multiple backbone Link between the network equipment of side constitutes main/slave link, and methods described includes:
The Customer Premises Network equipment sends tag block request message to the multiple key side network equipment respectively, described Tag block request message is used to ask the key side network equipment to choose available label scope from specific label section;
The Customer Premises Network equipment receives the tag block response message that the multiple key side network equipment is returned respectively, The available label scope that the key side network equipment is chosen is carried in the tag block response message;
The available label scope that the multiple key side network equipment of Customer Premises Network equipment utilization is chosen respectively is true The label that the fixed Customer Premises Network equipment is used;
The Customer Premises Network equipment sends label confirmation message, the mark to the multiple key side network equipment respectively The label that the Customer Premises Network equipment is used is carried in label confirmation message, and the label confirmation message is used to ask backbone The label that the Customer Premises Network equipment is used is distributed to the Customer Premises Network equipment by the side network equipment.
The available label scope that the multiple key side network equipment of Customer Premises Network equipment utilization is chosen respectively is true The process for the label that the fixed Customer Premises Network equipment is used, is specifically included:The Customer Premises Network equipment obtains described respectively The available label scope that multiple key side network equipments are chosen, if the available label that the multiple key side network equipment is chosen There is identical available label between scope, then select a label to be used as the Customer Premises Network from identical available label The label that equipment is used.
The embodiment of the present invention provides a kind of label distribution method, and this method is applied to include Customer Premises Network equipment and multiple In the network of the key side network equipment, the chain of the Customer Premises Network equipment respectively between the multiple key side network equipment Road constitutes main/slave link, the described method comprises the following steps:
The key side network equipment receives the tag block request message from the Customer Premises Network equipment, and from specific label The corresponding available label scope of the key side network equipment is chosen in section;
The key side network equipment sends tag block response message to the Customer Premises Network equipment, and the tag block should Answer and the available label scope that the key side network equipment is chosen is carried in message, and the tag block response message is used to ask The available label scope for asking the multiple key side network equipment of the Customer Premises Network equipment utilization to choose respectively determines described The label that Customer Premises Network equipment is used;
The key side network equipment receives the label confirmation message from the Customer Premises Network equipment, and the label The label that the Customer Premises Network equipment is used is carried in confirmation message;
The key side network equipment will be carried after the label confirmation message is received in the label confirmation message The label that uses of Customer Premises Network equipment distribute to the Customer Premises Network equipment.
The key side network equipment chooses the corresponding available label of the key side network equipment from specific label section Scope, also includes afterwards:
Label in the range of the available label is labeled as unavailable label by the key side network equipment.
Methods described also includes:
The key side network equipment is read after tag block request message is received from the tag block request message Message identifier Message ID;If currently without the Message ID handled, marking the Message ID for just In the Message ID of processing, and execution chooses the corresponding available label model of the key side network equipment from specific label section The process enclosed;If currently there are the Message ID handled, the tag block request message is cached to queue In, after the Message ID processing being presently processing is completed, extracted from queue at tag block request message progress Reason, and the Message ID that the corresponding Message ID of the tag block request message are labeled as handling;
The key side network equipment will carried after label confirmation message is received in the label confirmation message The label that Customer Premises Network equipment is used is distributed to after the Customer Premises Network equipment, deletes what is be presently processing Message ID, are completed with representing that the Message ID being presently processing are handled.
The embodiment of the present invention provides a kind of Customer Premises Network equipment, applied to including the Customer Premises Network equipment and multiple In the network of the key side network equipment, the chain of the Customer Premises Network equipment respectively between the multiple key side network equipment Road constitutes main/slave link, and the Customer Premises Network equipment is specifically included:
First sending module, it is described for sending tag block request message to the multiple key side network equipment respectively Tag block request message is used to ask the key side network equipment to choose available label scope from specific label section;
Receiving module, it is described for receiving the tag block response message that the multiple key side network equipment is returned respectively The available label scope that the key side network equipment is chosen is carried in tag block response message;
Determining module, the available label scope for being chosen respectively using the multiple key side network equipment determines described The label that Customer Premises Network equipment is used;
Second sending module, for sending label confirmation message to multiple key side network equipments respectively, the label confirms The label that Customer Premises Network equipment is used is carried in message, and the label confirmation message is used to ask the key side network equipment will The label that Customer Premises Network equipment is used distributes to Customer Premises Network equipment.
The determining module, specifically for obtaining the available label scope that multiple key side network equipments are chosen respectively, such as There is identical available label between the available label scope that really multiple key side network equipments are chosen, then can use mark from identical The label for selecting a label to be used as Customer Premises Network equipment in label.
The embodiment of the present invention provides a kind of key side network equipment, applied to including Customer Premises Network equipment and multiple backbones In the network of the side network equipment, the link structure of the Customer Premises Network equipment respectively between the multiple key side network equipment Into main/slave link, the key side network equipment is specifically included:
First receiving module, for receiving the tag block request message from the Customer Premises Network equipment;
Selecting module, for after the tag block request message from the Customer Premises Network equipment is received, from specific The corresponding available label scope of the key side network equipment is chosen in label segment;
Sending module, for sending tag block response message to the Customer Premises Network equipment, the tag block response disappears The available label scope that the key side network equipment is chosen is carried in breath, and the tag block response message is used to ask institute State the available label scope that the multiple key side network equipment of Customer Premises Network equipment utilization chooses respectively and determine the user The label that the side network equipment is used;
Second receiving module, for receiving the label confirmation message from the Customer Premises Network equipment, and the label The label that the Customer Premises Network equipment is used is carried in confirmation message;
Distribute module, for after the label confirmation message is received, the use that will be carried in the label confirmation message The label that the family side network equipment is used distributes to the Customer Premises Network equipment.
The selecting module, is additionally operable to choosing the corresponding available mark of the key side network equipment from specific label section Sign after scope, the label in the range of the available label is labeled as unavailable label.
The selecting module, is further used for after tag block request message is received, from the tag block request message Middle reading message identifier Message ID;If currently without the Message ID handled, marking the Message ID is the Message ID that are handling, and performs that the key side network equipment is chosen from specific label section is corresponding available The process of label range;If currently there are the Message ID handled, the tag block request message is cached Into queue, after the Message ID processing being presently processing is completed, tag block request message is extracted from queue Handled, and the Message ID that the corresponding Message ID of the tag block request message are labeled as handling;
After label confirmation message is received, used by the Customer Premises Network equipment carried in the label confirmation message Label distribute to the Customer Premises Network equipment after, delete the Message ID being presently processing, with represent it is current just Handle and complete in the Message ID of processing.
Compared with prior art, the embodiment of the present invention at least has advantages below:In the embodiment of the present invention, Customer Premises Network Equipment is chosen by sending tag block request message to multiple key side network equipments respectively with obtaining each key side network equipment Available label scope, and the available label scope chosen respectively using each key side network equipment determines that this Customer Premises Network is set The standby label used, and make each key side network equipment that the label that this Customer Premises Network equipment is used is distributed into this user side net Network equipment.Based on the above-mentioned label method of salary distribution, ensure that each key side network equipment is the mark that Customer Premises Network equipment is distributed Label are identical, so that when primary link breaks down or standby link breaks down, it is to avoid label is switched over, so as to quickly will Message on primary link is switched on standby link or quickly the message on standby link is switched on primary link, quick to meet The demand of switching, reduces switching time, it is possible to the convergence time of business is greatly improved, user's better services experience sense is given, Improve the service quality of carrier network.
Brief description of the drawings
Fig. 1 is PW networking schematic diagrams in the prior art in L2VPN;
Fig. 2 is a kind of label distribution method schematic flow sheet provided in an embodiment of the present invention;
Fig. 3 is a kind of specific example of tag block request message provided in an embodiment of the present invention;
Fig. 4 is a kind of specific example of tag block response message provided in an embodiment of the present invention;
Fig. 5 is a kind of specific example of label confirmation message provided in an embodiment of the present invention;
Fig. 6 is a kind of structural representation of Customer Premises Network equipment provided in an embodiment of the present invention;
Fig. 7 is a kind of structural representation of key side network equipment provided in an embodiment of the present invention.
Embodiment
For problems of the prior art, the embodiment of the present invention provides a kind of label distribution method, this method application In the network including Customer Premises Network equipment and multiple key side network equipments, Customer Premises Network equipment respectively with multiple backbones Link between the network equipment of side constitutes main/slave link.Wherein, the application scenarios of this method can be the VPN FRR in L3VPN LDP FRR networkings in PW networkings in networking, L2VPN, L2VPN etc..In addition, the quantity of the key side network equipment can be 2 It is individual or more than 2, when the quantity of the key side network equipment is 2, then in the presence of a primary link and a standby link, work as backbone When the quantity of the side network equipment is more than 2, then in the presence of a primary link and at least two standby links.
Assuming that the PW networkings in L2VPN shown in Fig. 1 are the application scenarios schematic diagram of the embodiment of the present invention, based on this, use The family side network equipment is user-end provider edge, and the key side network equipment is NPE equipment, PW1 between user-end provider edge and NPE equipment 1 and PW2 between user-end provider edge and NPE equipment 2 constitutes active and standby PW, such as:PW1 is main PW, and PW2 is standby PW.In the specific implementation, this hair The application scenarios of bright embodiment can also be VPN FRR networkings, LDP FRR networkings in L2VPN in L3VPN etc., at these Under networking, processing mode is identical with the processing of the PW networkings in L2VPN, and simply corresponding executive agent changes, such as L3VPN In VPN FRR networkings under, Customer Premises Network equipment is PE equipment, and the key side network equipment is PE equipment.Retouch for convenience State, illustrated by taking the PW networkings in L2VPN as an example, repeated no more for the processing under other networkings.
Under above-mentioned application scenarios, as shown in Fig. 2 the label distribution method comprises the following steps:
Step 201, Customer Premises Network equipment sends tag block request message to multiple key side network equipments respectively;Its In, the tag block request message is used to ask the key side network equipment to choose available label scope from specific label section.Such as Fig. 3 It is shown, it is a kind of specific example of tag block request message.
Under the application scenarios shown in Fig. 1, user-end provider edge needs to send tag block request message, and the mark to NPE equipment 1 Label block request message is used to ask NPE equipment 1 to choose available label scope from specific label section;In addition, user-end provider edge is also needed to Tag block request message is sent to NPE equipment 2, the tag block request message is used to ask NPE equipment 2 from specific label Duan Zhongxuan Take available label scope.
Step 202, the key side network equipment is after the tag block request message from Customer Premises Network equipment is received, from The network equipment corresponding available label scope in key side is chosen in specific label section.
, it is necessary to be the reserved specific label section of active and standby business on the key side network equipment in the embodiment of the present invention dualpwsegment(Such as 1024-4096), specific label section just refer to based on the label segment reserved of standby business, and this is specific Available label in label segment is used to distribute to Customer Premises Network equipment.
Based on this, the key side network equipment after the tag block request message from Customer Premises Network equipment is received, from The network equipment corresponding available label scope in key side is chosen in specific label section, this can use mark by the key side network equipment afterwards Label in the range of label is labeled as unavailable label.
Under the application scenarios shown in Fig. 1, for specific label section 1024-4096, it is assumed that label range 1024-2048 with And 4000-4096 is marked as unavailable label, then the currently available label range of NPE equipment 1 is label segment 2048-4000, NPE Equipment 1 chooses available label scope after the tag block request message from user-end provider edge is received from label segment 2048-4000 2048-3000, and the label in available label scope 2048-3000 is labeled as unavailable label.For specific label section 1024-4096, it is assumed that the currently available label range of NPE equipment 2 is that label segment 1024-4000, NPE equipment 2 is being received from UPE After the tag block request message of equipment, available label scope 2000-3000 is chosen from label segment 1024-4000, and can by this Unavailable label is labeled as with the label in label range 2000-3000.
Step 203, the key side network equipment sends tag block response message, the tag block response to Customer Premises Network equipment The available label scope that this key side network equipment is chosen is carried in message;Wherein, the tag block response message is further used The available label scope chosen respectively in the request multiple key side network equipments of Customer Premises Network equipment utilization determines the user side The label that the network equipment is used.As shown in figure 4, being a kind of specific example of tag block response message, the tag block response message In TLV(Type Length Value, type lengths values)The available mark that this key side network equipment is chosen is carried in field Sign scope.Wherein, a series of intervals will be stored in TLV fields, interval can be continuous, can also be discrete.If certain section of min= Max, represents discrete available label.If min<Max, represents continuous available label.
Under the application scenarios shown in Fig. 1, NPE equipment 1 is needed available label scope by tag block response message 2048-3000 is sent to user-end provider edge;In addition, NPE equipment 2 is needed available label scope 2000- by tag block response message 3000 are sent to user-end provider edge.
Step 204, Customer Premises Network equipment is after the tag block response message that multiple key side network equipments are returned is received, The available label scope chosen respectively using the plurality of key side network equipment determines the label that Customer Premises Network equipment is used.Its In, the label that Customer Premises Network equipment is used is prefix label.
In the embodiment of the present invention, the available label that the multiple key side network equipments of Customer Premises Network equipment utilization are chosen respectively Scope determines the label that Customer Premises Network equipment is used, and specifically includes:Customer Premises Network equipment obtains multiple key side nets respectively The available label scope that network equipment is chosen, if existed between the available label scope that multiple key side network equipments are chosen identical Available label, then the label that is used as Customer Premises Network equipment of a label is selected from identical available label.For example, The label that minimum label in Customer Premises Network equipment selection identical available label is used as Customer Premises Network equipment;Or, The label that maximum label in Customer Premises Network equipment selection identical available label is used as Customer Premises Network equipment.When So, in the specific implementation, Customer Premises Network equipment is not limited to select minimum label or maximum label as Customer Premises Network Label can be randomly choosed from identical available label in the label that equipment is used, practical application and be used as Customer Premises Network equipment The label used, the selection mode will not be repeated here.
Under the application scenarios shown in Fig. 1, the available label scope that user-end provider edge obtains the selection of NPE equipment 1 is 2048- 3000, the available label scope for obtaining the selection of NPE equipment 2 is 2000-3000;Based on this, between NPE equipment 1 and NPE equipment 2 Identical available label be 2048-3000, now, user-end provider edge can arbitrarily select a label conduct out of 2048-3000 The label that this user-end provider edge is used, such as selection label 2048 or label 3000 or random selection label 2999 make as this user-end provider edge Label.
Step 205, Customer Premises Network equipment sends label confirmation message, and the mark to multiple key side network equipments respectively The label that Customer Premises Network equipment is used is carried in label confirmation message.Wherein, the label confirmation message is used to ask key side The label that Customer Premises Network equipment is used is distributed to the Customer Premises Network equipment by the network equipment.As shown in figure 5, confirming for label A kind of specific example of message.
Under the application scenarios shown in Fig. 1, user-end provider edge sends label confirmation message to NPE equipment 1, and the label confirms to disappear Carry the label 2048 that user-end provider edge is used in breath, and the label confirmation message is used to asking NPE equipment 1 by 2048 points of label Dispensing user-end provider edge;In addition, user-end provider edge is sent in label confirmation message, the label confirmation message to NPE equipment 2 carries UPE The label 2048 that equipment is used, and the label confirmation message is for asking NPE equipment 2 that label 2048 is distributed into user-end provider edge.
Step 206, the key side network equipment is after label confirmation message is received, the use that will be carried in label confirmation message The label that the family side network equipment is used distributes to Customer Premises Network equipment.
Under the application scenarios shown in Fig. 1, NPE equipment 1, will after the label confirmation message for carrying label 2048 is received Label 2048 distributes to user-end provider edge, and records the corresponding pass between the PW between NPE equipment 1 and user-end provider edge and label 2048 System, and notified label 2048 to user-end provider edge by the PW between NPE equipment 1 and user-end provider edge;In addition, NPE equipment 2 is being received After the label confirmation message for carrying label 2048, label 2048 is distributed into user-end provider edge, and records NPE equipment 2 and UPE set The corresponding relation between PW and label 2048 between standby, and by the PW between NPE equipment 2 and user-end provider edge by label 2048 Notify to user-end provider edge.
Based on above-mentioned processing, NPE equipment 1 and NPE equipment 2 are that user-end provider edge is assigned with same label 2048, and user-end provider edge leads to Cross PW1 to receive after label 2048, the corresponding relation between record PW1 and label 2048, user-end provider edge receives label 2048 by PW2 Afterwards, the corresponding relation between record PW2 and label 2048.When user-end provider edge sends the message for carrying label 2048, pass through label 2048 Inquire PW1 and PW2;Because PW1 and PW2 is that only one of which is state of activation in active and standby PW, therefore PW1 and PW2, when PW1 is During state of activation, user-end provider edge sends the message for carrying label 2048 by PW1, and when PW2 is state of activation, user-end provider edge passes through PW2 sends the message for carrying label 2048.
Further, when PW1 is state of activation, if PW1 breaks down, switching PW2 is state of activation, now not Need to switch over label 2048, user-end provider edge sends the message for carrying label 2048 by PW2.When PW2 is state of activation When, if PW2 breaks down, switching PW1 is state of activation, and now label 2048 need not be switched over, and user-end provider edge leads to Cross PW1 and send the message for carrying label 2048.Aforesaid way can meet the demand being switched fast, and reduce switching time, greatly Raising business convergence time, give user's better services experience sense, improve carrier service quality.
In the embodiment of the present invention, Message ID are also carried in tag block request message(Message identifier), key side network Equipment reads Message ID after tag block request message is received from tag block request message;If currently without The Message ID of processing, then Message ID for marking reading are the Message ID handled, and are performed from specific The process and subsequent process of available label scope are chosen in label segment(That is step 202- steps 206);If currently had Tag block request message, then be cached in queue by the Message ID handled, when the Message being presently processing After ID processing is completed, extraction tag block request message is handled from queue(Perform step 202- steps 206), and will The corresponding Message ID of the tag block request message are labeled as the Message ID handled.Further, key side net Network equipment is after label confirmation message is received, in the label for using the Customer Premises Network carried in label confirmation message equipment Distribute to after Customer Premises Network equipment, the Message ID being presently processing are deleted, to represent what is be presently processing Message ID processing is completed.
Based on the inventive concept same with the above method, a kind of Customer Premises Network is additionally provided in the embodiment of the present invention and is set Standby, applied in the network including the Customer Premises Network equipment and multiple key side network equipments, the Customer Premises Network is set Link of the back-up not between the multiple key side network equipment constitutes main/slave link, as shown in fig. 6, the Customer Premises Network Equipment is specifically included:
First sending module 11, for sending tag block request message, institute to the multiple key side network equipment respectively Stating tag block request message is used to ask the key side network equipment to choose available label scope from specific label section;
Receiving module 12, for receiving the tag block response message that the multiple key side network equipment is returned, institute respectively State and the available label scope that the key side network equipment is chosen is carried in tag block response message;
Determining module 13, the available label scope for being chosen respectively using the multiple key side network equipment determines institute State the label that Customer Premises Network equipment is used;
Second sending module 14, for sending label confirmation message to multiple key side network equipments respectively, the label is true Recognize in message and carry the label that Customer Premises Network equipment is used, and label confirmation message is used to ask the key side network equipment will The label that Customer Premises Network equipment is used distributes to Customer Premises Network equipment.
The determining module 13, specifically for obtaining the available label scope that multiple key side network equipments are chosen respectively, It is available from identical if there is identical available label between the available label scope that multiple key side network equipments are chosen The label for selecting a label to be used as Customer Premises Network equipment in label.
Wherein, the modules of apparatus of the present invention can be integrated in one, and can also be deployed separately.Above-mentioned module can be closed And be a module, multiple submodule can also be further split into.
Based on the inventive concept same with the above method, a kind of key side network is additionally provided in the embodiment of the present invention and is set Standby, applied in the network including Customer Premises Network equipment and multiple key side network equipments, the Customer Premises Network equipment is divided Link not between the multiple key side network equipment constitutes main/slave link, as shown in fig. 7, the key side network equipment Specifically include:
First receiving module 21, for receiving the tag block request message from the Customer Premises Network equipment;
Selecting module 22, for after the tag block request message from the Customer Premises Network equipment is received, from spy Determine to choose the corresponding available label scope of the key side network equipment in label segment;
Sending module 23, for sending tag block response message, the tag block response to the Customer Premises Network equipment The available label scope that the key side network equipment is chosen is carried in message, and the tag block response message is used to ask The available label scope that the multiple key side network equipment of Customer Premises Network equipment utilization is chosen respectively determines the use The label that the family side network equipment is used;
Second receiving module 24, for receiving the label confirmation message from the Customer Premises Network equipment, and the mark The label that the Customer Premises Network equipment is used is carried in label confirmation message;
Distribute module 25, for after the label confirmation message is received, by what is carried in the label confirmation message The label that Customer Premises Network equipment is used distributes to the Customer Premises Network equipment.
The selecting module 22, is additionally operable to choose the key side network equipment from specific label section corresponding available After label range, the label in the range of the available label is labeled as unavailable label.
The selecting module 22, is further used for after tag block request message is received, and disappears from tag block request Message identifier Message ID are read in breath;If currently without the Message ID handled, marking the Message ID is the Message ID that are handling, and performs that the key side network equipment is chosen from specific label section is corresponding available The process of label range;If currently there are the Message ID handled, the tag block request message is cached Into queue, after the Message ID processing being presently processing is completed, tag block request message is extracted from queue Handled, and the Message ID that the corresponding Message ID of the tag block request message are labeled as handling;
After label confirmation message is received, used by the Customer Premises Network equipment carried in the label confirmation message Label distribute to the Customer Premises Network equipment after, delete the Message ID being presently processing, with represent it is current just Handle and complete in the Message ID of processing.
Wherein, the modules of apparatus of the present invention can be integrated in one, and can also be deployed separately.Above-mentioned module can be closed And be a module, multiple submodule can also be further split into.
Through the above description of the embodiments, those skilled in the art can be understood that the present invention can be by Software adds the mode of required general hardware platform to realize, naturally it is also possible to which by hardware, but in many cases, the former is more Good embodiment.Understood based on such, what technical scheme substantially contributed to prior art in other words Part can be embodied in the form of software product, and the computer software product is stored in a storage medium, if including Dry instruction is to cause a computer equipment(Can be personal computer, server, or network equipment etc.)Perform this hair Method described in each bright embodiment.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module or stream in accompanying drawing Journey is not necessarily implemented necessary to the present invention.
It will be appreciated by those skilled in the art that the module in device in embodiment can be divided according to embodiment description It is distributed in the device of embodiment, respective change can also be carried out and be disposed other than in one or more devices of the present embodiment.On The module for stating embodiment can be merged into a module, can also be further split into multiple submodule.
The embodiments of the present invention are for illustration only, and the quality of embodiment is not represented.
Disclosed above is only several specific embodiments of the present invention, and still, the present invention is not limited to this, any ability What the technical staff in domain can think change should all fall into protection scope of the present invention.

Claims (8)

1. a kind of label distribution method, this method is applied to include the net of Customer Premises Network equipment and multiple key side network equipments In network, the link of the Customer Premises Network equipment respectively between the multiple key side network equipment constitutes main/slave link, its It is characterised by, the described method comprises the following steps:
The Customer Premises Network equipment sends tag block request message, the label to the multiple key side network equipment respectively Block request message is used to ask the key side network equipment to choose available label scope from specific label section;
The Customer Premises Network equipment receives the tag block response message that the multiple key side network equipment is returned respectively, described The available label scope that the key side network equipment is chosen is carried in tag block response message;
The available label scope that the multiple key side network equipment of Customer Premises Network equipment utilization is chosen respectively determines institute State the label that Customer Premises Network equipment is used;
The Customer Premises Network equipment sends label confirmation message to the multiple key side network equipment respectively, and the label is true Recognize in message and carry the label that the Customer Premises Network equipment is used, and the label confirmation message is used to ask key side net The label that the Customer Premises Network equipment is used is distributed to the Customer Premises Network equipment by network equipment;
Wherein, the available label scope that the multiple key side network equipment of the Customer Premises Network equipment utilization is chosen respectively is true The process for the label that the fixed Customer Premises Network equipment is used, is specifically included:The Customer Premises Network equipment obtains described respectively The available label scope that multiple key side network equipments are chosen, if the available label that the multiple key side network equipment is chosen There is identical available label between scope, then select a label to be used as the Customer Premises Network from identical available label The label that equipment is used.
2. a kind of label distribution method, this method is applied to include the net of Customer Premises Network equipment and multiple key side network equipments In network, the link of the Customer Premises Network equipment respectively between the multiple key side network equipment constitutes main/slave link, its It is characterised by, the described method comprises the following steps:
The key side network equipment receives the tag block request message from the Customer Premises Network equipment, and from specific label section Choose the corresponding available label scope of the key side network equipment;
The key side network equipment sends tag block response message to the Customer Premises Network equipment, and the tag block response disappears The available label scope that the key side network equipment is chosen is carried in breath, and the tag block response message is used to ask institute State the available label scope that the multiple key side network equipment of Customer Premises Network equipment utilization chooses respectively and determine the user The label that the side network equipment is used;
The key side network equipment receives the label confirmation message from the Customer Premises Network equipment, and the label confirms The label that the Customer Premises Network equipment is used is carried in message;
The key side network equipment is after the label confirmation message is received, the use that will be carried in the label confirmation message The label that the family side network equipment is used distributes to the Customer Premises Network equipment;
Wherein, the label that the Customer Premises Network equipment is used is determined especially by procedure below:
The Customer Premises Network equipment obtains the available label scope that the multiple key side network equipment is chosen respectively, if institute There is identical available label between the available label scope for stating multiple key side network equipments selections, then can use mark from identical The label for selecting a label to be used as the Customer Premises Network equipment in label.
3. method as claimed in claim 2, it is characterised in that the key side network equipment chooses institute from specific label section The corresponding available label scope of the key side network equipment is stated, is also included afterwards:
Label in the range of the available label is labeled as unavailable label by the key side network equipment.
4. method as claimed in claim 2, it is characterised in that methods described also includes:
The key side network equipment reads message after tag block request message is received from the tag block request message Identify Message ID;If currently without the Message ID handled, marking the Message ID to locate The Message ID of reason, and execution chooses the corresponding available label scope of the key side network equipment from specific label section Process;If currently there are the Message ID handled, the tag block request message is cached in queue, etc. After being completed to the Message ID processing being presently processing, extraction tag block request message is handled from queue, and The Message ID that the corresponding Message ID of the tag block request message are labeled as handling;
The key side network equipment is after label confirmation message is received, in the user that will be carried in the label confirmation message The label that the side network equipment is used is distributed to after the Customer Premises Network equipment, deletes the Message being presently processing ID, is completed with representing that the Message ID being presently processing are handled.
5. a kind of Customer Premises Network equipment, applied to the net including the Customer Premises Network equipment and multiple key side network equipments In network, the link of the Customer Premises Network equipment respectively between the multiple key side network equipment constitutes main/slave link, its It is characterised by, the Customer Premises Network equipment is specifically included:
First sending module, for sending tag block request message, the label to the multiple key side network equipment respectively Block request message is used to ask the key side network equipment to choose available label scope from specific label section;
Receiving module, for receiving the tag block response message that the multiple key side network equipment is returned, the label respectively The available label scope that the key side network equipment is chosen is carried in block response message;
Determining module, the available label scope for being chosen respectively using the multiple key side network equipment determines the user The label that the side network equipment is used;
Second sending module, for sending label confirmation message, the label confirmation message to multiple key side network equipments respectively In carry the label that Customer Premises Network equipment is used, and the label confirmation message is used to ask the key side network equipment by user The label that the side network equipment is used distributes to Customer Premises Network equipment;
Wherein, the sending module, specifically for obtaining the available label scope that multiple key side network equipments are chosen respectively, such as There is identical available label between the available label scope that really multiple key side network equipments are chosen, then can use mark from identical The label for selecting a label to be used as Customer Premises Network equipment in label.
6. a kind of key side network equipment, applied to the network including Customer Premises Network equipment and multiple key side network equipments In, the link of the Customer Premises Network equipment respectively between the multiple key side network equipment constitutes main/slave link, and it is special Levy and be, the key side network equipment is specifically included:
First receiving module, for receiving the tag block request message from the Customer Premises Network equipment;
Selecting module, for after the tag block request message from the Customer Premises Network equipment is received, from specific label The corresponding available label scope of the key side network equipment is chosen in section;
Sending module, for being sent to the Customer Premises Network equipment in tag block response message, the tag block response message The available label scope that the key side network equipment is chosen is carried, and the tag block response message is used to ask the use The available label scope that the family side network equipment is chosen respectively using the multiple key side network equipment determines the user side net The label that network equipment is used;
Second receiving module, for receiving the label confirmation message from the Customer Premises Network equipment, and the label confirms The label that the Customer Premises Network equipment is used is carried in message;
Distribute module, for after the label confirmation message is received, the user side that will be carried in the label confirmation message The label that the network equipment is used distributes to the Customer Premises Network equipment;
Wherein, the label that the Customer Premises Network equipment is used is determined especially by procedure below:
The Customer Premises Network equipment obtains the available label scope that the multiple key side network equipment is chosen respectively, if institute There is identical available label between the available label scope for stating multiple key side network equipments selections, then can use mark from identical The label for selecting a label to be used as the Customer Premises Network equipment in label.
7. the backbone side as claimed in claim 6 network equipment, it is characterised in that
The selecting module, is additionally operable to choosing the corresponding available label model of the key side network equipment from specific label section After enclosing, the label in the range of the available label is labeled as unavailable label.
8. the backbone side as claimed in claim 6 network equipment, it is characterised in that
The selecting module, is further used for after tag block request message is received, and is read from the tag block request message Take message identifier Message ID;If currently without the Message ID handled, marking the Message ID to be The Message ID handled, and execution chooses the corresponding available label of the key side network equipment from specific label section The process of scope;If currently there are the Message ID handled, the tag block request message is cached to team In row, after the Message ID processing being presently processing is completed, the progress of tag block request message is extracted from queue Processing, and the Message ID that the corresponding Message ID of the tag block request message are labeled as handling;
After label confirmation message is received, in the mark for using the Customer Premises Network equipment carried in the label confirmation message Label are distributed to after the Customer Premises Network equipment, the Message ID being presently processing are deleted, to represent currently to locate The Message ID processing of reason is completed.
CN201310659531.7A 2013-12-06 2013-12-06 A kind of label distribution method and equipment Active CN103685019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310659531.7A CN103685019B (en) 2013-12-06 2013-12-06 A kind of label distribution method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310659531.7A CN103685019B (en) 2013-12-06 2013-12-06 A kind of label distribution method and equipment

Publications (2)

Publication Number Publication Date
CN103685019A CN103685019A (en) 2014-03-26
CN103685019B true CN103685019B (en) 2017-08-22

Family

ID=50321379

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310659531.7A Active CN103685019B (en) 2013-12-06 2013-12-06 A kind of label distribution method and equipment

Country Status (1)

Country Link
CN (1) CN103685019B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105096400A (en) * 2015-07-27 2015-11-25 努比亚技术有限公司 Card punching machine and card punching method
CN110290068B (en) 2018-03-19 2021-09-14 华为技术有限公司 Sending method, receiving method and equipment for adhesion label

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101309230A (en) * 2008-06-27 2008-11-19 迈普(四川)通信技术有限公司 Control method for packet sequence switch on transmission path of multiple protocol label switch
US7602702B1 (en) * 2005-02-10 2009-10-13 Juniper Networks, Inc Fast reroute of traffic associated with a point to multi-point network tunnel
CN101645836A (en) * 2009-08-25 2010-02-10 杭州华三通信技术有限公司 Packet transmission method and device in multi-protocol label switching network
CN101931586A (en) * 2009-06-26 2010-12-29 中国电信股份有限公司 Method and system for rapidly rerouting MPLS VPN (Multi-Protocol Label Switching Virtual Private Network)
CN102255759A (en) * 2011-08-16 2011-11-23 杭州华三通信技术有限公司 Method and device for transmitting data message based on PW (Packet Writing) redundant backup
CN103139040A (en) * 2013-03-13 2013-06-05 杭州华三通信技术有限公司 Extensional virtual private network (VPN) false refused rate (FRR) implement method and equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7602702B1 (en) * 2005-02-10 2009-10-13 Juniper Networks, Inc Fast reroute of traffic associated with a point to multi-point network tunnel
CN101309230A (en) * 2008-06-27 2008-11-19 迈普(四川)通信技术有限公司 Control method for packet sequence switch on transmission path of multiple protocol label switch
CN101931586A (en) * 2009-06-26 2010-12-29 中国电信股份有限公司 Method and system for rapidly rerouting MPLS VPN (Multi-Protocol Label Switching Virtual Private Network)
CN101645836A (en) * 2009-08-25 2010-02-10 杭州华三通信技术有限公司 Packet transmission method and device in multi-protocol label switching network
CN102255759A (en) * 2011-08-16 2011-11-23 杭州华三通信技术有限公司 Method and device for transmitting data message based on PW (Packet Writing) redundant backup
CN103139040A (en) * 2013-03-13 2013-06-05 杭州华三通信技术有限公司 Extensional virtual private network (VPN) false refused rate (FRR) implement method and equipment

Also Published As

Publication number Publication date
CN103685019A (en) 2014-03-26

Similar Documents

Publication Publication Date Title
CN105245452B (en) Multi-protocol label switching traffic engineering tunnel establishing method and equipment
CN109831382A (en) A kind of path calculation method, device and equipment
WO2016198013A1 (en) Packet transmission method and apparatus
CN107547383A (en) Path detection method and device
CN103067416A (en) Virtual private cloud (VPC) access authentication method and correlation apparatus
CN103634423B (en) Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device
JP2020527918A (en) Data flow transmission
Dai et al. A general model for hybrid fiber-wireless (FiWi) access network virtualization
CN101997765A (en) Method for attribute inheritance of forwarding adjacency (FA) in multilayer network and corresponding multiplayer network
WO2014023172A1 (en) System and method for managing cwsn communication data based on gui graphic interaction interface
US8964749B2 (en) Method, device and system for establishing a pseudo wire
CN101299723B (en) Method and apparatus for managing label switching route tunnel information
CN106209559B (en) A kind of method and apparatus for establishing Multicast Tunnel
CN103685019B (en) A kind of label distribution method and equipment
CN105100002B (en) The operating method and device of attribute
CN106452915A (en) MPLS (multi-protocol label switching) VPN (virtual private network) network topology discovery method and device
CN102833161B (en) Tunnel load share method and device
US8238265B2 (en) Auto-binding SDP RSVP LSP tunnel
CN109525493B (en) Network path establishing method and device
CN108337163A (en) Method and apparatus for link aggregation
CN103200107B (en) Message transmitting method and message transmitting equipment
CN103209125A (en) Label information transmission method and device
CN105591911B (en) A kind of generation method and device of LSP
CN106911769A (en) The processing method of cloud platform route data and the physical server of cloud platform
CN109639502A (en) Return operated control method and content distributing network

Legal Events

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

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

Applicant after: Xinhua three Technology Co., Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant