CN103634423B - Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device - Google Patents

Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device Download PDF

Info

Publication number
CN103634423B
CN103634423B CN201310647325.4A CN201310647325A CN103634423B CN 103634423 B CN103634423 B CN 103634423B CN 201310647325 A CN201310647325 A CN 201310647325A CN 103634423 B CN103634423 B CN 103634423B
Authority
CN
China
Prior art keywords
information
message
label
arp
mac address
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
CN201310647325.4A
Other languages
Chinese (zh)
Other versions
CN103634423A (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.)
Kyland Technology Co Ltd
Original Assignee
Kyland Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Kyland Technology Co Ltd filed Critical Kyland Technology Co Ltd
Priority to CN201310647325.4A priority Critical patent/CN103634423B/en
Publication of CN103634423A publication Critical patent/CN103634423A/en
Application granted granted Critical
Publication of CN103634423B publication Critical patent/CN103634423B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

An embodiment of the invention provides a three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device. The method includes: according to VLAN (virtual local area network) interface information in a self-stored label address table, sending an ARP (address resolution protocol) request message of label information through each VLAN interface; receiving a returned ARP reply message of the label information, comparing MAC (media access control) address information and out interface information carried in the ARP reply message with information in the label address table, and when destination MAC address information in the label address table is inconsistent with the out interface information, updating the label address table. Due to creation of a mapping list of the label information, next-hop IP (internet protocol) address information, the VLAN information, the out interface information and the destination MAC address information, when network topology changes, information for labeling next-hop nodes can be updated timely, and further flexibility in PTN (packet transport network) equipment configuration is improved greatly.

Description

A kind of mpls-tp collocation method based on three layer interfaces and device
Technical field
The present invention relates to industrial network communication technique field, more particularly, to a kind of mpls-tp configuration based on three layer interfaces Method and device.
Background technology
3g transmission and the large-scale application of data communication ipization, enrich developing rapidly based on packet technology.Base In multiprotocol label switching communication framework (multi-protocol label switching-transport profile, Mpls-tp two-layer virtual private network (virtual private network, vpn) solution) overcomes traditional The shortcoming extending complexity in atm or fr network, mpls-tp vpn, can be in a hierarchical service by using label stack technology It is multiplexed a plurality of virtual circuit, Provider Edge (pe) is as long as dimension in offer program (layered service provider, lsp) One lsp information of shield, therefore substantially increases the extensibility of system.It is multiple that mpls-tp l2 vpn reduces vpn service fulfillment Miscellaneous degree, enhances security, when increasing website particularly in existing vpn, in most of the cases only need to be supplier side Edge router is connected in new site, reduces the cycle of business offer accordingly.
By using mpls-tp technology, two layers of vpn, three layers of vpn, flow work can be run in the network of polynary fusion Many business such as journey and diffserv, layer 2-based mpls-tp vpn solution provides carrier network and client Vpn network between be completely independent that is to say, that not having between the pe equipment of operator edge and customer edge (ce) equipment Have and carry out route switching, operator is simply simple to provide some network functions based on two layers to client.From the point of view of client Operator also simply simply provides simple two layers of connection.
And in the application of the ptn equipment based on mpls-tp technology application, need between this node and the port of peer node The mac address of opposite end to be obtained, for encapsulating the purpose mac address of mpls message, opposite equip. is known after receiving mpls message Whether the purpose mac address in other message is the mac address of this node, then just carries out the discriminating of service label, and mpls- The oam standard of tp g.8113.1 formal definition soon, corresponding product is ripe not enough, therefore, the oam of existing software platform Functional compatibility and flexibility are all not fully up to expectations.
Traditional application scheme using three layer interfaces, needs to specify network-side port, or could be used without realizing three layers The scheme of interface, by directly specifying network-side port, artificial write opposite end mac address.Therefore, prior art exists The configuration flexibility difference of ptn equipment is it is impossible to adapt to the problem of the change of network topology.
Content of the invention
The embodiment of the present invention provides a kind of mpls-tp collocation method based on three layer interfaces and device, existing in order to solve In technology, the ptn device configuration very flexible of three layer interfaces is it is impossible to adapt to the problem of network topology change.
Embodiments provide a kind of mpls-tp collocation method based on three layer interfaces, the method includes:
Receive configuration enabled instruction and wake up synchronizing signal amount, protected at itself according to label information and next-hop ip address information Search corresponding vlan interface message in the tag addresses table deposited, this label is sent by described each finding vlan interface The arp request message of information, wherein, preserves label information, next-hop ip address information, vlan letter in described tag addresses table Breath, exit port information and purpose mac address information;
The arp receiving this label information returning replys message, obtains described arp and replys purpose mac carrying in message Address information, exit port information and vlan information, reply the vlan information of message, in mark according to this label information and described arp Sign in agreement table and search corresponding purpose mac address information and exit port information;
This purpose mac address information finding and exit port information are replied the mac ground carrying in message with described arp Location information and exit port information are compared, and carry purpose mac address information and go out end when determining to reply with described arp in message When message breath is inconsistent, the purpose mac address information carrying and exit port information are replied according to described arp, to label in message Address table is updated.
Embodiments provide a kind of mpls-tp configuration device based on three layer interfaces, this device includes:
Search sending module, wake up synchronizing signal amount for receiving configuration enabled instruction, according to label information and next-hop Ip address information searches corresponding vlan interface message in the tag addresses table that itself preserves, by each finding described Vlan interface sends the arp request message of this label information, wherein, preserve in described tag addresses table label information, next Jump ip address information, vlan information, exit port information and purpose mac address information;
Arp processing module, the arp for receiving this label information returning replys message, obtains described arp and replys message In the purpose mac address information, exit port information and the vlan information that carry, message is replied according to this label information and described arp Vlan information, label protocol table is searched corresponding purpose mac address information and exit port information;
Config update module, for replying this purpose mac address information finding and exit port information with described arp The mac address information carrying in message and exit port information are compared, and carry purpose when determining to reply in message with described arp When mac address information and exit port information are inconsistent, according to described arp reply in message the purpose mac address information that carries and Exit port information, is updated to tag addresses table.
The embodiment of the present invention provides a kind of mpls-tp collocation method based on three layer interfaces and device, and the method includes: root According to the vlan interface message in the tag addresses table that itself preserves, each label information is sent by this each vlan interface Arp request message;The arp receiving this label information returning replys message, and this arp is replied the mac address carrying in message Information and exit port information are compared with the information in tag addresses table, when the purpose mac ground in determination with tag addresses table When location information and exit port information are inconsistent, tag addresses table is updated.Due to passing through in embodiments of the present invention to set up Label information, next-hop ip address information, the map listing of vlan information, exit port information and purpose mac address information, when During network topology change, the information of the mark next-hop node that can upgrade in time, thus substantially increase the flexible of ptn device configuration Property.
Brief description
Fig. 1 is a kind of mpls-tp configuration process schematic diagram based on three layer interfaces provided in an embodiment of the present invention;
The mpls-tp based on three layer interfaces of Fig. 2 port up event triggering accessing first provided in an embodiment of the present invention Configuration process schematic diagram;
Fig. 3 is that a kind of specific implementation process of mpls-tp configuration based on three layer interfaces provided in an embodiment of the present invention is shown It is intended to;
Fig. 4 is the system structure diagram realizing oam processing function provided in an embodiment of the present invention;
Fig. 5 is a kind of structural representation of mpls-tp configuration device based on three layer interfaces provided in an embodiment of the present invention;
Specific embodiment
The present invention, in order to effectively reduce the maintenance cost of ptn equipment, save resources, improves the flexibility of configuration, provides A kind of mpls-tp collocation method based on three layer interfaces and device.
With reference to Figure of description, the present invention is described in detail.
Fig. 1 is a kind of mpls-tp configuration process schematic diagram based on three layer interfaces provided in an embodiment of the present invention, this process Comprise the following steps:
S101: receive configuration enabled instruction and wake up synchronizing signal amount, existed according to label information and next-hop ip address information Search corresponding vlan interface message in the tag addresses table that itself preserves, sent by described each finding vlan interface The arp request message of this label information, wherein, preserves label information, next-hop ip address information, vlan in tag addresses table Information, exit port information and purpose mac address information.
The configuration of pe equipment is saved in main cpu, and main cpu exchanges the arp processing module in module by pcie Interface Controller, And mpls function is opened/is closed in the next-hop ip address information of each port of storage devices node and control.
When receiving configuration enabled instruction, choose a label code from label station, by this label code and be saved in Next-hop ip address information in local tag addresses table, searches corresponding vlan information, and corresponding every to this label code Individual vlan interface sends arp request message, then, chooses another label code in label stack and repeats above-mentioned flow process, until will mark Sign stack in each label code send once, wherein, from label stack choose label code can be successively choose or with Machine is chosen.
S102: the arp receiving this label information returning replys message, obtains described arp and replys the mesh carrying in message Mac address information, exit port information and vlan information, reply the vlan information of message according to this label information and described arp, Corresponding purpose mac address information and exit port information is searched in label protocol table.
Wake up synchronizing signal amount when main cpu configuration next-hop ip address information, then institute is searched by next-hop ip The valn belonging to, sends next-hop ip and vlan configuration information successively to arp processing module, arp processing module returns according to each Arp reply the vlan information of message and this arp replys the corresponding label code of message, label protocol table is searched corresponding table ?.
In the present invention in order to solve because the former arp that do not receive thus resulting in such as packet loss, Network Abnormal replys message Problem, after the arp request message sending each label code, start a timer, timer expiry then determines this mark The arp reply message signing code does not receive.
S103: by carry in this purpose mac address information finding and exit port information and described arp reply message Mac address information and exit port information are compared.
Each arp replys the purpose mac address letter all comprising the next-hop that this arp replys the corresponding label of message in message Breath and exit port information, judge that this arp replys the purpose in the purpose mac address information carrying in message and label protocol table Whether mac address information is consistent, when comparative result is consistent, judges that this arp replys the exit port information carrying in message and mark Whether the exit port information signed in agreement table is consistent
Wherein, this purpose mac address information and exit port information change with the change of network topology structure.
S104: when determine with described arp reply message in carry purpose mac address information and exit port information is inconsistent When, the purpose mac address information carrying in message and exit port information are replied according to described arp, tag addresses table is carried out more Newly.
Specifically, obtain purpose mac address information and the exit port information that the arp of each label code replys in message, sentence The purpose mac address information that this arp replys in the purpose mac address information that carries and label protocol table in message of breaking whether one Cause, when determining that purpose mac address information is inconsistent, by the purpose mac address information in label protocol table and exit port information It is updated to arp and reply the purpose mac address information carrying in message and port information;
When purpose mac address information is consistent, judge that this arp replys the exit port information carrying in message and label protocol Whether the exit port information in table is consistent, when determining that port information is inconsistent, by the exit port information in label protocol table Be updated to arp and reply the port information that carries in message, wherein, the comparison of purpose mac address information and exit port information regardless of Sequencing.
Due in the embodiment of the present invention by being monitored to the purpose mac address information of next-hop and exit port information, When network topology change occurs, can timely update the list item in local label protocol table, thus avoiding because network Change in topology needs human configuration information, and the problem of resource waste causing, improve the flexibility of configuration.
In order to timely gather purpose mac address information and the exit port information of next-hop, the trigger condition of the present invention is opened Open configuration enabled instruction to include:
Configured by user command and open mpls enable, during the ip address of configuration next-hop, wake up synchronizing signal amount;Or,
By the up event of port, trigger network-side port and send arp request message;Or,
By in the arp update event of three layer interfaces, label configuration downloaded by triggering hardware.
Specifically, when network architecture completes to carry out initial configuration, according to the topological structure of current network, user passes through life Make configuration open mpls to enable, carry out triggering when the list item of initial label protocol is set up, and user can be as needed pre- Stay physical interface, configure good each label code corresponding next-hop ip address and vlan interface in advance, when reserved physical interface It is connected to equipment or when network topology changes, also will trigger network-side port and send arp request message;Or to user When the arp of three layer interfaces is updated, label configuration is downloaded by hardware, also will trigger this operation.
In addition, in the present invention when tag addresses table changes, for the new multiprotocol label switching tunnel of fast run-up It is ensured that mpls-tp message energy normal transmission, after the described tag addresses table that itself is preserved is updated, method is also wrapped in road Include:
Remove the interconnection ac business of foundation, replied in message according to described arp and carry vlan information, purpose mac Address information, exit port information and this label information, update all void carrying on multiprotocol label switching tunnel and this tunnel Circuit interface, and create new interconnection ac business.
Specifically, when certain list item in the local label protocol table preserving changes, according to the mark of this list item Sign code, purpose mac address information and exit port information, ac forwarding module deletes the interconnection ac industry set up before this presentation Business, sets up all virtual circuit interfaces carrying on multiprotocol label switching tunnel and this tunnel before destroying this presentation;According to The label code of this performance after renewal, purpose mac address information, exit port information and the local vlan information preserving and next-hop Ip address information sets up new multiprotocol label switching tunnel, and sets up all virtual circuit interfaces of carrying on this tunnel, Set up new interconnection ac business afterwards.
When there being physical port to access new equipment in network, configuration-direct is started by port up event, to this new equipment Carry out the configuration of next-hop, reply the vlan information of message according to the corresponding arp of each label code, set up in label protocol table New list item, the described vlan information replying message according to this label information and described arp, search corresponding in label protocol table Purpose mac address information and exit port information include:
Reply vlan information and this label information in message according to described arp, make a look up in tag addresses table, sentence Corresponding purpose mac address information and exit port information whether is preserved in disconnected tag addresses table;
When not preserving corresponding purpose mac address information and exit port information in the described tag addresses table of determination, root Reply vlan information, purpose mac address information, exit port information and this label information in message according to described arp, create assist more Assess a bid for tender and the interface of all virtual circuits carrying is signed on tunnel and this tunnel, and create interconnection ac business.
Specifically, when the network topology of networking changes, new node equipment is connected to this using reserved physical port During network, triggering network-side port sends arp request message, and pe equipment passes through label code and next-hop ip ground in label stack Location, is searched corresponding vlan information in the local label protocol table preserving, is sent to new node equipment by this vlan interface Arp request message, after new node equipment receives this arp request message, the mac address information of itself and exit port information is led to Cross arp reply message and return to pe equipment, pe equipment obtains this arp and replys the purpose mac address information of message, exit port information And vlan information, and made a look up in label protocol table according to this arp of this vlan information reply corresponding label code of message, by In not finding corresponding purpose mac address information and exit port information in label protocol table, it is thus determined that being to learn first The purpose mac address information arriving and exit port information, reply, according to this arp, purpose mac address information, the exit port that message comprises Information, vlan information and the local next-hop ip address information preserving and label code set up new list item in label protocol table, And vlan information, purpose mac address information, exit port information and this label information in message are replied according to described arp, create The interface of all virtual circuits carrying on multiprotocol label tunnel and this tunnel, and create interconnection ac business.
Fig. 2 is the mpls- based on three layer interfaces of the port up event triggering accessing first provided in an embodiment of the present invention Tp configuration process schematic diagram, this process comprises the following steps:
The triggering configuration enabled instruction of s201: port up event wakes up synchronizing signal amount, according to label information and next-hop ip Address information searches corresponding vlan interface message in the tag addresses table that itself preserves.
S202: send the arp request message of this label information by described each finding vlan interface.
S203: the arp receiving this label information returning replys message, obtains described arp and replys the mesh carrying in message Mac address information, exit port information and vlan information.
S204: reply the vlan information of message according to this label information and described arp, search in label protocol table and correspond to Purpose mac address information and exit port information.
S205: judge whether preserve corresponding purpose mac address information or exit port information in tag addresses table, when sentencing When disconnected result is to be, carries out step s206, otherwise, carry out step s207.
S206: judge that this purpose mac address information finding and exit port information are replied in message with described arp and carry Mac address information and exit port information whether consistent, when result of determination is to be, keeps tag addresses table constant, otherwise, enter Row step s207..
S207: the purpose mac address information carrying in message and exit port information are replied according to described arp, to label ground Location table is updated.
S208: remove the interconnection ac business of foundation, replied in message according to described arp and carry vlan information, mesh Mac address information, exit port information and this label information, the institute carrying is updated on multiprotocol label switching tunnel and this tunnel There is virtual circuit interface, and create new interconnection ac business.
Specifically, in embodiments of the present invention, support that user configures reserved port as needed in networking, by mark Sign next-hop ip address, vlan information and the corresponding label information configuring this reserved port in agreement table, can make newly to connect net The node device of network only need to be connected to reserved physical port, can be achieved with the proper communication of mpls message.
In addition, in the present invention in order to improve the compatibility of oam message, the flexible characteristic realizing g.8113.1 standard expands Exhibition function, supports to carry the process of the oam message of vlan and untag, is set up according to the list item in the label protocol table after changing After new interconnection ac business, methods described also includes:
According to the interface of the virtual circuit carrying on multiprotocol label switching tunnel interface and this tunnel, create local terminal maintenance point With remote maintenance point, the ccm message that mirror image exchange chip receives arrives from cpu, redirects from the ccm message of cpu transmission to exchange The exit port of chip;
, to main cpu, the loopback message redirecting main cpu transmission is to exchange chip for the loopback message that mirror image exchange chip receives Exit port.
Specifically, fp control module redirects and mirror image oam message is forwarded to main cpu and from cpu, can support to carry Vlan and do not carry vlan message reception, oam message receive task hook sub-interface in connecing packet interrupting, work as ac After forwarding module sets up new interconnection ac business according to list item amended in label protocol table, oam is notified to process mould Block carries out oam process, and oam processing module is according to each virtual circuit carrying on multiprotocol label switching tunnel interface and this tunnel Interface, creates local terminal maintenance point (mep) and remote maintenance point, simultaneously by ccm message mirror to from cpu, and will send from cpu Ccm message redirecting to the exit port of exchange chip, then by loopback lb message mirror to main cpu, and by main cpu send ring Return literary composition is redirected to the exit port of exchange chip.
Fig. 3 is that a kind of specific implementation process of mpls-tp configuration based on three layer interfaces provided in an embodiment of the present invention is shown It is intended to, this process comprises the following steps:
S301: receive configuration enabled instruction and wake up synchronizing signal amount, existed according to label information and next-hop ip address information Corresponding vlan interface message is searched in the tag addresses table that itself preserves.
S302: send the arp request message of this label information by described each finding vlan interface.
S303: the arp receiving this label information returning replys message, obtains this arp and replys the purpose carrying in message Mac address information, exit port information and vlan information.
S304: reply the vlan information of message according to this label information and described arp, search in label protocol table and correspond to Purpose mac address information and exit port information.
S305: judge that this purpose mac address information finding and exit port information are replied in message with described arp and carry Mac address information and exit port information whether consistent, when result of determination is to be, keeps tag addresses table constant, otherwise, enter Row step s306.
S306: the purpose mac address information carrying in message and exit port information are replied according to described arp, to label ground Location table is updated.
S307: remove the interconnection ac business of foundation, replied in message according to described arp and carry vlan information, mesh Mac address information, exit port information and this label information, the institute carrying is updated on multiprotocol label switching tunnel and this tunnel There is virtual circuit interface, and create new interconnection ac business.
S308: according to the interface of the virtual circuit carrying on multiprotocol label switching tunnel interface and this tunnel, create local terminal Maintenance point and remote maintenance point.
The ccm message that s309: mirror image exchange chip receives arrives from cpu, redirects from the ccm message of cpu transmission to exchange The exit port of chip.
, to main cpu, the loopback message redirecting main cpu transmission is to friendship for the loopback message that s310: mirror image exchange chip receives Change the exit port of chip.
In the present invention by configuring meg id, the section layer port of binding, tunnel id and virtual circuit id, local/far-end The transmission cycle of mep id, ccm message.Mpls-tp oam is divided into section layer, lsp layer and pw layer so that oam entity is set up On different layer interfaces, corresponding is to set up 3 data database storings.By using balanced binary tree algorithm, plus Fast traversal speed, improves the configuration flexibility of the oam of mpls-tp, also increases the compatibility of oam message.
Fig. 4 is the system structure diagram realizing oam processing function provided in an embodiment of the present invention, comprises within the system Arp study module, fp processing module, ccm processing module and lb processing module.Wherein, arp study module sets up the arp of neighbours Address table, whether the mpls-tp oam interface in section layer port, tunnel (tunnel) id and virtual circuit pw id for the retrieval is bound Oam function.Update the data the purpose mac address (dmac) of next-hop device in storehouse and port and interior according to oam interface Outer layer label, passes through rpc interface simultaneously and updates the database from cpu.Fp processing module be used for redirect and the main cpu of mirror image and from Cpu receives mpls-tp oam message, and sets up the mapping of ccm message and network-side port according to arp study module.Ccm process Module sends according to oam interface and receives ccm message, looks into mep table and alarming processing in database.Lb processing module is according to oam Interface sends and receives lb/lt message, looks into mep table and alarming processing in database.
Specifically, when system starts, fp control module redirects and mirror image oam message is forwarded to main cpu and from cpu.Can Support the reception with vlan and the message not carrying vlan.Oam message receives task and mounts hook in connecing packet interrupting Interface.
User command configuration task configures the information such as oam interface and meg id, level by Subscriber Interface Module SIM, then Configuration local terminal/far-end mep and ccm parameter.Multiple meg id can bind (different ranks) on same oam interface, with reality The business nesting of existing oam.Database using balanced binary tree algorithm store meg id be index data structure, finally set up with Oam interface (section layer port/tunnel id/pw id) and the mep look-up table that level is index.
When creating mep look-up table, next hop information decides whether to create according to mpls network-side port connection status. Next hop information includes next-hop dmac, physical port and corresponding section of layer port of oam interface/tunnel id/pw id's The information such as mpls label.The up event triggering arp study module being created by physical port of next hop information, from mpls's Take out label data in configuration and dynamically update the data storehouse, update to complete from the database of cpu simultaneously.Mpls when equipment starts Corresponding physical port up event triggering arp study module study next hop information, and be saved in database.Prevent main cpu Prior to starting from cpu, cause the asynchronous of database.
The present invention is the function that double cpu realize mpls-tp oam.By the fp function control of exchange chip from cpu process Ccm message, main cpu is used for processing other types of oam message.The fixed port being connected to exchange chip from cpu is used for receiving and dispatching Service message.Oam function is realized by the change of the rpc communication completion status machine with main cpu, and active reporting oam alarm signal Breath.
Fig. 5 is a kind of structural representation of mpls-tp configuration device based on three layer interfaces provided in an embodiment of the present invention, Described device includes:
Search sending module 51, for receive configuration enabled instruction wake up synchronizing signal amount, according to label information and next Jump ip address information search corresponding vlan interface message in the tag addresses table that itself preserves, by described find every Individual vlan interface sends the arp request message of this label information, wherein, preserve in described tag addresses table label information, under One jumps ip address information, vlan information, exit port information and purpose mac address information;
Arp processing module 52, the arp for receiving this label information returning replys message, obtains described arp and replys report Purpose mac address information, exit port information and the vlan information carrying in literary composition, replys report according to this label information and described arp The vlan information of literary composition, searches corresponding purpose mac address information and exit port information in label protocol table;
Config update module 53, for returning this purpose mac address information finding and exit port information with described arp In multiple message, the mac address information carrying and exit port information are compared, and carry mesh when determining to reply in message with described arp Mac address information and exit port information inconsistent when, the purpose mac address information that carries in message is replied according to described arp And exit port information, tag addresses table is updated.
Described device also includes:
Configuration starting module 54, opens mpls enable for configuring by user command, during the ip address of configuration next-hop Wake up synchronizing signal amount;Or, by the up event of port, trigger network-side port and send arp request message;Or, pass through In the arp update event of three layer interfaces, label configuration downloaded by triggering hardware.
Described device also includes:
Arp processing module 52, is additionally operable to reply vlan information and this label information in message according to described arp, in mark Sign in address table and make a look up, judge in tag addresses table, whether to preserve corresponding purpose mac address information and exit port letter Breath;
Ac forwarding module 55, does not preserve corresponding purpose mac address information for working as in the described tag addresses table of determination During with exit port information, vlan information in message, purpose mac address information, exit port information are replied according to described arp and is somebody's turn to do Label information, creates the interface of all virtual circuits carrying on multiprotocol label tunnel and this tunnel, and creates interconnection ac Business.
Described ac forwarding module 55, is additionally operable to remove the interconnection ac business of foundation, replys message according to described arp In carry vlan information, purpose mac address information, exit port information and this label information, update multiprotocol label switching tunnel And all virtual circuit interfaces carrying on this tunnel, and create new interconnection ac business.
Described device also includes:
Oam processing module 56, for according to the virtual circuit carrying on multiprotocol label switching tunnel interface and this tunnel Interface, creates local terminal maintenance point and remote maintenance point, and the ccm message that mirror image exchange chip receives, to from cpu, redirects from cpu The ccm message sending is to the exit port of exchange chip;The loopback message that mirror image exchange chip receives, to main cpu, redirects main cpu The loopback message sending is to the exit port of exchange chip.
The embodiment of the present invention provides a kind of mpls-tp collocation method based on three layer interfaces and device, and the method includes: root According to the vlan interface message in the tag addresses table that itself preserves, each label information is sent by this each vlan interface Arp request message;The arp receiving this label information returning replys message, and this arp is replied the mac address carrying in message Information and exit port information are compared with the information in tag addresses table, when the purpose mac ground in determination with tag addresses table When location information and exit port information are inconsistent, tag addresses table is updated.Due to passing through in embodiments of the present invention to set up Label information, next-hop ip address information, the map listing of vlan information, exit port information and purpose mac address information, when During network topology change, the information of the mark next-hop node that can upgrade in time, thus substantially increase the flexible of ptn device configuration Property.
Those skilled in the art are it should be appreciated that embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using complete hardware embodiment, complete software embodiment or the reality combining software and hardware aspect Apply the form of example.And, the application can be using in one or more computers wherein including computer usable program code The upper computer program implemented of usable storage medium (including but not limited to magnetic disc store, cd-rom, optical memory etc.) produces The form of product.
The application is the flow process with reference to method, equipment (system) and computer program according to the embodiment of the present application Figure and/or block diagram are describing.It should be understood that can be by each stream in computer program instructions flowchart and/or block diagram Flow process in journey and/or square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor instructing all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device is to produce A raw machine is so that produced for reality by the instruction of computer or the computing device of other programmable data processing device The device of the function of specifying in present one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide computer or other programmable data processing device with spy Determine in the computer-readable memory that mode works so that the instruction generation inclusion being stored in this computer-readable memory refers to Make the manufacture of device, this command device realize in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or The function of specifying in multiple square frames.
These computer program instructions also can be loaded in computer or other programmable data processing device so that counting On calculation machine or other programmable devices, execution series of operation steps to be to produce computer implemented process, thus in computer or On other programmable devices, the instruction of execution is provided for realizing in one flow process of flow chart or multiple flow process and/or block diagram one The step of the function of specifying in individual square frame or multiple square frame.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So, claims are intended to be construed to including excellent Select embodiment and fall into being had altered and changing of the application scope.
Obviously, those skilled in the art can carry out the various changes and modification essence without deviating from the application to the application God and scope.So, if these modifications of the application and modification belong to the scope of the application claim and its equivalent technologies Within, then the application is also intended to comprise these changes and modification.

Claims (10)

1. a kind of mpls-tp collocation method based on three layer interfaces is it is characterised in that methods described includes:
Receive configuration enabled instruction and wake up synchronizing signal amount, preserved at itself according to label information and next-hop ip address information Search corresponding vlan interface message in tag addresses table, this label information is sent by each the vlan interface finding Arp request message, wherein, preserves label information, next-hop ip address information, vlan information, goes out in described tag addresses table Port information and purpose mac address information;
The arp receiving this label information returning replys message, obtains described arp and replys the purpose mac address carrying in message Information, exit port information and vlan information, reply the vlan information of message according to this label information and described arp, in label association Corresponding purpose mac address information and exit port information is searched in view table;
This purpose mac address information finding and exit port information are replied the mac address letter carrying in message with described arp Breath and exit port information are compared, and carry purpose mac address information and exit port letter when determining to reply with described arp in message When ceasing inconsistent, the purpose mac address information that carries and exit port information in message are replied according to described arp, by by label Purpose mac address information in address table and exit port information updating reply, for arp, the purpose mac address information carrying in message And exit port information, tag addresses table is updated.
2. the method for claim 1 is it is characterised in that described configuration enabled instruction includes:
Configured by user command and open mpls enable, during the ip address of configuration next-hop, wake up synchronizing signal amount;Or,
By the up event of port, trigger network-side port and send arp request message;Or,
By in the arp update event of three layer interfaces, label configuration downloaded by triggering hardware.
3. the method for claim 1 is it is characterised in that described reply message according to this label information and described arp Vlan information, searches corresponding purpose mac address information in label protocol table and exit port information includes:
Reply vlan information and this label information in message according to described arp, make a look up in tag addresses table, judge mark Sign in address table and whether preserve corresponding purpose mac address information and exit port information;
When not preserving corresponding purpose mac address information and exit port information in the described tag addresses table of determination, according to institute State arp and reply vlan information, purpose mac address information, exit port information and this label information in message, create multiprotocol label The interface of all virtual circuits carrying on tunnel and this tunnel, and create interconnection ac business.
4., after the method for claim 1 is it is characterised in that be updated to tag addresses table, method also includes:
Remove the interconnection ac business of foundation, replied in message according to described arp and carry vlan information, purpose mac address Information, exit port information and this label information, update all virtual circuits carrying on multiprotocol label switching tunnel and this tunnel Interface, and create new interconnection ac business.
5. the method as described in claim 3 or 4 is it is characterised in that also include:
According to the interface of the virtual circuit carrying on multiprotocol label switching tunnel interface and this tunnel, create local terminal maintenance point and remote End maintenance point, the ccm message that mirror image exchange chip receives arrives from cpu, redirects from the ccm message of cpu transmission to exchange chip Exit port;
The loopback message that mirror image exchange chip receives, to main cpu, redirects loopback message the going out to exchange chip that main cpu sends Port.
6. a kind of mpls-tp configuration device based on three layer interfaces is it is characterised in that described device includes:
Search sending module, wake up synchronizing signal amount for receiving configuration enabled instruction, according to label information and next-hop ip ground Location information searches corresponding vlan interface message in the tag addresses table that itself preserves, by each the vlan interface finding Send the arp request message of this label information, wherein, in described tag addresses table, preserve label information, next-hop ip address Information, vlan information, exit port information and purpose mac address information;
Arp processing module, the arp for receiving this label information returning replys message, obtains in described arp reply message and takes The purpose mac address information of band, exit port information and vlan information, reply message according to this label information and described arp Vlan information, searches corresponding purpose mac address information and exit port information in label protocol table;
Config update module, for replying message by this purpose mac address information finding and exit port information with described arp In the mac address information that carries and exit port information be compared, carry purpose mac when determining to reply in message with described arp When address information and exit port information are inconsistent, the purpose mac address information carrying are replied according to described arp and go out end in message Message ceases, and is carried by replying in message the purpose mac address information in tag addresses table and exit port information updating for arp Purpose mac address information and exit port information, tag addresses table is updated.
7. device as claimed in claim 6 is it is characterised in that described device also includes:
Configuration starting module, enables for opening mpls by user command configuration, wakes up same during the ip address of configuration next-hop Step semaphore;Or, by the up event of port, trigger network-side port and send arp request message;Or, by three layers During the arp update event of interface, label configuration downloaded by triggering hardware.
8. device as claimed in claim 6 is it is characterised in that described device also includes:
Arp processing module, is additionally operable to reply vlan information and this label information in message according to described arp, in tag addresses Make a look up in table, judge in tag addresses table, whether to preserve corresponding purpose mac address information and exit port information;
Ac forwarding module, does not preserve corresponding purpose mac address information and goes out to hold for working as in the described tag addresses table of determination During message breath, vlan information in message, purpose mac address information, exit port information and this label letter are replied according to described arp Breath, creates the interface of all virtual circuits carrying on multiprotocol label tunnel and this tunnel, and creates interconnection ac business.
9. device as claimed in claim 6, it is characterised in that described ac forwarding module, is additionally operable to remove the intersection of foundation Connect ac business, replied in message according to described arp and carry vlan information, purpose mac address information, exit port information and this mark Label information, updates all virtual circuit interfaces carrying on multiprotocol label switching tunnel and this tunnel, and creates new intersection even Connect ac business.
10. device as claimed in claim 8 or 9 is it is characterised in that described device also includes:
Oam processing module, for the interface according to the virtual circuit carrying on multiprotocol label switching tunnel interface and this tunnel, wound Build local terminal maintenance point and remote maintenance point, the ccm message that mirror image exchange chip receives, to from cpu, redirects from cpu transmission Ccm message is to the exit port of exchange chip;The loopback message that mirror image exchange chip receives, to main cpu, redirects what main cpu sent Loopback message is to the exit port of exchange chip.
CN201310647325.4A 2013-12-06 2013-12-06 Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device Active CN103634423B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310647325.4A CN103634423B (en) 2013-12-06 2013-12-06 Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310647325.4A CN103634423B (en) 2013-12-06 2013-12-06 Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device

Publications (2)

Publication Number Publication Date
CN103634423A CN103634423A (en) 2014-03-12
CN103634423B true CN103634423B (en) 2017-01-18

Family

ID=50215038

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310647325.4A Active CN103634423B (en) 2013-12-06 2013-12-06 Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device

Country Status (1)

Country Link
CN (1) CN103634423B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104283983B (en) * 2014-10-27 2018-01-09 新华三技术有限公司 Virtual machine IP address distribution method and device in a kind of software defined network
CN105812163B (en) * 2014-12-31 2019-02-12 北京东土科技股份有限公司 A kind of method and system preventing port Vlan configuration error
US10673986B2 (en) * 2016-10-07 2020-06-02 Hyundai Motor Company Operation method of communication node for selective wake-up in vehicle network
CN106790757B (en) * 2016-12-29 2019-09-20 迈普通信技术股份有限公司 A kind of method and device that ARP entry updates
CN108092860B (en) * 2017-12-07 2019-09-10 中盈优创资讯科技有限公司 Two etale topology topology discovery method, apparatus, storage medium and the equipment of Metropolitan Area Network (MAN)
CN111435948B (en) * 2019-01-12 2021-11-19 华为技术有限公司 Method for transmitting message in network and network equipment
CN112180817B (en) * 2019-07-02 2021-11-16 北京东土科技股份有限公司 Method, device, equipment and storage medium for transforming ladder diagram into binary tree
CN110457228B (en) * 2019-08-22 2022-12-20 携程计算机技术(上海)有限公司 Method and system for comparing interface return messages
CN111970201A (en) * 2020-08-28 2020-11-20 迈普通信技术股份有限公司 Multi-chip cascade forwarding system and forwarding control method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581818A (en) * 2003-07-31 2005-02-16 华为技术有限公司 Method for supporting multi-port virtual LAN by multi-protocol label swtich
CN1980177A (en) * 2005-12-02 2007-06-13 中兴通讯股份有限公司 Method for realizing virtual special local network service broadcast
CN102035740A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Multi-protocol label switching layer-3 virtual private network fast reroute (MPLSL3VPNFRR) method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1853007B1 (en) * 2006-05-04 2008-10-01 Nokia Siemens Networks Gmbh & Co. Kg Automatic packet protection forwarding to an MPLS network by a dual-homed ethernet bridge
KR100927126B1 (en) * 2007-11-26 2009-11-18 한국전자통신연구원 The entry and exit nodes of the MPS network with improved packet transmission speed, and the packet transmission speed improvement method of the MPS network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581818A (en) * 2003-07-31 2005-02-16 华为技术有限公司 Method for supporting multi-port virtual LAN by multi-protocol label swtich
CN1980177A (en) * 2005-12-02 2007-06-13 中兴通讯股份有限公司 Method for realizing virtual special local network service broadcast
CN102035740A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 Multi-protocol label switching layer-3 virtual private network fast reroute (MPLSL3VPNFRR) method and system

Also Published As

Publication number Publication date
CN103634423A (en) 2014-03-12

Similar Documents

Publication Publication Date Title
CN103634423B (en) Three-layered interface based MPLS-TP (multi-protocol label switching-transport profile) configuration method and device
US9929938B2 (en) Hierarchal label distribution and route installation in a loop-free routing topology using routing arcs at multiple hierarchal levels for ring topologies
US10476796B2 (en) Packet processing method, and device and system
EP3070895B1 (en) Encapsulation method and system for flow identifier
US9246794B2 (en) Label distribution and route installation in a loop-free routing topology using routing arcs
CN105162704B (en) The method and device of multicast replication in Overlay network
US20130254356A1 (en) Systems and methods for recovery from network changes
CN104704779A (en) Method and apparatus for accelerating forwarding in software-defined networks
CN105191215A (en) Data plane learning of bi-directional service chains
CN105323136A (en) Information processing method and device
US20170338976A1 (en) Method for Obtaining Port Path and Apparatus
CN107579900A (en) From the method, apparatus and system of vlan network access VXLAN networks
CN112422398B (en) Message transmission method and communication device
CN109936516A (en) System and method for promoting transparent service mapping across multiple network transmission options
CN108574634A (en) Devices, systems, and methods for providing Node Protection across the label switched path for sharing label
CN108965134B (en) Message forwarding method and device
CN105847153A (en) Message forwarding method and network device
CN110430116A (en) Data forwarding method and device, edge device and readable storage medium storing program for executing
CN108540386B (en) Method and device for preventing service flow interruption
CN107896188A (en) Data forwarding method and device
CN103428252B (en) A kind of method, equipment and the system of cloud computing virtual machine (vm) migration
WO2012078523A1 (en) Systems and methods for pseudo-link creation
CN105637806A (en) Method and apparatus for determining network topology, and centralized network state information storage device
CN102136957B (en) Label switched path monitoring realization method, device and system
CN106209630B (en) A kind of label management method and device

Legal Events

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