Background technology
Multicasting technology same grouped data only occurs once owing to can realize point-to-multipoint communication effectively in a network segment, save a large amount of network bandwidths like this, and the time delay of the grouping of feasible simultaneously arrival user terminal is the shortest.
In the modern network communication of using ethernet technology, multicast service as: course etc. on IPTV Web TV, conferencing over ip television services, the IP network more and more becomes a kind of general public's service.In the access network system topological structure schematic diagram shown in Figure 1A, network access equipment 100,101,102,103 can be DSLAM (Digital Subscriber Line multiplexer), LAN_SWITCH forms such as (LAN switch) so that the terminal use to be provided network insertion, switch 110,111,112,113 is connected to broadband gateway BNG 121 (or BAS Broadband Access Server BRAS 122) after further the access network business being converged.The set-top box 131 (or computer) of the home network 130 that network access equipment 100 is connected has and has only a logic tree structure to broadband gateway BNG 121, owing to insert a large number of users terminal on the network access equipment 100, therefore when arbitrary higher level's network equipment of this logic tree structure or the interruption that the link failure between them will cause a large number of services (multicast services such as unicast service, IPTV).
For the reliability that guarantees that network transmits, network access equipment comes loaded service is protected by two kinds of schemes usually, and they can be expanded and support certain multicast recovery.(1) Trunk (link aggregation) mode: as Figure 1B example, network access equipment 100 can be with two physical link L1, L2 is merged into a link (on the logical meaning) and connects same higher level's network equipment 110, payload traffic equilibrium between these physical links is shared, can use a physical link L1 to be used for forwarding multicasting protocol message and multicast traffic stream, in case this physical link lost efficacy, all business that comprise multicast service on this physical link will switch on the other physical link L2, and any variation need not take place the multicast forward table on the network access equipment 100.But this scheme can not solve the higher level's network equipment Problem of Failure that is attached thereto; In addition, though network access equipment uses the mode of physically-redundant to connect same higher level's network equipment by two physical links, two situations that physical link lost efficacy simultaneously, existing program can not solve the fast quick-recovery of multicast service.(2) STP/RSTP (Spanning-Tree Protocol/RSTP) mode: as Fig. 1 C example, network access equipment 100 connects by two physical link L1, L2 and connects two higher level's network equipments 110,102 respectively, makes by the STP/RSTP agreement that the pairing LI(link interface) of network access equipment 100 link L1 is in forwarding state, this physical link carries out transfer of data as primary link; The pairing LI(link interface) of physical link L2 is in blocked state, and except reception/transmission BPDU (bridge protocol data unit) packet, this link is idle substantially fully as backup link.Network access equipment 100 like this and the logically unlikely formation loop of higher level's network equipment, and then form the logic tree structure.In case primary link L1 breaks down, network access equipment 100 will switch to backup link L2, even active and standby part of link switchover time can shorten by technological means, but for two layers of mesh network that use Spanning-Tree Protocol, the recovery of multicast service generally is that then carry out in the following manner: the subscriber's main station that network access equipment inserted need resend multicast and join request after the tree-like structural remodeling of new logic; Or respond this query messages by GMQ (common group membership query) query messages group membership relation, the subscriber's main station that the IGMP/MLD proxy equipment periodic on multicast router or the network access equipment sends, and then rebuild the Layer 2 Multicast forwarding tree, recover multicast service.But because GMQ time polling cycle generally is 125 seconds, and the response inquiry took place in subordinate equipment or subscriber's main station in 10 seconds, so its multicast service is longer recovery time, generally set up back 135 (125+10) distribution immediately in second at link-recovery or backup link this recovery time, obviously is unfavorable for the recovery of multicast service.
Summary of the invention
The object of the invention is to provide multicasting service protecting method and system thereof in a kind of access network, effectively utilizes idle backup link and carries out the multi-cast service protection transmission; So in the double layer network environment, after its higher level's network equipment inefficacy or its up active link inefficacy, do not need abovementioned steps with reconstruct Layer 2 Multicast forwarding tree, multicast traffic stream can be recovered apace.
According to an aspect of the present invention, multicasting service protecting method in a kind of access network, network access equipment has some links and links to each other with higher level's network equipment, and described method comprises: a) network access equipment selects at least two links to report its multicast member relation to higher level's network equipment; B) higher level's network equipment provides corresponding multicast traffic stream according to described multicast member relation to selected link; C) network access equipment passes through wherein selected link receiving multicast data stream.
Described method step a) in, make selected link work in active and standby part of state respectively with Spanning-Tree Protocol, RSTP or static configuration mode between network access equipment and the higher level's network equipment, in the step c), network access equipment receives the multicast traffic stream of primary link, abandons the multicast traffic stream of backup link.
Preferably, above-mentioned steps c) in, network access equipment further detects described Link State, and when primary link breaks down, switches to backup link receiving multicast data stream.
Preferably, above-mentioned steps c) the network access equipment reception detects to carry out Link State from the bridge protocol data cell data bag of active and standby part of link.
According to a further aspect in the invention, a kind of access network system, network access equipment has some links and links to each other with higher level's network equipment, wherein: network access equipment selects at least two links to report its multicast member relation to higher level's network equipment, and passes through wherein link receiving multicast data stream; Higher level's network equipment provides corresponding multicast traffic stream according to the multicast member relation that its link received to this link.
In the described access network system, network access equipment makes selected link work in active and standby part of state respectively with Spanning-Tree Protocol, RSTP or static configuration mode, network access equipment receives the multicast traffic stream of primary link, abandons the multicast traffic stream of backup link.
Preferably, network access equipment detects described Link State, and when primary link breaks down, switches to backup link receiving multicast data stream.
Preferably, the network access equipment reception detects to carry out Link State from the bridge protocol data cell data bag of active and standby part of link.
Preferably, in the described access network system, the link of network access equipment and higher level's LA Management Room can be to be formed by some physical link polymerizations.
According to a further aspect in the invention, a kind of network access equipment, comprise some uplink and downlink link interface module, Switching Module, link control module and multicast protocol processing module, wherein: the multicast protocol processing module receives from the multicast protocol control messages of downlink interface module and carries out respective handling, and concerns by the uplink interface module forwards multicast member that link control module is selected; Link control module is selected at least two uplink interface modules to carry out the forwarding of multicast member relation and is passed through one of them uplink interface module receiving multicast data stream.
Described network access equipment link control module makes selected uplink interface module work in forwarding, blocked state respectively by operation Spanning-Tree Protocol, RSTP or static configuration mode, and Switching Module is by being in the uplink interface module receiving multicast data stream of forwarding state.
Preferably, aforementioned link control module detects selected uplink interface module Link State, when the uplink interface module link corresponding of forwarding state broke down, link control module control switched to other uplink interface module receiving multicast data streams and further notifies the multicast protocol process module to upgrade multicast forward table.
Preferably, aforementioned link control module reception detects described Link State from the bridge protocol data cell data bag of described uplink interface module.
Preferably, described network access equipment uplink interface module can be formed by polymerization methods by some physical links.
According to inventive concept; network access equipment is by duplicated multicast member report message on some links of appointment and be transmitted to higher level's network equipment; higher level's network equipment provides multicast traffic stream for this network access equipment according to the multicast member report message of being received on the link of determining; thereby providing N+1 (N is more than or equal to 1) protection, the present invention to make full use of, the multicast service that can be this network access equipment currently do not have the link of transport service to carry out the transmission of multicast traffic stream.Further, when a link failure of network access equipment or other reason need be switched, multicast service can switch to other link receiving multicast data stream in the shortest time, and then transmit downwards, and do not need initiatively to report again that the group membership concerns or initiate multicast inquiry message by higher level's network equipment and come to carry out the multicast traffic stream forwarding again behind the reconstruct Layer 2 Multicast forwarding tree.
Embodiment
Below in conjunction with accompanying drawing, preferred implementation of the present invention is described in detail.
Fig. 2 is a service protection structural representation in the access network system; network access equipment 200,201,202,203 can be that DSLAM (Digital Subscriber Line multiplexer), LAN_SWITCH forms such as (LAN switch) are to provide the terminal use network insertion; switch 210,211,212,213 is connected to broadband gateway BNG 221 (or BAS Broadband Access Server BRAS 222) after further the access network business being converged, and video server 240 (or IP network 241) provides the multicast packet source for whole access network system.In order to protect important network access equipment, make this equipment be connected to two higher level's network equipments by two links simultaneously physically: network access equipment can be to connect two switches simultaneously, as: network access equipment 202 connects switch 210 and switch 212 simultaneously; Network access equipment also can be to connect a switch and another one network access equipment simultaneously, as: network access equipment 200 connects switch 210 and network access equipment 202, network access equipment also can be to connect two higher level's network access equipments simultaneously, as: network access equipment 201 is connected to network access equipment 202,203 simultaneously.Network access equipment also can connect same higher level's network equipment so that the protection on the link only to be provided by two links simultaneously.
Under two layer access net network environment, general between the access network device and the first line of a couplet network equipment by two layer-managements agreement-STP/RSTP agreement, the blocking network redundant link reaches the purpose of eliminating the network double-layer loop selectively, the function that possesses link backup simultaneously, a first line of a couplet port of access network device is a working port, be the root port (Root Port) in the STP/RSTP agreement, this port is in forwarding state.The another port of access network device is a backup port, it is the replacement port (Alternative Port) in the RSTP agreement, backup port is in blocked state, and the STP/RSTP agreement stipulates that it can only receive and transmission and the protocol-dependent BPDU data of STP/RSTP not responsible other data forwarding; When access network device monitors its working port uplink fault, replace the port work that is activated fast.
What deserves to be explained is:, logically be considered as above-mentioned same link if network access equipment is connected to all physical links of same equipment by the Trunk mode.
For multicast service, generally can realize multicast protocol relevant treatment function in network access equipment 200,201,202,203 and the switch 210,211,212,213, for example the IGMPProxy/Snooping (IGMP is acted on behalf of/intercepted) that uses based on IPv4, MLDProxy/Snooping (multicast monitoring discovery is acted on behalf of/intercepted) function used based on IPv6.IGMP/MLD Proxy equipment first line of a couplet port is carried out the role of main frame, second line of a couplet port is carried out the role of router, this equipment is set up multicast forward table by the IGMP/MLD message between interception user and the router, and this table has been safeguarded that multicast service that first line of a couplet port comes should duplicate and has been forwarded to which second line of a couplet port (or user port); And IGMP/MLD Snooping equipment is to intercept the mode that main frame is sent to IGMP/MLD member's report message of router, form the corresponding relation of group membership and switch ports themselves, IGMP/MLD Snooping equipment is then according to corresponding relation, and the multicast packet that its network side is received is forwarded to group membership's port.
The access network system thought according to the present invention, in order to realize the protection of multicast service, access network device need tell its higher level's network equipment of replacing the port correspondence should transmit the data of concrete which multicast group to backup link, be that network access equipment duplicates IGMP/MLD group membership report message, transmit group membership's report message at working port and replacement port simultaneously; On backup link, also provide multicast traffic stream with the corresponding higher level's network equipment of replacement port according to the group membership's report message that is provided, when active link did not lose efficacy, replace port and abandon received other data that comprise multicast service (abandon multi-cast business data be below identical multicast packet appears at access device the network segment).Further, when active link lost efficacy, access network device carried out active and standby part of link switchover, can provide fast quick-recovery to multicast service.
Fig. 3 is access network device multicast protocol message of the present invention, multicast packet flow diagram, as previously mentioned, when network access equipment 200 and its higher level's network equipment (switch 201/ network access equipment 202) work in the Spanning-Tree Protocol mode, the generation tree that network access equipment 200 is set up by the STP/RSTP agreement makes that No. 2 ports of network access equipment 200 are root port (Root Port), and it is in forwarding state; And No. 1 port is replacement port (Alternative Port), and it is in blocked state.The concrete selection of root port/replacement port can be with reference to relevant Spanning-Tree Protocol.
When network access equipment 200 is realized aforementioned IGMP/MLD Proxy protocol function, it is when receiving that group membership from home network 230 set-top box 231 concerns report message S31, if the multicast traffic stream that the user asked by other user applies to network access equipment 200, then this report message need not further mail to higher level's network equipment; Otherwise it not only sends the group membership by current root port 2 to switch 210 and concerns report message S32, duplicates this message simultaneously and further concerns report message S32 ' to network access equipment 202 transmission group memberships by replacing port one.
Switch 210 and network access equipment 202 are during for the group member message S32 that receives, S32 ', usual manner according to IGMP/MLD Proxy, Snooping is handled, be embodied as example with IGMP Proxy:, further transmit group membership's report message S33, S33 ' to ask this multicast traffic stream to higher level's network equipment if this multicast traffic stream does not arrive this node; If this multicast traffic stream has arrived this node, abandon above-mentioned group membership's report message.Switch 210 and network access equipment 202 are transmitted corresponding multicast traffic stream S34, S34 ' No. 2 ports and No. 1 port to network access equipment 200 respectively, because No. 1 port is in blocked state, this port abandons the multicast traffic stream S35 ' that receives.
Network access equipment 200 will offer home network 230 from the multicast traffic stream S35 of No. 2 ports again.
When network access equipment 200 detects with No. 2 port link corresponding inefficacies, its multicast traffic stream inbound port will switch to original replacement port, i.e. No. 1 port.And further make and replace port (No. 1 port) and enter forwarding state fast because this moment, multicast traffic stream S35 ' passed to this port already, then network access equipment 200 immediately multicast data forwarding stream S35 ' give home network 230.
The reason that trigger link is switched may be diversified, can be that the network manager gives the static configuration switching, also can select optimum logical links based on the Spanning-Tree Protocol algorithm.
Certainly, can lose efficacy, set detecting 2 port upper level link, and just began the receiving multicast business data, and transmit to the user based in No. 1 port multicast forward table; And need not wait for that STP/RSTP makes No. 1 port become forwarding state (in other words multicast service being entered forwarding state immediately).Make that like this multicast service is able to recover in the shortest time.
Fig. 4 is network access equipment 200 dependency structure schematic diagrames of the present invention.It comprises some downlink interface module 310......, Switching Module 320, multicast protocol processing module 330, link control module 340 and some uplink interface modules 351,352......
At first, network access equipment need select at least two uplink interface modules 351,352 to realize multi-cast service protection of the present invention: when network access equipment and other higher level's network equipment work in the Spanning-Tree Protocol mode, link control module 340 makes uplink interface module 352 be root port (Root Port) by the Spanning-Tree Protocol algorithm, and it is in forwarding state; And uplink interface module 351 is replacement port (Alternative Port), and it is in blocked state.The concrete selection of root port/replacement port can be with reference to relevant Spanning-Tree Protocol; The selection of above-mentioned uplink interface module also can keeper's mode static configuration Network Based.
Downlink interface module 310 receives the multicast protocol message from terminal use in the home network, the IGMP protocol message of using based on IPv4 for example, the MLD protocol message of using based on IPv6;
When if multicast protocol processing module 330 realizes aforementioned IGMP/MLD Proxy protocol function, it inquires about multicast forward table 331, if the multicast traffic stream that the user asked by other user applies to network access equipment 200, then this multicast protocol message need not further mail to network side; Otherwise, it not only sends this multicast protocol message by uplink interface module 352 to network side, duplicate simultaneously this message by uplink interface module 351 further to higher level's network equipment that it connected, and further add respective record (even industry exchange chip port commonly used is a blocked state, control module still can produce grouping and sends by port blocked on the switch) at multicast forward table 331.
Uplink interface module 351,352 receives from the descending multicast traffic stream of higher level's network equipment separately, because uplink interface module 351 is in blocked state, this port abandons the multicast traffic stream of receiving.Multicast traffic stream is received to Switching Module 320 by uplink interface module 352, and Switching Module 320 flows to corresponding downstream link interface module 310 multicast data forwardings according to the record in the multicast forward table 331 of aforementioned foundation.
Usually, uplink interface module 351,352 is reception/transmission BPDU packet still, link control module 340 can detect (also can realize based on alternate manner) by the analysis of packet being carried out Link State, when it detects the inefficacy of uplink interface module 352 link corresponding, it is according to current multicast forward table information, construct new multicast forward table, the multicast data flow inbound port in the new table is updated to uplink interface module 351.Link control module 340 further makes uplink interface module 351 enter forwarding state (can certainly directly allow this port enter forwarding state for multicast service) fast by the STP/RSTP agreement, because this moment, multicast traffic stream passed to this link interface module already, then Switching Module 320 can according to the multicast forward table of neotectonics immediately multicast data forwarding flow to the corresponding downstream link interface module.
The reason that link control module 340 trigger link are switched may be diversified, can be that the network manager gives the static configuration switching, also can select optimum logical links or the like based on the Spanning-Tree Protocol algorithm.
Preferably, network access equipment 200 uplink interface modules 351,352 pairing links of the present invention can be to be formed by polymerization methods by some physical links.
Although above-mentioned being illustrated as the invention provides some embodiment; be not to be used for limiting protection scope of the present invention; the professional in present technique field can carry out various modifications to embodiment under the prerequisite that does not depart from the scope of the present invention with spirit, this modification all belongs in the scope of the present invention.