CN104219073A - Message forwarding method and device in SPBM network - Google Patents

Message forwarding method and device in SPBM network Download PDF

Info

Publication number
CN104219073A
CN104219073A CN201310213874.0A CN201310213874A CN104219073A CN 104219073 A CN104219073 A CN 104219073A CN 201310213874 A CN201310213874 A CN 201310213874A CN 104219073 A CN104219073 A CN 104219073A
Authority
CN
China
Prior art keywords
equipment
beb equipment
beb
path
primary
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310213874.0A
Other languages
Chinese (zh)
Other versions
CN104219073B (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201310213874.0A priority Critical patent/CN104219073B/en
Publication of CN104219073A publication Critical patent/CN104219073A/en
Application granted granted Critical
Publication of CN104219073B publication Critical patent/CN104219073B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present application discloses a message forwarding method and device in an SPBM network. At least two BEB apparatuses in the SPBM network are both connected to a first station network. The method includes: after determining a master BEB apparatus and a standby BEB apparatus in the at least two BEB apparatuses connected to the first station network, establishing and enabling a forwarding path between the present apparatus and the master BEB apparatus, and establishing and blocking a forwarding path between the present apparatus and the standby BEB apparatus; when sending data flow to the first station network, sending the data flow only through the forwarding path between the present apparatus and the master BEB apparatus; and when detecting a fault in the forwarding path between the present apparatus and the master BEB apparatus, blocking the forwarding path between the present apparatus and the master BEB apparatus, enabling a forwarding path between the present apparatus and one selected standby BEB apparatus, and sending the data flow through the forwarding path between the present apparatus and the selected standby BEB apparatus.

Description

Message forwarding method in SPBM network and device
Technical field
The application relates to network communication technology field, the message forwarding method particularly in a kind of SPBM network and device.
Background technology
SPB(Shortest Path Bridging, shortest path bridge) be a kind of ethernet standard that IEEE802.1aq defines, be MSTP(Multiple Spanning Tree Protocol, Multiple Spanning Tree Protocol) further extension, be intended to the clog-free double layer network building large flat.SPB uses SPB IS-IS(Intermediate System to Intermediate System, Intermediate System-to-Intermediate System) carry out in shared network Link State, and each nodal parallel in network calculates the shortest path between each node, avoid and use STP(Spanning Tree Protocol, Spanning-Tree Protocol) unsteadiness brought of agreement and the low deficiency of part of links utilization ratio.
IEEE802.1aq defines two kinds of SPB patterns: VLAN pattern (SPBV(Shortest Path Bridging VLAN Mode, the shortest path bridge of VLAN pattern)) and M-in-M(Mac-in-Mac) pattern (SPBM(Shortest Path Bridging MAC Mode, the shortest path bridge of M-in-M pattern)) pattern, wherein, the agreement of SPBV is very complicated, at present substantially without application, SPBM is current main recommendation pattern.The thought of the message encapsulation format that SPBM mode inheritance IEEE802.1ah specifies and many examples, but redefined pass-through mode and the control plane of datum plane, learns link-state information by SPB-IS-IS, and it is synchronous to carry out the whole network, calculates forward-path.SPBM is a kind of two-layer VPN (Virtual Private Network, VPN (virtual private network)) technology, and the M-in-M network model that its network model and IEEE802.1ah define is basically identical.As shown in Figure 1, in SPBM network, backbone network mainly comprises the backbone links between the equipment of the types such as BEB and BCB and these equipment.
Make an explanation as follows to the various technical terms related in SPBM network below:
BEB(Backbone Edge Bridge, backbone edges bridge): BEB equipment is the edge device of backbone network, be equivalent to MPLS(Multiprotocol Label Switching, multiprotocol label switching) PE(Provider Edge in network, service provider network edge) equipment.It is responsible for the message from user network to carry out M-in-M encapsulation, and by the M-in-M message repeating that obtains in backbone network, or the M-in-M message from backbone network is carried out decapsulation, and be forwarded in user network.
BCB(Backbone Core Bridge, backbone network core bridges): BCB equipment is the nucleus equipment of backbone network, is equivalent to the P equipment in MPLS network.It is responsible for according to B-MAC(Backbone MAC, backbone network MAC) and B-VLAN(Backbone VLAN, backbone network VLAN) forward M-in-M message.BCB equipment only needs to E-Packet and learn the MAC Address in backbone network, do not need to learn MAC(Media Access Control a large amount of in user network, media interviews control) address, thus reduce the cost of network design, also for backbone network provides better extensibility.
M-in-M message: through M-in-M encapsulation message referred to as M-in-M message.
B-MAC/B-VLAN:BEB equipment user's message is carried out M-in-M encapsulation time, can for user's message stamp operator distribution MAC Address and VLAN(Virtual Local Area Network, VLAN).This MAC Address of being distributed by operator and VLAN are just called B-MAC and B-VLAN.In backbone network, BCB equipment forwards M-in-M message according to B-MAC and B-VLAN.B-MAC comprises: source B-MAC and object B-MAC, BEB equipment, can using the MAC of oneself as source B-MAC, encapsulate the MAC of the BEB equipment of SPBM tunnel destination as object B-MAC when carrying out M-in-M encapsulation to user's message.
Backbone links/access link: the link between BEB equipment and BCB equipment and between BCB equipment is called backbone links, the link of BEB equipment connection user network is access link.After being packaged into M-in-M message from the user's message of user network, can be forwarded by the corresponding backbone links of BEB equipment; And from the M-in-M message of backbone network by after decapsulation, can be forwarded by the corresponding access link of BEB equipment according to customer objective MAC Address.
Service Instance and I-SID: in backbone network, a Service Instance represents class business or a user, I-SID(Backbone Service Instance Identifier, and backbone network Service Instance is numbered) be the unique number of Service Instance.
(1) datum plane of SPBM
SPBM inherits the encapsulation format of the M-in-M message of IEEE802.1ah definition, in M-in-M encapsulation process, add Service Instance, B-VLAN label, B-MAC address information at the skin of the original Ethernet message of user, backbone network is forwarded encapsulating the M-in-M message obtained by these information.
Make an explanation as follows to the relational language related in M-in-M message below:
B-DA(Backbone Destination MAC address, backbone network target MAC (Media Access Control) address): i.e. object B-MAC, being the outer target MAC (Media Access Control) address of M-in-M encapsulation, is the MAC Address of the BEB equipment of SPBM tunnel destination.
B-SA(Backbone Source MAC address, backbone network source MAC): i.e. source B-MAC, being the outer source MAC of M-in-M encapsulation, is the MAC Address of the BEB equipment of SPBM tunnel source.
B-Tag(Backbone VLAN Tag, backbone network VLAN label): i.e. B-VLAN Tag, the outside VLAN Tag of M-in-M encapsulation, be used for the VLAN of identification message in backbone network and precedence information, its TPID(Tag Protocol Identifier, tag protocol identifier) value is fixed as 0x88a8.
I-Tag(Backbone Service Instance Tag, backbone network service instance tag): the service marker in M-in-M encapsulation, comprise: the I-SID of transmission priority I-PCP when message processes on BEB equipment and loss priority I-DEI, identification service example, its TPID value is fixed as 0x88e7.
C-DA(Customer Destination MAC address, user network target MAC (Media Access Control) address): the target MAC (Media Access Control) address that user's message is original.
C-SA(Customer Destination MAC address, user network source MAC): the source MAC that user's message is original.
After BEB equipment receives user's message from the user-side port connecting user network, be mapped in corresponding Service Instance according to message inbound port and VLAN and carry out forwarding of tabling look-up, if the outgoing interface found is SPBM tunnel face, then according to the mapping relations of this Service Instance and B-VLAN, obtain B-Tag, then use I-SID, B-Tag and B-MAC of this Service Instance to carry out M-in-M tunnel encapsulation to this user's message.After message after M-in-M tunnel encapsulation enters in SPT region, BCB equipment forwards according to B-MAC, B-VLAN of heading.Not dynamic learning MAC address in B-VLAN, abandon the multicast message of the broadcasting packet of full F, the unicast message of unknown address and unknown address, and carry out RPF(Reverse Path Forwarding when message Ingress according to B-SA and B-VLAN, inverse path forwards) check, in case loops; Forwarding-table item in B-VLAN comprises: clean culture list item and multicast list, all brushes by under SPB-IS-IS.Backbone links only needs allow the data flow in B-VLAN to pass through.
(2) control plane of SPBM
SPBM is not dynamic learning MAC address in B-VLAN, and its forwarding-table item is all learnt and lower brush by control plane SPB-IS-IS.The function of SPB-IS-IS comprises:
1) set up the is-is neighbor between SPB bridge, carry out the quick renewal of LSD with synchronous.
2) notice of I-SID, the notice of Load Sharing Algorithm.
3) each nodal parallel calculates SPT(Shortest Path Tree, shortest path tree), and issue forwarding-table item to datum plane.
At present, in order to strengthen reliability and link backup, for important user network, dual-homed mode can be adopted to be linked into backbone network, that is, a user network is connected to two BEB equipment.As shown in Figure 2, Site(website) 1 access two BEB equipment B EB1 and BEB2 by switch SW1.Like this, when BEB1 fault, Site1 can be communicated with far-end Site by BEB2.In order to anti-loops, the agreement of meeting enable anti-loops on website usually, such as STP.Thus, in the SPBM network shown in Fig. 2, when BEB1 is normal, SW1 can be connected the link obstructions of BEB2.
Although existing dual-homing networking; the link that website is linked into BEB equipment can be protected; but; link between the BEB equipment accessed due to this website and far-end BEB equipment only has one; therefore; when this link failure, can cause cannot communicating between this website with the website of this far-end BEB equipment connection.Such as, in fig. 2, during link occurs fault between BEB1 and BEB3, Site1 and Site2 cannot carry out data communication.
Summary of the invention
This application provides the message forwarding method in a kind of SPBM network and device, to solve in the SPBM network of existing dual-homing networking, when website access BEB equipment and far-end BEB equipment between link failure time, the problem communicated cannot be carried out between this website and the website of this far-end BEB equipment connection.
The technical scheme of the application is as follows:
On the one hand, provide the message forwarding method in a kind of SPBM network, at least two BEB equipment in SPBM network are all connected with first stop spot net, the method is applied to a BEB equipment, one BEB equipment and this at least two BEB equipment belong to same Service Instance and are other BEB equipment except these at least two BEB equipment, and the method comprises:
After the primary BEB equipment determined at least two BEB equipment that first stop spot net connects and BEB equipment for subsequent use, set up and enable the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use;
When data flow will be sent to first stop spot net, send data flow by means of only the forward-path between this equipment and primary BEB equipment;
When the forward-path fault between this equipment and primary BEB equipment being detected, block the forward-path between this equipment and primary BEB equipment, enable the forward-path between this equipment and the BEB equipment for subsequent use selected, send data flow by the forward-path between this equipment and the BEB equipment for subsequent use of selection.
On the other hand, additionally provide the message forwarding method in a kind of SPBM network, at least two BEB equipment in SPBM network are all connected with first stop spot net, and the method is applied to the arbitrary BEB equipment in these at least two BEB equipment, and the method comprises:
Determine the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the primary BEB equipment of first stop spot net;
Set up and open the forward-path between this equipment and a BEB equipment, wherein, a BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
When the data flow that will forward first stop spot net is to a BEB equipment, send data flow by the forward-path between this equipment and a BEB equipment;
When the forward-path fault between this equipment and a BEB equipment being detected, block the forward-path between this equipment and a BEB equipment.
Another aspect, additionally provides the message forwarding method in a kind of SPBM network, and at least two BEB equipment in SPBM network are all connected with first stop spot net, and the method is applied to the arbitrary BEB equipment at least two BEB equipment, and the method comprises:
Determine the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the BEB equipment for subsequent use of first stop spot net;
Set up and block the forward-path between this equipment and a BEB equipment, wherein, a BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
The primary BEB equipment receiving a BEB equipment or first stop spot net send be used to indicate the flow control information of the forward-path fault between a BEB equipment and primary BEB equipment after, enable the forward-path between this equipment and a BEB equipment, forward the data flow of first stop spot net to a BEB equipment.
Another aspect, additionally provide the apparatus for forwarding message in a kind of SPBM network, at least two BEB equipment in SPBM network are all connected with first stop spot net, this application of installation is in a BEB equipment, one BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment, and this device comprises:
Determination module, for determining primary BEB equipment at least two BEB equipment that first stop spot net connects and BEB equipment for subsequent use;
Set up module, for setting up and enabling the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use;
Sending module, for when sending data flow to first stop spot net, sends data flow by means of only the forward-path between this equipment and primary BEB equipment; Also for blocking the forward-path between this equipment and primary BEB equipment in processing module, after enabling the forward-path between this equipment and the BEB equipment for subsequent use selected, send data flow by the forward-path between this equipment and the BEB equipment for subsequent use of selection;
Detection module, for detecting the state of the forward-path between this equipment and primary BEB equipment;
Processing module, during for the forward-path fault between this equipment and primary BEB equipment being detected at detection module, blocks the forward-path between this equipment and primary BEB equipment, enables the forward-path between this equipment and the BEB equipment for subsequent use selected.
Another aspect, additionally provides the apparatus for forwarding message in a kind of SPBM network, and at least two BEB equipment in SPBM network are all connected with first stop spot net, the arbitrary BEB equipment of this application of installation at least two BEB equipment, and this device comprises:
Determination module, for determining the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the primary BEB equipment of first stop spot net;
Set up module, for setting up and opening the forward-path between this equipment and a BEB equipment, wherein, a BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
Sending module, for when the data flow that will forward first stop spot net is to a BEB equipment, sends data flow by the forward-path between this equipment and a BEB equipment;
Detection module, for detecting the state of the forward-path between this equipment and a BEB equipment;
Processing module, during for the forward-path fault between this equipment and a BEB equipment being detected at detection module, blocks the forward-path between this equipment and a BEB equipment.
Another aspect, additionally provides the apparatus for forwarding message in a kind of SPBM network, and at least two BEB equipment in SPBM network are all connected with first stop spot net, the arbitrary BEB equipment of this application of installation at least two BEB equipment, and this device comprises:
Determination module, for determining the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the BEB equipment for subsequent use of first stop spot net;
Set up module, for setting up and blocking the forward-path between this equipment and a BEB equipment, wherein, a BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
Receiver module, the flow control information being used to indicate the forward-path fault between a BEB equipment and primary BEB equipment that the primary BEB equipment for receiving a BEB equipment or first stop spot net is sent;
Processing module, for receive at receiver module that a BEB equipment or primary BEB equipment sends be used to indicate the flow control information of the forward-path fault between a BEB equipment and primary BEB equipment after, enable the forward-path between this equipment and a BEB equipment;
Sending module, for forwarding the data flow of first stop spot net to a BEB equipment by the forward-path between this equipment and a BEB equipment.
In the technical scheme of the application, in the SPBM network of many ownership (comprising dual-homed) networking, find mutually between at least two the BEB equipment being connected to same station network (being called first stop spot net), elect main BEB equipment and BEB equipment for subsequent use and notice away, except these at least two BEB equipment and and these at least two BEB equipment far-end BEB equipment of belonging to same Service Instance set up and enable the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use, when data flow will be sent to first stop spot net, data flow is sent by means of only the forward-path between this equipment and main BEB equipment, after detecting that the forward-path between this equipment and main BEB equipment breaks down, the forward-path between this equipment and primary BEB equipment can be blocked, enable the forward-path between this equipment and the BEB equipment for subsequent use selected, data flow is sent by the forward-path between this equipment and the BEB equipment for subsequent use of selection, thus data flow handoff has been arrived the BEB equipment for subsequent use of this selection.Pass through technique scheme, in the SPBM network of multi-home networking, for providing at least two forward-paths between first stop spot net and the remote station network of far-end BEB equipment connection: the forward-path between primary BEB equipment and this far-end BEB equipment and the forward-path between BEB equipment for subsequent use and this far-end BEB equipment, when forward-path between primary BEB equipment and this far-end BEB equipment is normal, use this path transmitting data flow, when this path failure, can rapidly by data flow handoff to the forward-path between BEB equipment for subsequent use and this far-end BEB equipment, the path achieving the forward-path between first stop spot net and remote station network is backed up and data flow switches fast.
Accompanying drawing explanation
Fig. 1 is a kind of typical networking schematic diagram of SPBM network;
Fig. 2 is a kind of typical networking schematic diagram of SPBM network of dual-homing networking;
Fig. 3 is the flow chart of the message forwarding method in the SPBM network of the embodiment one of the application;
Fig. 4 is the flow chart of the message forwarding method in the SPBM network of the embodiment two of the application;
Fig. 5 is the message format schematic diagram of many ownership advertised information of the embodiment two of the application;
Fig. 6 is the message format schematic diagram of many ownership detection messages of the embodiment two of the application;
Fig. 7 is the message format schematic diagram of the flow control information of the embodiment two of the application;
Fig. 8 is the flow chart of the message forwarding method in the SPBM network of the embodiment three of the application;
Fig. 9 is the structural representation of the apparatus for forwarding message in the SPBM network of the embodiment five of the application.
Embodiment
In order to solve in the SPBM network of existing dual-homing networking, when website access BEB equipment and far-end BEB equipment between link failure time, the problem communicated cannot be carried out between this website and the website of this far-end BEB equipment connection, provide in following examples of the application message forwarding method in a kind of SPBM network and a kind of can apparatus for forwarding message to apply the method.
In the technical scheme of the application's following examples, in the SPBM network of many ownership (comprising dual-homed) networking, find mutually between at least two the BEB equipment being connected to same station network (being called first stop spot net), elect main BEB equipment and BEB equipment for subsequent use and notice away, except these at least two BEB equipment and and these at least two BEB equipment far-end BEB equipment of belonging to same Service Instance set up and enable the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use, when data flow will be sent to first stop spot net, data flow is sent by means of only the forward-path between this equipment and main BEB equipment, after detecting that the forward-path between this equipment and main BEB equipment breaks down, the forward-path between this equipment and primary BEB equipment can be blocked, enable the forward-path between this equipment and the BEB equipment for subsequent use selected, data flow is sent by the forward-path between this equipment and the BEB equipment for subsequent use of selection, thus data flow handoff has been arrived the BEB equipment for subsequent use of this selection.Pass through technique scheme, in the SPBM network of multi-home networking, for providing at least two forward-paths between first stop spot net and the remote station network of far-end BEB equipment connection: the forward-path between primary BEB equipment and this far-end BEB equipment and the forward-path between BEB equipment for subsequent use and this far-end BEB equipment, when forward-path between primary BEB equipment and this far-end BEB equipment is normal, use this path transmitting data flow, when this path failure, can rapidly by data flow handoff to the forward-path between BEB equipment for subsequent use and this far-end BEB equipment, the path achieving the forward-path between first stop spot net and remote station network is backed up and data flow switches fast.
In the SPBM network of following examples, some station networks, be called first stop spot net simultaneously with at least two BEB equipment connections.CFD(Connectivity Fault Detection can be disposed between access device in the station network of BEB equipment and connection thereof, be communicated with error detection).In following examples, being only described for a Service Instance, when there is multiple Service Instance, all performing according to the method for following examples for each Service Instance.
Embodiment one
Message forwarding method in the SPBM network of the embodiment of the present application by the arbitrary BEB equipment meeting following condition in SPBM network, can be called that a BEB equipment performs: belong to same Service Instance with at least two the BEB equipment being connected to first stop spot net and other BEB equipment except these at least two BEB equipment.
As shown in Figure 3, this message forwarding method comprises the following steps:
Step S301, after the primary BEB equipment determined at least two BEB equipment that first stop spot net connects and BEB equipment for subsequent use, set up and enable the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use;
In step S301, determine that the method for primary BEB equipment at least two BEB equipment that first stop spot net connects and BEB equipment for subsequent use comprises the following steps 1-2:
Step 1: receive many ownership advertised information that primary BEB equipment is sent, wherein, includes in many ownership advertised information of reception: the site identity of first stop spot net, the B-MAC address of BEB equipment for subsequent use and forwarding priority;
Wherein, the concrete form of many ownership advertised information that primary BEB equipment is sent see embodiment two, can repeat no more here.
Step 2: according to the many ownership advertised information received in step 1, determine that the BEB equipment sending this many ownership advertised information is primary BEB equipment, the BEB equipment indicated by B-MAC address comprised in this many ownership advertised information is BEB equipment for subsequent use, and primary BEB equipment and BEB equipment for subsequent use are all connected to first stop spot net.
When reality is implemented, many ownership advertised information can be carried in LSP message and send, after this equipment receives the LSP message carrying many ownership advertised information, can know that the BEB equipment sending this many ownership advertised information is primary BEB equipment, the BEB equipment indicated by B-MAC address comprised in this many ownership advertised information is BEB equipment for subsequent use.Like this, when calculating and set up forward-path, just can carry out according to the method for step S301, choosing this equipment to the forward-path of primary BEB equipment is main path, and from multiple BEB equipment for subsequent use, optimize one, by this equipment to this selection BEB equipment for subsequent use between forward-path be for path.
In step S301, set up and enable the forward-path between this equipment and primary BEB equipment, set up and the method for blocking the forward-path between this equipment and BEB equipment for subsequent use can adopt in following methods any one:
Method one: the forwarding information of the forward-path between this equipment calculated and primary BEB equipment, the forwarding information of forward-path between this equipment and the BEB equipment for subsequent use selected and the corresponding relation of link index are configured to PW(Pseudo Wire, pseudo-line) in table, as shown in table 1-1:
Table 1-1
In table 1-1, the forwarding information of the forwarding information of the forward-path between this equipment and primary BEB equipment and the forward-path between this equipment and the BEB equipment for subsequent use of this selection corresponds to same link index (being assumed to be 10); The state of the forwarding information of the forward-path between this equipment and primary BEB equipment being set to come into force (is with U to mark, represent and use), the state of the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of this selection is set to do not come into force (not being with U to mark).In actual implementation process, forwarding information comprises: I-SID, B-MAC, B-VLAN of Service Instance and outgoing interface etc.
Second method: the forwarding information of the forward-path between this equipment calculated and primary BEB equipment, the forwarding information of forward-path between this equipment and each BEB equipment for subsequent use and the corresponding relation of link index are configured to during PW shows, as shown in table 1-2:
Table 1-2
In table 1-2, suppose there is N number of BEB equipment for subsequent use, N >=1, N is natural number, and the forwarding information of the forwarding information of the forward-path between this equipment and primary BEB equipment and the forward-path between this equipment and each BEB equipment for subsequent use corresponds to same link index (being assumed to be 10); The state of the forwarding information of the forward-path between this equipment and primary BEB equipment being set to come into force (is with U to mark, represent and use), the state of the forwarding information of the forward-path between this equipment and each BEB equipment for subsequent use is set to do not come into force (not being with U to mark).In actual implementation process, forwarding information comprises: I-SID, B-MAC, B-VLAN of Service Instance and outgoing interface etc.
The third method: the forwarding information of the forward-path between this equipment calculated and primary BEB equipment and the corresponding relation of the first link index are configured to during PW shows, the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of this selection and the corresponding relation of the second link index are configured to during PW shows, as shown in table 1-3:
Table 1-3
In table 1-3, the first link index (being assumed to be 10) is different from the second link index (being assumed to be 11) and have binding relationship, can, by embody corresponding to identical Site, suppose all corresponding to Site1; The state of the forwarding information of the forward-path between this equipment and primary BEB equipment being set to come into force (is with U to mark, represent and use), the state of the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of described selection is set to do not come into force (not being with U to mark).In actual implementation process, forwarding information comprises: I-SID, B-MAC, B-VLAN of Service Instance and outgoing interface etc.
4th kind of method: the forwarding information of the forward-path between this equipment calculated and primary BEB equipment and the corresponding relation of the first link index are configured to during PW shows, the forwarding information of forward-path between this equipment and each BEB equipment for subsequent use and the corresponding relation of the second link index are configured to during PW shows, as shown in table 1-4:
Table 1-4
In tables 1-4, the second link index that the forwarding information of the forward-path between this equipment from different BEB equipment for subsequent use is corresponding is different, be assumed to be 11 ..., 21, first link index (being assumed to be 10) and each second link index (11 ..., 21) all different and there is binding relationship, can embody by corresponding to identical Site, supposing all corresponding to Site1; The state of the forwarding information of the forward-path between this equipment and primary BEB equipment being set to come into force (is with U to mark, represent and use), the state of the forwarding information of the forward-path between this equipment and each BEB equipment for subsequent use is set to do not come into force (not being with U to mark).In actual implementation process, forwarding information comprises: I-SID, B-MAC, B-VLAN of Service Instance and outgoing interface etc.
The BEB equipment for subsequent use of above-mentioned selection can be such as that a forwarding priority is only lower than the BEB equipment for subsequent use of primary BEB equipment.Also can be the BEB equipment for subsequent use meeting other conditions, the application limit this.
In actual implementation process, enablely on each BEB equipment in advance in SPBM network can belong to measuring ability more, use this function just can determine this equipment whether in multi-home networking, namely, with the station network of at least two BEB equipment connections while of whether having in the station network of this equipment connection, that is, this station network many attributable system accesses backbone network.Or enablely at least two BEB equipment that also can only connect at station network belong to measuring ability, the application does not limit this more simultaneously.In the present embodiment one, this equipment can detect this equipment not in the multi-home networking of first stop spot net by many ownership measuring abilities.Concrete many ownership detection method see embodiment two, can repeat no more here.
Step S302, when sending data flow to first stop spot net, sends this data flow by means of only the forward-path between this equipment and primary BEB equipment;
In step s 302, the method sending data flow by means of only the forward-path between this equipment and primary BEB equipment comprises the following steps 1-4:
Step 1: receive the Ethernet message from local site network, determine the C-VLAN(Customer Virtual Local Area Network with the Ethernet message received, user network VLAN) and Service Instance corresponding to inbound port, wherein, the object C-MAC(Customer MAC address of this Ethernet message, user network MAC Address) address is the MAC Address of the some main frames in first stop spot net;
Owing to BEB equipment being preserved the corresponding relation of port and C-VLAN and Service Instance, therefore, after receiving Ethernet message, can according to the inbound port of this Ethernet message (namely, receive the port of this Ethernet message) and this Ethernet message in the C-VLAN that carries, find corresponding to the Service Instance of I-SID mark.
Step 2: according to the object C-MAC address of this Ethernet message, finds corresponding outgoing interface in the example mac address table (as shown in table 2) of the Service Instance determined in step 1;
Table 2
Object C-MAC address Outgoing interface Ageing time (Aging)
In table 2, for the MAC Address (i.e. C-MAC address) in the local site network learnt, the outgoing interface of its correspondence is actual physical port.Such as, after receiving an Ethernet message, if the source MAC in this Ethernet message is unknown, just by including this source MAC, the list item of inbound port of this Ethernet message is configured in the example mac address table of the Service Instance of correspondence as shown in table 2.
For study to first stop spot net in MAC Address, the outgoing interface of its correspondence is exactly Link ID corresponding to PW between this BEB equipment and the BEB equipment (primary BEB equipment or BEB equipment for subsequent use) of connection first stop spot net.Such as, after receiving a M-in-M message, according to the B-MAC address, source of carrying in this M-in-M message and B-VLAN, such as showing to find coupling list item in the PW table shown in any one in 1-1 to table 1-4, decapsulation is carried out to this M-in-M message and obtains Ethernet message, if the source MAC (i.e. source C-MAC address) in this Ethernet message is unknown, then will include: the list item of the Link ID in this source MAC, coupling list item is configured in the example mac address table of the Service Instance that the I-SID in this M-in-M message identifies, as shown in table 2.
When such as showing to find coupling list item in the PW table shown in 1-1 or table 1-2, outgoing interface corresponding to the MAC Address in the first stop spot net learnt is always the same.
When such as showing to find coupling list item in the PW table shown in 1-3 or table 1-4, outgoing interface corresponding to MAC Address in the first stop spot net learnt likely can change, when the Ethernet message learning encapsulated in the M-in-M message sent from primary BEB equipment then, outgoing interface corresponding to MAC Address is exactly Link ID corresponding with the forwarding information of the forward-path between this equipment with primary BEB equipment in PW table; When the Ethernet message learning encapsulated in the M-in-M message sent from some BEB equipment for subsequent use then, outgoing interface corresponding to MAC Address is exactly Link ID corresponding with the forwarding information of the forward-path between this equipment and this BEB for subsequent use equipment in PW table.
Step 3: if the PW that the outgoing interface found is link index to be identified, then find the forwarding information that state is the forward-path between this equipment of (be namely with U mark) of coming into force and primary BEB equipment according to this link index such as showing any one PW in 1-1 to table 1-4 in showing;
Due in table 1-1 or table 1-2, the Link ID that the forwarding information of the forwarding information of the forward-path between this equipment with primary BEB equipment and the forward-path between this equipment with BEB equipment for subsequent use is corresponding is identical, therefore, a list item can be found in table 1-1 or table 1-2 according to this link index, but, multiple forwarding information is included in this list item, wherein only has the state of a forwarding information for come into force (band U mark), the forwarding information of the forward-path namely between this equipment and primary BEB equipment.
Due in table 1-3 or table 1-4, the Link ID that the forwarding information of the forwarding information of the forward-path between this equipment from primary BEB equipment and the forward-path between this equipment with BEB equipment for subsequent use is corresponding is different, but there is binding relationship, therefore, finding outgoing interface is in step 2 that the Link ID(that the forwarding information of forward-path between this equipment with primary BEB equipment is corresponding is assumed to be 10) after, other Link ID bound with Link ID1 can be found, such as Link ID11, or Link ID11, Link ID21, namely, find the forwarding information of the forward-path between this equipment and BEB equipment for subsequent use, thus, at least two list items can be found in table 1-3 or table 1-4 according to this Link ID10, but, the state of the forwarding information of a list item is only had for come into force (band U mark) in these at least two list items, the forwarding information of the forward-path namely between this equipment and primary BEB equipment.
Step 4: according to the forwarding information of the forward-path between this equipment found and primary BEB equipment, M-in-M encapsulation is carried out to Ethernet message, and by the outbound port in this forwarding information, the M-in-M message after encapsulation is sent.
Step S303, when the forward-path fault between this equipment and primary BEB equipment being detected, block the forward-path between this equipment and primary BEB equipment, enable the forward-path between this equipment and the BEB equipment for subsequent use of selection, send this data flow by the forward-path between this equipment and the BEB equipment for subsequent use of this selection.
Whether the forward-path that this equipment can detect between primary BEB equipment is normal, and CFD LB method can be used to detect.When this equipment Inspection is to after this path failure, then by data flow handoff to for path.
Wherein, blocking the forward-path between this equipment and primary BEB equipment, while enabling the forward-path between this equipment and the BEB equipment for subsequent use selected, the BEB equipment for subsequent use to described selection is also needed to send the flow control information of the forward-path fault be used to indicate between this equipment and primary BEB equipment.When reality is implemented, when the forward-path fault between this equipment and primary BEB equipment being detected, this equipment periodically can send the flow control information of the forward-path fault be used to indicate between this equipment and primary BEB equipment to the BEB equipment for subsequent use selected, until detect that the forward-path between this equipment and primary BEB equipment recovers normal.The flow control information of the forward-path fault be used to indicate between this equipment and primary BEB equipment that this equipment sends can be carried in fault discovery message, now, include the B-MAC address of this BEB equipment, the B-MAC address of primary BEB equipment, the I-SID of Service Instance in the flow control information of this fault discovery message, in this fault discovery message, can also time out period be included.
In step S303, block the forward-path between this equipment and primary BEB equipment, the method for enabling the forward-path between this equipment and the BEB equipment for subsequent use of selection comprises the following steps 11-12:
Step 11: such as showing 1-1 in the PW table shown in 1-4 shown in any one, by the status modifier of the forwarding information of the forward-path between this equipment and primary BEB equipment for not come into force, by the status modifier of the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of described selection for coming into force, now, table 1-1 upgrades to show 3-1, table 1-2 upgrades to show 3-2, and table 1-3 upgrades to show 3-3, and table 1-4 upgrades to show 3-4:
Table 3-1
Table 3-2
In table 3-2, dummy installation BEB equipment 1 is the BEB equipment for subsequent use selected.
Table 3-3
Table 3-4
In table 3-4, dummy installation BEB equipment 1 is the BEB equipment for subsequent use selected.
In addition, when detecting that the forward-path between this equipment and primary BEB equipment recovers normal, whether switchback is controlled by this BEB equipment data flow.Concrete, after forward-path (PW) fault recovery between this BEB equipment and primary BEB equipment, CFD LB between the two detects normal, and this BEB equipment can be selected data flow not to be switched back to primary BEB equipment at once, also can select data flow to be switched back to primary BEB equipment at once.Now, this BEB equipment also needs to perform following operation:
Step S401, when detecting that the forward-path between this equipment and primary BEB equipment recovers normal, judges whether to need data flow to be switched back to primary BEB equipment;
Such as, the switchback or after waiting for certain hour during switchback immediately when administrator configurations, can need data flow to be switched back to primary BEB equipment.
Step S402, if desired data flow is switched back to primary BEB equipment, then stop the BEB equipment for subsequent use to described selection to send the flow control information (State=1) of the forward-path fault be used to indicate between this equipment and primary BEB equipment, the BEB equipment transmission forward-path be used to indicate between this equipment and primary BEB equipment for subsequent use to primary BEB equipment and described selection recovers normal flow control information (State=0); Such as showing 3-1 in the PW table shown in 3-4 shown in any one, by the status modifier of the forwarding information of the forward-path between this equipment and primary BEB equipment for coming into force, by the status modifier of the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of described selection for not come into force, now, table 3-1 upgrades to show 1-1, table 3-2 upgrades to show 1-2, and table 3-3 upgrades to show 1-3, and table 3-4 upgrades to show 1-4.
When needs switch back to primary BEB equipment, this equipment first can recover normal flow control information to the BEB equipment transmission forward-path be used to indicate between this equipment and primary BEB equipment for subsequent use of primary BEB and selection, then, data flow in neighbours' sense cycle or when receiving first message from primary BEB equipment or within the time period that keeper presets, can be switched back to the forward-path between this equipment and primary BEB equipment by this BEB equipment.
In actual implementation process, the BEB equipment for subsequent use to primary BEB equipment and described selection sends the forward-path be used to indicate between this equipment and primary BEB equipment and recovers normal flow control information (State=0) and can be carried in fault recovery message and send.
Embodiment two
The method of the present embodiment can be performed by the arbitrary BEB equipment be connected at least two BEB equipment of first stop spot net.As shown in Figure 4, the method comprises the following steps:
Step S501, determine the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the primary BEB equipment of first stop spot net;
In step S501, the first stop spot net determining this equipment connection and at least two BEB equipment connections, and this equipment is that the method for the primary BEB equipment of first stop spot net comprises the following steps 21-24:
Step 21: to send to all station networks of this locality in the mode of multicast and belong to detection messages more, wherein, carry the B-MAC address of this equipment and the forwarding priority of this equipment in many ownership detection messages of transmission;
Step 22: after receiving at least one neighbours BEB equipment many ownership detection messages next by the access device forwarding in first stop spot net, determine that first stop spot net is all connected with this equipment and at least one neighbours BEB equipment described, wherein, B-MAC address and the forwarding priority of neighbours BEB equipment is carried in many ownership detection messages of reception;
Step 23: the relatively forwarding priority of this equipment and at least one neighbours BEB equipment described, when the forwarding priority of this equipment is the highest, determines that this equipment is primary BEB equipment, and at least one neighbours BEB equipment described is BEB equipment for subsequent use;
After determining that first stop spot net is for many ownership accesses, compare the forwarding priority of the BEB equipment in each the many ownership detection messages received, the primary BEB equipment of first stop spot net that what priority was the highest is, remaining is BEB equipment for subsequent use; If forwarding priority is identical, then can compare B-MAC address further, such as, can specify B-MAC address large for primary BEB equipment, also can specify B-MAC address large be primary BEB equipment, select a primary BEB equipment by B-MAC address.
Step 24: send to direct-connected BCB equipment and other BEB equipment and belong to advertised information more, wherein, include in many ownership advertised information of transmission: the site identity of first stop spot net, the B-MAC address of BEB equipment for subsequent use and forwarding priority.
After determining primary BEB equipment and BEB equipment for subsequent use, mutually periodically send neighbours' detection messages of clean culture between primary BEB equipment and BEB equipment for subsequent use, for detecting the state of the other side.That is, primary BEB equipment sends neighbours' detection messages to BEB equipment for subsequent use, and BEB equipment for subsequent use sends neighbours' detection messages to primary BEB equipment.When reality is implemented, neighbours' detection messages can be carried at CFD LB(loop fuction (Loopback, LB)) send in message, namely, after at least two the BEB equipment being connected to same station network find mutually, automatically set up CFD LB between primary BEB equipment and BEB equipment for subsequent use to detect, sense cycle can be the smaller value in neighbours' sense cycle of this BEB equipment and opposite end.If can not receive neighbours' detection messages of opposite end in 4 times of sense cycle, then can think peer failure or the link failure between local terminal and opposite end.
In step 24, after determining BEB equipment for subsequent use as this equipment of primary BEB equipment, carry in the LSP message can issued at this equipment and belong to advertised information more.Many ownership advertised information can be realized by TLV field as shown in Figure 5, makes an explanation below to the primary fields in many ownership advertised information:
The many ownership of Multi-Attch(): for representing that this TLV field for belong to advertised information more;
Length(length): be used to indicate the length except other fields of Multi-Detect and Length field in this TLV field;
I-SID: the I-SID of corresponding with service example;
Site Number(site number): the site identity of the station network of many ownership accesses;
B-MAC: the B-MAC address of BEB equipment for subsequent use, can have one or more, giving tacit consent to first B-MAC is the BEB equipment for subsequent use that forwarding priority is only second to primary BEB equipment;
Preference(priority): the forwarding priority of the BEB equipment for subsequent use indicated by corresponding B-MAC, obtain from many ownership detection messages that this BEB equipment for subsequent use is sent, when Preference is full F, represent, with primary BEB equipment, there is identical forwarding priority.
In actual implementation process, enablely on each BEB equipment in advance in SPBM network can belong to measuring ability more, use this function just can determine this equipment whether in multi-home networking, namely, with the station network of at least two BEB equipment connections while of whether having in the station network of this equipment connection, that is, this station network many attributable system accesses backbone network.Or enablely at least two BEB equipment that also can only connect at station network belong to measuring ability, the application does not limit this more simultaneously.
When reality is implemented, owing to deploying CFD between BEB equipment and access device, therefore, many ownership of multicast detection messages can be carried in CFD message by this BEB equipment, multicast in local all station networks by user's access link, wherein, the source MAC of this CFD message is the MAC Address of the port of this BEB equipment connection user access link.As shown in Figure 6, many ownership detection messages can by a TLV(Type Length Value, type lengths values) field realizes, makes an explanation below to the primary fields in many ownership detection messages.
The many ownership of Multi-Detect(detect): for representing that this TLV for belong to detection messages more;
Length(length): be used to indicate the length except other fields of Multi-Detect and Length field in this TLV field;
State(state): state flag bit, when the value of this field is the first value, is used to indicate access device and need deletes the MAC address entries that outgoing interface is the port being connected to this BEB equipment; When the value of this field is the second value, represent normal; During practical application, the first value can be the 1, second value can be 0;
The MAC Address of the local BEB of Local BEB MAC(): the B-MAC address of this BEB equipment;
I-SID: the I-SID of corresponding with service example;
Preference(priority): the forwarding priority of this BEB equipment, the forwarding priority of BEB equipment can be pre-configured;
Local Detect Time(local detection time): neighbours' sense cycle of this BEB equipment;
The MAC Address of Nbr BEB MAC(neighbours BEB equipment): the B-MAC address of the neighbours BEB equipment that this equipment has found, neighbours BEB equipment herein namely with this equipment connection other BEB equipment in same station network.If there is the B-MAC address of this equipment in the Nbr BEB MAC acting as in the many ownership detection messages received of this field, then illustrate that the BEB equipment sending this many ownership detection messages has had been found that oneself, with had been found that all BEB equipment of oneself carry out the election of primary BEB equipment, if there is no the B-MAC address of this equipment in the Nbr BEB MAC in the many ownership detection messages received, then illustrate that the BEB equipment sending this many ownership detection messages does not also find oneself, continue to send and belong to detection messages more, temporarily do not participate in the election of primary BEB equipment.
This BEB equipment is after performing step 21, access device in local all station networks, such as access switch all can receive the CFD message carrying many ownership detection messages that this BEB equipment sends, when the value parsing the state field in the detection messages of many ownership is as shown in Figure 60, know that state is normal.Meanwhile, this CFD message repeating is gone out.Like this, if this BEB equipment connection station network also with other BEB equipment connections (namely there is many ownership), then these other BEB equipment will receive the CFD message of access device forwarding from user's access link.Thus according to the forwarding priority carried in this CFD message, carry out the comparison of forwarding priority, finally elect primary BEB equipment, has been exactly BEB equipment for subsequent use except primary BEB equipment.
Step S502, sets up and opens the forward-path between this equipment and a BEB equipment, and wherein, a BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
In step S502, to set up and the forward-path opened between this equipment and a BEB equipment can adopt the method for prior art, repeat no more here.
Step S503, when the data flow that will forward first stop spot net is to a BEB equipment, sends this data flow by the forward-path between this equipment and a BEB equipment;
Step S504, when the forward-path fault between this equipment and a BEB equipment being detected, blocks the forward-path between this equipment and a BEB equipment;
Whether the forward-path that this equipment can detect between a BEB equipment is normal, and CFD LB method can be used to detect.When after this equipment Inspection to this path failure, then block the forward-path between this equipment and a BEB equipment.
Step S505, when the forward-path fault between this equipment and a BEB equipment being detected, the flow control information of the forward-path fault be used to indicate between this equipment and a BEB equipment is sent to the BEB equipment for subsequent use selected, send to the access device in first stop spot net and belong to detection messages more, wherein, mode field is carried in the many ownership detection messages sent, the value of this mode field is the first value, be used to indicate and delete the MAC address entries that outgoing interface is the port being connected to this equipment, the BEB equipment for subsequent use of described selection is that a forwarding priority is only lower than the BEB equipment for subsequent use of primary BEB equipment,
After access device in first stop spot net receives this many ownership detection messages, be just delete outgoing interface with the MAC address entries of lower port: this access device is connected to the port of the BEB equipment sending this many ownership detection messages.
In step S505, when the forward-path fault between this equipment and a BEB equipment being detected, as the flow control information being used to indicate the forward-path fault between this equipment and a BEB equipment that this equipment of primary BEB equipment sends, when implementing, the flow control information of the forward-path fault be used to indicate between this equipment and a BEB equipment that primary BEB equipment sends can be carried in neighbours' detection messages and send.Flow control information can use TLV field to realize, and as shown in Figure 7, makes an explanation below to the primary fields in flow control information:
Stream-control(flow control): for representing that this TLV field is flow control information;
Length(length): be used to indicate the length except other fields of Multi-Detect and Length field in this TLV field;
I-SID: the I-SID of corresponding with service example;
State(state): the Link State between the BEB equipment indicated by BEB MAC in this equipment and this TLV field, when the value of this field is the first value, represents link failure; When this value is the second value, represent link failure recovery; During actual enforcement, the first value can be the 1, second value can be 0;
The MAC Address of BEB MAC(BEB equipment): the B-MAC address can carrying 0 or multiple BEB equipment in flow control information, represents all BEB equipment when there is no BEB MAC.
After forward-path fault between primary BEB equipment Inspection to a BEB equipment, flow control information can be carried in the neighbours' detection messages sending to BEB equipment for subsequent use, the value of the state field now in this information is the first value, and the value of BEB MAC field is the B-MAC address of a BEB equipment.
Step S506, when detecting that the forward-path between this equipment and a BEB equipment recovers normal, the forward-path be used to indicate between this equipment and a BEB equipment sent at the BEB equipment that receives enables the forward-path between this equipment and a BEB equipment after recovering normal flow control information (State=0).
Primary BEB equipment is after receiving the fault recovery message carrying flow control information, if the value parsing the state field in flow control information is 0, then enables the forward-path between this equipment and a BEB equipment at once.
Embodiment three
The method of the present embodiment can be performed by the arbitrary BEB equipment be connected at least two BEB equipment of first stop spot net.As shown in Figure 8, the method comprises the following steps:
Step S601, determine the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the BEB equipment for subsequent use of first stop spot net;
In step s 601, the first stop spot net determining this equipment connection and at least two BEB equipment connections, and this equipment is that the method for the BEB equipment for subsequent use of first stop spot net comprises the following steps 31-33:
Step 31: to send to all station networks of this locality in the mode of multicast and belong to detection messages more, wherein, carry the B-MAC address of this equipment and the forwarding priority of this equipment in many ownership detection messages of transmission;
Step 32: after receiving at least one neighbours BEB equipment many ownership detection messages next by the access device forwarding in first stop spot net, determine that first stop spot net is all connected with this equipment and at least one neighbours BEB equipment described, wherein, B-MAC address and the forwarding priority of neighbours BEB equipment is carried in many ownership detection messages of reception;
In the step 32, after receiving many ownership detection messages, first can check that whether I-SID in this message is the I-SID of this Service Instance, if, then check in this Service Instance whether there is the BEB equipment that B-MAC address is the value of Local BEB MAC field in this message, if exist, then determine that the first stop spot net at the access device place forwarding this message is the station network of many ownership accesses.
Step 33: the relatively forwarding priority of this equipment and at least one neighbours BEB equipment described, when forwarding priority lower than a neighbor device of the forwarding priority of this equipment, determines that this equipment is BEB equipment for subsequent use.
Because primary BEB equipment determines that this equipment (i.e. this primary BEB equipment) is for after primary BEB equipment, the LSP message carrying many ownership advertised information can be sent, therefore, after BEB equipment for subsequent use receives, can find the B-MAC address including this equipment (i.e. this BEB equipment for subsequent use) in many ownership advertised information, then the forward-path between this BEB equipment for subsequent use to primary BEB equipment can block by BEB equipment for subsequent use.
Step S602, sets up and blocks the forward-path between this equipment and a BEB equipment, and wherein, a BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
Step S603, the primary BEB equipment receiving a BEB equipment or first stop spot net send be used to indicate the flow control information of the forward-path fault between a BEB equipment and primary BEB equipment after, enable the forward-path between this equipment and a BEB equipment, forward the data flow of first stop spot net to a BEB equipment.
When reality is implemented, the flow control information of the forward-path fault that what primary BEB equipment was sent be used to indicate between a BEB equipment and primary BEB equipment can be carried in neighbours' detection messages and send over, receive after this carries neighbours' detection messages of flow control information (State=1) as this equipment of BEB equipment for subsequent use selected, think that fault has appearred in the forward-path between primary BEB equipment and a BEB equipment, enable the forward-path between this equipment and a BEB equipment.
When reality is implemented, the flow control information of the forward-path fault that what the one BEB equipment was sent be used to indicate between a BEB equipment and primary BEB equipment can be carried in fault discovery message and send over, after this equipment as BEB equipment for subsequent use receives fault discovery message, first can check whether the I-SID in this message in flow control information mates with the I-SID of this Service Instance, if coupling, then the forward-path between this equipment and a BEB equipment will be enabled, the data flow sent from a BEB equipment (with B-MAC address designation) can be forwarded to first stop spot net, namely, only to the data flow that first stop spot net forwarding the one BEB equipment is sent, and, the B-MAC address of the BEB equipment in flow control information in fault discovery message can be recorded in fault discovery message table.
In actual implementation process, after receiving neighbours' detection messages of carrying flow control information (State=1) from primary BEB equipment as this equipment of BEB equipment for subsequent use, if parse the State=1 of flow control information, namely, state is fault, then check the BEB MAC that comprises in this flow control information whether in fault discovery message table, if, then enable the forward-path between this equipment and a BEB equipment, make the data flow of first stop spot net from this BEB device forwards to a BEB equipment; If do not exist, be then recorded in fault discovery message table, and enabled the forward-path between this equipment and a BEB equipment.Or, after receiving neighbours' detection messages of carrying flow control information (State=1) from primary BEB equipment as this equipment of BEB equipment for subsequent use, if parse the State=1 of flow control information, namely, state is fault, then enable the forward-path between this equipment and a BEB equipment immediately.
In addition, further comprising the steps of in the method:
Step S701, if within a predetermined period of time, the flow control information being used to indicate the forward-path fault between a BEB equipment and primary BEB equipment that the BEB equipment that do not receive is sent, and detect that primary BEB equipment is normal, then block the forward-path between this equipment and a BEB equipment, or, when the forward-path be used to indicate between a BEB equipment and primary BEB equipment that the BEB equipment that receives is sent recovers normal flow control information (State=0), block the forward-path between this equipment and a BEB equipment;
The flow control information of the forward-path fault be used to indicate between a BEB equipment and primary BEB equipment sent due to a BEB equipment can be carried in fault discovery message, time out period is included in this fault discovery message, therefore, in step s 701, if do not receive fault discovery message again in time out period, and and between primary BEB equipment neighbours detect normally, do not receive neighbours' detection messages of carrying flow control information (State=1) that primary BEB equipment is sent, then block the forward-path between this equipment and a BEB equipment, stop forwarding the data flow that a BEB equipment is sent.
The forward-path be used to indicate between a BEB equipment and primary BEB equipment sent due to a BEB equipment recovers normal flow control information and can be carried in fault recovery message, after BEB equipment for subsequent use receives this message, if the value parsing the state field in flow control information is 0, then the forward-path in a sense cycle or between time period this equipment of internal congestion of keeper's setting and a BEB equipment.
Step S702, send to the access device in first stop spot net and belong to detection messages more, wherein, B-MAC address and the mode field of this equipment is carried in the many ownership detection messages sent, the value of this mode field is the first value, is used to indicate and deletes the MAC address entries that outgoing interface is the port being connected to this equipment.
After access device in first stop spot net receives this many ownership detection messages, the value of discovery mode field is wherein the first value, then deletion outgoing interface is the MAC address entries with lower port: this access device is connected to the port of the BEB equipment sending this many ownership detection messages.
In above-described embodiment one to embodiment three, on the access device of first stop spot net, for access BEB equipment link between forwarding data flow configuration level dividing function, that is: as shown in Figure 2, suppose that SW1 accesses the Link1 of BEB1 and the Link2 of access BEB2 is access link, then, the message except CFD message is received from Link1, no matter be unicast message, broadcasting packet, the multicast message that target MAC (Media Access Control) address is known, or the unicast message of target MAC (Media Access Control) address the unknown, all can not forward from Link2; Equally, the message received from Link2 also can not forward from Link1.The object done like this is to prevent loop or website between website from repeating to receive identical message.
Embodiment four
For the SPBM network of the dual-homing networking shown in Fig. 2, describe the method in above-described embodiment one to three in detail.
In fig. 2, station network Site1 comprises: MAC Address is the PC1 of 1-1-1, Site1 accesses BEB equipment B EB1 and BEB2 by SW1, wherein, the B-MAC address supposing BEB1 is 0999-8888-0001, BVLAN is 1234, the I-SID of Service Instance is 1, forwarding priority is 25, the B-MAC address that the B-MAC address of BEB2 is 0999-8888-0002, BVLAN is 1234, the I-SID of Service Instance is 1, forwarding priority is 15, BEB3 is 0999-8888-0003, BVLAN is 1234, the I-SID of Service Instance is 1.Station network Site2 comprises: MAC Address is the PC2 of 2-2-2, and Site2 accesses BEB3 by SW2.Site1, Site2 and Site3 belong to user 1, and the I-SID of corresponding with service example is 1.The dual-homed access of Site1 BEB1 and BEB2.Belonging to measuring ability enable on BEB1 and BEB2 more.Suppose, time initial, the mac address table of each BEB equipment and access switch SW1, SW2 is all empty.Need to set up PW between BEB equipment.The concrete operations flow process of the message forwarding method of the present embodiment comprises:
Step S801, BEB1 sends the CFD message carrying many ownership detection messages to Site1 multicast, in many ownership detection messages wherein, State=0, Local BEB MAC=0999-8888-0001, Preference=25, I-SID=1, Nbr BEB MAC=0999-8888-0002; BEB2 sends the CFD message carrying many ownership detection messages to Site1 multicast, in many ownership detection messages wherein, State=0, Local BEB MAC=0999-8888-0002, Preference=15, I-SID=1, Nbr BEB MAC=0999-8888-0001;
When step S801 will be performed, suppose many ownership detection messages that now BEB1 have received BEB2 and sends.
SW1 in step S802, Site1 is transmitted to BEB2 after process after receiving the CFD message that BEB1 sends, and equally, after receiving the CFD message that BEB2 sends, is transmitted to BEB1 after process;
After step S803, BEB1 receive the next CFD message of SW1 forwarding, determine Site1 this equipment of dual-homed access and BEB2, and the Preference25 due to this equipment is greater than the Preference15 of BEB2, therefore, this equipment is primary BEB equipment; After BEB2 receives the next CFD message of SW1 forwarding, determine Site1 this equipment of dual-homed access and BEB1, and the Preference15 due to this equipment is less than the Preference25 of BEB1, therefore, this equipment is not primary BEB equipment;
Step S804, BEB1 can carry many ownership advertised information of Site1 in the LSP message produced, in this many ownership advertised information, and I-SID=1, Site Number=1, B-MAC=0999-8888-0002, Preference=15;
Step S805, BEB3 is after receiving the LSP message that BEB1 sends, find that BEB1 is the primary BEB equipment of Service Instance at Site1 of I-SID1, BEB2 is for subsequent use BEB equipment of Service Instance at Site1 of I-SID1, then, this equipment calculated is arrived the forwarding information of the PW of BEB1, this equipment is configured in PW table to the forwarding information of the PW of BEB2, and is set to not come into force by the forwarding information of this equipment to the PW of BEB2; This PW shows or to show shown in 4-2 as table 4-1:
Table 4-1
Table 4-2
Link?ID I-SID B-MAC B-VLAN Outgoing interface State Site?ID
20 1 0999-8888-0001 1234 Eth1/3 MU 1
21 1 0999-8888-0002 1234 Eth2/3 B 1
Wherein, the Link ID20 in table 4-2 and Link ID21 has binding relationship.
In table 4-1 and table 4-2, the M in State represents that main PW, B represent that standby PW, U represent the PW of current use, represents that this PW uses (namely coming into force), represent that this PW is not used (namely not coming into force) without U mark with U mark.
BEB2 is after receiving the LSP message that BEB1 sends, find that BEB1 is the primary BEB equipment of Service Instance at Site1 of I-SID1, this equipment is for subsequent use BEB equipment of Service Instance at Site1 of I-SID1, then, set up and block the PW of this equipment to BEB3, without the need to the PW between regeneration cost equipment and BEB1; BEB1 sets up and enables the PW of this equipment to BEB3, without the need to the PW between regeneration cost equipment and BEB2; Neighbours' detection messages by mutually periodically sending clean culture between BEB1 and BEB2 carries out neighbours' detection;
The Ethernet message repeating that PC1 sends by step S806, SW1 is to BEB1 and BEB2, and wherein, the source MAC of this Ethernet message is 1-1-1, and target MAC (Media Access Control) address is 2-2-2;
After step S807, BEB1 receive this Ethernet message, according to the target MAC (Media Access Control) address 2-2-2 of this Ethernet message, carry out M-in-M encapsulation to this Ethernet message, M-in-M message repeating encapsulation obtained is to BEB3; After BEB2 receives this Ethernet message, because the PW between this equipment and BEB3 blocks, so, cannot forward the packet to BEB3;
Step S808, after BEB3 receives the M-in-M message that BEB1 sends, the Ethernet message that decapsulation obtains wherein is carried out to this M-in-M message, according to the target MAC (Media Access Control) address 2-2-2 in this Ethernet message in the example mac address table of the Service Instance of I-SID1 as shown in table 5, finding corresponding outgoing interface is Port A, and this Ethernet message is transmitted to PC2 by Port A by SW2;
Table 5
Object C-MAC address Outgoing interface Ageing time (Aging)
2-2-2 Port?A XX
1-1-1 20 XX
The Ethernet message repeating that PC2 replys by step S809, SW2 is to BEB3, and wherein, the source MAC of this Ethernet message is 2-2-2, and target MAC (Media Access Control) address is 1-1-1;
Step S810, after BEB3 receives this Ethernet message, according to the target MAC (Media Access Control) address 1-1-1 of this Ethernet message, in the example mac address table of the Service Instance of I-SID1 as shown in table 5, find the PW that corresponding outgoing interface identifies for Link ID20, then such as showing in the PW table shown in 4-1 or 4-2, coupling list item is found according to this Link ID20, wherein, a list item is found in table 4-1, use the forwarding information that the State in this list item marks with U: I-SID1, B-MAC0999-8888-0001, B-VLAN1234, M-in-M encapsulation is carried out to this Ethernet message, two list items are found in table 4-2, forwarding information in the list item using one of them State to mark with U: I-SID1, B-MAC0999-8888-0001, B-VLAN1234, M-in-M encapsulation is carried out to this Ethernet message, go out encapsulating the M-in-M message repeating obtained,
After step S811, BEB1 receive this M-in-M message, the Ethernet message that decapsulation obtains wherein is carried out to this M-in-M message, this Ethernet message is transmitted to PC1 by SW1;
Step S812; After BEB1 detects the PW fault between this equipment and BEB3, the neighbours' detection messages carrying flow control information is sent to BEB2, in flow control information wherein, I-SID=1, State=1, BEBMAC=0999-8888-0003, PW between this equipment and BEB3 is blocked, send many ownership detection messages to SW1, Local BEB MAC=0999-8888-0001, State=1 in this many ownership detection messages; SW1, after receiving this many ownership detection messages, deletes the MAC address entries that outgoing interface is the port being connected to BEB1 at once; After BEB3 detects the PW fault between this equipment and BEB1, to such as show in the PW table shown in 4-1 or 4-2, the status modifier of the forwarding information of the PW between this equipment and BEB1 is M, be BU by the status modifier of the forwarding information of the PW between this equipment and BEB2, now, table 4-1 upgrades to show 6-1, table 4-2 upgrades to show 6-2, the fault discovery message carrying flow control information is periodically sent to BEB2, in flow control information wherein, I-SID=1, State=1, BEB MAC=0999-8888-0001; That is, BEB3 can block the PW between BEB1, and BEB3 is the message of reprocessing from BEB1 not;
Table 6-1
Table 6-2
Link?ID I-SID B-MAC B-VLAN Outgoing interface State Site?ID
20 1 0999-8888-0001 1234 Eth1/3 M 1
21 1 0999-8888-0002 1234 Eth2/3 BU 1
Step S813, BEB2 enable the PW between this equipment and BEB3 after receiving above-mentioned neighbours' detection messages that BEB1 sends or receiving fault discovery message that BEB3 sends;
The Ethernet message repeating that PC1 replys by step S814, SW1 is to BEB1 and BEB2, and wherein, the source MAC of this Ethernet message is 1-1-1, and target MAC (Media Access Control) address is 2-2-2;
After step S815, BEB2 receive this Ethernet message, according to the target MAC (Media Access Control) address 2-2-2 of this Ethernet message, carry out M-in-M encapsulation to this Ethernet message, M-in-M message repeating encapsulation obtained is to BEB3; After BEB1 receives this Ethernet message, because the PW between BEB1 and BEB3 blocks, so, cannot forward the packet to BEB3;
Step S816, after BEB3 receives the M-in-M message that BEB2 sends, the Ethernet message that decapsulation obtains wherein is carried out to this M-in-M message, if PW table is as shown in table 4-2, in the example mac address table of the Service Instance of the I-SID1 then shown in table 5, outgoing interface corresponding for the source MAC 1-1-1 of this Ethernet message is revised as Link ID21, and table 5 is updated to as shown in table 7; If PW table is as shown in table 4-1, then without the need to updating form 5; BEB3 finds the outgoing interface Port A corresponding with the target MAC (Media Access Control) address 2-2-2 of this Ethernet message in the example MAC shown in table 5 or table 7 shows, and this Ethernet message is transmitted to PC2 by this Port A by SW2;
Table 7
Object C-MAC address Outgoing interface Ageing time (Aging)
2-2-2 Port?A XX
1-1-1 21 XX
The Ethernet message repeating that PC2 replys by step S817, SW2 is to BEB3, and wherein, the source MAC of this Ethernet message is 2-2-2, and target MAC (Media Access Control) address is 1-1-1, after BEB3 receives this Ethernet message, according to the target MAC (Media Access Control) address 1-1-1 of this Ethernet message, in the example mac address table of the Service Instance of I-SID1 as shown in table 5, find the PW that corresponding outgoing interface identifies for Link ID20, then in PW table as shown in Table 6-1, coupling list item is found according to this Link ID20, wherein, a list item is found in table 6-1, use the forwarding information that the State in this list item marks with U: I-SID1, B-MAC0999-8888-0002, B-VLAN1234, M-in-M encapsulation is carried out to this Ethernet message, go out encapsulating the M-in-M message repeating obtained, or, in the example mac address table of the Service Instance of I-SID1 as shown in table 7, find the PW that corresponding outgoing interface identifies for Link ID21, then in table 6-2, find two list items, forwarding information in the list item using one of them State to mark with U: I-SID1, B-MAC0999-8888-0002, B-VLAN1234, M-in-M encapsulation is carried out to this Ethernet message, go out encapsulating the M-in-M message repeating obtained,
After step S818, BEB2 receive this M-in-M message, to the Ethernet message this M-in-M message being carried out decapsulation and obtain wherein, according to the target MAC (Media Access Control) address 1-1-1 of this Ethernet message, this Ethernet message is transmitted to PC1 by SW1;
Step S819, BEB3 detect that the PW fault recovery between this equipment and BEB1 is normal, and namely CFD LB detects normal, and BEB3 can select, not at once by data flow switchback BEB1, also can select at once by data flow switchback BEB1; When BEB3 prepares data flow switchback BEB1, stop sending fault discovery message to BEB2, the fault recovery message carrying flow control information is sent, I-SID=1, State=0, BEB MAC=0999-8888-0001 of flow control information wherein to BEB1 and BEB2;
Step S820, BEB1 enable the PW between this equipment and BEB3 after receiving the fault recovery message that BEB3 sends; BEB2 blocks the PW between this equipment and BEB3 after receiving the fault recovery message that BEB3 sends, and sends belong to detection messages more to SW1, in many ownership detection messages wherein, and Local BEBMAC=0999-8888-0002, State=1; SW1, after receiving this many ownership detection messages, deletes the MAC address entries that outgoing interface is the port being connected to BEB2 at once.Follow-up flow process, repeats no more to step S811 here with step S806.
Embodiment five
For the method in embodiment one to embodiment three, present embodiments provide the apparatus for forwarding message in a kind of SPBM network, be introduced being applied to the structure in different BEB equipment for this device below.
1, when this application of installation is in a BEB equipment, a BEB equipment belongs to same Service Instance with at least two the BEB equipment being connected to first stop spot net and is other BEB equipment except these at least two BEB equipment
As shown in Figure 9, this device comprises with lower module:
Determination module 101, for determining primary BEB equipment at least two BEB equipment that first stop spot net connects and BEB equipment for subsequent use;
Set up module 102, for setting up and enabling the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use;
Sending module 103, for when sending data flow to first stop spot net, sends described data flow by means of only the forward-path between this equipment and primary BEB equipment; Also for blocking the forward-path between this equipment and primary BEB equipment in processing module 105, after enabling the forward-path between this equipment and the BEB equipment for subsequent use selected, send described data flow by the forward-path between this equipment and the BEB equipment for subsequent use of selection;
Detection module 104, for detecting the state of the forward-path between this equipment and primary BEB equipment;
Processing module 105, during for the forward-path fault between this equipment and primary BEB equipment being detected at detection module 104, blocks the forward-path between this equipment and primary BEB equipment, enables the forward-path between this equipment and the BEB equipment for subsequent use of selection.
The method that above modules performs corresponding function see embodiment one, can repeat no more here.
2, when the arbitrary BEB equipment of this application of installation at least two the BEB equipment being connected to first stop spot net
This device comprises with lower module:
Determination module, for determining the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the primary BEB equipment of first stop spot net;
Set up module, for setting up and opening the forward-path between this equipment and a BEB equipment, wherein, a BEB equipment is the arbitrary BEB equipment in described SPBM network except described at least two BEB equipment;
Sending module, for when the data flow that will forward first stop spot net is to a BEB equipment, sends described data flow by the forward-path between this equipment and a BEB equipment;
Detection module, for detecting the state of the forward-path between this equipment and a BEB equipment;
Processing module, during for the forward-path fault between this equipment and a BEB equipment being detected at described detection module, blocks the forward-path between this equipment and a BEB equipment.
The method that above-mentioned modules performs corresponding function see embodiment two, can repeat no more here.
3, when the arbitrary BEB equipment of this application of installation at least two the BEB equipment being connected to first stop spot net
This device comprises with lower module:
Determination module, for determining the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the BEB equipment for subsequent use of first stop spot net;
Set up module, for setting up and blocking the forward-path between this equipment and a BEB equipment, wherein, a BEB equipment is the arbitrary BEB equipment in described SPBM network except described at least two BEB equipment;
Receiver module, the flow control information being used to indicate the forward-path fault between a BEB equipment and primary BEB equipment that the primary BEB equipment for receiving a BEB equipment or first stop spot net is sent;
Processing module, for receive at described receiver module that a BEB equipment or primary BEB equipment sends be used to indicate the flow control information of the forward-path fault between a BEB equipment and primary BEB equipment after, enable the forward-path between this equipment and a BEB equipment;
Sending module, for forwarding the data flow of first stop spot net to a BEB equipment by the forward-path between this equipment and a BEB equipment.
The method that above-mentioned modules performs corresponding function see embodiment three, can repeat no more here.
To sum up, the above embodiment of the application can reach following technique effect:
In the SPBM network of many ownership (comprising dual-homed) networking, find mutually between at least two the BEB equipment being connected to same station network (being called first stop spot net), elect main BEB equipment and BEB equipment for subsequent use and notice away, and these at least two BEB equipment belong to same Service Instance and far-end BEB equipment except these at least two BEB equipment is set up and enables the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use, when data flow will be sent to first stop spot net, data flow is sent by means of only the forward-path between this equipment and main BEB equipment, after detecting that the forward-path between this equipment and main BEB equipment breaks down, the forward-path between this equipment and primary BEB equipment can be blocked, enable the forward-path between this equipment and the BEB equipment for subsequent use selected, data flow is sent by the forward-path between this equipment and the BEB equipment for subsequent use of selection, thus data flow handoff has been arrived the BEB equipment for subsequent use of this selection.Pass through technique scheme, in the SPBM network of multi-home networking, for providing at least two forward-paths between first stop spot net and the remote station network of far-end BEB equipment connection: the forward-path between primary BEB equipment and this far-end BEB equipment and the forward-path between BEB equipment for subsequent use and this far-end BEB equipment, when forward-path between primary BEB equipment and this far-end BEB equipment is normal, use this path transmitting data flow, when this path failure, can rapidly by data flow handoff to the forward-path between BEB equipment for subsequent use and this far-end BEB equipment, the path achieving the forward-path between first stop spot net and remote station network is backed up and data flow switches fast.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, within all spirit in the application and principle, any amendment made, equivalent replacements, improvement etc., all should be included within scope that the application protects.

Claims (15)

1. the message forwarding method in the shortest path bridge SPBM network of a Mac-in-Mac pattern, at least two backbone edges bridge BEB equipment in described SPBM network are all connected with first stop spot net, described method is applied to a BEB equipment, a described BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment, it is characterized in that, described method comprises:
After the primary BEB equipment determined at least two BEB equipment that first stop spot net connects and BEB equipment for subsequent use, set up and enable the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use;
When data flow will be sent to first stop spot net, send described data flow by means of only the forward-path between this equipment and primary BEB equipment;
When the forward-path fault between this equipment and primary BEB equipment being detected, block the forward-path between this equipment and primary BEB equipment, enable the forward-path between this equipment and the BEB equipment for subsequent use selected, send described data flow by the forward-path between this equipment and the BEB equipment for subsequent use of described selection.
2. method according to claim 1, is characterized in that, determines that the method for primary BEB equipment at least two BEB equipment that first stop spot net connects and BEB equipment for subsequent use comprises:
Receive many ownership advertised information that primary BEB equipment is sent, wherein, include in many ownership advertised information of reception: the site identity of first stop spot net, the backbone network media interviews control B-MAC address of BEB equipment for subsequent use and forwarding priority;
According to the many ownership advertised information received, determine that the BEB equipment sending described many ownership advertised information is primary BEB equipment, the BEB equipment indicated by B-MAC address comprised in described many ownership advertised information is BEB equipment for subsequent use, and primary BEB equipment and BEB equipment for subsequent use are all connected to first stop spot net.
3. method according to claim 1 and 2, is characterized in that, sets up and enables the forward-path between this equipment and primary BEB equipment, sets up and the method for blocking the forward-path between this equipment and BEB equipment for subsequent use comprises:
The forwarding information of the forward-path between this equipment calculated and primary BEB equipment, the forwarding information of forward-path between this equipment and the BEB equipment for subsequent use of described selection and the corresponding relation of link index are configured to during pseudo-line PW shows, wherein, the forwarding information of the forwarding information of the forward-path between this equipment and primary BEB equipment and the forward-path between this equipment and the BEB equipment for subsequent use of described selection corresponds to same link index; The state of the forwarding information of the forward-path between this equipment and primary BEB equipment is set to come into force, the state of the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of described selection is set to not come into force;
Or, the forwarding information of the forward-path between this equipment calculated and primary BEB equipment, the forwarding information of forward-path between this equipment and each BEB equipment for subsequent use and the corresponding relation of link index are configured to during PW shows, wherein, the forwarding information of the forwarding information of the forward-path between this equipment and primary BEB equipment and the forward-path between this equipment and each BEB equipment for subsequent use corresponds to same link index; The state of the forwarding information of the forward-path between this equipment and primary BEB equipment is set to come into force, the state of the forwarding information of the forward-path between this equipment and each BEB equipment for subsequent use is set to not come into force;
Or, the forwarding information of the forward-path between this equipment calculated and primary BEB equipment and the corresponding relation of the first link index are configured to during described PW shows, the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of described selection and the corresponding relation of the second link index are configured to during described PW shows, wherein, the first link index is different from the second link index and have binding relationship; The state of the forwarding information of the forward-path between this equipment and primary BEB equipment is set to come into force, the state of the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of described selection is set to not come into force;
Or, the forwarding information of the forward-path between this equipment calculated and primary BEB equipment and the corresponding relation of the first link index are configured to during described PW shows, the forwarding information of forward-path between this equipment and each BEB equipment for subsequent use and the corresponding relation of the second link index are configured to during described PW shows, wherein, the second link index that the forwarding information of the forward-path between this equipment from different BEB equipment for subsequent use is corresponding is different, and the first link index is all different from each second link index and have binding relationship; The state of the forwarding information of the forward-path between this equipment and primary BEB equipment is set to come into force, the state of the forwarding information of the forward-path between this equipment and each BEB equipment for subsequent use is set to not come into force;
Wherein, the BEB equipment for subsequent use of described selection is that a forwarding priority is only lower than the BEB equipment for subsequent use of primary BEB equipment.
4. method according to claim 3, is characterized in that, the described method sending described data flow by means of only the forward-path between this equipment and primary BEB equipment comprises:
Receive the Ethernet message from local site network, determine the Service Instance corresponding with the user network VLAN C-VLAN of the Ethernet message received and inbound port, wherein, the object user network media interviews control C-MAC address of described Ethernet message is the MAC Address in first stop spot net;
According to the object C-MAC address of described Ethernet message, in the example mac address table of the Service Instance determined, find corresponding outgoing interface;
The PW that if the outgoing interface found is link index to be identified, then in described PW table, find the forwarding information that state is the forward-path between this equipment and primary BEB equipment come into force according to this link index;
According to the forwarding information of the forward-path between this equipment found and primary BEB equipment, M-in-M encapsulation is carried out to described Ethernet message, and by the outbound port in this forwarding information, the M-in-M message after encapsulation is sent.
5. method according to claim 3, it is characterized in that, forward-path between described this equipment of obstruction and primary BEB equipment, the method of enabling the forward-path between this equipment and the BEB equipment for subsequent use selected comprises: by the status modifier of the forwarding information of the forward-path between this equipment and primary BEB equipment for not come into force, by the status modifier of the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of described selection for coming into force;
Forward-path between described this equipment of obstruction and primary BEB equipment, while enabling the forward-path between this equipment and the BEB equipment for subsequent use selected, also send the flow control information of the forward-path fault be used to indicate between this equipment and primary BEB equipment to the BEB equipment for subsequent use of described selection.
6. method according to claim 5, is characterized in that, also comprises:
When detecting that the forward-path between this equipment and primary BEB equipment recovers normal, judge whether to need described data flow to switch back to primary BEB equipment;
If desired described data flow is switched back to primary BEB equipment, the BEB equipment for subsequent use to described selection is then stopped to send the flow control information of the forward-path fault be used to indicate between this equipment and primary BEB equipment, the BEB equipment transmission forward-path be used to indicate between this equipment and primary BEB equipment for subsequent use to primary BEB equipment and described selection recovers normal flow control information, by the status modifier of the forwarding information of the forward-path between this equipment and primary BEB equipment for coming into force, by the status modifier of the forwarding information of the forward-path between this equipment and the BEB equipment for subsequent use of described selection for not come into force.
7. the message forwarding method in the shortest path bridge SPBM network of a Mac-in-Mac pattern, at least two backbone edges bridge BEB equipment in described SPBM network are all connected with first stop spot net, arbitrary BEB equipment at least two BEB equipment described in described method is applied to, it is characterized in that, described method comprises:
Determine the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the primary BEB equipment of first stop spot net;
Set up and open the forward-path between this equipment and a BEB equipment, wherein, a described BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
When the data flow that will forward first stop spot net is to a BEB equipment, send described data flow by the forward-path between this equipment and a BEB equipment;
When the forward-path fault between this equipment and a BEB equipment being detected, block the forward-path between this equipment and a BEB equipment.
8. method according to claim 7, is characterized in that, described in determine this equipment connection first stop spot net and at least two BEB equipment connections, and this equipment is that the method for the primary BEB equipment of first stop spot net comprises:
To send to all station networks of this locality in the mode of multicast and belong to detection messages more, wherein, in many ownership detection messages of transmission, carry the backbone network media interviews control B-MAC address of this equipment and the forwarding priority of this equipment;
After receiving at least one neighbours BEB equipment many ownership detection messages next by the access device forwarding in first stop spot net, determine that first stop spot net is all connected with this equipment and at least one neighbours BEB equipment described, wherein, B-MAC address and the forwarding priority of neighbours BEB equipment is carried in many ownership detection messages of reception;
The relatively forwarding priority of this equipment and at least one neighbours BEB equipment described, when the forwarding priority of this equipment is the highest, determine that this equipment is primary BEB equipment, at least one neighbours BEB equipment described is BEB equipment for subsequent use;
Send to direct-connected backbone network core bridges BCB equipment and other BEB equipment and belong to advertised information more, wherein, include in many ownership advertised information of transmission: the site identity of first stop spot net, the B-MAC address of BEB equipment for subsequent use and forwarding priority.
9. method according to claim 8, is characterized in that, also comprises:
When the forward-path fault between this equipment and a BEB equipment being detected, the flow control information of the forward-path fault be used to indicate between this equipment and a BEB equipment is sent to the BEB equipment for subsequent use selected, send to the access device in first stop spot net and belong to detection messages more, wherein, mode field is carried in the many ownership detection messages sent, the value of this mode field is the first value, is used to indicate and deletes the MAC address entries that outgoing interface is the port being connected to this equipment;
When detecting that the forward-path between this equipment and a BEB equipment recovers normal, the forward-path be used to indicate between this equipment and a BEB equipment sent at the BEB equipment that receives enables the forward-path between this equipment and a BEB equipment after recovering normal flow control information.
10. the message forwarding method in the shortest path bridge SPBM network of a Mac-in-Mac pattern, at least two backbone edges bridge BEB equipment in described SPBM network are all connected with first stop spot net, arbitrary BEB equipment at least two BEB equipment described in described method is applied to, it is characterized in that, described method comprises:
Determine the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the BEB equipment for subsequent use of first stop spot net;
Set up and block the forward-path between this equipment and a BEB equipment, wherein, a described BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
The primary BEB equipment receiving a BEB equipment or first stop spot net send be used to indicate the flow control information of the forward-path fault between a BEB equipment and primary BEB equipment after, enable the forward-path between this equipment and a BEB equipment, forward the data flow of first stop spot net to a BEB equipment.
11. methods according to claim 10, is characterized in that, described in determine this equipment connection first stop spot net and at least two BEB equipment connections, and this equipment is that the method for the BEB equipment for subsequent use of first stop spot net comprises:
To send to all station networks of this locality in the mode of multicast and belong to detection messages more, wherein, in many ownership detection messages of transmission, carry the backbone network media interviews control B-MAC address of this equipment and the forwarding priority of this equipment;
After receiving at least one neighbours BEB equipment many ownership detection messages next by the access device forwarding in first stop spot net, determine that first stop spot net is all connected with this equipment and at least one neighbours BEB equipment described, wherein, B-MAC address and the forwarding priority of neighbours BEB equipment is carried in many ownership detection messages of reception;
The relatively forwarding priority of this equipment and at least one neighbours BEB equipment described, when forwarding priority lower than a neighbor device of the forwarding priority of this equipment, determines that this equipment is BEB equipment for subsequent use.
12. methods according to claim 10, is characterized in that, also comprise:
If within a predetermined period of time, the flow control information being used to indicate the forward-path fault between a BEB equipment and primary BEB equipment that the BEB equipment that do not receive is sent, and detect that primary BEB equipment is normal, then block the forward-path between this equipment and a BEB equipment, or, when the forward-path be used to indicate between a BEB equipment and primary BEB equipment that the BEB equipment that receives is sent recovers normal flow control information, block the forward-path between this equipment and a BEB equipment;
Send to the access device in first stop spot net and belong to detection messages more, wherein, carry B-MAC address and the mode field of this equipment in the many ownership detection messages sent, the value of this mode field is the first value, is used to indicate and deletes the MAC address entries that outgoing interface is the port being connected to this equipment.
Apparatus for forwarding message in the shortest path bridge SPBM network of 13. 1 kinds of Mac-in-Mac patterns, at least two backbone edges bridge BEB equipment in described SPBM network are all connected with first stop spot net, described application of installation is in a BEB equipment, a described BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment, it is characterized in that, described device comprises:
Determination module, for determining primary BEB equipment at least two BEB equipment that first stop spot net connects and BEB equipment for subsequent use;
Set up module, for setting up and enabling the forward-path between this equipment and primary BEB equipment, set up and block the forward-path between this equipment and BEB equipment for subsequent use;
Sending module, for when sending data flow to first stop spot net, sends described data flow by means of only the forward-path between this equipment and primary BEB equipment; Also for blocking the forward-path between this equipment and primary BEB equipment in described processing module, after enabling the forward-path between this equipment and the BEB equipment for subsequent use selected, send described data flow by the forward-path between this equipment and the BEB equipment for subsequent use of described selection;
Detection module, for detecting the state of the forward-path between this equipment and primary BEB equipment;
Processing module, during for the forward-path fault between this equipment and primary BEB equipment being detected at described detection module, block the forward-path between this equipment and primary BEB equipment, enable the forward-path between this equipment and the BEB equipment for subsequent use selected.
Apparatus for forwarding message in the shortest path bridge SPBM network of 14. 1 kinds of Mac-in-Mac patterns, at least two backbone edges bridge BEB equipment in described SPBM network are all connected with first stop spot net, the arbitrary BEB equipment of described application of installation in described at least two BEB equipment, it is characterized in that, described device comprises:
Determination module, for determining the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the primary BEB equipment of first stop spot net;
Set up module, for setting up and opening the forward-path between this equipment and a BEB equipment, wherein, a described BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
Sending module, for when the data flow that will forward first stop spot net is to a BEB equipment, sends described data flow by the forward-path between this equipment and a BEB equipment;
Detection module, for detecting the state of the forward-path between this equipment and a BEB equipment;
Processing module, during for the forward-path fault between this equipment and a BEB equipment being detected at described detection module, blocks the forward-path between this equipment and a BEB equipment.
Apparatus for forwarding message in the shortest path bridge SPBM network of 15. 1 kinds of Mac-in-Mac patterns, at least two backbone edges bridge BEB equipment in described SPBM network are all connected with first stop spot net, the arbitrary BEB equipment of described application of installation in described at least two BEB equipment, it is characterized in that, described device comprises:
Determination module, for determining the first stop spot net of this equipment connection and at least two BEB equipment connections, and this equipment is the BEB equipment for subsequent use of first stop spot net;
Set up module, for setting up and blocking the forward-path between this equipment and a BEB equipment, wherein, a described BEB equipment and described at least two BEB equipment belong to same Service Instance and are other BEB equipment except described at least two BEB equipment;
Receiver module, the flow control information being used to indicate the forward-path fault between a BEB equipment and primary BEB equipment that the primary BEB equipment for receiving a BEB equipment or first stop spot net is sent;
Processing module, for receive at described receiver module that a BEB equipment or primary BEB equipment sends be used to indicate the flow control information of the forward-path fault between a BEB equipment and primary BEB equipment after, enable the forward-path between this equipment and a BEB equipment;
Sending module, for forwarding the data flow of first stop spot net to a BEB equipment by the forward-path between this equipment and a BEB equipment.
CN201310213874.0A 2013-05-31 2013-05-31 Message forwarding method and device in SPBM network Active CN104219073B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310213874.0A CN104219073B (en) 2013-05-31 2013-05-31 Message forwarding method and device in SPBM network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310213874.0A CN104219073B (en) 2013-05-31 2013-05-31 Message forwarding method and device in SPBM network

Publications (2)

Publication Number Publication Date
CN104219073A true CN104219073A (en) 2014-12-17
CN104219073B CN104219073B (en) 2018-01-12

Family

ID=52100234

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310213874.0A Active CN104219073B (en) 2013-05-31 2013-05-31 Message forwarding method and device in SPBM network

Country Status (1)

Country Link
CN (1) CN104219073B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717143A (en) * 2015-03-12 2015-06-17 华为技术有限公司 Method and equipment for many-one reducibility scene multicast data transmission
CN105722144A (en) * 2016-01-28 2016-06-29 中国电力科学研究院 Communication method and system of power transmission line online monitoring data
CN109873760A (en) * 2017-12-01 2019-06-11 华为技术有限公司 Handle the method and apparatus of routing and the method and apparatus of data transmission

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050025069A1 (en) * 2003-08-01 2005-02-03 Nortel Networks Limited Method and apparatus for implementing hub-and-spoke topology virtual private networks
CN101674249A (en) * 2009-10-28 2010-03-17 杭州华三通信技术有限公司 Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN101795187A (en) * 2010-02-08 2010-08-04 杭州华三通信技术有限公司 Method, system and equipment for improving reliability of topologic network of central server
CN102104532A (en) * 2009-12-22 2011-06-22 杭州华三通信技术有限公司 Fault switching method and system and hub provider edge (Hub PE) router
CN102204223A (en) * 2008-10-28 2011-09-28 北方电讯网络有限公司 Provisioned provider link state bridging (plsb) with routed back-up

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050025069A1 (en) * 2003-08-01 2005-02-03 Nortel Networks Limited Method and apparatus for implementing hub-and-spoke topology virtual private networks
CN102204223A (en) * 2008-10-28 2011-09-28 北方电讯网络有限公司 Provisioned provider link state bridging (plsb) with routed back-up
CN101674249A (en) * 2009-10-28 2010-03-17 杭州华三通信技术有限公司 Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN102104532A (en) * 2009-12-22 2011-06-22 杭州华三通信技术有限公司 Fault switching method and system and hub provider edge (Hub PE) router
CN101795187A (en) * 2010-02-08 2010-08-04 杭州华三通信技术有限公司 Method, system and equipment for improving reliability of topologic network of central server

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717143A (en) * 2015-03-12 2015-06-17 华为技术有限公司 Method and equipment for many-one reducibility scene multicast data transmission
CN104717143B (en) * 2015-03-12 2018-03-02 华为技术有限公司 For returning the method and apparatus of scene muticast data transmission more
CN105722144A (en) * 2016-01-28 2016-06-29 中国电力科学研究院 Communication method and system of power transmission line online monitoring data
CN105722144B (en) * 2016-01-28 2021-10-01 中国电力科学研究院 Communication method and system for on-line monitoring data of power transmission line
CN109873760A (en) * 2017-12-01 2019-06-11 华为技术有限公司 Handle the method and apparatus of routing and the method and apparatus of data transmission
CN109873760B (en) * 2017-12-01 2020-08-07 华为技术有限公司 Method and device for processing route, and method and device for data transmission
US11533249B2 (en) 2017-12-01 2022-12-20 Huawei Technologies Co., Ltd. Route processing method and apparatus, and data transmission method and apparatus

Also Published As

Publication number Publication date
CN104219073B (en) 2018-01-12

Similar Documents

Publication Publication Date Title
CN103269299B (en) Message forwarding method in SPBM network and device
US9338052B2 (en) Method and apparatus for managing the interconnection between network domains
CN107819677B (en) Message forwarding method and device
EP2282453B1 (en) Routing frames in a shortest path computer network for a multi-homed legacy bridge node
US7787480B1 (en) Routing frames in a trill network using service VLAN identifiers
CN102333028B (en) Method and communication equipment for sending messages by using layered bi-layer virtual private network
US20060198315A1 (en) Communication apparatus
CN103259721B (en) Message forwarding method in SPBM network and device
US20080080535A1 (en) Method and system for transmitting packet
CN101442467B (en) Method for providing multipoint to multipoint connection in network based on operator backbone network transmission
CN103731288A (en) Message forwarding method and device
CN102007729A (en) Connectivity fault management traffic indication extension
JP2013507797A (en) Method and apparatus for exchanging routing information and establishing connections across multiple network regions
CN101674249A (en) Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN102882784A (en) LSP (Layered Service Provider) information flooding method and equipment in SPBM (Shortest Path Bridging MAC)
CN103067278B (en) A kind of method for transmission processing of Frame, equipment and system
EP3522454B1 (en) Connectivity fault management in a communication network
CN106936704B (en) Multi-path switching using hop-by-hop VLAN classification
CN103152283B (en) A kind of method and apparatus of aggregated links load balancing
CN103200107B (en) Message transmitting method and message transmitting equipment
CN103152265A (en) Message forwarding method and equipment in SPB (Shortest Path Bridge) network
CN104219073A (en) Message forwarding method and device in SPBM network
CN103685029B (en) Message forwarding method and equipment in a kind of rapid ring protection protocol networking
CN104009919A (en) Message forwarding method and device
JP5272896B2 (en) Network relay device, network, and frame transfer method

Legal Events

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

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

Applicant after: Xinhua three Technology Co., Ltd.

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

Applicant before: Huasan Communication Technology Co., Ltd.

GR01 Patent grant
GR01 Patent grant