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

Message forwarding method and device in SPBM network Download PDF

Info

Publication number
CN104219073B
CN104219073B CN201310213874.0A CN201310213874A CN104219073B CN 104219073 B CN104219073 B CN 104219073B CN 201310213874 A CN201310213874 A CN 201310213874A CN 104219073 B CN104219073 B CN 104219073B
Authority
CN
China
Prior art keywords
equipment
beb
beb equipment
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.)
Active
Application number
CN201310213874.0A
Other languages
Chinese (zh)
Other versions
CN104219073A (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.)
New H3C Technologies Co Ltd
Original Assignee
New 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 New H3C Technologies Co Ltd filed Critical New 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

This application discloses the message forwarding method in a kind of SPBM network and device, at least two BEB equipment in SPBM network are connected with the first station network, and this method includes:After primary BEB equipment and standby BEB equipment at least two BEB equipment for determining the connection of the first station network, the forward-path established and enable this equipment between primary BEB equipment, the forward-path established and block this equipment between standby BEB equipment;When to send data flow to the first station network, data flow is only sent by the forward-path between this equipment and primary BEB equipment;When detecting the forward-path failure between this equipment and primary BEB equipment, the forward-path blocked between this equipment and primary BEB equipment, the forward-path between this equipment and the standby BEB equipment of a selection is enabled, data flow is sent by the forward-path between this equipment and the standby BEB equipment of selection.

Description

Message forwarding method and device in SPBM network
Technical field
The application is related to network communication technology field, message forwarding method and dress in more particularly to a kind of SPBM network Put.
Background technology
SPB(Shortest Path Bridging, shortest path bridge)It is a kind of ether network mark that IEEE802.1aq is defined Standard, it is MSTP(Multiple Spanning Tree Protocol, Multiple Spanning Tree Protocol)Further extension, it is intended to build The clog-free double layer network of large flat.SPB uses SPB IS-IS(Intermediate System to Intermediate System, Intermediate System-to-Intermediate System)To share the Link State in network, and each nodal parallel in network calculates respectively Shortest path between node, is avoided using STP(Spanning Tree Protocol, Spanning-Tree Protocol)What agreement was brought Unstability and the low deficiency of part of links utilization ratio.
IEEE802.1aq defines two kinds of SPB patterns:VLAN patterns(SPBV(Shortest Path Bridging The shortest path bridge of VLAN Mode, VLAN patterns))And M-in-M(Mac-in-Mac)Pattern(SPBM(Shortest Path The shortest path bridge of Bridging MAC Mode, M-in-M patterns))Pattern, wherein, SPBV agreement is extremely complex, at present base , without application, SPBM is current main recommendation pattern for this.SPBM mode inheritances message encapsulation format as defined in IEEE802.1ah And the thought of more examples, but the pass-through mode and control plane of datum plane have been redefined, link is learnt by SPB-IS-IS Status information, and the whole network synchronization is carried out, calculate forward-path.SPBM is a kind of two-layer VPN(Virtual Private Network, VPN)Technology, the M-in-M network models basic one that its network model defines with IEEE802.1ah Cause.As shown in figure 1, in SPBM network, backbone network mainly include the equipment of type such as BEB and BCB and these equipment it Between backbone links.
The various technical terms being related in SPBM network are explained below as follows:
BEB(Backbone Edge Bridge, backbone edges bridge):BEB equipment is the edge device of backbone network, Equivalent to MPLS(Multiprotocol Label Switching, multiprotocol label switching)PE in network(Provider Edge, service provider network edge)Equipment.It is responsible for the message progress M-in-M encapsulation from user network, and will To M-in-M messages be forwarded in backbone network, or the M-in-M messages from backbone network are decapsulated, and turn It is dealt into user network.
BCB(Backbone Core Bridge, backbone network core bridges):BCB equipment is the nucleus equipment of backbone network, 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 messages.BCB equipment only needs to E-Packet and learn in backbone network MAC Address, it is not necessary to learn substantial amounts of MAC in user network(Media Access Control, media access control)Ground Location, so as to reduce the cost of network design, also provide more preferable scalability for backbone network.
M-in-M messages:M-in-M messages are referred to as by the M-in-M messages encapsulated.
B-MAC/B-VLAN:BEB equipment can be that user's message stamps operation when carrying out M-in-M encapsulation to user's message The MAC Address and VLAN of business's distribution(Virtual Local Area Network, VLAN).This is distributed by operator MAC Address and VLAN be just referred to as B-MAC and B-VLAN.In backbone network, BCB equipment is exactly according to B-MAC and B- VLAN forwarding M-in-M messages.B-MAC includes:Source B-MAC and purpose B-MAC, BEB equipment are carrying out M- to user's message In-M encapsulate when, can using the MAC of oneself as source B-MAC, using the MAC of the BEB equipment of SPBM tunnels destination as purpose B- MAC is packaged.
Backbone links/access link:Link between BEB equipment and BCB equipment and between BCB equipment is referred to as backbone Link, the link of BEB equipment connection user network is access link.User's message from user network is packaged into M-in-M After message, it can be forwarded by the corresponding backbone links of BEB equipment;And the M-in-M messages from backbone network are decapsulated Afterwards, can be forwarded according to customer objective MAC Address by the corresponding access link of BEB equipment.
Service Instance and I-SID:In backbone network, a Service Instance represents a kind of business or user, I-SID (Backbone Service Instance Identifier, backbone network Service Instance numbering)It is unique volume of Service Instance Number.
(1)SPBM datum plane
SPBM inherits the encapsulation format for the M-in-M messages that IEEE802.1ah is defined, in M-in-M encapsulation process, The outer layer of the original ether network packet of user adds Service Instance, B-VLAN labels, B-MAC address informations, and backbone network leads to The M-in-M messages that these information obtain encapsulation are crossed to forward.
The relational language being related in M-in-M messages is explained below as follows:
B-DA(Backbone Destination MAC address, backbone network target MAC (Media Access Control) address):That is purpose B-MAC, It is the outer layer target MAC (Media Access Control) address of M-in-M encapsulation, is the MAC Address of the BEB equipment of SPBM tunnels destination.
B-SA(Backbone Source MAC address, backbone network source MAC):That is source B-MAC, it is M-in-M The outer layer source MAC of encapsulation, it is the MAC Address of the BEB equipment of SPBM tunnels source.
B-Tag(Backbone VLAN Tag, backbone network VLAN tag):That is B-VLAN Tag, it is the outer of M-in-M encapsulation Layer VLAN Tag, for VLAN and precedence information of the identification message in backbone network, its TPID(Tag Protocol Identifier, tag protocol identifier)Value is fixed as 0x88a8.
I-Tag(Backbone Service Instance Tag, backbone network service instance tag):In M-in-M encapsulation Service marker, including:Message in BEB equipment handle when transmission priority I-PCP and loss priority I-DEI, mark The I-SID of Service Instance, its TPID value are fixed as 0x88e7.
C-DA(Customer Destination MAC address, user network target MAC (Media Access Control) address):User's message is former The target MAC (Media Access Control) address of beginning.
C-SA(Customer Destination MAC address, user network source MAC):User's message is original Source MAC.
BEB equipment is after the user-side port of connection user network receives user's message, according to message inbound port and VLAN It is mapped in corresponding Service Instance and carries out forwarding of tabling look-up, if the outgoing interface found is SPBM tunnel faces, according to the service The mapping relations of example and B-VLAN, B-Tag is obtained, then using I-SID, B-Tag and B-MAC of the Service Instance to the use Family message carries out M-in-M tunnel encapsulations.After message after M-in-M tunnel encapsulations enters in SPT regions, BCB equipment Forwarded according to B-MAC, B-VLAN of heading.The not dynamic learning MAC Address in B-VLAN, abandon full F broadcast report The multicast message of text, the unicast message of unknown address and unknown address, and entered in message Ingress according to B-SA and B-VLAN Row RPF(Reverse Path Forwarding, inverse path forwarding)Check, to prevent loops;Forwarding-table item in B-VLAN Including:Unicast list item and multicast list, all by being brushed under SPB-IS-IS.Only need to allow the data in B-VLAN in backbone links Stream passes through.
(2)SPBM control plane
Dynamic learning MAC Address, its forwarding-table item are learnt by control plane SPB-IS-IS to SPBM in B-VLAN And lower brush.SPB-IS-IS function includes:
1)The is-is neighbor established between SPB bridges, carry out the quick renewal and synchronization of LSD.
2)I-SID notice, the notice of Load Sharing Algorithm.
3)Each nodal parallel calculates SPT(Shortest Path Tree, shortest path tree), and issued to datum plane Forwarding-table item.
At present, in order to strengthen reliability and link backup, for important user network, can be accessed using dual-homed mode To backbone network, i.e. a user network is connected to two BEB equipment.As shown in Fig. 2 Site(Website)1 passes through interchanger SW1 accesses two BEB equipment BEB1 and BEB2.So, when BEB1 failures, Site1 can be entered by BEB2 and distal end Site Row communication.For anti-loops, it will usually enable the agreement of anti-loops, such as STP on website.So as to shown in Fig. 2 , can be by SW1 connections BEB2 link obstructions when BEB1 is normal in SPBM network.
Although existing dual-homing networking, the link that BEB equipment can be linked into website is protected, due to Link between the BEB equipment and distal end BEB equipment of website access only has one, therefore, when the link breaks down, meeting Cause not communicated between the website that the website connects with distal end BEB equipment.For example, in fig. 2, as BEB1 and BEB3 Between link when breaking down, Site1 and Site2 can not enter row data communication.
The content of the invention
This application provides the message forwarding method in a kind of SPBM network and device, to solve at existing dual-homed group In the SPBM network of net, when website access BEB equipment and distal end BEB equipment between link break down when, the website with The problem of can not being communicated between the website of distal end BEB equipment connection.
The technical scheme of the application is as follows:
On the one hand, there is provided the message forwarding method in a kind of SPBM network, at least two BEB equipment in SPBM network It is connected with the first station network, this method is applied to the first BEB equipment, the first BEB equipment and at least two BEB equipment category In same Service Instance and it is other BEB equipment in addition at least two BEB equipment, this method includes:
Primary BEB equipment and standby BEB equipment at least two BEB equipment for determining the connection of the first station network Afterwards, the forward-path established and enable this equipment between primary BEB equipment, establishes and blocks this equipment and set with standby BEB Forward-path between standby;
When to send data flow to the first station network, only pass through the forwarding road between this equipment and primary BEB equipment Footpath sends data flow;
When detecting the forward-path failure between this equipment and primary BEB equipment, block this equipment and set with primary BEB Forward-path between standby, enable the forward-path between this equipment and the standby BEB equipment of a selection, by this equipment with Forward-path between the standby BEB equipment of selection sends data flow.
On the other hand, the message forwarding method in a kind of SPBM network is additionally provided, at least two BEB in SPBM network Equipment is connected with the first station network, and this method is applied to any BEB equipment at least two BEB equipment, this method Including:
Determine that the first station network of this equipment connection is connected with least two BEB equipment, and this equipment is first The primary BEB equipment of station network;
The forward-path established and open this equipment between the first BEB equipment, wherein, the first BEB equipment with it is described extremely Few two BEB equipment belong to same Service Instance and are other BEB equipment in addition at least two BEB equipment;
When to forward the data flow of the first station network to the first BEB equipment, by this equipment and the first BEB equipment it Between forward-path send data flow;
When detecting the forward-path failure between this equipment and the first BEB equipment, block this equipment and set with the first BEB Forward-path between standby.
Another aspect, additionally provides the message forwarding method in a kind of SPBM network, at least two BEB in SPBM network Equipment is connected with the first station network, and this method is applied to any BEB equipment at least two BEB equipment, this method bag Include:
Determine that the first station network of this equipment connection is connected with least two BEB equipment, and this equipment is first The standby BEB equipment of station network;
The forward-path established and block this equipment between the first BEB equipment, wherein, the first BEB equipment with it is described extremely Few two BEB equipment belong to same Service Instance and are other BEB equipment in addition at least two BEB equipment;
It is used to indicate that the first BEB to be set what the primary BEB equipment for receiving the first BEB equipment or the first station network was sent After the flow control information of the standby forward-path failure between primary BEB equipment, enable this equipment and the first BEB equipment it Between forward-path, forward the first station network data flow to the first BEB equipment.
Another aspect, additionally provides the apparatus for forwarding message in a kind of SPBM network, at least two BEB in SPBM network Equipment is connected with the first station network, and the device is applied to the first BEB equipment, the first BEB equipment and at least two BEB Equipment belongs to same Service Instance and is other BEB equipment in addition at least two BEB equipment, and the device includes:
Determining module, for determine the first station network connection at least two BEB equipment in primary BEB equipment and Standby BEB equipment;
Module is established, for establishing and enabling the forward-path between this equipment and primary BEB equipment, establishes and blocks this Forward-path between equipment and standby BEB equipment;
Sending module, for when to send data flow to the first station network, only passing through this equipment and primary BEB equipment Between forward-path send data flow;It is additionally operable to block the forwarding between this equipment and primary BEB equipment in processing module Path, after enabling the forward-path between this equipment and the standby BEB equipment of a selection, pass through this equipment and selection Forward-path between standby BEB equipment sends data flow;
Detection module, for detecting the state of the forward-path between this equipment and primary BEB equipment;
Processing module, during for detecting the forward-path failure between this equipment and primary BEB equipment in detection module, The forward-path blocked between this equipment and primary BEB equipment, enable between this equipment and the standby BEB equipment of a selection Forward-path.
Another aspect, additionally provides the apparatus for forwarding message in a kind of SPBM network, at least two BEB in SPBM network Equipment is connected with the first station network, and the device is applied to any BEB equipment at least two BEB equipment, the device bag Include:
Determining module, for determining that the first station network of this equipment connection is connected with least two BEB equipment, and This equipment is the primary BEB equipment of the first station network;
Module is established, for establishing and opening the forward-path between this equipment and the first BEB equipment, wherein, the first BEB Equipment belongs to same Service Instance with least two BEB equipment and is other in addition at least two BEB equipment BEB equipment;
Sending module, for when to forward the data flow of the first station network to the first BEB equipment, by this equipment with Forward-path between first BEB equipment sends data flow;
Detection module, for detecting the state of the forward-path between this equipment and the first BEB equipment;
Processing module, during for detecting the forward-path failure between this equipment and the first BEB equipment in detection module, The forward-path blocked between this equipment and the first BEB equipment.
Another aspect, additionally provides the apparatus for forwarding message in a kind of SPBM network, at least two BEB in SPBM network Equipment is connected with the first station network, and the device is applied to any BEB equipment at least two BEB equipment, the device bag Include:
Determining module, for determining that the first station network of this equipment connection is connected with least two BEB equipment, and This equipment is the standby BEB equipment of the first station network;
Module is established, for establishing and blocking the forward-path between this equipment and the first BEB equipment, wherein, the first BEB Equipment belongs to same Service Instance with least two BEB equipment and is other in addition at least two BEB equipment BEB equipment;
Receiving module, what the primary BEB equipment for receiving the first BEB equipment or the first station network was sent is used to indicate The flow control information of forward-path failure between first BEB equipment and primary BEB equipment;
Processing module, for being used to indicate the receiving module receives the first BEB equipment or primary BEB equipment is sent After the flow control information of forward-path failure between one BEB equipment and primary BEB equipment, this equipment and first are enabled Forward-path between BEB equipment;
Sending module, for forwarding the first station network by the forward-path between this equipment and the first BEB equipment Data flow gives the first BEB equipment.
In the technical scheme of the application, belonging to more(Including dual-homed)In the SPBM network of networking, it is connected to same Individual station network(Referred to as the first station network)At least two BEB equipment between find mutually, elect main BEB equipment and standby With BEB equipment and notice away, belong to same service in addition to this at least two BEB equipment and with this at least two BEB equipment The forward-path that the distal end BEB equipment of example is established and enables this equipment between primary BEB equipment, establishes and blocks this equipment With the forward-path between standby BEB equipment, when to send data flow to the first station network, only pass through this equipment and master Forward-path between BEB equipment sends data flow, is detecting the appearance event of the forward-path between this equipment and main BEB equipment After barrier, the forward-path that can block between this equipment and primary BEB equipment, the standby BEB for enabling this equipment and a selection is set Forward-path between standby, data flow is sent by the forward-path between this equipment and the standby BEB equipment of selection, so that will Data flow handoff has arrived the standby BEB equipment of the selection.Pass through above-mentioned technical proposal, in the SPBM network of multi-home networking, At least two forward-paths are provided between the remote station network connected for the first station network and distal end BEB equipment:It is primary The forwarding road between forward-path and standby BEB equipment and distal end BEB equipment between BEB equipment and distal end BEB equipment Footpath, when the forward-path between primary BEB equipment and distal end BEB equipment is normal, using the path transmitting data flow, when the road , can be real rapidly by data flow handoff to the forward-path between standby BEB equipment and the distal end BEB equipment during failure of footpath The path backup and data flow for having showed the forward-path between the first station network and remote station network are switched fast.
Brief description of the drawings
Fig. 1 is a kind of typical networking schematic diagram of SPBM network;
Fig. 2 is a kind of typical networking schematic diagram of the SPBM network of dual-homing networking;
Fig. 3 is the flow chart of the message forwarding method in the SPBM network of embodiments herein one;
Fig. 4 is the flow chart of the message forwarding method in the SPBM network of embodiments herein two;
Fig. 5 is the message format schematic diagram of more ownership advertised informations of embodiments herein two;
Fig. 6 is the message format schematic diagram of more ownership detection messages of embodiments herein two;
Fig. 7 is the message format schematic diagram of the flow control information of embodiments herein two;
Fig. 8 is the flow chart of the message forwarding method in the SPBM network of embodiments herein three;
Fig. 9 is the structural representation of the apparatus for forwarding message in the SPBM network of embodiments herein five.
Embodiment
In order to solve in the SPBM network of existing dual-homing networking, when the BEB equipment of website access is set with distal end BEB When link between standby breaks down, the problem of can not be communicated between the website that the website connects with distal end BEB equipment, The message forwarding method in a kind of SPBM network and one kind are provided in the following examples of the application can apply this method Apparatus for forwarding message.
In the technical scheme of the application following examples, belonging to more(Including dual-homed)In the SPBM network of networking, even It is connected to same station network(Referred to as the first station network)At least two BEB equipment between find mutually, elect main BEB Equipment and standby BEB equipment are simultaneously noticed away, are belonged in addition to this at least two BEB equipment and with this at least two BEB equipment The forward-path that the distal end BEB equipment of same Service Instance is established and enables this equipment between primary BEB equipment, establishes and hinders The forward-path between this equipment and standby BEB equipment is filled in, when to send data flow to the first station network, only by originally setting The standby forward-path between main BEB equipment sends data flow, is detecting the forward-path between this equipment and main BEB equipment After failure, the forward-path that can block between this equipment and primary BEB equipment, the standby of this equipment and selection is enabled Forward-path between BEB equipment, data flow is sent by the forward-path between this equipment and the standby BEB equipment of selection, So as to which data flow handoff to have been arrived to the standby BEB equipment of the selection.Pass through above-mentioned technical proposal, in the SPBM nets of multi-home networking In network, at least two forward-paths are provided between the first station network and the remote station network of distal end BEB equipment connection: Turn between forward-path and standby BEB equipment and distal end BEB equipment between primary BEB equipment and distal end BEB equipment Path is sent out, when the forward-path between primary BEB equipment and distal end BEB equipment is normal, using the path transmitting data flow, when , can be rapidly by data flow handoff to the forwarding road between standby BEB equipment and the distal end BEB equipment during path failure Footpath, the path backup and data flow for realizing the forward-path between the first station network and remote station network are switched fast.
In the SPBM network of following examples, some station network, referred to as the first station network are simultaneously with least two Individual BEB equipment connection.CFD can be disposed between the access device in BEB equipment and its station network of connection (Connectivity Fault Detection, connect error detection).In following examples, enter only for a Service Instance Row explanation, when multiple Service Instances be present, performed for each Service Instance according to the method for following examples.
Embodiment one
Message forwarding method in the SPBM network of the embodiment of the present application can be by meeting following condition in SPBM network Any BEB equipment, referred to as the first BEB equipment performs:At least two BEB equipment with being connected to the first station network belong to Same Service Instance and other BEB equipment in addition to this at least two BEB equipment.
As shown in figure 3, the message forwarding method comprises the following steps:
Step S301, the primary BEB equipment and standby at least two BEB equipment for determining the connection of the first station network After BEB equipment, the forward-path establishing and enable this equipment between primary BEB equipment, establish and block this equipment with Forward-path between standby BEB equipment;
In step S301, determine the first station network connection at least two BEB equipment in primary BEB equipment and The method of standby BEB equipment comprises the following steps 1-2:
Step 1:More ownership advertised informations that primary BEB equipment is sent are received, wherein, more ownership advertised informations of reception In include:The site identity of first station network, the B-MAC addresses of standby BEB equipment and forwarding priority;
Wherein, the specific form for more ownership advertised informations that primary BEB equipment is sent may refer to embodiment two, here not Repeat again.
Step 2:According to the more ownership advertised informations received in step 1, determine to send more ownership advertised informations BEB equipment is primary BEB equipment, and the BEB equipment indicated by B-MAC addresses included in more ownership advertised informations is standby BEB equipment, primary BEB equipment and standby BEB equipment are connected to the first station network.
When actually implementing, more ownership advertised informations can carry to be sent in LSP messages, is carried when this equipment receives After the LSP messages of more ownership advertised informations, you can know that the BEB equipment for sending more ownership advertised informations is primary BEB equipment, The BEB equipment indicated by B-MAC addresses included in more ownership advertised informations is standby BEB equipment.So, calculating and building During vertical forward-path, it is possible to carried out according to step S301 method, the forward-path for choosing this equipment to primary BEB equipment is Main path, and preferably go out one from multiple standby BEB equipment, by turning between the standby BEB equipment of this equipment to the selection It is standby path to send out path.
In step S301, the forward-path establishing and enable this equipment between primary BEB equipment, establish and block this The method of forward-path between equipment and standby BEB equipment can use any one in following methods:
Method one:By the forwarding information of the forward-path between this equipment calculated and primary BEB equipment, this equipment with The forwarding information of forward-path and the corresponding relation of link index between the standby BEB equipment of one selection are configured to PW (Pseudo Wire, pseudo-wire)In table, as shown in table 1-1:
Table 1-1
In table 1-1, the forwarding information of the forward-path between this equipment and primary BEB equipment and this equipment and the selection Standby BEB equipment between the forwarding information of forward-path correspond to same link index(It is assumed to be 10);By this equipment The state of the forwarding information of forward-path between primary BEB equipment is arranged to come into force(Band U is marked, and represents to be used), The state of the forwarding information of forward-path between this equipment and the standby BEB equipment of the selection is arranged to not come into force(Without U Mark).In actual implementation process, forwarding information includes:I-SID, B-MAC, B-VLAN and outgoing interface of Service Instance etc..
Second method:By the forwarding information of the forward-path between this equipment calculated and primary BEB equipment, originally set The standby forwarding information of forward-path and the corresponding relation of link index between each standby BEB equipment is configured to PW tables In, as shown in table 1-2:
Table 1-2
In table 1-2, it is assumed that have N number of standby BEB equipment, N >=1, N are natural number, between this equipment and primary BEB equipment Forward-path forwarding information and this equipment and each standby BEB equipment between the forwarding information of forward-path correspond to Same link index(It is assumed to be 10);By the state of the forwarding information of the forward-path between this equipment and primary BEB equipment It is arranged to come into force(Band U is marked, and represents to be used), by the forward-path between this equipment and each standby BEB equipment The state of forwarding information is arranged to not come into force(Marked without U).In actual implementation process, forwarding information includes:Service is real I-SID, B-MAC, B-VLAN and outgoing interface of example etc..
The third method:By the forwarding information of the forward-path between this equipment calculated and primary BEB equipment and The corresponding relation of one link index is configured in PW tables, by the forward-path between this equipment and the standby BEB equipment of the selection Forwarding information and the corresponding relation of the second link index be configured in PW tables, as shown in table 1-3:
Table 1-3
In table 1-3, the first link index(It is assumed to be 10)With the second link index(It is assumed to be 11)It is different and with tying up Determine relation, can be by being embodied corresponding to identical Site, it is assumed that both correspond to Site1;By this equipment and primary BEB equipment Between the state of forwarding information of forward-path be arranged to come into force(Band U is marked, and represents to be used), by this equipment with it is described The state of the forwarding information of forward-path between the standby BEB equipment of selection is arranged to not come into force(Marked without U).In reality In implementation process, forwarding information includes:I-SID, B-MAC, B-VLAN and outgoing interface of Service Instance etc..
4th kind of method:By the forwarding information of the forward-path between this equipment calculated and primary BEB equipment and The corresponding relation of one link index is configured in PW tables, by the forward-path between this equipment and each standby BEB equipment Forwarding information and the corresponding relation of the second link index are configured in PW tables, as shown in table 1-4:
Table 1-4
In table 1-4, the second chain corresponding to the forwarding information of the forward-path between this equipment and different standby BEB equipment Road index is different, it is assumed that for 11 ..., 21, the first link index(It is assumed to be 10)With each second link index(11、…、21) It is different and there is binding relationship, can be by being embodied corresponding to identical Site, it is assumed that both correspond to Site1;To originally it set The state of the forwarding information of the standby forward-path between primary BEB equipment is arranged to come into force(Band U is marked, and expression makes With), the state of the forwarding information of the forward-path between this equipment and each standby BEB equipment is arranged to not come into force(No Band U is marked).In actual implementation process, forwarding information includes:I-SID, B-MAC, B-VLAN and outgoing interface of Service Instance Deng.
The standby BEB equipment of above-mentioned selection for example can be that a forwarding priority is only below the standby of primary BEB equipment BEB equipment.Can also be a standby BEB equipment for meeting other conditions, the application is not limited this.
In actual implementation process, more ownership detection work(can be enabled in each BEB equipment in SPBM network in advance Can, it is assured that out this equipment whether in multi-home networking using the function, i.e. to be in the station network of this equipment connection The no station network for having while being connected with least two BEB equipment, i.e. the more attributable system access backbone networks of the station network.Or Person, more ownership detection functions can also be only enabled at least two BEB equipment that station network connects simultaneously, the application is to this Do not limit.In the present embodiment one, this equipment can detect this equipment not in the first station network more by belonging to detection function Multi-home networking in.Specific more ownership detection methods may refer to embodiment two, repeat no more here.
Step S302, when to send data flow to the first station network, only by between this equipment and primary BEB equipment Forward-path send the data flow;
In step s 302, the method that data flow is only sent by the forward-path between this equipment and primary BEB equipment Comprise the following steps 1-4:
Step 1:The ether network packet from local site network is received, it is determined that the C- with the ether network packet of reception VLAN(Customer Virtual Local Area Network, user network VLAN)With inbound port corresponding to clothes Pragmatic example, wherein, the purpose C-MAC of the ether network packet(Customer MAC address, user network MAC Address)Address It is the MAC Address of some main frame in the first station network;
Due to preserving the corresponding relation of port and C-VLAN and Service Instance in BEB equipment, therefore, ether is being received , can be according to the inbound port of the ether network packet after network packet(That is, the port of the ether network packet is received)With the Ethernet The C-VLAN carried in message, find the corresponding Service Instance identified with I-SID.
Step 2:According to the purpose C-MAC addresses of the ether network packet, the example of the Service Instance determined in step 1 Mac address table(As shown in table 2)In find corresponding outgoing interface;
Table 2
Purpose C-MAC addresses Outgoing interface Ageing time(Aging)
In table 2, for the MAC Address in the local site network that learns(That is C-MAC addresses), go out to connect corresponding to it Mouth is actual physical port.For example, after an ether network packet is received, if the source MAC in the ether network packet It is unknown, will just includes the source MAC, the list item of inbound port of the ether network packet is configured to pair as shown in table 2 In the example mac address table for the Service Instance answered.
For the MAC Address in the first station network for learning, its corresponding outgoing interface is exactly this BEB equipment with being connected The BEB equipment of first station network(Primary BEB equipment or standby BEB equipment)Between PW corresponding to Link ID.For example, After receiving a M-in-M message, according to the source B-MAC addresses carried in the M-in-M messages and B-VLAN, in such as table 1-1 Matching list item is found into the PW tables shown in any of table 1-4, the M-in-M messages are decapsulated to obtain Ethernet Message, if the source MAC in the ether network packet(That is source C-MAC addresses)It is unknown, then will includes:Source MAC The example for the Service Instance that location, the I-SID that is configured in the M-in-M messages of list item of Link ID in matching list item are identified In mac address table, as shown in table 2.
When matching list item is found in the PW tables as shown in table 1-1 or table 1-2, in the first station network learnt Outgoing interface is always the same corresponding to MAC Address.
When matching list item is found in the PW tables as shown in table 1-3 or table 1-4, in the first station network learnt Outgoing interface corresponding to MAC Address is possible to change, when the Ethernet encapsulated in the M-in-M messages sent from primary BEB equipment Then, outgoing interface corresponding to MAC Address is exactly the forwarding road between this equipment and primary BEB equipment in PW tables to message learning Link ID corresponding to the forwarding information in footpath;When the Ethernet encapsulated in the M-in-M messages sent from some standby BEB equipment Then, outgoing interface corresponding to MAC Address is exactly the forwarding between this equipment and the standby BEB equipment in PW tables to message learning Link ID corresponding to the forwarding information in path.
Step 3:If the PW that the outgoing interface found, which is link index, to be identified, according to the link index in such as table 1-1 State is found into any of table 1-4 PW tables to come into force(That is band U is marked)This equipment and primary BEB equipment between turn Send out the forwarding information in path;
Due in table 1-1 or table 1-2, the forwarding information of the forward-path between this equipment and primary BEB equipment and this The corresponding Link ID of the forwarding information of forward-path between equipment and standby BEB equipment are identicals, therefore, according to the chain Road index can find a list item in table 1-1 or table 1-2, still, multiple forwarding informations be included in the list item, wherein only The state for having a forwarding information is to come into force(Band U is marked), i.e., the forwarding of the forward-path between this equipment and primary BEB equipment Information.
Due in table 1-3 or table 1-4, the forwarding information of the forward-path between this equipment and primary BEB equipment and this Link ID corresponding to the forwarding information of forward-path between equipment and standby BEB equipment are different but closed with binding System, therefore, finds the forwarding information pair that outgoing interface is the forward-path between this equipment and primary BEB equipment in step 2 The Link ID answered(It is assumed to be 10)Afterwards, other Link ID with Link ID1 bindings, such as Link can be found ID11, or Link ID11 ..., Link ID21, i.e. find the forward-path between this equipment and standby BEB equipment turn Photos and sending messages, so as to which at least two list items can be found in table 1-3 or table 1-4 according to the Link ID10, and still, this at least two The state for there was only the forwarding information of a list item in individual list item is to come into force(Band U is marked), i.e., between this equipment and primary BEB equipment Forward-path forwarding information.
Step 4:According to the forwarding information of the forward-path between this equipment found and primary BEB equipment, to ether Network packet carries out M-in-M encapsulation, and is sent the M-in-M messages after encapsulation by the exit port in the forwarding information.
Step S303, when detecting the forward-path failure between this equipment and primary BEB equipment, block this equipment with Forward-path between primary BEB equipment, the forward-path between this equipment and the standby BEB equipment of selection is enabled, pass through this Forward-path between equipment and the standby BEB equipment of the selection sends the data flow.
Whether the forward-path that this equipment can be detected between primary BEB equipment is normal, can be entered using CFD LB methods Row detection.After this equipment detects the path failure, then by data flow handoff to standby path.
Wherein, blocking the forward-path between this equipment and primary BEB equipment, enable this equipment selected with one it is standby While with forward-path between BEB equipment, it is also necessary to sent to the standby BEB equipment of the selection for indicating this equipment The flow control information of forward-path failure between primary BEB equipment.When actually implementing, when detecting this equipment and master During with forward-path failure between BEB equipment, this equipment periodically can be sent for indicating to the standby BEB equipment of selection The flow control information of forward-path failure between this equipment and primary BEB equipment, until detecting this equipment and primary BEB Forward-path between equipment recovers normal.What this equipment was sent is used to indicate the forwarding between this equipment and primary BEB equipment The flow control information of path failure can be carried in fault discovery message, now, the flow control of the fault discovery message Include the B-MAC addresses of this BEB equipment, the B-MAC addresses of primary BEB equipment, the I-SID of Service Instance, the event in information Barrier finds that in message time out period can also be included.
In step S303, the forward-path that blocks between this equipment and primary BEB equipment, this equipment and selection are enabled The method of forward-path between standby BEB equipment comprises the following steps 11-12:
Step 11:In the PW tables as shown in any of table 1-1 to table 1-4, by between this equipment and primary BEB equipment Forward-path forwarding information status modifier not come into force, by between this equipment and the standby BEB equipment of the selection The status modifier of the forwarding information of forward-path is comes into force, and now, table 1-1 renewals are updated for table 3- for table 3-1, table 1-2 2, table 1-3 renewal are updated for table 3-4 for table 3-3, table 1-4:
Table 3-1
Table 3-2
In table 3-2, it is assumed that standby BEB equipment 1 is the standby BEB equipment of selection.
Table 3-3
Table 3-4
In table 3-4, it is assumed that standby BEB equipment 1 is the standby BEB equipment of selection.
In addition, when detecting that the forward-path between this equipment and primary BEB equipment recovers normal, whether data flow returns Cut by this BEB equipment to control.Specifically, when the forward-path between this BEB equipment and primary BEB equipment(PW)Fault recovery Afterwards, between the two CFD LB detections are normal, and this BEB equipment can select data flow not to be switched back into primary BEB equipment at once, Can also select that data flow is switched back into 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, judge whether Need data flow switching back to primary BEB equipment;
For example, the switchback or when waiting switchback after certain time immediately when administrator configurations, it may be desirable to by data flow switchback To primary BEB equipment.
Step S402, data flow is if desired switched back into primary BEB equipment, then stop setting to the standby BEB of the selection Preparation send the flow control information for indicating the forward-path failure between this equipment and primary BEB equipment(State=1), to Primary BEB equipment and the standby BEB equipment of the selection are sent for indicating the forwarding road between this equipment and primary BEB equipment Recover normal flow control information in footpath(State=0);In the PW tables as shown in any of table 3-1 to table 3-4, will originally it set The status modifier of the forwarding information of the standby forward-path between primary BEB equipment is comes into force, by this equipment and the selection The status modifier of the forwarding information of forward-path between standby BEB equipment is does not come into force, and now, table 3-1 is updated for table 1- 1, table 3-2 renewal are updated for table 1-4 for table 1-2, table 3-3 renewals for table 1-3, table 3-4.
When needing to switch back to primary BEB equipment, this equipment first can be sent to primary BEB and the standby BEB equipment of selection For indicating that the forward-path between this equipment and primary BEB equipment recovers normal flow control information, then, this BEB is set It is standby can in neighbours' detection cycle or from primary BEB equipment receive first message when or it is set in advance in keeper In period, forward-path that data flow is switched back between this equipment and primary BEB equipment.
In actual implementation process, sent to the standby BEB equipment of primary BEB equipment and the selection for indicating originally to set The standby forward-path between primary BEB equipment recovers normal flow control information(State=0)It can carry extensive in failure Sent in multiple message.
Embodiment two
The method of the present embodiment can be set by any BEB being connected at least two BEB equipment of the first station network It is standby to perform.As shown in figure 4, this method comprises the following steps:
Step S501, determine that the first station network of this equipment connection is connected with least two BEB equipment, and originally set Standby is the primary BEB equipment of the first station network;
In step S501, determine that the first station network of this equipment connection is connected with least two BEB equipment, and This equipment comprises the following steps 21-24 for the method for the primary BEB equipment of the first station network:
Step 21:More ownership detection messages are sent to all station networks of local in a manner of multicast, wherein, transmission The B-MAC addresses of this equipment and the forwarding priority of this equipment are carried in more ownership detection messages;
Step 22:Receive at least one neighbours BEB equipment by access device in the first station network forward come More ownership detection messages after, determine that the first station network is all connected with this equipment and at least one neighbours BEB equipment, Wherein, B-MAC addresses and the forwarding priority of neighbours' BEB equipment are carried in more ownership detection messages of reception;
Step 23:Compare the forwarding priority of this equipment and at least one neighbours BEB equipment, when the forwarding of this equipment During highest priority, it is primary BEB equipment to determine this equipment, and at least one neighbours BEB equipment is standby BEB equipment;
After determining the first station network for more ownership accesses, compare in each more ownership detection messages received The forwarding priority of BEB equipment, the primary BEB equipment for the first station network of highest priority, remaining is that standby BEB is set It is standby;If forwarding priority is identical, it can further compare B-MAC addresses, for example, based on can specify that B-MAC addresses greatly With BEB equipment, can also provide B-MAC addresses it is big for primary BEB equipment, it is primary to select one by B-MAC addresses BEB equipment.
Step 24:More ownership advertised informations are sent to direct-connected BCB equipment and other BEB equipment, wherein, transmission return more Include in category advertised information:The site identity of first station network, the B-MAC addresses of standby BEB equipment and forwarding priority.
After primary BEB equipment and standby BEB equipment is determined, between primary BEB equipment and standby BEB equipment mutually Neighbours' detection messages of unicast are periodically sent, for detecting the state of other side.That is, primary BEB equipment is to standby BEB equipment Neighbours' detection messages are sent, standby BEB equipment sends neighbours' detection messages to primary BEB equipment.When actually implementing, Lin Jujian Observing and predicting text can carry in CFD LB(Loop fuction(Loopback, LB))Sent in message, i.e. be connected to same website net After at least two BEB equipment of network are mutually found, CFD LB inspections are established between primary BEB equipment and standby BEB equipment automatically Survey, detection cycle can be the smaller value in this BEB equipment and neighbours' detection cycle of opposite end.If received in 4 times of detection cycles Less than neighbours' detection messages of opposite end, then the link failure between peer failure or local terminal and opposite end is can consider.
In step 24, after this equipment as primary BEB equipment determines standby BEB equipment, can be sent out in this equipment More ownership advertised informations are carried in the LSP messages of cloth.More ownership advertised informations can be by TLV fields as shown in Figure 5 come real It is existing, the primary fields in more ownership advertised informations are explained below:
Multi-Attch(More ownership):For representing this TLV fields for more ownership advertised informations;
Length(Length):For indicating in this TLV fields except other fields of Multi-Detect and Length fields Length;
I-SID:The I-SID of corresponding with service example;
Site Number(Site number):The site identity of the station network of more ownership accesses;
B-MAC:The B-MAC addresses of standby BEB equipment, can there is one or more, and first B-MAC of acquiescence is that forwarding is excellent First level is only second to the standby BEB equipment of primary BEB equipment;
Preference(Priority):The forwarding priority of standby BEB equipment indicated by corresponding B-MAC, it is standby from this Obtained in more ownership detection messages that BEB equipment is sent, when Preference is full F, represent that there is phase with primary BEB equipment Same forwarding priority.
In actual implementation process, more ownership detection work(can be enabled in each BEB equipment in SPBM network in advance Can, it is assured that out this equipment whether in multi-home networking using the function, i.e. to be in the station network of this equipment connection The no station network for having while being connected with least two BEB equipment, i.e. the more attributable system access backbone networks of the station network.Or Person, more ownership detection functions can also be only enabled at least two BEB equipment that station network connects simultaneously, the application is to this Do not limit.
In actual implement, due to deploying CFD between BEB equipment and access device, therefore, this BEB equipment can incite somebody to action More ownership detection messages of multicast are carried in CFD messages, are multicast to by user's access link in local all station networks, Wherein, the source MAC of the CFD messages is the MAC Address for the port that this BEB equipment connects user's access link.Such as Fig. 6 institutes Show, more ownership detection messages can be by a TLV(Type Length Value, type lengths values)Field realizes, below it is right Primary fields in more ownership detection messages explain.
Multi-Detect(More ownership detections):For representing this TLV for more ownership detection messages;
Length(Length):For indicating in this TLV fields except other fields of Multi-Detect and Length fields Length;
State(State):State flag bit, when the value of the field is worth for first, for indicating that access device needs to delete Outgoing interface is the MAC address entries for the port for being connected to this BEB equipment;When the value of the field is second value, represent normal;It is actual to answer Used time, the first value can be 1, and second value can be 0;
Local BEB MAC(Local BEB MAC Address):The B-MAC addresses 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 advance Configuration;
Local Detect Time(The local detection time):Neighbours' detection cycle of this BEB equipment;
Nbr BEB MAC(The MAC Address of neighbours' BEB equipment):The B-MAC for neighbours' BEB equipment that this equipment has found Location, neighbours BEB equipment herein are namely connected to other BEB equipment of same station network with this equipment.The field If there are the B-MAC addresses of this equipment in the Nbr BEB MAC in the more ownership detection messages for acting as receiving, illustrate to send and be somebody's turn to do The BEB equipment of more ownership detection messages has discovered that oneself, with having discovered that it is primary that all BEB equipment of oneself are carried out The election of BEB equipment, if there is no the B-MAC addresses of this equipment in Nbr BEB MAC in the more ownership detection messages received, The BEB equipment for illustrating to send more ownership detection messages has not found oneself, continues to send more ownership detection messages, temporarily not Participate in the election of primary BEB equipment.
This BEB equipment is after step 21 is performed, the access device in local all station networks, such as access is handed over The CFD messages for carrying more ownership detection messages of this BEB equipment transmission can all be received by changing planes, as shown in Figure 6 when parsing More ownership detection messages in state field value be 0, it is normal to know state.Meanwhile the CFD messages are forwarded. So, if a station network of this BEB equipment connection is also connected with other BEB equipment(Belong to be present more), then this its His BEB equipment will receive the CFD messages of access device forwarding from user's access link.So as to be taken according in the CFD messages The forwarding priority of band, carries out the comparison of forwarding priority, finally elects primary BEB equipment, in addition to primary BEB equipment It is exactly standby BEB equipment.
Step S502, the forward-path established and open this equipment between the first BEB equipment, wherein, the first BEB equipment Belong to same Service Instance with least two BEB equipment and be other BEB in addition at least two BEB equipment Equipment;
In step S502, the forward-path establishing and open this equipment between the first BEB equipment can use existing The method of technology, is repeated no more here.
Step S503, when to forward the data flow of the first station network to the first BEB equipment, pass through this equipment and first Forward-path between BEB equipment sends the data flow;
Step S504, when detecting the forward-path failure between this equipment and the first BEB equipment, block this equipment with Forward-path between first BEB equipment;
Whether the forward-path that this equipment can be detected between the first BEB equipment is normal, can be entered using CFD LB methods Row detection.After this equipment detects the path failure, then the forward-path that blocks between this equipment and the first BEB equipment.
Step S505, when detecting the forward-path failure between this equipment and the first BEB equipment, selected to one Standby BEB equipment sends the flow control information for indicating the forward-path failure between this equipment and the first BEB equipment, to Access device in first station network sends more ownership detection messages, wherein, carried in more ownership detection messages of transmission Mode field, the value of the mode field is the first value, for indicating to delete the MAC table that outgoing interface is the port for being connected to this equipment , the standby BEB equipment of the selection is the standby BEB equipment that a forwarding priority is only below primary BEB equipment;
Just it is with lower port by outgoing interface after access device in first station network receives more ownership detection messages MAC table entry deletion:This access device is connected to the port for the BEB equipment for sending more ownership detection messages.
In step S505, when detecting the forward-path failure between this equipment and the first BEB equipment, as primary What this equipment of BEB equipment was sent is used to indicate the flow control of the forward-path failure between this equipment and the first BEB equipment Information, when implementing, what primary BEB equipment was sent is used to indicate the forward-path failure between this equipment and the first BEB equipment Flow control information can carry and sent in neighbours' detection messages.Flow control information can be realized using TLV fields, As shown in fig. 7, the primary fields in flow control information are explained below:
stream-control(Flow controls):For representing that this TLV fields are flow control information;
Length(Length):For indicating in this TLV fields except other fields of Multi-Detect and Length fields Length;
I-SID:The I-SID of corresponding with service example;
State(State):The link shape between the BEB equipment indicated by BEB MAC in this equipment and this TLV fields State, when the value of the field is worth for first, represent link failure;When the value is second value, link failure recovery is represented;It is actual During implementation, the first value can be 1, and second value can be 0;
BEB MAC(The MAC Address of BEB equipment):The B- of 0 or multiple BEB equipment can be carried in flow control information MAC Address, all BEB equipment is represented as no BEB MAC.
After primary BEB equipment detects the forward-path failure between the first BEB equipment, can be sent to it is standby Flow control information is carried in neighbours' detection messages of BEB equipment, now the value of the state field in the information is the first value, The value of BEB MAC fields is the B-MAC addresses of the first BEB equipment.
Step S506, when detecting that the forward-path between this equipment and the first BEB equipment recovers normal, receiving The forward-path being used to indicate between this equipment and the first BEB equipment that first BEB equipment is sent recovers normal flow control Information(State=0)Afterwards, the forward-path between this equipment and the first BEB equipment is enabled.
Primary BEB equipment is after the fault recovery message for carrying flow control information is received, if parsing outflow control letter The value of state field in breath is 0, then enables the forward-path between this equipment and the first BEB equipment at once.
Embodiment three
The method of the present embodiment can be set by any BEB being connected at least two BEB equipment of the first station network It is standby to perform.As shown in figure 8, this method comprises the following steps:
Step S601, determine that the first station network of this equipment connection is connected with least two BEB equipment, and originally set Standby is the standby BEB equipment of the first station network;
In step s 601, determine that the first station network of this equipment connection is connected with least two BEB equipment, and This equipment comprises the following steps 31-33 for the method for the standby BEB equipment of the first station network:
Step 31:More ownership detection messages are sent to all station networks of local in a manner of multicast, wherein, transmission The B-MAC addresses of this equipment and the forwarding priority of this equipment are carried in more ownership detection messages;
Step 32:Receive at least one neighbours BEB equipment by access device in the first station network forward come More ownership detection messages after, determine that the first station network is all connected with this equipment and at least one neighbours BEB equipment, Wherein, B-MAC addresses and the forwarding priority of neighbours' BEB equipment are carried in more ownership detection messages of reception;
In the step 32, after receiving more ownership detection messages, it can first check whether the I-SID in the message is this service The I-SID of example, if so, then checking that whether there is B-MAC addresses in this Service Instance is Local BEB MAC words in the message The BEB equipment of the value of section, if in the presence of, it is determined that the first station network where forwarding the access device of the message connects for more ownership The station network entered.
Step 33:Compare the forwarding priority of this equipment and at least one neighbours BEB equipment, when the forwarding of this equipment Priority less than neighbor device forwarding priority when, it is standby BEB equipment to determine this equipment.
Because primary BEB equipment determines this equipment(That is the primary BEB equipment)After primary BEB equipment, carrying can be sent There are the LSP messages of more ownership advertised informations, therefore, after standby BEB equipment receives, it is found that include in more ownership advertised informations This equipment(That is the standby BEB equipment)B-MAC addresses, then standby BEB equipment this standby BEB equipment can be set to primary BEB Forward-path obstruction between standby.
Step S602, the forward-path established and block this equipment between the first BEB equipment, wherein, the first BEB equipment Belong to same Service Instance with least two BEB equipment and be other BEB in addition at least two BEB equipment Equipment;
Step S603, it is used to indicate what the primary BEB equipment for receiving the first BEB equipment or the first station network was sent After the flow control information of forward-path failure between first BEB equipment and primary BEB equipment, this equipment and first are enabled Forward-path between BEB equipment, the data flow of the first station network is forwarded to the first BEB equipment.
When actually implementing, what primary BEB equipment was sent is used to indicate between the first BEB equipment and primary BEB equipment The flow control information of forward-path failure can carry to be sended in neighbours' detection messages, it is alternatively that standby BEB This equipment of equipment receives this and carries flow control information(State=1)Neighbours' detection messages after, it is believed that primary BEB equipment There is failure in forward-path between the first BEB equipment, enables the forward-path between this equipment and the first BEB equipment.
When actually implementing, what the first BEB equipment was sent is used to indicate between the first BEB equipment and primary BEB equipment The flow control information of forward-path failure can carry to be sended in fault discovery message, as standby BEB equipment This equipment receive fault discovery message after, can first check I-SID in the message in flow control information and this Service Instance I-SID whether match, if matching, the forward-path between this equipment and the first BEB equipment will be enabled, set from the first BEB It is standby(Identified with B-MAC addresses)The data flow sent can be forwarded to the first station network, i.e. only to the first station network forwarding the The data flow that one BEB equipment is sent, also, can be by the B- of the first BEB equipment in flow control information in fault discovery message MAC Address recorded in fault discovery message table.
In actual implementation process, this equipment as standby BEB equipment receives from primary BEB equipment carries flow control Information(State=1)Neighbours' detection messages after, if parsing State=1 of flow control information, i.e. state is failure, then The BEB MAC included in the flow control information are checked whether in fault discovery message table, if enabling this equipment and the Forward-path between one BEB equipment, make the data flow of the first station network from this BEB device forwards to the first BEB equipment;If Do not exist, then recorded in fault discovery message table, and enable the forward-path between this equipment and the first BEB equipment.Or Person, this equipment as standby BEB equipment receive carrying flow control information from primary BEB equipment(State=1)Neighbours inspection After observing and predicting text, if parsing State=1 of flow control information, i.e. state is failure, then enables this equipment and first immediately Forward-path between BEB equipment.
It is in addition, further comprising the steps of in the method:
Step S701, if within a predetermined period of time, not receiving the first BEB of instruction that is used for that the first BEB equipment is sent and setting The flow control information of the standby forward-path failure between primary BEB equipment, and detect that primary BEB equipment is normal, then hinder The forward-path between this equipment and the first BEB equipment is filled in, or, it is used to indicate the receive that the first BEB equipment sends Forward-path between one BEB equipment and primary BEB equipment recovers normal flow control information(State=0)When, obstruction is originally Forward-path between equipment and the first BEB equipment;
The forward-path event being used to indicate between the first BEB equipment and primary BEB equipment sent due to the first BEB equipment The flow control information of barrier can be carried in fault discovery message, include time out period in the fault discovery message, therefore, In step s 701, if not receiving fault discovery message again in time out period, and neighbours detect between primary BEB equipment Normally, the carrying flow control information that primary BEB equipment is sent is not received(State=1)Neighbours' detection messages, then obstruction this Forward-path between equipment and the first BEB equipment, stop forwarding the data flow that the first BEB equipment is sent.
Because what the first BEB equipment was sent is used to indicate that the forward-path between the first BEB equipment and primary BEB equipment to be extensive Multiple normal flow control information can be carried in fault recovery message, after standby BEB equipment receives the message, if parsing The value of state field in outflow control information be 0, then in a detection cycle or keeper setting period internal resistance Fill in the forward-path between this equipment and the first BEB equipment.
Step S702, the access device into the first station network send more ownership detection messages, wherein, transmission return more The B-MAC addresses and mode field of this equipment are carried in category detection messages, the value of the mode field is the first value, for indicating Delete the MAC address entries that outgoing interface is the port for being connected to this equipment.
After access device in first station network receives more ownership detection messages, mode field therein is found It is worth for the first value, then it is with the MAC address entries of lower port to delete outgoing interface:This access device, which is connected to, sends more ownership detection reports The port of the BEB equipment of text.
In above-described embodiment one into embodiment three, on the access device of the first station network, for accessing BEB equipment Link between forwarding data flow configuration level dividing function, i.e.,:As illustrated in fig. 2, it is assumed that SW1 access BEB1 Link1 and The Link2 for accessing BEB2 is access link, then, the message in addition to CFD messages is received from Link1, either purpose MAC Unicast message, broadcasting packet, multicast message known to location, or the unicast message that target MAC (Media Access Control) address is unknown, all without from Link2 is forwarded;Equally, will not also be forwarded from the Link2 messages received from Link1.The purpose for the arrangement is that it is Prevent that loop or website repeat to receive identical message between website.
Example IV
By taking the SPBM network of the dual-homing networking shown in Fig. 2 as an example, the method in above-described embodiment one to three is described in detail.
In fig. 2, station network Site1 includes:MAC Address is 1-1-1 PC1, and Site1 accesses BEB by SW1 and set Standby BEB1 and BEB2, where it is assumed that it is 1234, Service Instance that BEB1 B-MAC addresses, which are 0999-8888-0001, BVLAN, I-SID is that 1, forwarding priority is that 25, BEB2 B-MAC addresses are that 0999-8888-0002, BVLAN are 1234, Service Instances I-SID be 1, forwarding priority be 15, BEB3 B-MAC addresses be 0999-8888-0003, BVLAN be 1234, service it is real The I-SID of example is 1.Station network Site2 includes:MAC Address is 2-2-2 PC2, 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 BEB1 of Site1 and BEB2.More ownership detection functions are enabled on BEB1 and BEB2.It is assumed that when initial, each BEB equipment and access switch SW1, SW2 mac address table is all empty.Need to establish PW between BEB equipment.The concrete operations of the message forwarding method of the present embodiment Flow includes:
Step S801, BEB1 send the CFD messages for carrying more ownership detection messages to Site1 multicasts, therein to return more Belong in detection messages, State=0, Local BEB MAC=0999-8888-0001, Preference=25, I-SID=1, Nbr BEB MAC=0999-8888-0002;BEB2 sends the CFD messages for carrying more ownership detection messages to Site1 multicasts, wherein More ownership detection messages in, State=0, Local BEB MAC=0999-8888-0002, Preference=15, I-SID= 1、Nbr BEB MAC=0999-8888-0001;
In step S801 to be performed, it is assumed that now BEB1 have received more ownership detection messages that BEB2 is sent.
After SW1 in step S802, Site1 receives the CFD messages that BEB1 is sent, BEB2 is transmitted to after processing, equally, After receiving the CFD messages that BEB2 is sent, BEB1 is transmitted to after processing;
After step S803, BEB1 receive the CFD messages that SW1 forwardings come, determine Site1 it is dual-homed access this equipment and BEB2, also, because the Preference25 of this equipment is more than BEB2 Preference15, therefore, this equipment is primary BEB Equipment;After BEB2 receives the CFD messages that SW1 forwardings come, determine that Site1 is dual-homed and access this equipment and BEB1, also, by It is less than BEB1 Preference25 in the Preference15 of this equipment, therefore, this equipment is not primary BEB equipment;
Step S804, BEB1 can carry Site1 more ownership advertised informations in caused LSP messages, in more ownership In advertised information, I-SID=1, Site Number=1, B-MAC=0999-8888-0002, Preference=15;
Step S805, BEB3 have found that the Service Instance that BEB1 is I-SID1 exists after the LSP messages that BEB1 is sent are received Site1 primary BEB equipment, standby BEB equipment of the Service Instance in Site1 that BEB2 is I-SID1, then, and the sheet that will be calculated To BEB1 PW forwarding information, the PW of this equipment to BEB2 forwarding information is configured in PW tables equipment, and this equipment is arrived BEB2 PW forwarding information is arranged to not come into force;The PW tables can be as shown in table 4-1 or table 4-2:
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 have binding relationship.
In table 4-1 and table 4-2, the M in State represents that main PW, B represent standby PW, and U represents currently used PW, with U Mark represents that the PW is used(Come into force), marked without U and represent that the PW is not used(Do not come into force).
BEB2 has found Service Instances of the BEB1 for I-SID1 in the primary of Site1 after the LSP messages that BEB1 is sent are received BEB equipment, this equipment be I-SID1 Service Instance in Site1 standby BEB equipment, then, establish and block this equipment and arrive BEB3 PW, without the PW between regeneration cost equipment and BEB1;BEB1 establishes and enabled the PW that this equipment arrives BEB3, without again PW between raw capital equipment and BEB2;Between BEB1 and BEB2 by mutually periodically send unicast neighbours' detection messages Carry out neighbours' detection;
The ether network packet that PC1 is sent is transmitted to BEB1 and BEB2 by step S806, SW1, wherein, the ether network packet Source MAC is 1-1-1, and target MAC (Media Access Control) address is 2-2-2;
Step S807, after BEB1 receives the ether network packet, according to the target MAC (Media Access Control) address 2-2-2 of the ether network packet, M-in-M encapsulation is carried out to the ether network packet, the M-in-M messages that encapsulation obtains are transmitted to BEB3;BEB2 receive this with Too after network packet, because the PW between this equipment and BEB3 is blocked, so, BEB3 can not be forwarded the message to;
Step S808, after BEB3 receives the M-in-M messages that BEB1 is sent, the M-in-M messages decapsulate To ether network packet therein, the target MAC (Media Access Control) address 2-2-2 in the ether network packet is I-SID1's as shown in table 5 In the example mac address table of Service Instance, it is Port A to find corresponding outgoing interface, and the ether network packet is passed through into Port A PC2 is transmitted to by SW2;
Table 5
Purpose C-MAC addresses Outgoing interface Ageing time(Aging)
2-2-2 Port A XX
1-1-1 20 XX
The ether network packet that PC2 is replied is transmitted to BEB3 by step S809, SW2, wherein, the source MAC of the ether network packet Address is 2-2-2, and target MAC (Media Access Control) address is 1-1-1;
Step S810, after BEB3 receives the ether network packet, according to the target MAC (Media Access Control) address 1-1-1 of the ether network packet, In the example mac address table of I-SID1 as shown in table 5 Service Instance, it is Link ID20 to find corresponding outgoing interface The PW identified, then in the PW tables as shown in table 4-1 or 4-2, matching list item is found according to the Link ID20, wherein, A list item is found in table 4-1, the forwarding information of U marks is carried using the State in the list item:I-SID1、B- MAC0999-8888-0001, B-VLAN1234, M-in-M encapsulation is carried out to the ether network packet, two are found in table 4-2 List item, use the forwarding information in list items of one of State with U marks:I-SID1、B-MAC0999-8888-0001、 B-VLAN1234, M-in-M encapsulation is carried out to the ether network packet, the M-in-M messages that encapsulation obtains are forwarded;
Step S811, after BEB1 receives the M-in-M messages, the M-in-M messages are decapsulated to obtain therein Ether network packet, the ether network packet is transmitted to PC1 by SW1;
Step S812;After BEB1 detects the PW failures between this equipment and BEB3, sent to BEB2 and carry flow control Neighbours' detection messages of information processed, in flow control information therein, I-SID=1, State=1, BEBMAC=0999-8888- 0003, the PW between this equipment and BEB3 is blocked, sends more ownership detection messages to SW1, in more ownership detection messages Local BEB MAC=0999-8888-0001、State=1;SW1 is deleted out connect at once after more ownership detection messages are received Mouth is the MAC address entries for the port for being connected to BEB1;, will be such as table 4-1 after BEB3 detects the PW failures between this equipment and BEB1 Or in the PW tables shown in 4-2, the status modifier of the forwarding information of the PW between this equipment and BEB1 is M, by this equipment and BEB2 Between the PW status modifier of forwarding information be BU, now, table 4-1 renewals for table 6-1, table 4-2 renewals for table 6-2, Periodically sent to BEB2 and carry the fault discovery message of flow control information, in flow control information therein, I-SID =1、State=1、BEB MAC=0999-8888-0001;That is, the PW that BEB3 can block between BEB1, BEB3 do not reprocess from The message that BEB1 comes;
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 receive the above-mentioned neighbours' detection messages or receive the failure hair that BEB3 is sent that BEB1 sends After existing message, the PW between this equipment and BEB3 is enabled;
The ether network packet that PC1 is replied is transmitted to BEB1 and BEB2 by step S814, SW1, wherein, the ether network packet Source MAC is 1-1-1, and target MAC (Media Access Control) address is 2-2-2;
Step S815, after BEB2 receives the ether network packet, according to the target MAC (Media Access Control) address 2-2-2 of the ether network packet, M-in-M encapsulation is carried out to the ether network packet, the M-in-M messages that encapsulation obtains are transmitted to BEB3;BEB1 receive this with Too after network packet, because the PW between BEB1 and BEB3 is blocked, so, BEB3 can not be forwarded the message to;
Step S816, after BEB3 receives the M-in-M messages that BEB2 is sent, the M-in-M messages decapsulate To ether network packet therein, if PW tables as shown in table 4-2, in the example MAC of the Service Instance of the I-SID1 shown in table 5 In the table of location, outgoing interface corresponding to the source MAC 1-1-1 of the ether network packet is revised as Link ID21, table 5 be updated to as Shown in table 7;If PW tables as shown in table 4-1, need not update table 5;BEB3 is found in the example MAC table shown in table 5 or table 7 Outgoing interface Port A corresponding with the target MAC (Media Access Control) address 2-2-2 of the ether network packet, passes through the Port A by the ether network packet PC2 is transmitted to by SW2;
Table 7
Purpose C-MAC addresses Outgoing interface Ageing time(Aging)
2-2-2 Port A XX
1-1-1 21 XX
The ether network packet that PC2 is replied is transmitted to BEB3 by step S817, SW2, wherein, the source MAC of the ether network packet Address is 2-2-2, and target MAC (Media Access Control) address is 1-1-1;After BEB3 receives the ether network packet, according to the mesh of the ether network packet MAC Address 1-1-1, in the example mac address table of I-SID1 as shown in table 5 Service Instance, find corresponding to go out The PW that interface is identified by Link ID20, then in PW tables as shown in Table 6-1, matching list is found according to the Link ID20 , wherein, a list item is found in table 6-1, the forwarding information of U marks is carried using the State in the list item:I- SID1, B-MAC0999-8888-0002, B-VLAN1234, M-in-M encapsulation is carried out to the ether network packet, will encapsulate what is obtained M-in-M messages forward, or, in the example mac address table of I-SID1 as shown in table 7 Service Instance, find The PW that corresponding outgoing interface is identified by Link ID21, then two list items are found in table 6-2, use one of State Forwarding information in list item with U marks:I-SID1, B-MAC0999-8888-0002, B-VLAN1234, to the Ethernet Message carries out M-in-M encapsulation, and the M-in-M messages that encapsulation obtains are forwarded;
Step S818, after BEB2 receives the M-in-M messages, to being decapsulated to obtain wherein the M-in-M messages Ether network packet, according to the target MAC (Media Access Control) address 1-1-1 of the ether network packet, the ether network packet is transmitted to by SW1 PC1;
Step S819, BEB3 detect that the PW fault recoveries between this equipment and BEB1 are normal, i.e. CFD LB detections are normal, BEB3 can select, not at once by data flow switchback BEB1, can also select data flow switchback BEB1 at once;Prepare in BEB3 During by data flow switchback BEB1, stop sending fault discovery message to BEB2, sent to BEB1 and BEB2 and carry flow control letter The fault recovery message of breath, I-SID=1 of flow control information therein, State=0, BEB MAC=0999-8888-0001;
Step S820, after BEB1 receives the fault recovery message that BEB3 is sent, enables the PW between this equipment and BEB3; After BEB2 receives the fault recovery message that BEB3 is sent, the PW that blocks between this equipment and BEB3, more ownership inspections are sent to SW1 Observe and predict text, therein to belong in detection messages, Local BEBMAC=0999-8888-0002, State=1 more;SW1 is receiving this After more ownership detection messages, the MAC address entries that outgoing interface is the port for being connected to BEB2 are deleted at once.The same step of follow-up flow S806 is repeated no more here to step S811.
Embodiment five
For the method in embodiment one to embodiment three, the message forwarding in a kind of SPBM network is present embodiments provided Device, it is introduced below for structure of the device in applied to different BEB equipment.
1st, when the device is applied to the first BEB equipment, the first BEB equipment is with being connected at least the two of the first station network Individual BEB equipment belongs to same Service Instance and is other BEB equipment in addition to this at least two BEB equipment
As shown in figure 9, the device is included with lower module:
Determining module 101, the primary BEB at least two BEB equipment for determining the connection of the first station network are set Standby and standby BEB equipment;
Module 102 is established, for establishing and enabling the forward-path between this equipment and primary BEB equipment, establishes and hinders Fill in the forward-path between this equipment and standby BEB equipment;
Sending module 103, for when to send data flow to the first station network, only passing through this equipment and primary BEB Forward-path between equipment sends the data flow;It is additionally operable to block this equipment and primary BEB equipment in processing module 105 Between forward-path, enable this equipment and one selection standby BEB equipment between forward-path after, by originally setting The standby forward-path between the standby BEB equipment of selection sends the data flow;
Detection module 104, for detecting the state of the forward-path between this equipment and primary BEB equipment;
Processing module 105, for detecting the forward-path between this equipment and primary BEB equipment in detection module 104 During failure, the forward-path that blocks between this equipment and primary BEB equipment, enable this equipment and selection standby BEB equipment it Between forward-path.
The method that above modules perform corresponding function may refer to embodiment one, repeat no more here.
2nd, when the device is applied to any BEB equipment being connected at least two BEB equipment of the first station network
The device is included with lower module:
Determining module, for determining that the first station network of this equipment connection is connected with least two BEB equipment, and This equipment is the primary BEB equipment of the first station network;
Module is established, for establishing and opening the forward-path between this equipment and the first BEB equipment, wherein, the first BEB Equipment is any BEB equipment in addition at least two BEB equipment in the SPBM network;
Sending module, for when to forward the data flow of the first station network to the first BEB equipment, by this equipment with Forward-path between first BEB equipment sends the data flow;
Detection module, for detecting the state of the forward-path between this equipment and the first BEB equipment;
Processing module, for detecting the event of the forward-path between this equipment and the first BEB equipment in the detection module During barrier, the forward-path that blocks between this equipment and the first BEB equipment.
The method that above-mentioned modules perform corresponding function may refer to embodiment two, repeat no more here.
3rd, when the device is applied to any BEB equipment being connected at least two BEB equipment of the first station network
The device is included with lower module:
Determining module, for determining that the first station network of this equipment connection is connected with least two BEB equipment, and This equipment is the standby BEB equipment of the first station network;
Module is established, for establishing and blocking the forward-path between this equipment and the first BEB equipment, wherein, the first BEB Equipment is any BEB equipment in addition at least two BEB equipment in the SPBM network;
Receiving module, what the primary BEB equipment for receiving the first BEB equipment or the first station network was sent is used to indicate The flow control information of forward-path failure between first BEB equipment and primary BEB equipment;
Processing module, for the receiving module receives the first BEB equipment or what primary BEB equipment was sent is used to refer to After the flow control information for showing the forward-path failure between the first BEB equipment and primary BEB equipment, this equipment and the is enabled Forward-path between one BEB equipment;
Sending module, for forwarding the first station network by the forward-path between this equipment and the first BEB equipment Data flow gives the first BEB equipment.
The method that above-mentioned modules perform corresponding function may refer to embodiment three, repeat no more here.
To sum up, the application above example can reach following technique effect:
Belonging to more(Including dual-homed)In the SPBM network of networking, same station network is connected to(Referred to as first stop Spot net)At least two BEB equipment between find mutually, elect main BEB equipment and standby BEB equipment and notice away, Belong to same Service Instance with this at least two BEB equipment and the distal end BEB equipment in addition to this at least two BEB equipment is established And the forward-path between this equipment and primary BEB equipment is enabled, turn established and block this equipment between standby BEB equipment Path is sent out, when to send data flow to the first station network, is only sent out by the forward-path between this equipment and main BEB equipment Send data flow, detect the forward-path between this equipment and main BEB equipment break down after, can block this equipment with it is primary Forward-path between BEB equipment, the forward-path between this equipment and the standby BEB equipment of a selection is enabled, pass through this Forward-path between equipment and the standby BEB equipment of selection sends data flow, so as to which data flow handoff has been arrived into the selection Standby BEB equipment.Pass through above-mentioned technical proposal, it is the first station network and distal end BEB in the SPBM network of multi-home networking At least two forward-paths are provided between the remote station network of equipment connection:Primary BEB equipment and distal end BEB equipment it Between forward-path and standby BEB equipment and distal end BEB equipment between forward-path, primary BEB equipment and distal end BEB ,, can be rapidly by data when the path failure using the path transmitting data flow when forward-path between equipment is normal Stream is switched to the forward-path between standby BEB equipment and distal end BEB equipment, realizes the first station network and remote station The path backup of forward-path between network and data flow are switched fast.
The preferred embodiment of the application is the foregoing is only, not limiting the application, all essences in the application God any modification, equivalent substitution and improvements done etc., should be included within the scope of the application protection with principle.

Claims (12)

1. the message forwarding method in a kind of shortest path bridge SPBM network of Mac-in-Mac patterns, in the SPBM network At least two backbone edges bridge BEB equipment are connected with the first station network, and methods described is applied to the first BEB equipment, The first BEB equipment belongs to same Service Instance with least two BEB equipment and is except at least two BEB is set Other BEB equipment beyond standby, it is characterised in that methods described includes:
Determine the first station network connection at least two BEB equipment in primary BEB equipment and standby BEB equipment it Afterwards, the forward-path established and enable this first BEB equipment between primary BEB equipment, establish and block this equipment with it is standby Forward-path between BEB equipment;
When to send data flow to the first station network, only sent out by the forward-path between this equipment and primary BEB equipment Send the data flow;
When detecting the forward-path failure between this equipment and primary BEB equipment, block this equipment and primary BEB equipment it Between forward-path, enable this equipment and one selection standby BEB equipment between forward-path, by this equipment with it is described Forward-path between the standby BEB equipment of selection sends the data flow;
Wherein it is determined that the primary BEB equipment and standby BEB equipment that go out at least two BEB equipment of the first station network connection Method include:
More ownership advertised informations that primary BEB equipment is sent are received, wherein, include in more ownership advertised informations of reception: The site identity of first station network, the backbone network media access control B-MAC addresses of standby BEB equipment and forwarding priority;
According to more ownership advertised informations of reception, the BEB equipment for determining to send more ownership advertised informations sets for primary BEB Standby, the BEB equipment indicated by B-MAC addresses included in more ownership advertised informations is standby BEB equipment, and primary BEB is set Standby and standby BEB equipment is connected to the first station network.
2. according to the method for claim 1, it is characterised in that establish and enable this equipment between primary BEB equipment Forward-path, the method for the forward-path established and block this equipment between standby BEB equipment include:
By the forwarding information of the forward-path between this equipment calculated and primary BEB equipment, this equipment and the selection The forwarding information of forward-path and the corresponding relation of link index between standby BEB equipment are configured in pseudo-wire PW tables, wherein, The standby BEB equipment of the forwarding information of forward-path between this equipment and primary BEB equipment and this equipment and the selection it Between the forwarding information of forward-path correspond to same link index;By the forwarding road between this equipment and primary BEB equipment The state of the forwarding information in footpath is arranged to come into force, by the forward-path between this equipment and the standby BEB equipment of the selection The state of forwarding information is arranged to not come into force;
Or by the forwarding information of the forward-path between this equipment calculated and primary BEB equipment, this equipment and each The forwarding information of forward-path and the corresponding relation of link index between standby BEB equipment are configured in PW tables, wherein, originally set Forwarding between the forwarding information of the standby forward-path between primary BEB equipment and this equipment and each standby BEB equipment The forwarding information in path corresponds to same link index;By the forwarding of the forward-path between this equipment and primary BEB equipment The state of information is arranged to come into force, by the shape of the forwarding information of the forward-path between this equipment and each standby BEB equipment State is arranged to not come into force;
Or forwarding information and the first link index by the forward-path between this equipment calculated and primary BEB equipment Corresponding relation be configured in the PW tables, by the forward-path between this equipment and the standby BEB equipment of the selection turn Photos and sending messages and the corresponding relation of the second link index are configured in the PW tables, wherein, the first link index and the second link rope Draw difference and there is binding relationship;The state of the forwarding information of 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 standby BEB equipment of the selection is arranged to not Come into force;
Or forwarding information and the first link index by the forward-path between this equipment calculated and primary BEB equipment Corresponding relation be configured in the PW tables, the forwarding of the forward-path between this equipment and each standby BEB equipment is believed Breath and the corresponding relation of the second link index are configured in the PW tables, wherein, between this equipment and different standby BEB equipment Second link index corresponding to the forwarding information of forward-path is different, and the first link index and each second link index are different And there is binding relationship;The state of the forwarding information of forward-path between this equipment and primary BEB equipment is arranged to come into force, The state of the forwarding information of forward-path between this equipment and each standby BEB equipment is arranged to not come into force;
Wherein, the standby BEB equipment of the selection is the standby BEB equipment that a forwarding priority is only below primary BEB equipment.
3. according to the method for claim 2, it is characterised in that described only by between this equipment and primary BEB equipment The method that forward-path sends the data flow includes:
The ether network packet from local site network is received, it is determined that the user network virtual office with the ether network packet of reception Service Instance corresponding to C-VLAN and inbound port is netted in domain, wherein, the purpose user network media interviews control of the ether network packet C-MAC addresses processed are the MAC Address in the first station network;
According to the purpose C-MAC addresses of the ether network packet, it is determined that Service Instance example mac address table in find Corresponding outgoing interface;
If the PW that the outgoing interface found, which is link index, to be identified, shape is found in the PW tables according to the link index State is the forwarding information of the forward-path between this equipment and primary BEB equipment to come into force;
According to the forwarding information of the forward-path between this equipment found and primary BEB equipment, to the ether network packet M-in-M encapsulation is carried out, and is sent the M-in-M messages after encapsulation by the exit port in the forwarding information.
4. according to the method for claim 2, it is characterised in that turn blocked between this equipment and primary BEB equipment Path is sent out, enabling the method for the forward-path between this equipment and the standby BEB equipment of a selection includes:By this equipment and master With the status modifier of the forwarding information of the forward-path between BEB equipment not come into force, by the standby of this equipment and the selection The status modifier of the forwarding information of forward-path between BEB equipment is to come into force;
Forward-path between described this equipment of obstruction and primary BEB equipment, enable this equipment and the standby BEB of a selection While forward-path between equipment, also sent to the standby BEB equipment of the selection for indicating this equipment and primary BEB The flow control information of forward-path failure between equipment.
5. according to the method for claim 4, it is characterised in that also include:
When detecting that the forward-path between this equipment and primary BEB equipment recovers normal, judge whether to need the number Primary BEB equipment is switched back to according to stream;
If desired the data flow is switched back into primary BEB equipment, then stops sending to the standby BEB equipment of the selection and be used for The flow control information of the forward-path failure between this equipment and primary BEB equipment is indicated, to primary BEB equipment and the choosing The standby BEB equipment selected is sent for indicating that the forward-path between this equipment and primary BEB equipment recovers normal flow control Information processed, by the status modifier of the forwarding information of the forward-path between this equipment and primary BEB equipment to come into force, by this equipment The status modifier of the forwarding information of forward-path between the standby BEB equipment of the selection is does not come into force.
6. the message forwarding method in a kind of shortest path bridge SPBM network of Mac-in-Mac patterns, in the SPBM network At least two backbone edges bridge BEB equipment are connected with the first station network, and methods described is applied to described at least two Any BEB equipment in BEB equipment, it is characterised in that methods described includes:
Determine that the first station network of this equipment connection is connected with least two BEB equipment, and this equipment is the first website The primary BEB equipment of network;
The forward-path established and open this equipment between the first BEB equipment, wherein, the first BEB equipment with it is described extremely Few two BEB equipment belong to same Service Instance and are other BEB equipment in addition at least two BEB equipment;
When to forward the data flow of the first station network to the first BEB equipment, by between this equipment and the first BEB equipment Forward-path sends the data flow;
When detecting the forward-path failure between this equipment and the first BEB equipment, block this equipment and the first BEB equipment it Between forward-path;
Wherein, first station network for determining the connection of this equipment is connected with least two BEB equipment, and this equipment is The method of the primary BEB equipment of first station network includes:
More ownership detection messages are sent to all station networks of local in a manner of multicast, wherein, more ownership detection of transmission The backbone network media access control B-MAC addresses of this equipment and the forwarding priority of this equipment are carried in message;
The more ownership come detection is forwarded by access device in the first station network receiving at least one neighbours BEB equipment After message, determine that the first station network is all connected with this equipment and at least one neighbours BEB equipment, wherein, reception B-MAC addresses and the forwarding priority of neighbours' BEB equipment are carried in more ownership detection messages;
Compare the forwarding priority of this equipment and at least one neighbours BEB equipment, when the forwarding priority highest of this equipment When, it is primary BEB equipment to determine this equipment, and at least one neighbours BEB equipment is standby BEB equipment;
Send more ownership advertised informations to direct-connected backbone network core bridges BCB equipment and other BEB equipment, wherein, transmission it is more Include in ownership advertised information:The site identity of first station network, the B-MAC addresses of standby BEB equipment and forwarding are preferential Level.
7. according to the method for claim 6, it is characterised in that also include:
When detecting the forward-path failure between this equipment and the first BEB equipment, the standby BEB equipment selected to one is sent out The flow control information for indicating the forward-path failure between this equipment and the first BEB equipment is sent, to the first station network In access device send more ownership detection messages, wherein, carry mode field in more ownership detection messages of transmission, the shape The value of state field is the first value, for indicating to delete the MAC address entries that outgoing interface is the port for being connected to this equipment;
When detecting that the forward-path between this equipment and the first BEB equipment recovers normal, the first BEB equipment hair is being received After the forward-path being used to indicate between this equipment and the first BEB equipment come recovers normal flow control information, enable Forward-path between this equipment and the first BEB equipment.
8. the message forwarding method in a kind of shortest path bridge SPBM network of Mac-in-Mac patterns, in the SPBM network At least two backbone edges bridge BEB equipment are connected with the first station network, and methods described is applied to described at least two Any BEB equipment in BEB equipment, it is characterised in that methods described includes:
Determine that the first station network of this equipment connection is connected with least two BEB equipment, and this equipment is the first website The standby BEB equipment of network;
The forward-path established and block this equipment between the first BEB equipment, wherein, the first BEB equipment with it is described extremely Few two BEB equipment belong to same Service Instance and are other BEB equipment in addition at least two BEB equipment;
The primary BEB equipment for receiving the first BEB equipment or the first station network send be used for indicate the first BEB equipment with After the flow control information of forward-path failure between primary BEB equipment, enable between this equipment and the first BEB equipment Forward-path, the data flow of the first station network is forwarded to the first BEB equipment;
Wherein, first station network for determining the connection of this equipment is connected with least two BEB equipment, and this equipment is The method of the standby BEB equipment of first station network includes:
More ownership detection messages are sent to all station networks of local in a manner of multicast, wherein, more ownership detection of transmission The backbone network media access control B-MAC addresses of this equipment and the forwarding priority of this equipment are carried in message;
The more ownership come detection is forwarded by access device in the first station network receiving at least one neighbours BEB equipment After message, determine that the first station network is all connected with this equipment and at least one neighbours BEB equipment, wherein, reception B-MAC addresses and the forwarding priority of neighbours' BEB equipment are carried in more ownership detection messages;
Compare the forwarding priority of this equipment and at least one neighbours BEB equipment, when the forwarding priority of this equipment is less than During the forwarding priority of one neighbor device, it is standby BEB equipment to determine this equipment.
9. according to the method for claim 8, it is characterised in that also include:
If within a predetermined period of time, do not receive the first BEB equipment of instruction that is used for that the first BEB equipment is sent to set with primary BEB The flow control information of forward-path failure between standby, and detect that primary BEB equipment is normal, then block this equipment and first Forward-path between BEB equipment, or, receive that the first BEB equipment sends be used to indicate the first BEB equipment with it is primary When forward-path between BEB equipment recovers normal flow control information, block between this equipment and the first BEB equipment and turn Send out path;
Access device into the first station network sends more ownership detection messages, wherein, in more ownership detection messages of transmission The B-MAC addresses and mode field of this equipment are carried, the value of the mode field is the first value, for indicating that deleting outgoing interface is It is connected to the MAC address entries of the port of this equipment.
10. the apparatus for forwarding message in a kind of shortest path bridge SPBM network of Mac-in-Mac patterns, in the SPBM network At least two backbone edges bridge BEB equipment be connected with the first station network, described device is set applied to the first BEB Standby, the first BEB equipment belongs to same Service Instance with least two BEB equipment and is to remove at least two BEB Other BEB equipment beyond equipment, it is characterised in that described device includes:
Determining module, the primary BEB equipment and standby at least two BEB equipment for determining the connection of the first station network BEB equipment;Specifically include:More ownership advertised informations that primary BEB equipment is sent are received, wherein, more ownership notice of reception Include in information:The backbone network media access control B-MAC addresses of the site identity of first station network, standby BEB equipment And forwarding priority;According to more ownership advertised informations of reception, the BEB equipment for determining to send more ownership advertised informations is Primary BEB equipment, the BEB equipment belonged to indicated by the B-MAC addresses included in advertised informations are standby BEB equipment more, Primary BEB equipment and standby BEB equipment are connected to the first station network;
Module is established, for establishing and enabling the forward-path between this equipment and primary BEB equipment, establishes and blocks this equipment With the forward-path between standby BEB equipment;
Detection module, for detecting the state of the forward-path between this equipment and primary BEB equipment;
Processing module, during for detecting the forward-path failure between this equipment and primary BEB equipment in the detection module, The forward-path blocked between this equipment and primary BEB equipment, enable between this equipment and the standby BEB equipment of a selection Forward-path;
Sending module, for when will to the first station network send data flow when, only by between this equipment and primary BEB equipment Forward-path send the data flow;It is additionally operable to block between this equipment and primary BEB equipment in the processing module Forward-path, after enabling the forward-path between this equipment and the standby BEB equipment of a selection, pass through this equipment and institute The forward-path stated between the standby BEB equipment of selection sends the data flow.
11. the apparatus for forwarding message in a kind of shortest path bridge SPBM network of Mac-in-Mac patterns, in the SPBM network At least two backbone edges bridge BEB equipment be connected with the first station network, described device is applied to described at least two Any BEB equipment in individual BEB equipment, it is characterised in that described device includes:
Determining module, for determining that the first station network of this equipment connection is connected with least two BEB equipment, and originally set Standby is the primary BEB equipment of the first station network, is specifically included:All station networks transmission to local in a manner of multicast is more Belong to detection messages, wherein, the backbone network media access control B-MAC of this equipment is carried in more ownership detection messages of transmission Address and the forwarding priority of this equipment;Pass through the access in the first station network receiving at least one neighbours BEB equipment After more ownership detection messages that device forwards are come, the first station network and this equipment and at least one neighbours BEB are determined Equipment is all connected with, wherein, B-MAC addresses and the forwarding that neighbours' BEB equipment is carried in more ownership detection messages of reception are preferential Level;Compare the forwarding priority of this equipment and at least one neighbours BEB equipment, when the forwarding priority highest of this equipment When, it is primary BEB equipment to determine this equipment, and at least one neighbours BEB equipment is standby BEB equipment;To direct-connected bone Dry net core bridges BCB equipment and other BEB equipment send more ownership advertised informations, wherein, in more ownership advertised informations of transmission Include:The site identity of first station network, the B-MAC addresses of standby BEB equipment and forwarding priority;
Module is established, for establishing and opening the forward-path between this equipment and the first BEB equipment, wherein, the first BEB Equipment belongs to same Service Instance with least two BEB equipment and is other in addition at least two BEB equipment BEB equipment;
Sending module, for when to forward the data flow of the first station network to the first BEB equipment, passing through this equipment and first Forward-path between BEB equipment sends the data flow;
Detection module, for detecting the state of the forward-path between this equipment and the first BEB equipment;
Processing module, during for detecting the forward-path failure between this equipment and the first BEB equipment in the detection module, The forward-path blocked between this equipment and the first BEB equipment.
12. the apparatus for forwarding message in a kind of shortest path bridge SPBM network of Mac-in-Mac patterns, in the SPBM network At least two backbone edges bridge BEB equipment be connected with the first station network, described device is applied to described at least two Any BEB equipment in individual BEB equipment, it is characterised in that described device includes:
Determining module, for determining that the first station network of this equipment connection is connected with least two BEB equipment, and originally set Standby is the standby BEB equipment of the first station network;Specifically include:All station networks transmission to local in a manner of multicast is more Belong to detection messages, wherein, the backbone network media access control B-MAC of this equipment is carried in more ownership detection messages of transmission Address and the forwarding priority of this equipment;Pass through the access in the first station network receiving at least one neighbours BEB equipment After more ownership detection messages that device forwards are come, the first station network and this equipment and at least one neighbours BEB are determined Equipment is all connected with, wherein, B-MAC addresses and the forwarding that neighbours' BEB equipment is carried in more ownership detection messages of reception are preferential Level;Compare the forwarding priority of this equipment and at least one neighbours BEB equipment, when the forwarding priority of this equipment is less than one During the forwarding priority of individual neighbor device, it is standby BEB equipment to determine this equipment;
Module is established, for establishing and blocking the forward-path between this equipment and the first BEB equipment, wherein, the first BEB Equipment belongs to same Service Instance with least two BEB equipment and is other in addition at least two BEB equipment BEB equipment;
Receiving module, what the primary BEB equipment for receiving the first BEB equipment or the first station network was sent is used to indicate first The flow control information of forward-path failure between BEB equipment and primary BEB equipment;
Processing module, for being used to indicate the the receiving module receives the first BEB equipment or primary BEB equipment is sent After the flow control information of forward-path failure between one BEB equipment and primary BEB equipment, this equipment and first are enabled Forward-path between BEB equipment;
Sending module, for forwarding the data of the first station network by the forward-path between this equipment and the first BEB equipment Flow to the first 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 CN104219073A (en) 2014-12-17
CN104219073B true 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)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104717143B (en) * 2015-03-12 2018-03-02 华为技术有限公司 For returning the method and apparatus of scene muticast data transmission more
CN105722144B (en) * 2016-01-28 2021-10-01 中国电力科学研究院 Communication method and system for on-line monitoring data of power transmission line
CN109873760B (en) * 2017-12-01 2020-08-07 华为技术有限公司 Method and device for processing route, and method and device for data transmission

Citations (4)

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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7075933B2 (en) * 2003-08-01 2006-07-11 Nortel Networks, Ltd. Method and apparatus for implementing hub-and-spoke topology virtual private networks

Patent Citations (4)

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

Also Published As

Publication number Publication date
CN104219073A (en) 2014-12-17

Similar Documents

Publication Publication Date Title
CN103731288B (en) Message forwarding method and device
US9338052B2 (en) Method and apparatus for managing the interconnection between network domains
CN101931520B (en) Switching method and system
CN104660508B (en) A kind of message forwarding method and device
CN103269299B (en) Message forwarding method in SPBM network and device
CN103259721B (en) Message forwarding method in SPBM network and device
CN102882784B (en) LSP information from flooding method and apparatus in SPBM
CN105099846B (en) The method and supplier edge device of data message transmission
CN104348717B (en) Message forwarding method and device
JP2010517382A (en) Method and apparatus for interconnecting Ethernet and MPLS networks
CN102333028A (en) Method and communication equipment for sending messages by using layered bi-layer virtual private network
CN103227745B (en) Shortest path bridge net and layer 3 VLAN interoperability methods and common edge device
CN101438539A (en) Automatic packet protection forwarding to an MPLS network bya dual-homed Ethernet bridge
CN101674249A (en) Method for forwarding provider backbone bridge (PBB) traffic and device thereof
CN104767680B (en) It route the method and apparatus being switched fast
CN103067278B (en) A kind of method for transmission processing of Frame, equipment and system
CN104796339B (en) Quick flood process method and device
CN104079466B (en) A kind of message processing method and equipment
CN104429022B (en) Connectivity Fault Management in communication network
CN104618150B (en) A kind of bis- layers of PTN turns business collocation method and system under three layer service scenes
CN106452862A (en) Method and device for determining loop network
US9860160B2 (en) Multipath switching using per-hop virtual local area network classification
CN102594651A (en) Service protection method in PBB H-VPLS network
CN104219073B (en) Message forwarding method and device in SPBM network
CN103152283B (en) A kind of method and apparatus of aggregated links load balancing

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

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.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant