CN103746916A - Method and apparatus for improving forwarding strategy of SPBM network - Google Patents
Method and apparatus for improving forwarding strategy of SPBM network Download PDFInfo
- Publication number
- CN103746916A CN103746916A CN201310719590.9A CN201310719590A CN103746916A CN 103746916 A CN103746916 A CN 103746916A CN 201310719590 A CN201310719590 A CN 201310719590A CN 103746916 A CN103746916 A CN 103746916A
- Authority
- CN
- China
- Prior art keywords
- mac
- node
- message
- table item
- forwarding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention provides a method and apparatus for message forwarding in a shortest path bridging MAC mode (SPBM) network, wherein the method and the apparatus can be applied to any backbone edge bridge (BEB) node in the SPBM network. In the SPBM network, a strategy service instance is applied and includes a service node, a plurality of client nodes and a plurality of user side hosts connected with the client nodes. When the BEB nodes serve as the client nodes, the method for message forwarding comprises the following steps that: a CID forwarding table entry is established for the strategy service instance; when a first message from one user side host is received, a first strategy service instance that the first message belongs to is determined, Mac-in-Mac packaging is carried out on the first message according to the SPBM packaging information in the CID forwarding table entry of the first strategy service instance and then the processed first message is sent to the service node. Compared with the previous scheme, the provided scheme enables flow interaccess among the hosts of the service instance in the SPBM network to be controlled in a centralized mode; and forwarding loads among all the nodes in the SPBM network can be flexibly adjusted.
Description
Technical field
The present invention relates to communication technical field, relate in particular to message forwarding method and device in a kind of SPBM network.
Background technology
SPB (Shortest Path Bridging, shortest path bridging) be MSTP (Multiple Spanning Tree Protocol, Multiple Spanning Tree Protocol) further extension, use Intermediate System to Intermediate System (Intermediate System-to-Intermediate System, Intermediate System-to-Intermediate System) come the Link State in shared network, the shortest path between the each node of each node parallel computation of network.SPB has two kinds of implementation patterns: VLAN(Virtual Local Area Network, VLAN) pattern is called SPBV(Shortest Path Bridging VLAN Mode, the shortest path bridge of VLAN pattern), agreement complexity, at present substantially without applying; MAC-in-MAC pattern is called SPBM(Shortest Path Bridging MAC Mode, the shortest path bridge of M-in-M pattern), be current main recommendation pattern.What this patent was described is the technology realizing on the basis of SPBM pattern.
Referring to Fig. 1, Fig. 1 is the schematic diagram of the basic network model of SPBM network; BEB(Backbone Edge Bridge, backbone network edge bridges) equipment is the edge device of backbone network, it is responsible for the message from user network to carry out Mac-in-Mac encapsulation, and by the Mac-in-Mac message repeating obtaining in backbone network, or the Mac-in-Mac message from backbone network is carried out to decapsulation, and be forwarded in user network.Mac-in-Mac encapsulation refers at the skin of user's message increases one deck encapsulation again, and this is encapsulated as MAC Address and the VLAN of operator, and the message encapsulating through Mac-in-Mac is referred to as Mac-in-Mac message.
BCB(Backbone Core Bridge, backbone network core bridges) equipment is the nucleus equipment of backbone network, it is responsible for according to B-MAC(Backbone MAC, backbone network MAC) and B-VLAN(Backbone VLAN, backbone network VLAN) forwarding Mac-in-Mac message.BCB device just will E-Packet and learn the MAC(Media Access Control in backbone network, media interviews control) address, do not need to learn MAC Address a large amount of in user network, thereby reduced the cost of network design, for backbone network provides better extensibility yet.MAC in user's message is called user MAC(C-MAC), comprise customer objective MAC and user source MAC.BEB equipment is when carrying out Mac-in-Mac encapsulation to user's message, can just be called B-MAC and B-VLAN for stamp MAC Address and this MAC Address of being distributed by operator of VLAN(and the VLAN that operator distributes at the skin of user's message), obtain Mac-in-Mac message.User MAC in user's message can be called the internal layer MAC of Mac-in-Mac message, and B-MAC can be called the outer MAC of Mac-in-Mac message.
In backbone network, BCB equipment forwards Mac-in-Mac message according to B-MAC and B-VLAN.B-MAC comprises source B-MAC and object B-MAC, and BEB equipment is carrying out user's message Mac-in-Mac when encapsulation, can be using the MAC of oneself as source B-MAC, the MAC of the BEB equipment of SPBM tunnel destination is encapsulated as object B-MAC.Link between BEB equipment and BCB equipment and between BCB equipment is called backbone links, and the link of BEB equipment connection user network is access link.From the user's message of user network, be packaged into after Mac-in-Mac message, can forward by the corresponding backbone links of BEB equipment; And from the Mac-in-Mac message of backbone network by decapsulation after, can by the corresponding access link of BEB equipment, forward according to customer objective MAC Address.In backbone network, a Service Instance represents class business or a user, I-SID(Backbone Service Instance Identifier, backbone network Service Instance numbering) be the unique number of Service Instance.
In a SPBM district, take each SPB bridge as root, calculate SPT(Shortest Path Tree, shortest path tree), these SPT are called SPTs set, shortest path in SPT set between any two nodes is symmetrical at different SPT, and for certain Service Instance in SPBM network, its forwarding tree is the subset of certain SPTs, realize multi-level topological path, the flooding traffic based on multicast only can arrive the equipment that has I-SID.For the unicast traffic in SPBM network, BEB equipment is according to physical port or logic port Mapping B VLAN and I-SID, dynamic learning MAC not in BVLAN, and unknown address message does not flood.For the flux of multicast in SPBM network, multicast forwarding mode has two kinds of patterns, and head end copies with core and copies.In head end replication mode, nucleus equipment BCB Maintenance free multicast list, the member that all I-SID of existence are mail in the clean culture of BEB device replication multicast message.In core replication mode, nucleus equipment BCB builds multicast address, carries out multicast beta pruning and calculate generation multicast list on numerous BCB.In arbitrary district of SPBM mode network (Region), for multicast data flow, forward, broadcast, unknown unicast, unknown multicast need to be forwarded to along the forwarding tree based on Service Instance the SPBM bridge of presence service example, but in some cases, in order to guarantee the access control between the main frame in certain Service Instance, need the flow access between strict each main frame of monitoring, carry out tactful centralized control.But the equipment in SPBM backbone network can not check the user's message information of M-in-M message inside, thereby cannot realize.For multicast data flow, need on numerous BCB, utilize multicast beta pruning algorithm to calculate and generate multicast list, if exist the member of I-SID a lot, can increase like this computation burden of BCB, in fact for the little network of flux of multicast, there is no need.If but reduce multicast computation burden by the head end copy function that Service Instance is set, can increase again the copy function of head-end node, general a lot of head-end node is low side devices, and backbone node is high-end devices, and the burden forwarding is like this not quite reasonable in the distribution of equipment room.
Summary of the invention
In view of this, the invention provides the message forwarding method in a kind of SPBM network, be applied in SPBM network on arbitrary BEB node, described SPBM network comprises a policy service example, described policy service example comprises a service node, some client nodes and some user's side main frames that are connected with client node, when described BEB node is during as described client node, described method comprises:
For described policy service example creates a CID forwarding-table item; Described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of service node;
While receiving the first message from user's side main frame, determine the first policy service example that this first message is affiliated, and according to the SPBM packaging information in the CID forwarding-table item of the first policy service example, the first message is carried out, after Mac-in-Mac encapsulation, mailing to described service node.
Preferably, when described BEB node is during as described service node, described method also comprises:
Create respectively and the CID forwarding-table item between client node described in each, described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of described client node;
When receiving after the second message encapsulating from the Mac-in-Mac of client node, to the second message solution Mac-in-Mac encapsulation;
In the CID of relative strategy Service Instance forwarding-table item, according to the Mac-in-Mac encapsulation of described the second message, find the CID forwarding-table item corresponding with this second message, when the internal layer source of the second message MAC is not associated with the CID forwarding-table item finding, by associated with the CID forwarding-table item finding the internal layer source MAC of the second message;
Judge the internal layer object MAC of described the second message whether associated CID forwarding-table item, if so, use SPBM packaging information in this CID forwarding-table item to re-start Mac-in-Mac to described the second message and encapsulate and forward; Otherwise all CID forwarding-table items of traversal relative strategy Service Instance, utilize each CID forwarding-table item respectively described the second message to be re-started to Mac-in-Mac and encapsulate and forward.
Preferably, described BEB node is specially by electing as service node or the client node of described policy service example;
Described election process is specially: after described policy service example has configured on described BEB node, described BEB node is communicated to the precedence information of self and I-SID respectively in this policy service example on other each BEB nodes, receives precedence information and I-SID that described other each BEB nodes are noticed simultaneously;
Described BEB node carries out service node election at local terminal, and electing the highest BEB node of current priority in described policy service example is service node, and other BEB nodes are client node.
Preferably, the described Mac-in-Mac according to described the second message encapsulation finds the CID forwarding-table item corresponding with this second message and is specially: take the outer source MAC in Mac-in-Mac encapsulation and I-SID as index, search.
Preferably, when described BEB node is during as client node, described method also comprises:
When described client node receives the message that outer source MAC is other client nodes, by described packet loss.
The present invention also provides the apparatus for forwarding message in a kind of SPBM network, be applied in SPBM network on arbitrary BEB node, described SPBM network comprises a policy service example, described policy service example comprises a service node, some client nodes and some user's side main frames that are connected with client node, and described device comprises:
Creation module, when described BEB node is during as described client node, is used to described policy service example to create a CID forwarding-table item; Described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of service node;
Sending module, when described BEB node is during as described client node, when receiving the first message from user's side main frame, determine the first policy service example that this first message is affiliated, and according to the SPBM packaging information in the CID forwarding-table item of the first policy service example, the first message is carried out, after Mac-in-Mac encapsulation, mailing to described service node.
Preferably, when described BEB node is during as described service node, described creation module is further used for creating respectively and the CID forwarding-table item between client node described in each, and described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of described client node;
Described sending module is further used for receiving after the second message encapsulating from the Mac-in-Mac of client node, to the second message solution Mac-in-Mac encapsulation; In the CID of relative strategy Service Instance forwarding-table item, according to the Mac-in-Mac encapsulation of described the second message, find the CID forwarding-table item corresponding with this second message, when the internal layer source of the second message MAC is not associated with the CID forwarding-table item finding, by associated with the CID forwarding-table item finding the internal layer source MAC of the second message;
Described sending module be further used for judging the internal layer object MAC of described the second message whether associated CID forwarding-table item, if so, use SPBM packaging information in this CID forwarding-table item to re-start Mac-in-Mac to described the second message and encapsulate and forward; Otherwise all CID forwarding-table items of traversal relative strategy Service Instance, utilize each CID forwarding-table item respectively described the second message to be re-started to Mac-in-Mac and encapsulate and forward.
Preferably, described device also comprises:
Election module, for after described policy service example has configured on described BEB node, the precedence information of described BEB equipment and I-SID are communicated to respectively in this policy service example on other each BEB nodes, receive precedence information and I-SID that described other each BEB nodes are noticed simultaneously;
Described election module is further used for carrying out service node election on described BEB node, and electing the highest BEB node of current priority in described policy service example is service node, and other BEB nodes are client node.
Preferably, the described Mac-in-Mac according to described the second message encapsulation finds the CID forwarding-table item corresponding with this second message and is specially: take the outer source MAC in Mac-in-Mac encapsulation and I-SID as index, search.
Preferably, described device also comprises:
Discard module, this module enables during as client node when described BEB node, for the packet loss that is other client nodes by the outer source MAC receiving.
Compared to existing scheme, the CID forwarding-table item that the present invention creates by reducing client node, only create the CID forwarding-table item between client node and service node, can exchange visits and carry out centralized control the flow between main frame in the Service Instance in SPBM network, and the forwarding load between each node in can flexible SPBM network.
Accompanying drawing explanation
Fig. 1 is the schematic diagram of the basic network model of SPBM network;
Fig. 2 is the method flow diagram that improves SPBM forwarded strategy in one embodiment of the present invention;
Fig. 3 is the tactful centralized control schematic diagram of multicast data flow in one embodiment of the present invention;
Fig. 4 is the tactful centralized control schematic diagram of unicast stream in one embodiment of the present invention;
Fig. 5 is the building-block of logic of a kind of device of the SPBM of improvement forwarded strategy in one embodiment of the present invention.
Embodiment
In SPBM network, when BEB equipment is received the message from user's side main frame, the FDB(Forwarding Database safeguarding at local terminal, forwarding database, be that MAC transmits) table in carry out searching of object MAC, if this MAC Address association Connection-ID (hereinafter to be referred as CID) forwarding-table item, now this message is known unicast, use object MAC in this CID forwarding-table item as B-DA(Backbone Destination MAC address, backbone network target MAC (Media Access Control) address); If during the not associated CID forwarding-table item of this MAC Address, use the multicast address of backbone network Service Instance as B-DA, this message will be by flood process so, send to the every other port except source port in this Service Instance, for multicast data flow, can be forwarded to SPBM bridges all in this Service Instance along the forwarding tree based on Service Instance.The effect of CID forwarding-table item is by user MAC(C-MAC) with backbone network MAC(B-MAC) associate (joining in detail 802.1ah-2008), a CID forwarding-table item represents a connection, for the BEB equipment in a Service Instance, in the FDB table of local terminal, preserved and this Service Instance in CID forwarding-table item between other BEB nodes.
In arbitrary district of SPBM network (Region), for the forwarding of multicast data flow, i.e. broadcast, unknown unicast, unknown multicast need to be forwarded to along the forwarding tree based on Service Instance the SPBM bridge of presence service example, but in some cases, in order to guarantee the access control between the main frame in certain Service Instance, need the flow access between strict each main frame of monitoring, carry out tactful centralized control.But the equipment in SPBM backbone network can not check the user's message information of Mac-in-Mac message inside, thereby cannot realize.Referring to Fig. 3, I-SID(Backbone Service Instance Identifier need to be set, backbone network Service Instance numbering) main frame 1 in 1000,2,3, between 4, strict security strategy inspection is carried out in access, policy control node can be arranged on node I, but some flow can not pass through I node, such as main frame 3 is to the flow of main frame 4, because main frame 3 is to the shortest path circuit of the flow of main frame 4 and without node I.For multicast data flow, if use core duplicated multicast to forward, need on numerous BCB, utilize multicast beta pruning algorithm to calculate and generate multicast list, if exist the member of I-SID a lot of in Service Instance, can increase like this computation burden of BCB.If but reduce multicast computation burden by the head end copy function that Service Instance is set, can increase again the copy function of head-end node, general a lot of head-end node is low side devices, and backbone node is high-end devices, and the burden forwarding is like this not quite reasonable in the distribution of equipment room.Therefore, the invention provides a kind of method of the SPBM of improvement forwarded strategy, by specifying a BEB equipment as service node in all BEB equipment in current SPBM network, other each BEB nodes are as client node, on service node, create the CID forwarding-table item between this service node and all client nodes, on client node, reduce the CID forwarding-table item creating, only create the CID forwarding-table item between this client node and service node, thereby can realize, the flow between main frame in the Service Instance in SPBM network is exchanged visits and carried out centralized control, forwarding load in can flexible SPBM network between each node.
For making object of the present invention, technical scheme and advantage clearer, referring to the accompanying drawing embodiment that develops simultaneously, scheme of the present invention is described in further detail.
The invention provides the method for message repeating in a kind of SPBM network, be applied in SPBM network on any one BEB node, this SPBM network comprises a policy service example, described policy service example comprises a service node, some client nodes and some user's side main frames that are connected with client node, wherein this BEB node can be used as service node and also can be used as client node, referring to Fig. 2, when described BEB node is during as described client node, the method comprises the steps:
Step S201, for described policy service example creates a CID forwarding-table item; Described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises backbone network Service Instance numbering I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of service node;
Step S202, while receiving the first message from user's side main frame, determine the first policy service example under this first message, and according to the SPBM packaging information in the CID forwarding-table item of the first policy service example, the first message is carried out, after Mac-in-Mac encapsulation, mailing to described service node.
Before the above step of execution, difference collocation strategy Service Instance on the BEB node of the appointment of keeper in SPBM network, it should be noted that, this policy service example is special Service Instance, represent the forwarding strategy of Optimized Service example, its layoutprocedure is identical with the process of configuration service example in prior art, is included as this node and stamps policy instance mark I-SID, configuration BVLAN and precedence information etc.Owing to need to this SPBM network being realized the centralized control of the flow between main frame in Service Instance, therefore keeper need to specify a BEB equipment as service node in SPBM network, and when collocation strategy Service Instance, the priority of this BEB equipment is configured to the highest.When after the selected BEB equipment as service node of keeper, one preferred embodiment in, in this SPBM, each BEB node is communicated to I-SID and the precedence information of self on other each BEB nodes by Intermediate System to Intermediate System respectively; Then each BEB node carries out respectively the election of service node at local terminal, and electing the highest BEB node of current priority in this policy service example is service node, and other BEB nodes are client node.
After the service node in this policy service example and client node are clear and definite, reduce the CID forwarding-table item that client node creates, only create the CID forwarding-table item between service node, and service node retains the CID forwarding-table item between all and other client nodes.One preferred embodiment in, above-mentioned CID forwarding-table item particular content comprises SPBM packaging information, described SPBM encapsulation comprises I-SID, BVLAN and target MAC (Media Access Control) address; Wherein service node create and client node between CID forwarding-table item in the target MAC (Media Access Control) address MAC Address that is each client node, the MAC Address that the target MAC (Media Access Control) address in the CID forwarding-table item between that client node creates and service node is service node.Node, according to the SPBM packaging information in CID forwarding-table item, carries out obtaining Mac-in-Mac message after Mac-in-Mac encapsulation to message.Wherein, the I-SID in this Mac-in-Mac message, BVLAN and object B-MAC address are respectively the I-SID in this SPBM packaging information, BVLAN and target MAC (Media Access Control) address, the B-MAC address, source in this Mac-in-Mac message is the B-MAC of node self.
With the angle of client node, due to possible configuration on the BEB equipment as client node multiple policy service examples, therefore when client node is received the message from user's side, first need to determine the policy service example under this message.On BEB equipment, for the message from user's side, first according to the matched rule in down going port, judge the policy service example under this message, such as one preferred embodiment in, can be by the vlan information carrying in the receiving port of this message and this message, this message is mapped in corresponding policy service example to the forwarding of then tabling look-up in this policy service example.In a policy service example, when client node is received the message from user's side, first according to the target MAC (Media Access Control) address in this message, search the FDB table of local terminal, if this object MAC is associated CID forwarding-table item, is used the SPBM packaging information in this CID forwarding-table item to carry out mailing to service node after Mac-in-Mac encapsulation to this message.If the object MAC in this message not associated CID forwarding-table item, now client node floods this message, use created and service between CID forwarding-table item in SPBM packaging information this message is carried out, after Mac-in-Mac encapsulation, mailing to service node.What be worth further explanation herein is, because client node only creates the CID forwarding-table item between service node, therefore for the message from user's side, client node is to this message CID forwarding-table item that carries out after object MAC searches no matter whether this message is associated, and this message all can be mail to service node by clean culture after Mac-in-Mac encapsulation.But different, this message being carried out to object MAC while searching, if the object MAC in this message associated CID forwarding-table item, now client node does not flood to this message, other main frames of hanging under this client node can not received this message.If the object MAC of this message not associated CID forwarding-table item, now client node carries out flood process to this message, and its lower every other main frame of hanging all can be received this message, in actual utilization, may take massive band width.Same reason, because client node only creates the CID forwarding-table item between service node, even if therefore client node is when flooding from the message of user's side, other client nodes can not be received this message.Therefore,, when client node is received the message from other client nodes, while receiving the message of the MAC that outer source MAC is other client nodes, abandon this message.
When client node is received the message of service node, the outer source MAC encapsulating take the Mac-in-Mac of this message after solution Mac-in-Mac encapsulation and I-SID are as the corresponding CID forwarding-table item of index search, if when internal layer source MAC and this CID forwarding-table item finding are not associated, internal layer source MAC is associated with the CID forwarding-table item finding, and incidence relation is saved in the FDB table of local terminal maintenance, then this message is tabled look-up and is forwarded to associated host.
With the angle of service node, when having configured multiple policy service example on the BEB equipment as service node, in message repeating process, can accurately identify different policy service examples by I-SID different in SPBM packaging information, thereby accomplish that a message in policy instance only forwards within this policy instance.In a policy service example, when service node receives after the message of client node, first separate Mac-in-Mac encapsulation, then take the source MAC in the outer Mac-in-Mac packaging information of described message and I-SID as the corresponding CID forwarding-table item of index search, when the source MAC in the skin of the object MAC in any one CID forwarding-table item in each CID forwarding-table item that service node has created and I-SID information and above-mentioned message is identical with I-SID, this CID forwarding-table item is the CID forwarding-table item corresponding with above-mentioned message.If now internal layer source MAC is not associated, that internal layer source MAC is associated with this CID forwarding-table item with the CID forwarding-table item finding, and incidence relation is saved in the FDB table of local terminal maintenance.
After Mac-in-Mac decapsulation, the FDB that service node is searched local terminal according to the internal layer target MAC (Media Access Control) address of above-mentioned message show to judge the object MAC in this message whether associated CID forwarding-table item, if the internal layer object MAC that finds this message is associated CID forwarding-table item, is used the SPBM packaging information in this CID forwarding-table item to carry out Mac-in-Mac encapsulation forwarding.When the internal layer object MAC of this message not associated CID forwarding-table item, now travel through all CID forwarding-table items, each CID forwarding-table item is carried out respectively to message to be copied, utilize the SPBM packaging information in each CID forwarding-table item respectively this message to be re-started after Mac-in-Mac encapsulation, send on corresponding object client node.
By concrete example, elaborate the present invention below.
Referring to Fig. 3 and Fig. 4, in current SPBM network, there are five BEB nodes, be respectively C, I, D, K, L; Also comprise four host computer, be respectively main frame 1,2,3 and 4.Keeper configures an identical policy service example in this SPBM network on each BEB node.In the present embodiment, only in current SPBM network, exist a policy service example as example.
Keeper stamps policy service example mark 1000 for each BEB node and main frame, and configuration BVLAN is 20.If specified node I is service node, so keeper is configured to the highest by the priority of I node when configuration preference level.Precedence information after configuration is as follows: node I, priority 1 00; Node C, priority 20; Node L, priority 30; Node D, priority 10; Node K, priority 40.After policy service exemplary configuration completes, each node carries out respectively the election of service node at local terminal, and the highest node of election priority is service node, and other nodes are client node.Be that I is service node, C, D, K and L node are client node.
After service node and client node are clear and definite, service node I creates the CID forwarding-table item between node C, D, K and L, and C, D, K and L create the CID forwarding-table item between service node I.After establishment, the list item having on each client node C, D, K and L:
Connection-ID1---(1000,20,MAC-I)
List item on service node I:
Connection-ID2---(1000,20,MAC-C)
Connection-ID3---(1000,20,MAC-D)
Connection-ID4---(1000,20,MAC-K)
Connection-ID5---(1000,20,MAC-L)
Referring to Fig. 3, during the message of user's side main frame 1 of receiving for client node K, the MAC that searches local terminal according to target MAC (Media Access Control) address transmits, if this message is broadcast, unknown unicast or unknown multicast stream (the not associated CID forwarding-table item of object MAC), by SPBM packaging information corresponding to the CID forwarding-table item Connection-ID1 with between service node I of having set up, undertaken after Mac-in-Mac encapsulation, this message clean culture is sent to service node I; Service node I receives after this message of K, separates Mac-in-Mac encapsulation, according to the source MAC of outer packaging information and I-SID, searches CID forwarding-table item, and outer source MAC is MAC-K, and I-SID is 1000, so obtain Connection-ID4.Service node is set up the MAC Address of MAC1(main frame 1) with the incidence relation of Connection-ID4, and according to SPBM packaging information corresponding to other each Connection-ID, this message is re-started after Mac-in-Mac encapsulation, clean culture sends to other client nodes; Other client nodes are received after the unicast message of I, separate Mac-in-Mac encapsulation, in this locality, be flooded to main frame, and set up respectively the incidence relation of internal layer MAC1 and Connection-ID1, now C, D, K and L have all set up the incidence relation of MAC1 and Connection-ID1.
Referring to Fig. 4, the message that the main frame 3 of receiving for client node D sends, object MAC is main frame 1, client node D searches local MAC according to object MAC and transmits, now Mac1 is associated Connection-ID1, D carries out sending to service node I after Mac-in-Mac encapsulation according to SPBM packaging information corresponding to Connection-ID1; Service node I separates Mac-in-Mac encapsulation to this message, according to MAC1, searching local mac transmits, now MAC1 is associated Connection-ID4, so service node re-starts Mac-in-Mac encapsulation according to SPBM packaging information corresponding to Connection-ID4, clean culture sends to K; K tables look-up this message to be forwarded to main frame 1 after separating Mac-in-Mac encapsulation again.
Please refer to Fig. 5, in a preferred embodiment, the present invention also provides the device of message repeating in a kind of SPBM network, is applied in SPBM network on arbitrary BEB node.With software, be embodied as example, this device can be understood as the computer program in the CPU internal memory that operates in the network equipment conventionally, the logic device forming after moving by CPU, the described network equipment all comprises CPU, internal memory, nonvolatile memory and other network hardwares conventionally, and certain the present invention does not get rid of hardware or other are equal to implementation.This device comprises:
Creation module, when described BEB node is during as described client node, is used to described policy service example to create a CID forwarding-table item; Described CID forwarding-table item comprises SPBM packaging information, and described SPBM encapsulation comprises I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of service node;
Sending module, when described BEB node is during as described client node, when receiving the first message from user's side main frame, determine the first policy service example that this first message is affiliated, and according to the SPBM packaging information in the CID forwarding-table item of the first policy service example, described the first message is carried out, after Mac-in-Mac encapsulation, mailing to described service node.
In the present embodiment, described BEB node is during as described service node, when described BEB node is during as described service node, described creation module is further used for creating respectively and the CID forwarding-table item between client node described in each, and described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of described client node;
Described sending module is further used for receiving after the second message encapsulating from the Mac-in-Mac of client node, to the second message solution Mac-in-Mac encapsulation; In the CID of relative strategy Service Instance forwarding-table item, according to the Mac-in-Mac encapsulation of described the second message, find the CID forwarding-table item corresponding with this second message, when the internal layer source of the second message MAC is not associated with the CID forwarding-table item finding, by associated with the CID forwarding-table item finding the internal layer source MAC of the second message;
Described sending module be further used for judging the internal layer object MAC of described the second message whether associated CID forwarding-table item, if so, use SPBM packaging information in this CID forwarding-table item to re-start Mac-in-Mac to described the second message and encapsulate and forward; Otherwise all CID forwarding-table items of traversal relative strategy Service Instance, utilize each CID forwarding-table item respectively described the second message to be re-started to Mac-in-Mac and encapsulate and forward.
In the present embodiment, described device also comprises: election module, for after policy service example has configured on described BEB node, the precedence information of self and I-SID are communicated to respectively in this policy service example on other each BEB nodes, receive precedence information and I-SID that described other each BEB nodes are noticed simultaneously;
Described election module is further used for carrying out service node election at described BEB node, and electing the highest BEB node of current priority in described policy service example is service node, and other BEB nodes are client node.Wherein, described election module all enables during as service node and client node at described BEB node.
In the present embodiment, the described Mac-in-Mac according to described the second message encapsulation finds the CID forwarding-table item corresponding with this second message and is specially: take the outer source MAC in Mac-in-Mac encapsulation and I-SID as index, search.
In the present embodiment, described device also comprises: discard module, this module enables during as client node when described BEB node, for the packet loss that is other client nodes by the outer source MAC receiving.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into multiple submodules.Foregoing invention embodiment sequence number, just to describing, does not represent the quality of embodiment.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, be equal to replacement, improvement etc., within all should being included in the scope of protection of the invention.
Claims (10)
1. the message forwarding method in a SPBM network, be applied in SPBM network on arbitrary BEB node, it is characterized in that, described SPBM network comprises a policy service example, described policy service example comprises a service node, some client nodes and some user's side main frames that are connected with client node, when described BEB node is during as described client node, described method comprises:
For described policy service example creates a CID forwarding-table item; Described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of service node;
While receiving the first message from user's side main frame, determine the first policy service example that this first message is affiliated, and according to the SPBM packaging information in the CID forwarding-table item of the first policy service example, the first message is carried out, after Mac-in-Mac encapsulation, mailing to described service node.
2. the method for claim 1, is characterized in that, when described BEB node is during as described service node, described method also comprises:
Create respectively and the CID forwarding-table item between client node described in each, described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of described client node;
When receiving after the second message encapsulating from the Mac-in-Mac of client node, to the second message solution Mac-in-Mac encapsulation;
In the CID of relative strategy Service Instance forwarding-table item, according to the Mac-in-Mac encapsulation of described the second message, find the CID forwarding-table item corresponding with this second message, when the internal layer source of the second message MAC is not associated with the CID forwarding-table item finding, by associated with the CID forwarding-table item finding the internal layer source MAC of the second message;
Judge the internal layer object MAC of described the second message whether associated CID forwarding-table item, if so, use SPBM packaging information in this CID forwarding-table item to re-start Mac-in-Mac to described the second message and encapsulate and forward; Otherwise all CID forwarding-table items of traversal relative strategy Service Instance, utilize each CID forwarding-table item respectively described the second message to be re-started to Mac-in-Mac and encapsulate and forward.
3. method as claimed in claim 2, is characterized in that, described BEB node is specially by electing as service node or the client node of described policy service example;
Described election process is specially: after described policy service example has configured on described BEB node, described BEB node is communicated to the precedence information of self and I-SID respectively in this policy service example on other each BEB nodes, receives precedence information and I-SID that described other each BEB nodes are noticed simultaneously;
Described BEB node carries out service node election at local terminal, and electing the highest BEB node of current priority in described policy service example is service node, and other BEB nodes are client node.
4. method as claimed in claim 2, is characterized in that, the described encapsulation of the Mac-in-Mac according to described the second message finds the CID forwarding-table item corresponding with this second message and is specially:
Take the outer source MAC in Mac-in-Mac encapsulation and I-SID as index, search.
5. the method for claim 1, is characterized in that, when described BEB node is during as client node, described method also comprises:
When described client node receives the message that outer source MAC is other client nodes, by described packet loss.
6. the apparatus for forwarding message in a SPBM network, be applied in SPBM network on arbitrary BEB node, it is characterized in that, described SPBM network comprises a policy service example, described policy service example comprises a service node, some client nodes and some user's side main frames that are connected with client node, and described device comprises:
Creation module, when described BEB node is during as described client node, is used to described policy service example to create a CID forwarding-table item; Described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of service node;
Sending module, when described BEB node is during as described client node, when receiving the first message from user's side main frame, determine the first policy service example that this first message is affiliated, and according to the SPBM packaging information in the CID forwarding-table item of the first policy service example, the first message is carried out, after Mac-in-Mac encapsulation, mailing to described service node.
7. device as claimed in claim 6, it is characterized in that, when described BEB node is during as described service node, described creation module is further used for creating respectively and the CID forwarding-table item between client node described in each, and described CID forwarding-table item comprises SPBM packaging information; Described SPBM packaging information comprises policy service example number I-SID and target MAC (Media Access Control) address; Wherein said target MAC (Media Access Control) address is the MAC Address of described client node;
Described sending module is further used for, when receiving after the second message encapsulating from the Mac-in-Mac of client node, to the second message solution Mac-in-Mac encapsulation; In the CID of relative strategy Service Instance forwarding-table item, according to the Mac-in-Mac encapsulation of described the second message, find the CID forwarding-table item corresponding with this second message, when the internal layer source of the second message MAC is not associated with the CID forwarding-table item finding, by associated with the CID forwarding-table item finding the internal layer source MAC of the second message;
Described sending module be further used for judging the internal layer object MAC of described the second message whether associated CID forwarding-table item, if so, use SPBM packaging information in this CID forwarding-table item to re-start Mac-in-Mac to described the second message and encapsulate and forward; Otherwise all CID forwarding-table items of traversal relative strategy Service Instance, utilize each CID forwarding-table item respectively described the second message to be re-started to Mac-in-Mac and encapsulate and forward.
8. device as claimed in claim 6, is characterized in that, described device also comprises:
Election module, for after described policy service example has configured on described BEB node, the precedence information of described BEB equipment and I-SID are communicated to respectively in this policy service example on other each BEB nodes, receive precedence information and I-SID that described other each BEB nodes are noticed simultaneously;
Described election module is further used for carrying out service node election on described BEB node, and electing the highest BEB node of current priority in described policy service example is service node, and other BEB nodes are client node.
9. device as claimed in claim 7, is characterized in that, the described encapsulation of the Mac-in-Mac according to described the second message finds the CID forwarding-table item corresponding with this second message and is specially:
Take the outer source MAC in Mac-in-Mac encapsulation and I-SID as index, search.
10. device as claimed in claim 6, is characterized in that, described device also comprises:
Discard module, this module enables during as client node when described BEB node, for the packet loss that is other client nodes by the outer source MAC receiving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310719590.9A CN103746916B (en) | 2013-12-20 | 2013-12-20 | Method and apparatus for improving forwarding strategy of SPBM network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310719590.9A CN103746916B (en) | 2013-12-20 | 2013-12-20 | Method and apparatus for improving forwarding strategy of SPBM network |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103746916A true CN103746916A (en) | 2014-04-23 |
CN103746916B CN103746916B (en) | 2017-04-12 |
Family
ID=50503907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310719590.9A Active CN103746916B (en) | 2013-12-20 | 2013-12-20 | Method and apparatus for improving forwarding strategy of SPBM network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103746916B (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130077624A1 (en) * | 2011-09-23 | 2013-03-28 | Avaya Inc. | Conveying the vlan/l2 vsn/bridging-domain of the incoming interface (iif) when transporting multicast traffic over a shortest path bridged (spb) network |
CN103152283A (en) * | 2013-03-15 | 2013-06-12 | 杭州华三通信技术有限公司 | Method and device for sharing load of aggregation link |
CN103200107A (en) * | 2013-04-15 | 2013-07-10 | 杭州华三通信技术有限公司 | Message transmitting method and message transmitting equipment |
CN103259721A (en) * | 2013-04-16 | 2013-08-21 | 杭州华三通信技术有限公司 | Message transmitting method and device in SPBM network |
CN103269299A (en) * | 2013-04-22 | 2013-08-28 | 杭州华三通信技术有限公司 | Packet forwarding method and device in SPBM network |
-
2013
- 2013-12-20 CN CN201310719590.9A patent/CN103746916B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130077624A1 (en) * | 2011-09-23 | 2013-03-28 | Avaya Inc. | Conveying the vlan/l2 vsn/bridging-domain of the incoming interface (iif) when transporting multicast traffic over a shortest path bridged (spb) network |
CN103152283A (en) * | 2013-03-15 | 2013-06-12 | 杭州华三通信技术有限公司 | Method and device for sharing load of aggregation link |
CN103200107A (en) * | 2013-04-15 | 2013-07-10 | 杭州华三通信技术有限公司 | Message transmitting method and message transmitting equipment |
CN103259721A (en) * | 2013-04-16 | 2013-08-21 | 杭州华三通信技术有限公司 | Message transmitting method and device in SPBM network |
CN103269299A (en) * | 2013-04-22 | 2013-08-28 | 杭州华三通信技术有限公司 | Packet forwarding method and device in SPBM network |
Also Published As
Publication number | Publication date |
---|---|
CN103746916B (en) | 2017-04-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103731288B (en) | Message forwarding method and device | |
US9667541B2 (en) | Virtual MAC address, mask-based, packet forwarding | |
US9509522B2 (en) | Forwarding multicast data packets | |
CN103023792B (en) | For carrying out the method and system of packet switching in shortest path bridging network | |
US8694664B2 (en) | Active-active multi-homing support for overlay transport protocol | |
US9515845B2 (en) | Utility communication method and system | |
US20150341183A1 (en) | Forwarding multicast data packets | |
CN102882784B (en) | LSP information from flooding method and apparatus in SPBM | |
CN101438539A (en) | Automatic packet protection forwarding to an MPLS network bya dual-homed Ethernet bridge | |
CN104378297A (en) | Message forwarding method and device | |
CN103259721B (en) | Message forwarding method in SPBM network and device | |
EP2928133B1 (en) | Method and apparatus for accessing shortest-route bridge network in multi-homed manner | |
US20170026289A1 (en) | Aia enhancements to support lag networks | |
CN105917617B (en) | Framework is superimposed for the single-hop of the line speed performance in campus network | |
ES2731882T3 (en) | Management of connectivity failures in a communications network | |
CN103973825A (en) | Method, node equipment and transmitting method for notifying of MAC (media access control) address accessibility in overlay network | |
CN106059886A (en) | Message forwarding method and device | |
US20150295811A1 (en) | Forwarding a packet in a network | |
CN107896188A (en) | Data forwarding method and device | |
CN102801622B (en) | A kind of retransmission method of data message and retransmission unit | |
CN102316014A (en) | Load sharing method and router under hierarchical virtual dedicated local area network service environment | |
CN104009919B (en) | Message forwarding method and device | |
CN103152283B (en) | A kind of method and apparatus of aggregated links load balancing | |
CN103152265A (en) | Message forwarding method and equipment in SPB (Shortest Path Bridge) network | |
CN104219073B (en) | Message forwarding method and device in SPBM network |
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 | ||
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No. Patentee after: Xinhua three Technology Co., Ltd. Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base Patentee before: Huasan Communication Technology Co., Ltd. |