CN102611603A - Method and device for establishing static MPLS (Multi-Protocol Label Switch) tunnel forwarding table and transmitting data - Google Patents

Method and device for establishing static MPLS (Multi-Protocol Label Switch) tunnel forwarding table and transmitting data Download PDF

Info

Publication number
CN102611603A
CN102611603A CN2012100706735A CN201210070673A CN102611603A CN 102611603 A CN102611603 A CN 102611603A CN 2012100706735 A CN2012100706735 A CN 2012100706735A CN 201210070673 A CN201210070673 A CN 201210070673A CN 102611603 A CN102611603 A CN 102611603A
Authority
CN
China
Prior art keywords
mpls tunnel
static
acquiescence
static mpls
configuration information
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
CN2012100706735A
Other languages
Chinese (zh)
Other versions
CN102611603B (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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201210070673.5A priority Critical patent/CN102611603B/en
Publication of CN102611603A publication Critical patent/CN102611603A/en
Application granted granted Critical
Publication of CN102611603B publication Critical patent/CN102611603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a method and device for establishing a static MPLS (Multi-Protocol Label Switch) tunnel forwarding table and transmitting data. The method for establishing the forwarding table comprises the following steps of: obtaining configuration information of a static MPLS tunnel of a network element, wherein the configuration information only appoints a label of the static MPLS tunnel and a physical outlet port of the static MPLS tunnel; judging whether the next IP (Internet Protocol) address in the configuration information is 0 or not; if so, obtaining a pre-configured defaulted MAC (Media Access Control) address and a defaulted VLAN (Virtual Local Area Network); and utilizing the defaulted MAC address and the defaulted VLAN to establish a static MPLS tunnel forwarding table. With the adoption of the method and device disclosed by the invention, the configuration complexity and the configuration errors caused by personal factors are reduced, so as to improve the configuration efficiency of the static MPLS tunnel.

Description

The foundation that static MPLS transmits in the tunnel, the transmission method and the device of data
Technical field
The present invention relates to the communications field, the foundation of transmitting, the transmission method and the device of data in particular to a kind of static MPLS tunnel.
Background technology
At present, professional transmission is accomplished in the static tunnel of many employings in the bearer network.Grouping conveying network (Packet Transfer Network; Abbreviating PTN as) equipment is at configuring static multiprotocol label switching (Multi-Protocol Label Switching; Abbreviate MPLS as) during the tunnel; Each equipment that needs hop-by-hop manual configuration tunnel path process, goes out/goes into information such as label, next jumping at the going out of configured tunneling technique on each equipment/inbound port.Transmitting of tunnel is to jump Internet protocol (Internet Protocol through next; Abbreviate IP as) retrieve local breakout and VLAN (Virtual Local Area Network; Abbreviate VLAN as) encapsulation; And obtain purpose medium access control two layers of packaging information such as (Media Access Control abbreviate MAC as) of MPLS channel message through next-hop IP corresponding address translation-protocol (Address Resolution Protocol abbreviates ARP as) information.
Therefore, even when configuring static MPLS tunnel, also need plan the VLAN of PTN equipment; Based on three layers of attribute interface of VLAN configuration; The IP address and the subnet mask of three layers of attribute interface of configuration, configuring static ARP (or dynamic learning ARP, be mostly configuring static ARP at present); And static MAC, could accomplish the configuration in static MPLS tunnel.
To sum up can know, in correlation technique, the basic data configuration item more complicated that the static MPLS of hop-by-hop manual configuration tunnel relates to, information such as IP that need plan and VLAN are more, cause allocative efficiency low and configuration complexity and configuration error rate height.
Summary of the invention
Data configuration item to the static MPLS of hop-by-hop manual configuration in correlation technique tunnel is more; Cause allocative efficiency low and configuration complexity and the high problem of configuration error rate; The invention provides the foundation of transmitting in a kind of static MPLS tunnel, the transmission method and the device of data, to address the above problem at least.
According to an aspect of the present invention; A kind of static MPLS is provided the method for building up that the tunnel is transmitted; Comprise: the configuration information that obtains the static multiprotocol label switching MPLS tunnel of network element; Wherein, only specify the label in said static MPLS tunnel and the physics outbound port in said static MPLS tunnel in the said configuration information; Judge whether next the jumping Internet protocol IP address in the said configuration information is 0; If obtain the media access control MAC address of pre-configured acquiescence and the virtual LAN VLAN of acquiescence; Use the MAC Address of said acquiescence and the VLAN of acquiescence to set up transmitting of said static MPLS tunnel.
According to another aspect of the present invention; A kind of transmission method of static MPLS tunneling data is provided; Comprise: when needs send datagram literary composition; Sending ending equipment is transmitted according to static multiprotocol label switching MPLS tunnel, and the purpose media access control MAC address of said data message is encapsulated as the MAC Address of pre-configured acquiescence, the virtual LAN VLAN of said data message is encapsulated as the VALN of pre-configured acquiescence; Said sending ending equipment sends the data message after encapsulating from the physics outbound port of the configuration information appointment in said static MPLS tunnel.
Preferably; After the data message of said sending ending equipment after the physics outbound port of the configuration information appointment in said MPLS tunnel sends encapsulation, said method also comprises: receiving device confirms that the target MAC (Media Access Control) address of the data message after the said encapsulation is the MAC Address of pre-configured acquiescence; Said receiving device receives the data message after the said encapsulation.
Preferably; When needs are transmitted data message; Said receiving device receives after the data message after the said encapsulation, and said method also comprises: said receiving device judges that in the configuration information in static MPLS tunnel of said receiving device next jump Internet protocol IP address whether 0; If the data message of said receiving device after with said encapsulation is sent to the physics outbound port of configuration information appointment in the static MPLS tunnel of said receiving device; Said receiving device sends the data message after the said encapsulation from the physics outbound port of the configuration information appointment in the static MPLS tunnel of said receiving device.
Preferably; Said sending ending equipment is set up transmitting of said static MPLS tunnel according to following method: the configuration information that obtains the static MPLS tunnel of said sending ending equipment; Wherein, only specify the physics outbound port in static MPLS tunnel of label and said sending ending equipment in the static MPLS tunnel of said sending ending equipment in the said configuration information; Judge whether the next-hop ip address in the configuration information in static MPLS tunnel of said sending ending equipment is 0, if obtain the MAC Address of pre-configured acquiescence and the VLAN of acquiescence; Use the VLAN of MAC Address and the acquiescence of said acquiescence to set up the transmitting of static MPLS tunnel of said sending ending equipment.
According to a further aspect of the invention; A kind of static MPLS is provided the apparatus for establishing that the tunnel is transmitted; Comprise: first acquisition module; Be used to obtain the configuration information in the static multiprotocol label switching MPLS tunnel of network element, wherein, only specify the label in said static MPLS tunnel and the physics outbound port in said static MPLS tunnel in the said configuration information; Judge module is used for judging whether next jumping Internet protocol IP address of said configuration information is 0; Second acquisition module, the judged result that is used at said judge module is under the situation that is, obtains the media access control MAC address of pre-configured acquiescence and the virtual LAN VLAN of acquiescence; Set up module, be used to use the MAC Address of said acquiescence and the VLAN of acquiescence to set up transmitting of said static MPLS tunnel.
According to a further aspect of the invention; A kind of dispensing device of static MPLS tunneling data is provided; Comprise: first package module; Be used for when needs send datagram literary composition,, the purpose media access control MAC address of said data message be encapsulated as the MAC Address of pre-configured acquiescence according to transmitting of static multiprotocol label switching MPLS tunnel; Second package module is used for the virtual LAN VLAN of said data message is encapsulated as the VALN of pre-configured acquiescence; Sending module is used for sending the data message after the encapsulation from the physics outbound port of the configuration information appointment in said static MPLS tunnel.
Preferably, said device also comprises: set up module, comprising: first acquiring unit, be used to obtain the configuration information in the static MPLS tunnel of sending ending equipment, and wherein, only specify the physics outbound port in said static MPLS tunnel in the said configuration information; Judging unit is used for judging that next of configuration information of said sending ending equipment jumps whether Internet protocol IP address is 0; Second acquisition unit, the judged result that is used at said judging unit is under the situation that is, obtains the MAC Address of pre-configured acquiescence and the VLAN of acquiescence; Set up the unit, be used to use the VLAN of MAC Address and the acquiescence of said acquiescence to set up the transmitting of static MPLS tunnel of said sending ending equipment.
According to a further aspect of the invention; A kind of receiving system of static MPLS tunneling data is provided; It is characterized in that, comprising: determination module, the target MAC (Media Access Control) address that is used for confirming the data message that arrives through static MPLS tunnel are the MAC Address of pre-configured acquiescence; Receiver module is used to receive said data message.
Preferably, said device also comprises: judge module, next of configuration information that is used for judging the static MPLS tunnel of receiving device are jumped Internet protocol IP address whether 0; Forwarding module, the judged result that is used at said judge module is under the situation that is, said data message is sent to the physics outbound port of the configuration information appointment in said MPLS tunnel, and sends said data message from the physics outbound port of said appointment.
Through the present invention; During configuring static MPLS tunnel; Only need specify the physics outbound port in MPLS tunnel, and the MAC Address of allocating default and vlan information, use the MAC Address of acquiescence and the VLAN of acquiescence to set up transmitting of static MPLS tunnel; Reduce the configuration error that configuration complexity and human factor cause, improved the allocative efficiency in static MPLS tunnel.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for building up transmitted according to the static MPLS tunnel of the embodiment of the invention;
Fig. 2 is the sketch map of the apparatus for establishing transmitted according to the static MPLS tunnel of the embodiment of the invention;
Fig. 3 is the flow chart according to the transmission method of the static MPLS tunneling data of the embodiment of the invention;
Fig. 4 is the sketch map according to the dispensing device of the static MPLS tunneling data of the embodiment of the invention;
Fig. 5 is the sketch map according to the dispensing device of the preferred static MPLS tunneling data of the embodiment of the invention;
Fig. 6 is the sketch map according to the receiving system of the static MPLS tunneling data of the embodiment of the invention;
Fig. 7 is the sketch map according to the receiving system of the preferred static MPLS tunneling data of the embodiment of the invention;
Fig. 8 is the sketch map according to the static MPLS tunnel networking of the embodiment of the invention.
Embodiment
Hereinafter will and combine embodiment to specify the present invention with reference to accompanying drawing.Need to prove that under the situation of not conflicting, embodiment and the characteristic among the embodiment among the application can make up each other.
In correlation technique; Data configuration item by the static MPLS of hop-by-hop manual configuration tunnel is more; And cause low and configuration complexity of allocative efficiency and the high problem of configuration error rate; The embodiment of the invention provides a kind of solution of static MPLS tunnel of exempting to dispose, and can simplify the configuration data items in static MPLS tunnel through this scheme, only needs to specify static MPLS tunnel physics outbound port; Use default vlan, MAC information to set up transmitting of static MPLS tunnel, reduced the configuration error that configuration complexity and human factor cause.Exempt from configuring static MPLS tunnel and transmit when forming, need not related ARP information, transmit the formation performance and be superior to the formation of normal static MPLS tunnel, reduced the coupling between MPLS tunnel and ARP.Dispose corresponding tunnel of exempting to dispose and detect, exempt from configuration feature through the unlatching port and realize packet sending and receiving, thereby realize professional through the forwarding of static MPLS tunnel, measuring ability.
Embodiment one
According to the embodiment of the invention; A kind of static MPLS is provided the method for building up that the tunnel is transmitted; Simplify the configuration data items in static MPLS tunnel, only need to specify the tunnel physical outlet, the tunnel that uses default vlan, MAC information to set up static MPLS is transmitted; Reduce the configuration error that configuration complexity and human factor cause, improved the allocative efficiency in static MPLS tunnel.
Fig. 1 is the flow chart of the method for building up transmitted according to the static MPLS tunnel of the embodiment of the invention, and as shown in Figure 1, this method comprises following step (step S102-step S108):
Step S102 obtains the configuration information in the static MPLS tunnel of network element, wherein, only specifies the label in static MPLS tunnel and the physics outbound port in this static state MPLS tunnel in this configuration information.
Step S104 judges whether the next-hop ip address in the configuration information is 0.
Step S106 is if obtain the MAC Address of pre-configured acquiescence and the VLAN of acquiescence.
Step S108 uses the MAC Address of acquiescence and the VLAN of acquiescence to set up transmitting of static MPLS tunnel.
Pass through the embodiment of the invention; During configuring static MPLS tunnel; Only need specify the physics outbound port in MPLS tunnel, and the MAC Address of allocating default and vlan information, use the MAC Address of acquiescence and the VLAN of acquiescence to set up transmitting of static MPLS tunnel; Reduce the configuration error that configuration complexity and human factor cause, improved the allocative efficiency in static MPLS tunnel.
In embodiments of the present invention, configuration network element (be the network equipment, as router etc.) only need be specified the physics outbound port in the static MPLS tunnel of network element, and MAC Address and the vlan information given tacit consent to for network element configuration.For example, the user can specify the physics outbound port in its static MPLS tunnel through the configuration software of network element, and the vlan information of the MAC Address of allocating default and acquiescence, need not dispose next-hop ip address, can accomplish the basic configuration of static MPLS.Preferably, the attribute whether the ether port arrangement " supports to exempt from configuration " defaults to and does not support, the attribute of " whether supporting to exempt from configuration " in embodiments of the present invention is set to " support ", to open the configuration feature of exempting from of port.
In practical application, the user specifies the physics outbound port in static MPLS tunnel on network element, and behind the MAC Address and vlan information of allocating default, network element is accomplished the basic configuration in static MPLS tunnel, and issues basic forwarding entry according to user's configuration information.Further; Network element judges that the next-hop ip address in its static MPLS tunnel is 0; Confirm to exempt from configuring static MPLS tunnel; Then obtain user configured default vlan and default mac information, the default vlan that gets access to and default mac information as two layers of corresponding in transmitting information, are formed complete forwarding entry.
For MPLS section layer (Transport MPLS Section based on the transmission net; Abbreviate TMS as) and SNCP (Sub-network Connection Protection; Abbreviate SNCP as) protection, do not supporting to exempt under the situation of configuration feature needs configuration next-hop ip address.If outbound port then need not dispose next-hop IP for " configuration is exempted from support ".Exempt from the configured port on the basis; Every port is only supported 1 TMS; Whether transmitting terminal can be whether 0 to distinguish be the TMS that the basis exempts to dispose according to protection next-hop ip address in the configuration information that issues, and whether receiving terminal is distinguished for default vlan through the VLAN ID (VALN ID) of message is the TMS that the basis exempts to dispose.And exempt to dispose default tag attribute through inquiry, and fill default purpose MAC and VLAN and create and transmit, send and receive detection messages.
According to the embodiment of the invention, corresponding to the method for building up that the static MPLS tunnel of the embodiment of the invention is transmitted, a kind of static MPLS is provided the apparatus for establishing that the tunnel is transmitted, can realize the said method that the embodiment of the invention provides.
Fig. 2 is the sketch map of the apparatus for establishing transmitted according to the static MPLS tunnel of the embodiment of the invention, and as shown in Figure 2, this device mainly comprises: first acquisition module 202, judge module 204, second acquisition module 206 and set up module 208.Wherein, first acquisition module 202 is used to obtain the configuration information in the static MPLS tunnel of network element, wherein, only specifies the label in static MPLS tunnel and the physics outbound port in this static state MPLS tunnel in this configuration information; Judge module 204 is coupled with first acquisition module 202, is used for judging whether the next-hop ip address of configuration information is 0; Second acquisition module 206 is coupled with judge module 204, and the judged result that is used at judge module 204 is under the situation that is, obtains the MAC Address of pre-configured acquiescence and the VLAN of acquiescence; Set up module 208, be coupled, be used to use the MAC Address of acquiescence and the VLAN of acquiescence to set up transmitting of static MPLS tunnel with second acquisition module 206.
Pass through the embodiment of the invention; During configuring static MPLS tunnel; Only need specify the physics outbound port in MPLS tunnel, and the MAC Address of allocating default and vlan information, the physics outbound port of specifying the MPLS tunnel obtained by first acquisition module 202; Second acquisition module 206 obtains the MAC Address of pre-configured acquiescence and the VLAN of acquiescence; Set up module 208 and use the MAC Address of acquiescence and the VLAN of acquiescence to set up transmitting of static MPLS tunnel, reduced the configuration error that configuration complexity and human factor cause, improved the allocative efficiency in static MPLS tunnel.
Embodiment two
According to the embodiment of the invention, a kind of transmission method of static MPLS tunneling data is provided, can in the static MPLS tunnel of setting up through the method and the device of the above embodiment of the present invention, realize the transmission of static MPLS tunneling data.
Fig. 3 is the flow chart according to the transmission method of the static MPLS tunneling data of the embodiment of the invention, and is as shown in Figure 3, and this method comprises following step (step S302-step S304):
Step S302; When needs send datagram literary composition; Sending ending equipment is transmitted according to static MPLS tunnel, and the target MAC (Media Access Control) address of data message is encapsulated as the MAC Address of pre-configured acquiescence, the VLAN of data message is encapsulated as the VALN of pre-configured acquiescence.
Step S304, sending ending equipment sends the data message after encapsulating from the physics outbound port of the configuration information appointment in MPLS tunnel.
Pass through the embodiment of the invention; When needs send datagram literary composition; Sending ending equipment is transmitted according to static MPLS tunnel; Encapsulation needs the data message (MAC Address of acquiescence and the VALN of acquiescence) of transmission, and sending ending equipment sends the data message after encapsulating from the physics outbound port of the configuration information appointment in MPLS tunnel, has realized the transmission of static MPLS tunneling data.
After the data message of sending ending equipment after the physics outbound port of the configuration information appointment in its MPLS tunnel sends encapsulation, receiving device can receive the data message after the encapsulation, by forwarding unit with data message forwarding to subscriber equipment.The inbound port of receiving device has two MAC Addresss, and one is the port mac address of configuration, and another is the MAC of acquiescence, if purpose MAC then receives this data message and handles for one of these two MAC Addresss in the data message that receives.In a preferred implementation of the embodiment of the invention, the receiving device receiving device confirms that the target MAC (Media Access Control) address of the data message after the encapsulation is the MAC Address of pre-configured acquiescence, and then receiving device receives the data message after the encapsulation.
When needs are transmitted data message (at this moment; Receiving device is as forwarding unit); In a preferred implementation of the embodiment of the invention; After the data message of receiving device after receiving encapsulation, judge the next-hop ip address whether 0 in the configuration information in static MPLS tunnel of receiving device, if; Data message after receiving device will encapsulate is sent to the physics outbound port of configuration information appointment in the static MPLS tunnel of receiving device, and receiving device sends the data message after the encapsulation from the physics outbound port of the configuration information appointment in the static MPLS tunnel of receiving device.
In another preferred implementation of the embodiment of the invention; Sending ending equipment as sending or transmit data message can be set up transmitting of static MPLS tunnel according to following method: the configuration information that obtains the static MPLS tunnel of sending ending equipment; Wherein, Only specify the physics outbound port in the static MPLS tunnel of sending ending equipment in this configuration information, judge whether the next-hop ip address in the configuration information in static MPLS tunnel of sending ending equipment is 0, if; Obtain the MAC Address of pre-configured acquiescence and the VLAN of acquiescence, and use the VLAN of MAC Address and the acquiescence of acquiescence to set up the transmitting of static MPLS tunnel of sending ending equipment.
According to the embodiment of the invention, the transmission method of the data that provide corresponding to the above embodiment of the present invention also provides a kind of dispensing device of static MPLS tunneling data, is positioned at sending ending equipment, realizes the transmission of static MPLS tunneling data.
Fig. 4 is the sketch map according to the dispensing device of the static MPLS tunneling data of the embodiment of the invention, and is as shown in Figure 4, and this device mainly comprises: first package module 402, second package module 404 and sending module 406.Wherein, first package module 402 is used for when needs send datagram literary composition, according to transmitting of static MPLS tunnel, the target MAC (Media Access Control) address of data message is encapsulated as the MAC Address of pre-configured acquiescence; Second package module 404 is used for the VLAN of data message is encapsulated as the VALN of pre-configured acquiescence; Sending module 406 is coupled with first package module 402 and second package module 404, is used for sending the data message after the encapsulation from the physics outbound port of the configuration information appointment in static MPLS tunnel.
Pass through the embodiment of the invention; First package module 402 and second package module 404 transmitting according to static MPLS tunnel; The data message that respectively needs is sent encapsulates; Send the data message after the encapsulation by sending module 406 from the physics outbound port of the configuration information appointment in static MPLS tunnel, realized the transmission of data message in static MPLS tunnel.
In a preferred implementation of the embodiment of the invention; In order to set up transmitting of static MPLS tunnel, as shown in Figure 5, said apparatus can also comprise: set up module 408; It can comprise: first acquiring unit; Be used to obtain the configuration information in the static MPLS tunnel of sending ending equipment, wherein, only specify the physics outbound port in static MPLS tunnel in this configuration information; Judging unit is coupled with first acquiring unit, is used for judging whether the next-hop ip address of the configuration information of sending ending equipment is 0; Second acquisition unit is coupled with judging unit, and the judged result that is used at judging unit is under the situation that is, obtains the MAC Address of pre-configured acquiescence and the VLAN of acquiescence; Set up the unit, be used to use the VLAN of MAC Address and the acquiescence of acquiescence to set up the transmitting of static MPLS tunnel of sending ending equipment.
According to the embodiment of the invention, the transmission method of the data that provide corresponding to the above embodiment of the present invention also provides a kind of receiving system of static MPLS tunneling data, is positioned at receiving device, realizes the reception of static MPLS tunneling data.
Fig. 6 is the sketch map according to the receiving system of the static MPLS tunneling data of the embodiment of the invention, and is as shown in Figure 6, and this device mainly comprises: determination module 602 and receiver module 604.Wherein, determination module 602, the target MAC (Media Access Control) address that is used for confirming the data message that arrives through static MPLS tunnel are the MAC Address of pre-configured acquiescence; Receiver module 604 is coupled with receiver module 604, is used to receive the data message that receives through static MPLS tunnel.
Pass through the embodiment of the invention; The target MAC (Media Access Control) address of the data message that determination module 602 is confirmed to receive is the MAC Address of pre-configured acquiescence; Receive the data message that receives through static MPLS tunnel by receiver module 604, realized the reception of static MPLS tunneling data.
When needs are transmitted data message (at this moment, receiving device is as forwarding unit), receiving device can be transmitted the data message that receives.Therefore, in a preferred implementation of the embodiment of the invention, as shown in Figure 7, said apparatus can also comprise: judge module 606, next of configuration information that is used for judging the static MPLS tunnel of receiving device are jumped Internet protocol IP address whether 0; Forwarding module 608; Be coupled with judge module 606; The judged result that is used at judge module 606 is under the situation that is, data message is sent to the physics outbound port of configuration information appointment in the MPLS tunnel of receiving device, and from the physics outbound port of the appointment literary composition that sends datagram.
In the embodiment of the invention; Above-mentioned sending ending equipment, receiving device and the equipment of passing on can be same equipment; Promptly this equipment has transmission, reception and forwarding capability; Can receive the data message that subscriber equipment or other network equipments send, and can be with the data message forwarding that receives to other network equipments.For example; Subscriber equipment is sent to a network equipment in the static MPLS tunnel networking with data message; This network equipment at first receives the data message that subscriber equipment sends as receiving device; Transfer forwarding unit then to, after this appointment physics outbound port with data message forwarding to this network equipment encapsulates and is sent to corresponding network device or subscriber equipment as transmitting apparatus to the data message.
Therefore, the receiving system of the dispensing device of above-mentioned static MPLS tunneling data and static MPLS tunneling data can be arranged in consolidated network equipment, in practical application, also can realize the function of said apparatus through same device.In addition, in the receiving system of the static MPLS tunneling data of the embodiment of the invention, realized the forwarding of data function, those skilled in the art also can realize receiving function and forwarding capability respectively according to actual needs with corresponding device thereof.
Describe through specific embodiment below.
Embodiment three
According to the embodiment of the invention, a kind of method for building up of transmitting of static MPLS tunnel of exempting to dispose is provided, as shown in Figure 7, its key step is following:
Step S702 is based on network element configuration default (promptly giving tacit consent to) MAC and default VLAN.Attribute based on whether the ether port arrangement " supports to exempt from configuration " defaults to and does not support.If be " not supporting " processing that then keeps original mode." support " attribute can only be at point-to-point ETH link, and does not use the logical segment layer, and uses under the non-butt joint situation, and promptly the service of connection devices port also will be opened and exempt from configuration feature.Exempt to dispose and be applicable to that putting in order net all supports to dispose in the network of this attribute this scene.
Step S704, configuring static MPLS tunnel is exempted from configuration on the webmaster, only specifies the physics outbound port, is unworthy of putting next-hop IP information, accomplishes the basic configuration in static MPLS tunnel, issues basic forwarding entry according to user configuration information.When judging that next-hop ip address is 0, think to exempt from the configured tunneling technique scene, obtain default VLAN and default MAC information as two layers of information of the correspondence in the forwarding-table item, form complete forwarding entry.
Step S706, form complete forwarding-table item after, the data message that sending ending equipment sends, the purpose MAC of its two layers of encapsulation are default MAC, source MAC is a port mac, the outlet message is a message of beating VLAN tag, VLAN is a default VLAN.The receiving device default port has two MAC, and one is the port mac of configuration, and one is default MAC, is one of message of these two MAC for purpose MAC in the message that receives, and then thinks correct message, carries out normal process.In like manner, when equipment is made label forwarding equipment, if find that next-hop ip address is at 0 o'clock, then be forwarded to the physics outbound port of configuration, the purpose MAC of two layers of encapsulation of its data message is default MAC, and source MAC is a port mac, and VLAN is a default VLAN.
Step S708, for TMS and SNCP protection, these two needs configuration next-hop IPs if outgoing interface then need not dispose next-hop IP for " configuration is exempted from support " yet.Exempt from the configured port on the basis; Every port is only supported 1 TMS; Transmitting terminal through protection in the configuration distributing next whether jump be whether 0 to distinguish be the TMS that the basis exempts to dispose, whether receiving terminal is distinguished for default VLAN through the VLAN ID (VALN ID) of message is the TMS that the basis exempts to dispose.Exempt to dispose default tag attribute through inquiry, fill default purpose MAC and VLAN establishment and transmit, send and receive detection messages.
Embodiment four
Fig. 8 is the sketch map according to the static MPLS tunnel networking of the embodiment of the invention, and is as shown in Figure 8, and this network is the networking that comprises PE1, P2, three equipment of PE3.On the port that needs on each equipment to use, enable to exempt from configuration feature; Configuration tunnel1 (path: PE1-PE2-PE3), bidirectional static tunnel on the equipment; During the configuring static tunnel only configured tunneling technique go out/inbound port, go out/go into label; Be unworthy of putting next-hop IP information, and pairing ARP of next-hop IP and MAC information.In networking as shown in Figure 8, the handling process in static MPLS tunnel is following:
When steps A, the network equipment start initialization, use and exempt to dispose default VLAN, default MAC comes to create automatically acquiescence three layer interface list items, be used for equipment exempt from dispose scene and transmit basically.
Step B; Configuring static MPLS tunnel on this network equipment is during configuration distributing, according to the situation of next-hop IP information; Integrate the different outlets packaging information: if next-hop IP exists, then corresponding ARP, the MAC of inquiry obtains VLAN, purpose MAC forms normal static MPLS tunnel and transmits; If next-hop IP does not exist, then fill default VLAN, default purpose MAC and form the tunnel of exempting to dispose scene and transmit.
Step C, the TMS that configuration exempts to dispose only needs the configuration detection port.When TMS information issues, equally according to protection next whether jump be 0 to judge whether to exempting from configuration, if for exempting from configuration, the packaging information (VLAN, MAC) of encapsulation affirmation just.Configuring static protecting tunnel group when protection group information issues, is used that the protection next hop information forms complete tunnel group information with the protection port among the TMS, and is set up the incidence relation of protection group and TMS, so that TMS renewal protecting tunnel group when changing.
Step D, layer service (L2VPN or L3VPN) in the configuration is exempted from configured tunneling technique through this.PE1 is last when being carried on this and exempting from business on the configured tunneling technique and mail to PE3; The skin of interior layer service is encapsulated as the default encapsulation of exempting from configured tunneling technique; When data message arrived PE2, normal reception (data message purpose MAC is default MAC information) also was forwarded on the PE3, finally was transferred to user side and received.
Step e; (TMS protection port needs consistent with the outbound port of protected tunnel when revising TMS protection port; And the modification of tunnel port information will be protected port modifications prior to TMS); Search related protection group information, trigger TMS and upgrade the protecting tunnel group, other associated services modules of linkage are upgraded outlet information.
From above description; Can find out; The present invention has realized following technique effect: the configuration data items of simplifying static MPLS tunnel; Only need to specify static MPLS tunnel physics outbound port, use default vlan, MAC information to set up transmitting of static MPLS tunnel, reduced the configuration error that configuration complexity and human factor cause.Exempt from configuring static MPLS tunnel and transmit when forming, need not related ARP information, transmit the formation performance and be superior to the formation of normal static MPLS tunnel, reduced the coupling between MPLS tunnel and ARP.Dispose corresponding tunnel of exempting to dispose and detect, exempt from configuration feature through the unlatching port and realize packet sending and receiving, thereby realize professional through the forwarding of static MPLS tunnel, measuring ability.
Obviously, it is apparent to those skilled in the art that above-mentioned each module of the present invention or each step can realize with the general calculation device; They can concentrate on the single calculation element; Perhaps be distributed on the network that a plurality of calculation element forms, alternatively, they can be realized with the executable program code of calculation element; Thereby; Can they be stored in the storage device and carry out, and in some cases, can carry out step shown or that describe with the order that is different from here by calculation element; Perhaps they are made into each integrated circuit modules respectively, perhaps a plurality of modules in them or step are made into the single integrated circuit module and realize.Like this, the present invention is not restricted to any specific hardware and software combination.
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. the method for building up that static MPLS tunnel is transmitted is characterized in that, comprising:
Obtain the configuration information in the static multiprotocol label switching MPLS tunnel of network element, wherein, only specify the label in said static MPLS tunnel and the physics outbound port in said static MPLS tunnel in the said configuration information;
Judge whether next the jumping Internet protocol IP address in the said configuration information is 0;
If obtain the media access control MAC address of pre-configured acquiescence and the virtual LAN VLAN of acquiescence;
Use the MAC Address of said acquiescence and the VLAN of acquiescence to set up transmitting of said static MPLS tunnel.
2. the transmission method of a static MPLS tunneling data is characterized in that, comprising:
When needs send datagram literary composition; Sending ending equipment is transmitted according to static multiprotocol label switching MPLS tunnel; The purpose media access control MAC address of said data message is encapsulated as the MAC Address of pre-configured acquiescence, the virtual LAN VLAN of said data message is encapsulated as the VALN of pre-configured acquiescence;
Said sending ending equipment sends the data message after encapsulating from the physics outbound port of the configuration information appointment in said static MPLS tunnel.
3. method according to claim 2 is characterized in that, after the data message of said sending ending equipment after the physics outbound port transmission encapsulation of the configuration information appointment in said MPLS tunnel, said method also comprises:
Receiving device confirms that the target MAC (Media Access Control) address of the data message after the said encapsulation is the MAC Address of pre-configured acquiescence;
Said receiving device receives the data message after the said encapsulation.
4. method according to claim 3 is characterized in that, when needs were transmitted data message, said receiving device received after the data message after the said encapsulation, and said method also comprises:
Said receiving device judges that in the configuration information in static MPLS tunnel of said receiving device next jump Internet protocol IP address whether 0;
If the data message of said receiving device after with said encapsulation is sent to the physics outbound port of configuration information appointment in the static MPLS tunnel of said receiving device;
Said receiving device sends the data message after the said encapsulation from the physics outbound port of the configuration information appointment in the static MPLS tunnel of said receiving device.
5. method according to claim 2 is characterized in that, said sending ending equipment is set up transmitting of said static MPLS tunnel according to following method:
Obtain the configuration information in the static MPLS tunnel of said sending ending equipment, wherein, only specify the physics outbound port in static MPLS tunnel of label and said sending ending equipment in the static MPLS tunnel of said sending ending equipment in the said configuration information;
Judge whether the next-hop ip address in the configuration information in static MPLS tunnel of said sending ending equipment is 0, if obtain the MAC Address of pre-configured acquiescence and the VLAN of acquiescence;
Use the VLAN of MAC Address and the acquiescence of said acquiescence to set up the transmitting of static MPLS tunnel of said sending ending equipment.
6. the apparatus for establishing that static MPLS tunnel is transmitted is characterized in that, comprising:
First acquisition module is used to obtain the configuration information in the static multiprotocol label switching MPLS tunnel of network element, wherein, only specifies the label in said static MPLS tunnel and the physics outbound port in said static MPLS tunnel in the said configuration information;
Judge module is used for judging whether next jumping Internet protocol IP address of said configuration information is 0;
Second acquisition module, the judged result that is used at said judge module is under the situation that is, obtains the media access control MAC address of pre-configured acquiescence and the virtual LAN VLAN of acquiescence;
Set up module, be used to use the MAC Address of said acquiescence and the VLAN of acquiescence to set up transmitting of said static MPLS tunnel.
7. the dispensing device of a static MPLS tunneling data is characterized in that, comprising:
First package module is used for when needs send datagram literary composition, according to transmitting of static multiprotocol label switching MPLS tunnel, the purpose media access control MAC address of said data message is encapsulated as the MAC Address of pre-configured acquiescence;
Second package module is used for the virtual LAN VLAN of said data message is encapsulated as the VALN of pre-configured acquiescence;
Sending module is used for sending the data message after the encapsulation from the physics outbound port of the configuration information appointment in said static MPLS tunnel.
8. device according to claim 7 is characterized in that, said device also comprises: set up module, comprising:
First acquiring unit is used to obtain the configuration information in the static MPLS tunnel of sending ending equipment, wherein, only specifies the physics outbound port in said static MPLS tunnel in the said configuration information;
Judging unit is used for judging that next of configuration information of said sending ending equipment jumps whether Internet protocol IP address is 0;
Second acquisition unit, the judged result that is used at said judging unit is under the situation that is, obtains the MAC Address of pre-configured acquiescence and the VLAN of acquiescence;
Set up the unit, be used to use the VLAN of MAC Address and the acquiescence of said acquiescence to set up the transmitting of static MPLS tunnel of said sending ending equipment.
9. the receiving system of a static MPLS tunneling data is characterized in that, comprising:
Determination module, the target MAC (Media Access Control) address that is used for confirming the data message that arrives through static MPLS tunnel are the MAC Address of pre-configured acquiescence;
Receiver module is used to receive said data message.
10. device according to claim 9 is characterized in that, said device also comprises:
Judge module, next of configuration information that is used for judging the static MPLS tunnel of receiving device are jumped Internet protocol IP address whether 0;
Forwarding module, the judged result that is used at said judge module is under the situation that is, said data message is sent to the physics outbound port of the configuration information appointment in said MPLS tunnel, and sends said data message from the physics outbound port of said appointment.
CN201210070673.5A 2012-03-16 2012-03-16 The foundation of the static tunnel MPLS forwarding table, data transmission method and device Active CN102611603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210070673.5A CN102611603B (en) 2012-03-16 2012-03-16 The foundation of the static tunnel MPLS forwarding table, data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210070673.5A CN102611603B (en) 2012-03-16 2012-03-16 The foundation of the static tunnel MPLS forwarding table, data transmission method and device

Publications (2)

Publication Number Publication Date
CN102611603A true CN102611603A (en) 2012-07-25
CN102611603B CN102611603B (en) 2019-02-19

Family

ID=46528773

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210070673.5A Active CN102611603B (en) 2012-03-16 2012-03-16 The foundation of the static tunnel MPLS forwarding table, data transmission method and device

Country Status (1)

Country Link
CN (1) CN102611603B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016176842A1 (en) * 2015-05-06 2016-11-10 华为技术有限公司 Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel
CN106209630A (en) * 2016-07-26 2016-12-07 杭州华三通信技术有限公司 A kind of label management method and device
CN109361605A (en) * 2018-11-26 2019-02-19 武汉烽火技术服务有限公司 A kind of service protecting method and system of double IP deployment of transmission network system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110746A (en) * 2007-08-16 2008-01-23 华为技术有限公司 Edge equipment of operators, city Ethernet access network and its data processing method
CN101222437A (en) * 2008-01-25 2008-07-16 杭州华三通信技术有限公司 Method and system for transparent transmission of BPDU packet in two-layer switching network
CN101227399A (en) * 2008-01-31 2008-07-23 华为技术有限公司 Message transmission method, system and forwarding node
CN101436998A (en) * 2008-12-16 2009-05-20 华为技术有限公司 Method for obtaining message forwarding route and apparatus for forwarding message
CN101848161A (en) * 2010-05-31 2010-09-29 杭州华三通信技术有限公司 Communication method and equipment of MPLS L2VPN (Multiple protocol Label Switching Layer 2 Virtual Private Network) and MPLS L3VPN (Multiple protocol Label Switching Layer 3 Virtual Private Network)

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110746A (en) * 2007-08-16 2008-01-23 华为技术有限公司 Edge equipment of operators, city Ethernet access network and its data processing method
CN101222437A (en) * 2008-01-25 2008-07-16 杭州华三通信技术有限公司 Method and system for transparent transmission of BPDU packet in two-layer switching network
CN101227399A (en) * 2008-01-31 2008-07-23 华为技术有限公司 Message transmission method, system and forwarding node
CN101436998A (en) * 2008-12-16 2009-05-20 华为技术有限公司 Method for obtaining message forwarding route and apparatus for forwarding message
CN101848161A (en) * 2010-05-31 2010-09-29 杭州华三通信技术有限公司 Communication method and equipment of MPLS L2VPN (Multiple protocol Label Switching Layer 2 Virtual Private Network) and MPLS L3VPN (Multiple protocol Label Switching Layer 3 Virtual Private Network)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016176842A1 (en) * 2015-05-06 2016-11-10 华为技术有限公司 Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel
CN106464591A (en) * 2015-05-06 2017-02-22 华为技术有限公司 Method, device, controller and network element for ethernet interface addressing in mpls-tp tunnel
CN106464591B (en) * 2015-05-06 2020-01-21 华为技术有限公司 Ethernet interface addressing method, device, controller and network element in MPLS-TP tunnel
CN106209630A (en) * 2016-07-26 2016-12-07 杭州华三通信技术有限公司 A kind of label management method and device
CN106209630B (en) * 2016-07-26 2019-09-06 新华三技术有限公司 A kind of label management method and device
CN109361605A (en) * 2018-11-26 2019-02-19 武汉烽火技术服务有限公司 A kind of service protecting method and system of double IP deployment of transmission network system
CN109361605B (en) * 2018-11-26 2021-05-04 武汉烽火技术服务有限公司 Dual-IP deployment service protection method and system for transmission network system

Also Published As

Publication number Publication date
CN102611603B (en) 2019-02-19

Similar Documents

Publication Publication Date Title
US8995444B2 (en) Method and system for extending routing domain to non-routing end stations
CN105981470B (en) Method and apparatus for handling communication in a communication system comprising an access point and a wireline network node connected to the access point via a wireline
WO2008092357A1 (en) A method and device for establishing a pseudo wire tunnel and transmitting message using it
US20100157963A1 (en) Method for providing mobility to mobile node in packet transport network, packet transport network system and gateway switch
US20080304476A1 (en) Ethernet over mpls circuit emulation service
WO2006101823A2 (en) System and method for routing isis traffic through unidirectional links of a computer network
CN103036809A (en) Methods and apparatus for a scalable network with efficient link utilization
CN102594713B (en) A kind of method and apparatus realizing Explicit Congestion and notice
CN110535768B (en) Multicast data transmission method and related equipment
US20070165603A1 (en) Access network system, subscriber station device, and network terminal device
EP3113425B1 (en) Encapsulation method for service routing packet, service forwarding entity and control plane
CN107547340B (en) Message forwarding method and device
CN111213345B (en) Apparatus, method and system for transmitting or receiving a message containing control information
CN101115005A (en) Method and apparatus for implementing edge-to-edge pseudo-line simulation
CN108270673A (en) File transmitting method, device and system
CN105553810A (en) Method and device for forwarding special line service packet
CN101926132B (en) Circuit emulation over ip interworking vll
CN108390812B (en) Message forwarding method and device
US20230336377A1 (en) Packet forwarding method and apparatus, and network system
CN102291305A (en) Method and device for implementing 6 to 4 relay routing, and message forwarding method
US7835388B2 (en) Communication method for interworking of local heterogeneous link layer protocols and apparatus thereof
CN101286918A (en) Virtual private network system and data processing method thereof
CN102611603A (en) Method and device for establishing static MPLS (Multi-Protocol Label Switch) tunnel forwarding table and transmitting data
CN114598635A (en) Message transmission method and device
CN110086720B (en) Method and system for realizing L3VPN based on two-dimensional routing protocol

Legal Events

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