CN102611603B - The foundation of the static tunnel MPLS forwarding table, data transmission method and device - Google Patents

The foundation of the static tunnel MPLS forwarding table, data transmission method and device Download PDF

Info

Publication number
CN102611603B
CN102611603B CN201210070673.5A CN201210070673A CN102611603B CN 102611603 B CN102611603 B CN 102611603B CN 201210070673 A CN201210070673 A CN 201210070673A CN 102611603 B CN102611603 B CN 102611603B
Authority
CN
China
Prior art keywords
mpls
default
tunnel
static
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.)
Active
Application number
CN201210070673.5A
Other languages
Chinese (zh)
Other versions
CN102611603A (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

Abstract

The invention discloses a kind of foundation of static state tunnel MPLS forwarding table, the transmission method and device of data.Wherein, the method for building up of the forwarding table includes: the configuration information for obtaining the static tunnel MPLS of network element, wherein the label in the static state tunnel MPLS and the physics exit port in the static state tunnel MPLS are only specified in the configuration information;Judge whether the next-hop ip address in configuration information is 0;If so, obtaining the MAC Address of preconfigured default and the VLAN of default;The forwarding table in the static state tunnel MPLS is established using the MAC Address of default and the VLAN of default.Through the invention, reduce configuration error caused by configuration complexity and human factor, improve the allocative efficiency in the static tunnel MPLS.

Description

The foundation of the static tunnel MPLS forwarding table, data transmission method and device
Technical field
The present invention relates to the communications field, in particular to the foundation of static state tunnel MPLS forwarding table a kind of, the biography of data Transmission method and device.
Background technique
Currently, static tunnel finishing service is mostly used to transmit in bearer network.Grouping conveying network (Packet Transfer Network, referred to as PTN) equipment configuring static multiprotocol label switching (Multi-Protocol Label Switching, referred to as MPLS) tunnel when, each equipment for needing hop-by-hop configured tunneling path to pass through, in each equipment The information such as the in/out port of configured tunneling technique, in/out label, next-hop.The forwarding table in tunnel is by next-hop Internet protocol (Internet Protocol, referred to as IP) retrieves local breakout and virtual LAN (Virtual Local Area Network, referred to as VLAN) encapsulation, and pass through the corresponding Address Translation Protocol of next-hop IP (Address Resolution Protocol, referred to as ARP) information obtains purpose media access control (the Media Access of MPLS tunnel packet Control, referred to as MAC) etc. two layers of packaging information.
Therefore, even if when configuring the static state tunnel MPLS, the VLAN of planning PTN device is also needed, configures three layers based on VLAN Attribute interface, configures the IP address and subnet mask of three layers of attribute interface, configuration Static ARP (or dynamic learning ARP, it is more at present To configure Static ARP), and static state MAC, the configuration in the static state tunnel MPLS could be completed.
In summary, in the related art, the basic data configuration item ratio that the tunnel hop-by-hop manual configuration static state MPLS is related to More complex, the information such as IP and VLAN for needing to plan are more, cause allocative efficiency low and configuration complexity and configuration error rate It is high.
Summary of the invention
It is more for the data configuration item in the tunnel hop-by-hop manual configuration static state MPLS in the related technology, cause allocative efficiency low And configuration complexity and the high problem of configuration error rate, the present invention provides a kind of foundation of static state tunnel MPLS forwarding table, The transmission method and device of data, at least to solve the above problems.
According to an aspect of the invention, there is provided a kind of method for building up of static state tunnel MPLS forwarding table, comprising: obtain The configuration information in the tunnel static multiprotocol label switching MPLS of network element, wherein the static state is only specified in the configuration information The physics exit port of the label in the tunnel MPLS and the static state tunnel MPLS;Judge the next-hop internet in the configuration information Whether Protocol IP address is 0;If so, obtain preconfigured default MAC address and default it is virtual Local area network VLAN;The forwarding table in the static state tunnel MPLS is established using the MAC Address of the default and the VLAN of default.
According to another aspect of the present invention, a kind of transmission method of static state MPLS tunneling data is provided, comprising: needing When sending datagram, sending ending equipment is according to the forwarding table in the tunnel static multiprotocol label switching MPLS, by the data The purpose MAC address of message is encapsulated as the MAC Address of preconfigured default, by the void of the data message Quasi- local area network VLAN is encapsulated as the VALN of preconfigured default;Configuration of the sending ending equipment from the static state tunnel MPLS The specified physics exit port of information sends the data message after encapsulation.
Preferably, the physics exit port that the sending ending equipment is specified from the configuration information in the tunnel MPLS sends encapsulation After data message afterwards, the method also includes: receiving device is with determining the purpose MAC of the data message after the encapsulation Location is the MAC Address of preconfigured default;The receiving device receives the data message after the encapsulation.
Preferably, when needing forwarding data packets, the receiving device receive the data message after the encapsulation it Afterwards, the method also includes: the receiving device judges in the configuration information in the static tunnel MPLS of the receiving device Next-hop internet protocol address whether 0;If so, the receiving device sends the data message after the encapsulation The physics exit port specified to the configuration information in the static tunnel MPLS of the receiving device;The receiving device is from described The specified physics exit port of the configuration information in the static tunnel MPLS of receiving device sends the data message after the encapsulation.
Preferably, the sending ending equipment establishes the forwarding table in the static state tunnel MPLS in accordance with the following methods: obtaining institute State the configuration information in the static tunnel MPLS of sending ending equipment, wherein the sending ending equipment is only specified in the configuration information The static tunnel MPLS label and the sending ending equipment the static tunnel MPLS physics exit port;Judge the transmitting terminal Whether the next-hop ip address in the configuration information in the static tunnel MPLS of equipment is 0, if so, obtaining preconfigured default MAC Address and default VLAN;The quiet of the sending ending equipment is established using the MAC Address of the default and the VLAN of default The forwarding table in the tunnel state MPLS.
According to a further aspect of the invention, provide a kind of static state tunnel MPLS forwarding table establishes device, comprising: the One obtains module, the configuration information in the tunnel static multiprotocol label switching MPLS for obtaining network element, wherein described to match confidence The label in the static state tunnel MPLS and the physics exit port in the static state tunnel MPLS are only specified in breath;Judgment module is used for Judge whether the next-hop internet protocol address in the configuration information is 0;Second obtains module, in the judgement The judging result of module is in the case where being, to obtain the MAC address of preconfigured default and the void of default Quasi- local area network VLAN;Module is established, for establishing the static state MPLS tunnel using the MAC Address of the default and the VLAN of default The forwarding table in road.
According to a further aspect of the invention, a kind of sending device of static state MPLS tunneling data is provided, comprising: first Package module, for when needing to send datagram, according to the forwarding table in the tunnel static multiprotocol label switching MPLS, by institute The purpose MAC address for stating data message is encapsulated as the MAC Address of preconfigured default;Second Encapsulation Moulds Block, for the virtual LAN VLAN of the data message to be encapsulated as to the VALN of preconfigured default;Sending module is used for The physics exit port specified from the configuration information in the static state tunnel MPLS sends the data message after encapsulation.
Preferably, described device further include: establish module, comprising: first acquisition unit, for obtaining sending ending equipment The configuration information in the static tunnel MPLS, wherein the physics exit port in the static state tunnel MPLS is only specified in the configuration information; Judging unit, whether the next-hop internet protocol address in configuration information for judging the sending ending equipment is 0;The Two acquiring units, for the judging result of the judging unit be in the case where, with obtaining the MAC of preconfigured default The VLAN of location and default;Unit is established, is set for establishing the transmitting terminal using the MAC Address of the default and the VLAN of default The forwarding table in the standby static tunnel MPLS.
According to a further aspect of the invention, a kind of reception device of static state MPLS tunneling data is provided, feature exists In, comprising: determining module, for determining that the target MAC (Media Access Control) address of the data message reached by the static state tunnel MPLS is to match in advance The MAC Address for the default set;Receiving module, for receiving the data message.
Preferably, described device further include: judgment module, the configuration in the static tunnel MPLS for judging receiving device Next-hop internet protocol address in information whether 0;Forwarding module, for being yes in the judging result of the judgment module In the case where, the specified physics exit port of the configuration information that the data message is sent to the tunnel MPLS, and from described Specified physics exit port sends the data message.
Through the invention, when configuring the static state tunnel MPLS, it is only necessary to the physics exit port in the specified tunnel MPLS, and allocating default MAC Address and vlan information, using default MAC Address and default VLAN establish the static state tunnel MPLS forwarding table, subtract Lack configuration error caused by configuration complexity and human factor, improves the allocative efficiency in the static tunnel MPLS.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart of the method for building up of the static state tunnel MPLS according to an embodiment of the present invention forwarding table;
Fig. 2 is the schematic diagram for establishing device of the static state tunnel MPLS according to an embodiment of the present invention forwarding table;
Fig. 3 is the flow chart of the transmission method of static state MPLS tunneling data according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of the sending device of static state MPLS tunneling data according to an embodiment of the present invention;
Fig. 5 is the schematic diagram of the sending device of preferred static state MPLS tunneling data according to embodiments of the present invention;
Fig. 6 is the schematic diagram of the reception device of static state MPLS tunneling data according to an embodiment of the present invention;
Fig. 7 is the schematic diagram of the reception device of preferred static state MPLS tunneling data according to embodiments of the present invention;
Fig. 8 is the schematic diagram of the static state tunnel MPLS networking according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
For in the related technology, the data configuration item by the tunnel hop-by-hop manual configuration static state MPLS is more, and causes to configure Low efficiency and configuration complexity and the high problem of configuration error rate, the embodiment of the invention provides a kind of static state for exempting from configuration The solution in the tunnel MPLS can simplify the configuration data items in the static tunnel MPLS with this solution, it is only necessary to specified static state The tunnel MPLS physics exit port is established the forwarding table in the static state tunnel MPLS using default vlan, MAC information, it is multiple to reduce configuration Configuration error caused by miscellaneous degree and human factor.When exempting to configure the formation of the static tunnel MPLS forwarding table, without being associated with ARP letter Breath, forwarding table forming properties are formed better than the tunnel normal static MPLS, reduce the coupling between the tunnel MPLS and ARP.Configuration The Tunnel testing for accordingly exempting from configuration exempts from configuration feature by unlatching port and realizes packet sending and receiving, to realize that business passes through static state The forwarding of the tunnel MPLS, detection function.
Embodiment one
According to embodiments of the present invention, a kind of method for building up of static state tunnel MPLS forwarding table is provided, static state MPLS is simplified The configuration data items in tunnel, it is only necessary to which specified tunnel physical outlet establishes the tunnel of static state MPLS using default vlan, MAC information Road forwarding table reduces configuration error caused by configuration complexity and human factor, improves the configuration in the static tunnel MPLS Efficiency.
Fig. 1 is the flow chart of the method for building up of the static state tunnel MPLS according to an embodiment of the present invention forwarding table, such as Fig. 1 institute Show, this method includes following steps (step S102- step S108):
Step S102 obtains the configuration information in the static tunnel MPLS of network element, wherein static state is only specified in the configuration information The physics exit port of the label in the tunnel MPLS and the tunnel static state MPLS.
Step S104 judges whether the next-hop ip address in configuration information is 0.
Step S106, if so, obtaining the MAC Address of preconfigured default and the VLAN of default.
Step S108 establishes the forwarding table in the static state tunnel MPLS using the MAC Address of default and the VLAN of default.
Through the embodiment of the present invention, when configuring the static state tunnel MPLS, it is only necessary to the physics exit port in the specified tunnel MPLS, and match The MAC Address and vlan information for setting default establish the forwarding in the static state tunnel MPLS using the MAC Address of default and the VLAN of default Table reduces configuration error caused by configuration complexity and human factor, improves the allocative efficiency in the static tunnel MPLS.
In embodiments of the present invention, configuration network element (i.e. the network equipment, such as router) only needs the static state of specified network element The physics exit port in the tunnel MPLS, and be the MAC Address and vlan information of network element configuration default.For example, user can pass through net The configuration software of member specifies the physics exit port in its static state tunnel MPLS, and the MAC Address of allocating default and the VLAN of default letter Breath does not need configuration next-hop ip address, the basic configuration of static MPLS can be completed.Preferably, ether port configuration " whether Support exempts to configure " attribute, default to and do not support, the attribute for " whether supporting to exempt to configure " in embodiments of the present invention is set as " support " exempts from configuration feature with unlatching port.
In practical applications, user specifies the physics exit port in the static state tunnel MPLS, and the MAC of allocating default on network element Behind address and vlan information, network element completes the basic configuration in the static state tunnel MPLS, and is issued substantially according to the configuration information of user Forwarding entry.Further, network element judges the next-hop ip address in its static state tunnel MPLS for 0, and determination is that exempt from configuration static The tunnel MPLS then obtains the default vlan and default mac information of user configuration, the default vlan that will acquire and default mac letter Breath forms complete forwarding entry as corresponding two layers of information in forwarding table.
For MPLS section layer (Transport MPLS Section, referred to as TMS) and Subnetwork connection based on transmission net (Sub-network Connection Protection, referred to as SNCP) protection is protected, in the feelings for not supporting to exempt from configuration feature Under condition, next-hop ip address is needed to configure.If exit port is " support exempts to configure ", configuration next-hop IP is not needed.In base Plinth exempts to configure on port, and every port only supports 1 TMS, transmitting terminal that can protect next-hop IP according in the configuration information issued Address whether be 0 come distinguish whether based on exempt from configuration TMS, the VLAN ID (VALN that receiving end passes through message ID) for default vlan come distinguish whether based on exempt from configuration TMS.And exempt to configure default tag attribute by inquiry, it fills default Purpose MAC and VLAN create forwarding table, send and receive detection messages.
According to embodiments of the present invention, the method for building up corresponding to the static tunnel the MPLS forwarding table of the embodiment of the present invention, mentions Supplied a kind of static state tunnel MPLS forwarding table establishes device, and the above method provided in an embodiment of the present invention may be implemented.
Fig. 2 is the schematic diagram for establishing device of the static state tunnel MPLS according to an embodiment of the present invention forwarding table, such as Fig. 2 institute Show, the device mainly includes: the first acquisition module 202, judgment module 204, second obtain module 206 and establish module 208.Its In, first obtains module 202, the configuration information in the static tunnel MPLS for obtaining network element, wherein only refer in the configuration information The label in the fixed static state tunnel MPLS and the physics exit port in the tunnel static state MPLS;Judgment module 204 obtains module with first 202 are coupled, for judging whether the next-hop ip address in configuration information is 0;Second obtains module 206, with judgment module 204 are coupled, for obtaining the MAC Address of preconfigured default in the case where the judging result of judgment module 204, which is, is With the VLAN of default;Module 208 is established, is coupled with the second acquisition module 206, for using the MAC Address and default of default VLAN establish the static state tunnel MPLS forwarding table.
Through the embodiment of the present invention, when configuring the static state tunnel MPLS, it is only necessary to the physics exit port in the specified tunnel MPLS, and match The MAC Address and vlan information for setting default, the physics exit port for obtaining the specified tunnel MPLS of the acquisition of module 202 by first, second It obtains module 206 and obtains the MAC Address of preconfigured default and the VLAN of default, establish module 208 using the MAC defaulted The VLAN of location and default establishes the forwarding table in the static state tunnel MPLS, reduces configuration caused by configuration complexity and human factor Mistake improves the allocative efficiency in the static tunnel MPLS.
Embodiment two
According to embodiments of the present invention, a kind of transmission method of static state MPLS tunneling data is provided, this hair can passed through In the static tunnel MPLS that the method and device of bright above-described embodiment is established, the transmission of static state MPLS tunneling data is realized.
Fig. 3 is the flow chart of the transmission method of static state MPLS tunneling data according to an embodiment of the present invention, as shown in figure 3, This method includes following steps (step S302- step S304):
Step S302, when needing to send datagram, sending ending equipment will be counted according to the forwarding table in the static tunnel MPLS It is encapsulated as the MAC Address of preconfigured default according to the target MAC (Media Access Control) address of message, the VLAN of data message is encapsulated as matching in advance The VALN for the default set.
Step S304, sending ending equipment send the number after encapsulation from the physics exit port that the configuration information in the tunnel MPLS is specified According to message.
Through the embodiment of the present invention, when needing to send datagram, sending ending equipment turns according to the static tunnel MPLS It delivers, encapsulation needs the data message (MAC Address of default and the VALN of default) that sends, and sending ending equipment is from the tunnel MPLS The specified physics exit port of configuration information sends the data message after encapsulation, realizes the transmission of static MPLS tunneling data.
Sending ending equipment sends the data message after encapsulation from the physics exit port that the configuration information in its tunnel MPLS is specified Later, receiving device can receive the data message after encapsulation, by forwarding device by data message forwarding to user equipment.It connects For the inbound port of receiving end equipment there are two MAC Address, one is the port mac address configured, the other is the MAC of default, if Purpose MAC is one of the two MAC Address in the data message received, then receives the data message and handled.In this hair In one preferred embodiment of bright embodiment, receiving device receiving device determines the purpose of the data message after encapsulation MAC Address is the MAC Address of preconfigured default, then receiving device receives the data message after encapsulation.
When needing forwarding data packets (at this point, receiving device is as forwarding device), the one of the embodiment of the present invention In a preferred embodiment, receiving device judges the static state of receiving device after receiving the data message after encapsulation Next-hop ip address in the configuration information in the tunnel MPLS whether 0, if so, receiving device sends out the data message after encapsulation The physics exit port for sending the configuration information to the static tunnel MPLS of receiving device specified, receiving device is from receiving device The specified physics exit port of configuration information in the static tunnel MPLS send the data message after encapsulation.
In another preferred embodiment of the embodiment of the present invention, the transmitting terminal as transmission or forwarding data packets is set The standby forwarding table that can establish the static tunnel MPLS in accordance with the following methods: the configuration in the static tunnel MPLS of sending ending equipment is obtained Information, wherein the physics exit port that the static tunnel MPLS of sending ending equipment is only specified in the configuration information judges that transmitting terminal is set Whether the next-hop ip address in the configuration information in the standby static tunnel MPLS is 0, if so, obtaining preconfigured default The VLAN of MAC Address and default, and establish using the MAC Address of default and the VLAN of default the static MPLS tunnel of sending ending equipment The forwarding table in road.
According to embodiments of the present invention, the transmission method of the data provided corresponding to the above embodiment of the present invention, additionally provides A kind of sending device of static state MPLS tunneling data is located at sending ending equipment, realizes the transmission of static state MPLS tunneling data.
Fig. 4 is the schematic diagram of the sending device of static state MPLS tunneling data according to an embodiment of the present invention, as shown in figure 4, The device mainly includes: the first package module 402, the second package module 404 and sending module 406.Wherein, the first package module 402, for when needing to send datagram, according to the forwarding table in the static tunnel MPLS, by the target MAC (Media Access Control) address of data message It is encapsulated as the MAC Address of preconfigured default;Second package module 404, for the VLAN of data message to be encapsulated as in advance The VALN of the default of configuration;Sending module 406 is coupled with the first package module 402 and the second package module 404, for from The specified physics exit port of the configuration information in the static tunnel MPLS sends the data message after encapsulation.
Through the embodiment of the present invention, the first package module 402 and the second package module 404 turn according to the static tunnel MPLS It delivers, the data message sent respectively to needs is packaged, and is referred to by sending module 406 from the configuration information in the static tunnel MPLS Fixed physics exit port sends the data message after encapsulation, realizes transmission of the data message in the static tunnel MPLS.
In a preferred embodiment of the embodiment of the present invention, in order to establish the forwarding table in the static tunnel MPLS, such as Fig. 5 Shown, it may include: first acquisition unit that above-mentioned apparatus, which can also include: to establish module 408, set for obtaining transmitting terminal The configuration information in the standby static tunnel MPLS, wherein the physics exit port in the static state tunnel MPLS is only specified in the configuration information;Sentence Disconnected unit, is coupled, whether the next-hop ip address in configuration information for judging sending ending equipment with first acquisition unit It is 0;Second acquisition unit is coupled with judging unit, pre- for obtaining in the case where the judging result of judging unit, which is, is The MAC Address of the default first configured and the VLAN of default;Unit is established, for using the MAC Address of default and the VLAN of default Establish the forwarding table in the static tunnel MPLS of sending ending equipment.
According to embodiments of the present invention, the transmission method of the data provided corresponding to the above embodiment of the present invention, additionally provides A kind of reception device of static state MPLS tunneling data is located at receiving device, realizes the reception of static state MPLS tunneling data.
Fig. 6 is the schematic diagram of the reception device of static state MPLS tunneling data according to an embodiment of the present invention, as shown in fig. 6, The device mainly includes: determining module 602 and receiving module 604.Wherein it is determined that module 602, passes through static state MPLS for determining The target MAC (Media Access Control) address for the data message that tunnel reaches is the MAC Address of preconfigured default;Receiving module 604, with reception mould Block 604 is coupled, for receiving the data message received by the static state tunnel MPLS.
Through the embodiment of the present invention, determining module 602 determines that the target MAC (Media Access Control) address of the data message received is to match in advance The MAC Address for the default set receives the data message received by the static state tunnel MPLS by receiving module 604, realizes quiet The reception of state MPLS tunneling data.
When needing forwarding data packets (at this point, receiving device is as forwarding device), receiving device can be docked The data message received is forwarded.Therefore, in a preferred embodiment of the embodiment of the present invention, as shown in fig. 7, above-mentioned Device can also include: judgment module 606, for judge receiving device the static tunnel MPLS configuration information in it is next Jump internet protocol address whether 0;Forwarding module 608 is coupled with judgment module 606, for sentencing in judgment module 606 Disconnected result is to go out the physics that the configuration information that data message is sent to the tunnel MPLS of receiving device is specified in the case where being Port, and send datagram from specified physics exit port.
It in the embodiment of the present invention, above-mentioned sending ending equipment, receiving device and passs on equipment and can be same equipment, i.e., should Equipment has transmission, reception and forwarding capability, can receive the data message that user equipment or other network equipments are sent, and can With by the data message forwarding received to other network equipments.For example, data message is sent to static MPLS by user equipment A network equipment in tunnel networking, the network equipment are used as receiving device to receive the datagram that user equipment is sent first Text then turns to forwarding device, hereafter the specified physics exit port of data message forwarding to the network equipment is set as transmission It is standby that data message is packaged and is sent to the corresponding network equipment or user equipment.
Therefore, the reception device of the sending device of above-mentioned static state MPLS tunneling data and static state MPLS tunneling data, can be with In consolidated network equipment, in practical applications, the function of above-mentioned apparatus can also be realized by same device.In addition, In the reception device of the static MPLS tunneling data of the embodiment of the present invention, the forwarding capability of data, those skilled in the art are realized Member can also according to actual needs realize receive capabilities and forwarding capability with corresponding device respectively.
It is described below by specific embodiment.
Embodiment three
According to embodiments of the present invention, a kind of method for building up of the forwarding table in static tunnel MPLS for exempting from configuration is provided, such as Shown in Fig. 7, key step is as follows:
Step S702 is based on default (defaulting) MAC of network element configuration and default VLAN." it is based on the configuration of ether port No support exempts to configure " attribute, default to and do not support.If it is " not supporting ", the processing of original mode is kept." support " belongs to Property can only be in point-to-point ETH link, and without using being used in the case of logical segment layer and non-docking, i.e. the service of connection devices port Also it to open and exempt from configuration feature.Exempt from configuration and disposes the scene suitable for the network that whole net all supports the attribute.
Step S704, configuration exempts to configure the static tunnel MPLS on network management, only specifies physics exit port, does not configure next-hop IP Information completes the basic configuration in the static state tunnel MPLS, issues basic forwarding entry according to user configuration information.When judging next-hop When IP address is 0, it is believed that be to exempt from configured tunneling technique scene, obtain default VLAN and default MAC information as pair in forwarding-table item Two layers of information are answered, complete forwarding entry is formed.
Step S706, after forming complete forwarding-table item, the data message that sending ending equipment is sent, secondly layer encapsulates Purpose MAC be default MAC, source MAC be port mac, outlet message be beat VLAN tag message, VLAN is default VLAN. Receiving device default port is there are two MAC, and one is the port mac configured, and one is default MAC, for the report received Purpose MAC is one of the message of the two MAC in text, then it is assumed that is correct message, is normally handled.Similarly, equipment is made When label forwarding equipment, if it find that being then forwarded to the physics exit port of configuration, data message when next-hop ip address is 0 Two layers encapsulation purpose MAC be default MAC, source MAC be port mac, VLAN is default VLAN.
Step S708 protects TMS and SNCP, the two need to configure next-hop IP, if outgoing interface is " to support Exempt to configure ", then do not need configuration next-hop IP yet.Exempt to configure on port on basis, every port only supports 1 TMS, transmitting terminal logical Cross in configuration distributing protect next-hop whether be 0 come distinguish whether based on exempt from the TMS of configuration, receiving end is virtual by message LAN ID (VALN ID) be default VLAN come distinguish whether based on exempt from configuration TMS.Exempt to configure by inquiry default Tag attribute fills default purpose MAC and VLAN creation forwarding table, sends and receives detection messages.
Example IV
Fig. 8 is the schematic diagram of the static state tunnel MPLS networking according to an embodiment of the present invention, as shown in figure 8, the network is packet Include the networking of tri- equipment of PE1, P2, PE3.It needs to enable to exempt from configuration feature on port to be used in each equipment, match in equipment Set in bidirectional static tunnel tunnel1 (path: PE1-PE2-PE3), when configuring static tunnel only configured tunneling technique in/out port, go out/ Enter label, does not configure ARP and MAC information corresponding to next-hop IP information and next-hop IP.In networking as shown in Figure 8, The process flow in the static tunnel MPLS is as follows:
When network equipment starting initializes, it is silent to automatically create one using configuration default VLAN, default MAC is exempted from by step A Recognize three layer interface list items, the scene of exempting to configure for equipment forwards substantially.
Step B configures the static state tunnel MPLS on the network equipment, when configuration distributing, according to the feelings of next-hop IP information Condition integrates different outlet packaging informations: if next-hop IP exists, inquiring corresponding ARP, MAC and obtains VLAN, purpose MAC forms the normal static state tunnel MPLS forwarding table;If next-hop IP is not present, default VLAN, default purpose MAC are filled Form the tunnel forwarding table for exempting to configure scene.
The TMS of configuration is exempted from step C, configuration, it is only necessary to configuration detection port.It is next also according to protecting when TMS information issues Whether jump is 0 to determine whether to exempt to configure, if it is exempting to configure, the just packaging information (VLAN, MAC) of encapsulation confirmation.Configuration Static protecting tunnel group when protection group information issues, protects next hop information and protection end mouth to form complete tunnel using in TMS Road group information, and protection group and the incidence relation of TMS are established, to update protecting tunnel group when TMS variation.
Step D configures interior layer service (L2VPN or L3VPN), exempts from configured tunneling technique by this.This is carried on PE1 to exempt to configure When business on tunnel is sent to PE3, the outer envelope of interior layer service is the default encapsulation for exempting from configured tunneling technique, and data message reaches It when PE2, normally receives (data message purpose MAC is default MAC information) and is forwarded on PE3, be finally transferred to user and flank It receives.
Step E, when modification TMS protects port (it is consistent that TMS protects the exit port in port and protected tunnel to need, and And the modification of tunnel port information will protect port modifications prior to TMS), associated protection group information is searched, triggering TMS updates tunnel Pipe protection group, other associated services modules of linkage update outlet information.
It can be seen from the above description that the present invention realizes following technical effect: simplifying matching for the static state tunnel MPLS Set data item, it is only necessary to which the specified static state tunnel MPLS physics exit port establishes static state MPLS tunnel using default vlan, MAC information The forwarding table in road reduces configuration error caused by configuration complexity and human factor.Exempt to configure the static tunnel MPLS forwarding When table formation, without being associated with ARP information, forwarding table forming properties are formed better than the tunnel normal static MPLS, reduce MPLS tunnel Coupling between road and ARP.The Tunnel testing of configuration is accordingly exempted from configuration, is exempted from configuration feature by unlatching port and is realized that message is received Hair, to realize that business passes through the forwarding of the static state tunnel MPLS, detection function.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.

Claims (9)

1. a kind of method for building up of static state tunnel MPLS forwarding table characterized by comprising
Obtain the configuration information in the tunnel static multiprotocol label switching MPLS of network element, wherein only specify in the configuration information The physics exit port of the label in the static state tunnel MPLS and the static state tunnel MPLS;
Judge whether the next-hop internet protocol address in the configuration information is 0;
If so, obtaining the MAC address of preconfigured default and the virtual LAN VLAN of default;
The forwarding table in the static state tunnel MPLS is established using the MAC Address of the default and the VLAN of default.
2. a kind of transmission method of static state MPLS tunneling data characterized by comprising
Obtain the configuration information in the tunnel static multiprotocol label switching MPLS of network element, wherein only specify in the configuration information The physics exit port of the label in the static state tunnel MPLS and the static state tunnel MPLS;
Judge whether the next-hop internet protocol address in the configuration information is 0;
If so, obtaining the MAC address of preconfigured default and the virtual LAN VLAN of default;
The forwarding table in the static state tunnel MPLS is established using the MAC Address of the default and the VLAN of default;
When needing to send datagram, sending ending equipment, will according to the forwarding table in the tunnel static multiprotocol label switching MPLS The purpose MAC address of the data message is encapsulated as the MAC Address of preconfigured default, by the data The virtual LAN VLAN of message is encapsulated as the VLAN of preconfigured default;
The sending ending equipment sends the number after encapsulation from the physics exit port that the configuration information in the static state tunnel MPLS is specified According to message.
3. according to the method described in claim 2, it is characterized in that, the sending ending equipment matches confidence from the tunnel MPLS After the specified physics exit port of breath sends the data message after encapsulation, the method also includes:
Receiving device determines that the target MAC (Media Access Control) address of the data message after the encapsulation is the MAC Address of preconfigured default;
The receiving device receives the data message after the encapsulation.
4. according to the method described in claim 3, it is characterized in that, when needing forwarding data packets, the receiving device After data message after receiving the encapsulation, the method also includes:
The receiving device judges the next-hop internet in the configuration information in the static tunnel MPLS of the receiving device Whether Protocol IP address is 0;
If so, the data message after the encapsulation is sent to the static MPLS of the receiving device by the receiving device The specified physics exit port of the configuration information in tunnel;
The physics exit port hair that the receiving device is specified from the configuration information in the static tunnel MPLS of the receiving device Data message after sending the encapsulation.
5. according to the method described in claim 2, it is characterized in that, the sending ending equipment establish in accordance with the following methods it is described quiet The forwarding table in the tunnel state MPLS:
Obtain the configuration information in the static tunnel MPLS of the sending ending equipment, wherein only specify in the configuration information described The physics exit port in the static tunnel MPLS of the label and sending ending equipment in the static tunnel MPLS of sending ending equipment;
Judge whether the next-hop ip address in the configuration information in the static tunnel MPLS of the sending ending equipment is 0, if so, Obtain the MAC Address of preconfigured default and the VLAN of default;
The forwarding in the static tunnel MPLS of the sending ending equipment is established using the MAC Address of the default and the VLAN of default Table.
6. a kind of static state tunnel MPLS forwarding table establishes device characterized by comprising
First obtains module, the configuration information in the tunnel static multiprotocol label switching MPLS for obtaining network element, wherein described The label in the static state tunnel MPLS and the physics exit port in the static state tunnel MPLS are only specified in configuration information;
Judgment module, for judging whether the next-hop internet protocol address in the configuration information is 0;
Second obtains module, for obtaining preconfigured default in the case where the judging result of the judgment module, which is, is MAC address and default virtual LAN VLAN;
Module is established, for establishing the forwarding in the static state tunnel MPLS using the MAC Address of the default and the VLAN of default Table.
7. a kind of sending device of static state MPLS tunneling data characterized by comprising
First obtains module, the configuration information in the tunnel static multiprotocol label switching MPLS for obtaining network element, wherein described The label in the static state tunnel MPLS and the physics exit port in the static state tunnel MPLS are only specified in configuration information;
Judgment module, for judging whether the next-hop internet protocol address in the configuration information is 0;
Second obtains module, for obtaining preconfigured default in the case where the judging result of the judgment module, which is, is MAC address and default virtual LAN VLAN;
Module is established, for establishing the forwarding in the static state tunnel MPLS using the MAC Address of the default and the VLAN of default Table;
First package module, for when needing to send datagram, according to turning for the tunnel static multiprotocol label switching MPLS It delivers, the purpose MAC address of the data message is encapsulated as to the MAC Address of preconfigured default;
Second package module, for the virtual LAN VLAN of the data message to be encapsulated as preconfigured default VLAN;
Sending module, for sending the data after encapsulation from the physics exit port that the configuration information in the static state tunnel MPLS is specified Message.
8. device according to claim 7, which is characterized in that described to establish module, comprising:
First acquisition unit, the configuration information in the static tunnel MPLS for obtaining sending ending equipment, wherein the configuration information In only specify the physics exit port in the static state tunnel MPLS;
Judging unit, the next-hop internet protocol address in configuration information for judging the sending ending equipment whether be 0;
Second acquisition unit, for obtaining preconfigured default in the case where the judging result of the judging unit, which is, is MAC Address and default VLAN;
Unit is established, for establishing the static state of the sending ending equipment using the MAC Address of the default and the VLAN of default The forwarding table in the tunnel MPLS.
9. a kind of reception device of static state MPLS tunneling data characterized by comprising
Determining module, for determining that the target MAC (Media Access Control) address of the data message reached by the static state tunnel MPLS is preconfigured The MAC Address of default;
Receiving module, for receiving the data message;
Judgment module, for judge receiving device the static tunnel MPLS configuration information in next-hop Internet protocol IP Address whether 0;
Forwarding module, in the case where the judging result of the judgment module, which is, is, the data message to be sent to institute The specified physics exit port of the configuration information in the tunnel MPLS is stated, and sends the datagram from the specified physics exit port Text.
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 CN102611603A (en) 2012-07-25
CN102611603B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106464591B (en) * 2015-05-06 2020-01-21 华为技术有限公司 Ethernet interface addressing method, device, controller and network element in MPLS-TP tunnel
CN106209630B (en) * 2016-07-26 2019-09-06 新华三技术有限公司 A kind of label management method and device
CN109361605B (en) * 2018-11-26 2021-05-04 武汉烽火技术服务有限公司 Dual-IP deployment service protection method and system for transmission network system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110746B (en) * 2007-08-16 2011-03-16 华为技术有限公司 Edge equipment of operators, city Ethernet access network and its data processing method
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN102611603A (en) 2012-07-25

Similar Documents

Publication Publication Date Title
CN109873760B (en) Method and device for processing route, and method and device for data transmission
CN101160850B (en) Method and device for forwarding packet
CN103795631B (en) Deploy the flow forwarding method and equipment in the network of Ethernet virtual link
CN103036809B (en) For having the method and apparatus of the scalable network that active link utilizes
US7095741B1 (en) Port isolation for restricting traffic flow on layer 2 switches
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
EP2712128A1 (en) Message processing method and related device thereof
WO2008092357A1 (en) A method and device for establishing a pseudo wire tunnel and transmitting message using it
CN100555999C (en) A kind of method and apparatus of realizing edge-to-edge pseudo-line simulation
US20080304476A1 (en) Ethernet over mpls circuit emulation service
CN104639470A (en) Flow label encapsulating method and system
US20070165603A1 (en) Access network system, subscriber station device, and network terminal device
CN107547340B (en) Message forwarding method and device
EP2014035A2 (en) Ethernet vll spoke termination at an ip interface
CN110752979B (en) Tunnel transmission method, device and network equipment of message
CN115314467B (en) Data communication system and method based on distribution network differential protection
US20150131672A1 (en) Method, device and system for establishing a pseudo wire
CN111213345B (en) Apparatus, method and system for transmitting or receiving a message containing control information
CN103067278B (en) A kind of method for transmission processing of Frame, equipment and system
CN108270673A (en) File transmitting method, device and system
CN101926132B (en) Circuit emulation over ip interworking vll
CN102611603B (en) The foundation of the static tunnel MPLS forwarding table, data transmission method and device
CN101248620A (en) Method for implementing label packet route validity examination
CN114598635A (en) Message transmission method and device
CN113556273A (en) Data transmission method of three-network cloud intercommunication system

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