WO2014169856A1 - 一种组播通信方法和汇聚交换机 - Google Patents

一种组播通信方法和汇聚交换机 Download PDF

Info

Publication number
WO2014169856A1
WO2014169856A1 PCT/CN2014/075760 CN2014075760W WO2014169856A1 WO 2014169856 A1 WO2014169856 A1 WO 2014169856A1 CN 2014075760 W CN2014075760 W CN 2014075760W WO 2014169856 A1 WO2014169856 A1 WO 2014169856A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast
information
comparison result
message
group information
Prior art date
Application number
PCT/CN2014/075760
Other languages
English (en)
French (fr)
Inventor
郝卫国
刘毅松
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP14784835.2A priority Critical patent/EP2981036B1/en
Publication of WO2014169856A1 publication Critical patent/WO2014169856A1/zh
Priority to US14/885,500 priority patent/US20160043878A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/185Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with management of multicast group membership
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing

Definitions

  • a Translatent Interconnect of Lots of Links (TRAB) network is a network of RBs (Route Bridges) that run the TRILL protocol.
  • the TRILL network can be applied to a variety of scenarios. When the TRILL network is used in an IPTV (Internet Protocol Television) scenario, the AGG (Aggregation Switch) and the ACC (Access Switch) are used.
  • the connection forms a TRILL network
  • the AGG connects to the multicast router
  • the ACC connects to the receiver of the multicast group
  • the last hop router in the multicast router connects to the multicast source.
  • the receiver of the multicast group sends the IGMP (Internet Group Management Protocol) packet to the ACC, and the ACC is converted to carry the Group Address TLV (Group Address Tag-Length-Value).
  • LSP Link State PDU, Link State Protocol Data Unit
  • the LSP message carrying the Group Address TLV is called a GM LSP (Group Mac Link State PDU, multicast).
  • the group address link state protocol data unit is a packet, and the GM LSP message needs to be transmitted to the last hop router through the AGG and the router connected to the AGG, so that the last hop router obtains the multicast stream from the multicast source. And transmitted to the receiver of the multicast group through the network.
  • the GM LSP is sent by the static multicast mode between the AGG and the first multicast router, and the first multicast router is a multicast router directly connected to the AGG, and multicast traffic cannot be implemented.
  • On-demand replication there is a waste of link bandwidth between the AGG and the first multicast router.
  • the present invention provides a multicast communication method, which is applied to an AGG, and includes: acquiring a GM LSP message sent by an ACC;
  • the preset protocol packet is generated according to the comparison result, and the preset protocol packet is an IGMP (Internet Group Management Protocol). Protocol) packet or PIM (Protocol Independent Multicast)
  • the GM LSP packet is a TRILL LSP packet
  • the multicast join information in the GM LSP packet includes: a VLAN (Virtual Local Area Network And the multicast group information corresponding to the VLAN identifier, or the multicast join information in the GM LSP packet includes: a VLAN identifier, and multicast source information and multicast group information corresponding to the VLAN identifier.
  • the performing the multicast join information in the GM LSP packet and the AGG storage The latest updated multicast join information is compared and the comparison results are obtained, including:
  • the multicast join information in the GM LSP packet includes the VLAN identifier and the multicast group information corresponding to the VLAN identifier
  • the first multicast join information is each VLAN stored in the AGG. Identifying and multicast group information corresponding to each VLAN identifier;
  • the multicast join information in the GM LSP packet is classified according to the VLAN identifier. Combining, obtaining the second multicast join information, where the second multicast join information is each VLAN identifier in the GM LSP packet and the multicast group information corresponding to each VLAN identifier; The multicast join information and the second multicast join information are compared to obtain a comparison result, where the comparison result includes:
  • the comparison result includes The newly added multicast group information
  • the comparison result includes the Derived reduced multicast group information
  • the multicast join information in the GM LSP packet includes the VLAN identifier and the multicast source information and the multicast group information corresponding to the VLAN identifier
  • the first multicast join information is each VLAN stored in the AGG. Identifying and multicast source information and multicast group information corresponding to each VLAN identifier;
  • the multicast join information in the GM LSP packet is classified and combined according to the VLAN identifier to obtain the second multicast join information, where the second multicast join information is each VLAN stored in the GM LSP packet. Identifying and multicast source information and multicast group information corresponding to each VLAN identifier;
  • the comparison result includes the newly added multicast source information and the multicast group information.
  • the second multicast join is obtained.
  • the comparison result includes the reduced multicast source information and multicast group information.
  • the preset Format generation default protocol messages include: The AGG generates an IGMP message according to a comparison result.
  • the preset format includes: a VI format, a V2 format, or a V3 format, and the VIs, V2s, and V3s are IGMP protocol version numbers.
  • the generating the IGMP message according to the comparison result according to the comparison result includes:
  • the AGG generates a first IGMP report message according to the newly added multicast join information in the comparison result, where the first IGMP report message is generated according to the newly added multicast group information;
  • generating an IGMP message according to a preset format includes:
  • the AGG generates an allowable packet according to the newly added multicast join information in the comparison result, where the allowable packet is based on the newly added multicast group information, or according to the newly added multicast source information and Multicast group information generated;
  • the preset format is the VI format or the V2 format
  • the reduced multicast group information exists in the comparison result
  • the generating an IGMP report according to the preset format according to the comparison result includes:
  • the AGG generates an exit indication message according to the reduced multicast join information in the comparison result, where the exit indication message is generated according to the reduced multicast group information; when the preset format is V3 In the format, when the reduced multicast group information exists in the comparison result, or the reduced multicast source information and multicast group information are present in the comparison result, according to the comparison result, according to the comparison result, according to the comparison result, according to the comparison result
  • Generating an IGMP message in the preset format includes: the AGG generates an exit message according to the reduced multicast join information in the comparison result, where the exit message is according to the reduced multicast group information, or according to the reduction Generated multicast source information and multicast group information.
  • the generating the IGMP message according to the preset format according to the comparison result includes: The AGG receives the specific group query message sent by the first multicast router, where the specific group query message includes: a specific VLAN identifier;
  • the AGG generates a second IGMP report message according to the comparison result, where the second IGMP report message is generated according to the latest updated multicast join information stored by the updated AGG.
  • the preset protocol packet is a PIM packet
  • the generating the preset protocol packet according to the comparison result according to the comparison result includes:
  • the AGG generates a PIM SM according to the newly added multicast join information in the comparison result.
  • the Join Independent Multicast Service Message Join joins the message, and the PIM SM Join is generated by the newly added multicast group information.
  • the generating, according to the comparison result, the preset protocol packet according to the preset format includes:
  • the AGG generates a PIM SSM Join (Protocol Independent Multicast Source Specific Mutigation Join) according to the newly added multicast join information in the comparison result, where the PIM SSM Join is a The newly generated multicast source information and multicast group information are generated;
  • PIM SSM Join Protocol Independent Multicast Source Specific Mutigation Join
  • the generating the preset protocol packet according to the preset format according to the comparison result includes:
  • the AGM is configured to generate a PIM SM Prune (Protocol Independent Multicast Service Message Prune), where the PIM SM Prune is used to delete the reduced multicast.
  • PIM SM Prune Protocol Independent Multicast Service Message Prune
  • the generating the preset protocol packet according to the preset format according to the comparison result includes:
  • the AGG generates a PIM SSM Prune (Protocol Independent Multicast Source Specific Multicast Prune) according to the reduced multicast join information in the comparison result, where the PIM SSM Prune is used to delete the Reduced multicast source information and multicast group information.
  • PIM SSM Prune Protocol Independent Multicast Source Specific Multicast Prune
  • An obtaining unit configured to obtain a GM LSP packet sent by the ACC
  • a storage unit configured to store the multicast update information after the latest update
  • a comparing unit configured to compare the multicast join information in the GM LSP message obtained by the acquiring unit with the multicast join information in the storage unit, obtain a comparison result, and send the comparison result to Generating a unit, and updating multicast join information in the storage unit according to the comparison result;
  • a generating unit configured to receive a comparison result sent by the comparing unit, and when there is a changed multicast joining information in the comparison result, generate a preset protocol packet according to the comparison result, where the preset The protocol packet is an Internet Group Management Protocol (IGMP) packet or a protocol-independent multicast PIM packet.
  • IGMP Internet Group Management Protocol
  • a sending unit configured to send the preset protocol packet generated by the generating unit to the first multicast router, so that the first multicast router generates a multicast forwarding entry according to the preset protocol packet .
  • the GM LSP packet is a TRILL LSP packet
  • the multicast join information in the GM LSP packet includes: a VLAN identifier and the The multicast group information corresponding to the VLAN identifier or the multicast join information in the GM LSP packet includes a VLAN identifier and multicast source information and multicast group information corresponding to the VLAN identifier.
  • the comparing unit is specifically configured to:
  • the multicast join information in the GM LSP packet includes the VLAN identifier and the multicast group information corresponding to the VLAN identifier
  • the multicast join information stored in the storage unit is classified and combined according to the VLAN identifier to obtain the first multicast join information, where the first multicast join information is each VLAN identifier stored in the AGG and the Each VLAN identifies the corresponding multicast group information; the multicast join information in the GM LSP packet obtained by the obtaining unit is classified and combined according to the VLAN identifier, to obtain second multicast join information, where the second The multicast join information is each VLAN identifier in the GM LSP packet and the multicast group information corresponding to each VLAN identifier.
  • the comparison results include:
  • the comparison result includes The newly added multicast group information
  • the comparison result includes the Derived reduced multicast group information
  • the multicast join information in the GM LSP packet includes the VLAN identifier and the multicast source information and the multicast group information corresponding to the VLAN identifier
  • the multicast join information stored in the storage unit is classified and combined according to the VLAN identifier to obtain the first multicast join information, where the first multicast join information is each VLAN identifier stored in the AGG and the Each VLAN identifies the multicast source information and multicast group information.
  • the multicast join information in the GM LSP packet obtained by the obtaining unit is classified and combined according to the VLAN identifier to obtain the second multicast join information, where the second multicast join information is the GM LSP packet.
  • the comparison result includes the newly added multicast source information and the multicast group information.
  • the second multicast join is obtained.
  • the comparison result includes the reduced multicast source information and multicast group information.
  • the generating unit is specifically configured to:
  • the comparing unit receives the comparison result sent by the comparing unit, and generating an IGMP message according to the comparison result, where the preset format includes: a VI format, a V2 format, or a V3 format, where the VI, V2, and V3 are IGMP Protocol version number.
  • the generating unit is specifically configured to: receive a comparison result sent by the comparing unit, and generate a first IGMP report message according to the newly added multicast joining information in the comparison result, where The first IGMP report message is generated according to the newly added multicast group information;
  • the generating unit is specifically configured to:
  • the generating unit is specifically configured to:
  • the generating unit is specifically used for:
  • the generating unit is specifically configured to:
  • the generating unit is specifically configured to:
  • the generating unit is specifically configured to:
  • the generating unit is specifically configured to:
  • the generating unit is specifically configured to:
  • the embodiment of the present invention provides a multicast communication method and an aggregation switch.
  • the multicast communication method includes: the AGG acquires a GM LSP message sent by the ACC, and adds the multicast join information in the GM LSP message to the AGG storage. After the latest update of the multicast join information is compared, the comparison result is obtained, and the multicast join information stored by the AGG is updated according to the comparison result; when there is a change of the multicast join information in the comparison result, according to the The comparison result is generated according to a preset format, and the preset protocol message is an Internet group management protocol.
  • the IGMP message or the protocol-independent multicast PIM message is sent to the first multicast router, so that the first multicast router generates the multicast according to the preset protocol packet. Forward the entry. In this way, the obtained GM LSP message and the GM LSP saved by the AGG The packet is compared, and when there is a change of the multicast join information, the preset protocol packet is generated according to the comparison result, and the preset protocol packet is sent to the first multicast router, where the comparison is performed.
  • the result includes adding or reducing multicast group information, or including newly added or reduced multicast source information and multicast group information, compared with the prior art, the added or reduced multicast group information, or The newly added or reduced multicast source information and the multicast group information are sent to the first multicast router, and the on-demand transmission of the AGG to the first multicast router path is implemented, thereby saving the AGG to the first multicast. Link bandwidth between routers.
  • FIG. 1 is a flowchart of a multicast communication method according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an interactive television network according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another multicast communication method according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of an AGG according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of another AGG according to an embodiment of the present invention.
  • the embodiment of the invention provides a multicast communication method, which is applied to the AGG. As shown in FIG. 1, the method includes:
  • the GM LSP packet includes a 12-bit VLAN identifier and multicast group information corresponding to the VLAN identifier, or a VLAN identifier and a multicast source information and multicast corresponding to the VLAN identifier.
  • Group information, or ⁇ " Fine Grained Label (FGL) and the multicast group information corresponding to the "fine label", or the fine label and the multicast source information and multicast group information corresponding to the fine label is a 24-bit VLAN identifier. Therefore, the VLAN identifier in the embodiment of the present invention may refer to a VLAN identifier of 12 bits or a VLAN identifier of 24 bits.
  • the preset protocol packet is generated according to the preset format, where the preset protocol packet is an Internet Group Management Protocol (IGMP) packet or Protocol-independent multicast PIM messages.
  • IGMP Internet Group Management Protocol
  • the preset protocol packet is generated according to the comparison result, and the preset protocol packet is sent to the first multicast router, where the comparison result includes Adding or reducing multicast group information, or including new or reduced multicast source information and multicast group information, compared with the prior art, adding or reducing the multicast group information, or the The newly added or reduced multicast source information and multicast group information are sent to the first multicast router, which implements on-demand transmission from the AGG to the first multicast router path, saving the AGG to the first multicast router. Link bandwidth.
  • the multicast communication method can be implemented between the TRILL network and the multicast router.
  • the TRILL network can be used not only in the data center scenario but also in the IPTV scenario.
  • Figure 2 is a schematic diagram of the structure of the interactive television network IPTV.
  • the ACC 205 is used to directly connect the multicast source information or the multicast group information.
  • the receiver 206, the ACC 205 can directly connect to the multicast source information or the multicast group information receiver 206, or can access the multicast source information or the multicast group information receiver 206 through Native ETH (Native Ethernet).
  • AGG204 is the convergence point of multiple ACC205s, and the TRC network is between ACC205 and AGG204.
  • the AGG 204 accesses the on-demand request of the multicast receiver 206 through the ACC 205, and carries the multicast source information or the multicast source and multicast in the on-demand request through the first multicast router 203 and the last-hop multicast router 202.
  • the packet of the group information is sent to the multicast source 201 to order the program.
  • AGG and ACC and the forwarding devices in the middle constitute TRILL network, AGG and ACC Run the TRILL protocol.
  • the TRILL protocol is a routing protocol based on the link state calculation on the TRILL network.
  • the device running the TRILL protocol is called RB (Route Bridge).
  • the AGG and ACC belong to the RB device at the edge of the TRILL network.
  • the RB learns the TRILL network topology and distribution tree information through the information in the TRILL protocol.
  • Each RB uses the device itself as the source node to generate a unicast forwarding table to other RBs through the shortest path tree algorithm.
  • the RB uses the root of each distribution tree as the source node, and generates the distribution tree to other RBs through the shortest path tree algorithm. Published.
  • the multicast communication method provided by the embodiment of the present invention is also applicable to the IPTV scenario multicast communication, and the execution subject is AGG.
  • the specific process performed by the multicast communication method is as shown in FIG. 3, and includes:
  • the ACC obtains the GM LSP message sent by the multicast group receiver, and then the ACC sends the GM LSP message to the AGG according to the flooding algorithm. Finally, the AGG obtains the GM LSP message sent by the access switch ACC. .
  • the method for the ACC to obtain the GM LSP message sent by the receiver of the multicast group is as follows:
  • the RB of the TRILL network edge enables the IGMP SNOOPING (Internet Group Management Protocol Snooping) function to periodically send Query messages to the multicast group receivers, triggering the multicast group receivers to send IGMP Reports (Internet Group). Management Protocol Report, Internet Group Management Protocol message).
  • IGMP SNOOPING Internet Group Management Protocol Snooping
  • the ACC When the ACC receives the port information of the IGMP Report message through the listening function, it needs to establish a multicast forwarding entry based on the port information of the packet, and implement multicast replication on the receiver side of the multicast group.
  • the ACC When receiving the IGMP Report message, the ACC needs to notify the multicast group information in the IGMP Report message of the TRILL network, or the multicast source information and the multicast group information, according to the multicast group information, or the group.
  • the source information and multicast group information are prune-calculated to implement on-demand replication of multicast traffic in the TRILL network.
  • step 302 can be implemented in the following two ways:
  • the first type when the multicast join information in the GM LSP packet includes the VLAN identifier and the multicast group information corresponding to the VLAN identifier, the latest updated multicast join information stored in the AGG is configured according to the multicast
  • the VLAN identifier is categorized and merged to obtain the first multicast join information, where the first multicast join information is each VLAN identifier stored in the AGG and the multicast group information corresponding to each VLAN identifier;
  • the multicast join information in the GM LSP packet is as follows.
  • the VLAN identifier is classified and merged to obtain the second multicast join information, where the second multicast join information is each VLAN identifier in the GM LSP packet and the multicast group information corresponding to each VLAN identifier.
  • the embodiment of the present invention assumes that the last updated multicast join information stored by the AGG is GM LSP message 1 (VLAN1, Group 1 , Group2) advertised by ACC1 and GM LSP message 2 (VLAN1, Group advertised by ACC2). 1 , Group3), the multicast join information in the GM LSP message received by the AGG is the GM LSP message 3 (VLAN1, Group2, Group4) advertised by the ACC3, and the GM received by the AGG is required to be described.
  • the multicast join information in an LSP packet can be one or multiple.
  • the multicast join information of the GM LSP message 1, the GM LSP message 2, and the GM LSP message 3 includes a VLAN identifier and multicast group information corresponding to the VLAN identifier.
  • the last updated multicast join information stored in the AGG is classified and merged according to the VLAN identifier, that is, the multicast join information in the GM LSP message 1 and the GM LSP message 2 is The VLAN ID is classified and merged.
  • the VLAN IDs in the GM LSP and the GM LSP 2 are all in VLAN 1. Therefore, the first multicast join information obtained after the merging is the VLAN 1 stored in the AGG. And multicast group information Group 1, Group 2 and Group 3 corresponding to the VLAN 1.
  • the multicast join information in the received GM LSP message 3 is classified and merged according to the VLAN identifier, and the second multicast join information is obtained, because the VLAN identifier of the GM LSP packet 3 is also VLAN1.
  • the second multicast join information in the GM LSP message 3 obtained after the merging is the VLAN 1 and the multicast group information Group 2 and Group 4 corresponding to the VLAN 1. Then, comparing the first multicast join information with the second multicast join information, it is obvious that the new multicast group information Group4 exists in the VLAN 1 of the second multicast join information. .
  • the reduced multicast group information exists in a specific VLAN of the second multicast join information, and the comparison result includes the Reduced multicast group information.
  • the embodiment of the present invention assumes that the last updated multicast join information stored by the AGG is the GM LSP message 4 (VLAN1, Group1, Group2) and ACC2 advertised by ACC1.
  • the GM LSP message 5 (VLAN1, Group 1 and Group3) is advertised.
  • the MPLS LSP message 6 (VLAN1, Group 1) is advertised by the ACC2. Yes.
  • the multicast join information of the GM LSP message 4, the GM LSP message 5, and the GM LSP message 6 includes a VLAN identifier and multicast group information corresponding to the VLAN identifier.
  • the latest updated multicast join information stored in the AGG is classified and combined according to the VLAN identifier, that is, the multicast join information in the GM LSP message 4 and the GM LSP message 5 is
  • the VLAN IDs are classified and merged.
  • the VLAN IDs in the GM LSPs 4 and GM LSPs are all VLAN 1. Therefore, the first multicast join information obtained after the merging is the VLAN 1 stored in the AGG.
  • the multicast join information in the received GM LSP message 6 is classified and merged according to the VLAN identifier, and the second multicast join information is obtained, because the VLAN identifier of the GM LSP packet 6 is VLAN 1,
  • the second multicast join information in the GM LSP message 6 obtained by the merging is the VLAN 1 and the multicast group information Group1 corresponding to the VLAN 1.
  • comparing the first multicast join information with the second multicast join information it is obvious that the reduced multicast group information Group2 in the VLAN 1 of the second multicast join information is obtained by comparison Group3.
  • the second type when the multicast join information in the GM LSP packet includes the VLAN identifier and the multicast source information and the multicast group information corresponding to the VLAN identifier, the latest updated information stored in the AGG The multicast join information is classified and merged according to the VLAN identifier, and the first multicast join information is obtained.
  • the first multicast join information is each VLAN identifier stored in the AGG and the multicast corresponding to each VLAN identifier.
  • the comparison result includes: comparing the first multicast join information with the second multicast join information, and obtaining new multicast source information in a specific VLAN of the second multicast join information. Group When the group information is broadcasted, the comparison result includes the newly added multicast source information and multicast group information.
  • the embodiment of the present invention assumes that the last updated multicast join information stored by the AGG is the GM LSP packet 7 (VLAN1, S1, Group 1) advertised by the ACC1, and the GM LSP packet 8 received by the AGG.
  • the multicast join information is the GM LSP message advertised by ACC2. (VLAN1, S2, Groupl) and GM LSP message 9 (VLAN1, SI, Groupl) advertised by ACC3, which needs to be explained.
  • the multicast join information of the GM LSP message 7 and the GM LSP message 8 and the GM LSP message 9 includes a VLAN identifier and multicast source information and multicast group information corresponding to the VLAN identifier.
  • the latest updated multicast join information stored in the AGG is classified and merged according to the VLAN identifier. Since the VLAN identifier in the GM LSP packet 7 is VLAN 1, the first obtained after the merge is merged.
  • the multicast join information is VLAN 1 stored in the AGG and the multicast source information and multicast group information corresponding to the VLAN 1 are (S1, Group1).
  • the multicast join information in the received GM LSP message 8 and the GM LSP message 9 is classified and combined according to the VLAN identifier to obtain the second multicast join information, because the GM LSP message 8 and the VLAN identifier of the GM LSP message 9 is VLAN 1, so the second multicast join information is VLAN 1 and the multicast source information and multicast group information corresponding to the VLAN 1 are (S2, Groupl). ) and (Sl, Groupl). Then, the first multicast join information is compared with the second multicast join information, and the newly added multicast source information in the VLAN 1 of the second multicast join information is obtained by comparison. And multicast group information (S2, Groupl).
  • the comparison result includes the reduced multicast source information and multicast group information.
  • the embodiment of the present invention assumes that the latest updated multicast join information stored by the AGG is GM LSP message 10 (VLAN1, SI, Group1) advertised by ACC1 and GM LSP message 11 (VLAN1, S2, advertised by ACC2).
  • the multicast join information in the GM LSP packet 12 advertised by the AGG is the (VLAN1, S2, Group1), and the GM LSP message 10 and the GM LSP message 11 are described.
  • the multicast join information includes a VLAN identifier and multicast source information and multicast group information corresponding to the VLAN identifier.
  • the latest updated multicast join information stored in the AGG is classified and categorized according to the VLAN identifier, and the VLAN identifier in the GM LSP packet 10 and the GM LSP packet 11 is VLAN1,
  • the first multicast join information obtained after the merging is the VLAN 1 stored in the AGG, and the multicast source information and the multicast group information corresponding to the VLAN 1 are (S1, Group1) and (S2, Group1).
  • the multicast join information in the received GM LSP packet 12 is classified and merged according to the VLAN identifier, and the second multicast join information is obtained, because the VLAN identifier of the GM LSP packet 12 is VLAN 1,
  • the GM LSP message 12 obtained after merging and merging The second multicast join information is VLAN 1 and the multicast source information and the multicast group information corresponding to the VLAN 1 are (S2, Group1).
  • the first multicast join information is compared with the second multicast join information. Obviously, the reduced multicast source information in the VLAN 1 of the second multicast join information is obtained by comparison.
  • Multicast group information (Sl, Graupl).
  • the multicast join information in the GM LSP message received by the AGG may be one or multiple, and therefore, the multicast information in the GM LSP packet is added to the information.
  • the latest updated multicast join information stored in the AGG is compared, and the obtained comparison result may include both adding multicast join information and reducing multicast join information.
  • the last updated multicast join information stored by the AGG is the GM LSP message 13 advertised by ACC1 (VLAN1, Group 1, Group2) and the GM LSP message 14 (VLAN2, Group3, Group4) advertised by ACC2.
  • the GM LSP message 15 advertised by the AGG3 is (VLAN1, Group2, Group5), and the GM LSP message 16 advertised by the ACC2 is (VLAN2, Group4), then the AGG is
  • the multicast update information stored in the last update is classified according to the VLAN identifier, and the obtained first multicast join information is (VLAN1, Group1, Group2) and (VLAN2, Group3, Group4);
  • the multicast join information in the received GM LSP is classified and merged according to the VLAN identifier, and the obtained second multicast join information is (VLAN1, Group2, Group5) and (VLAN2, Group4), and then the first The multicast join information is compared with the second multicast join information.
  • the new multicast group information Group5 exists in the VLAN 1 of the second multicast join information.
  • Multicast group information Groupl; VLAN2 exist in reduced multicast group information Graup3.
  • the preset protocol message is generated according to the preset format.
  • Step 303 specifically includes: AGG updates the latest updated multicast join information stored in the AGG by using the comparison result obtained in step 302, and adds the newly added multicast group information, or the multicast source information and the multicast group information. Adding the reduced multicast group information, or the multicast source information and the multicast group information from the latest updated multicast stored in the AGG to the latest updated multicast join information stored in the AGG Delete the information in the join information to obtain the latest multicast join information stored in the AGG.
  • the multicast join information stored in the AGG may be updated according to Embodiment 2, and the new multicast join information stored in the AGG is obtained as (VLAN1, Group1); the AGG storage may be updated according to Embodiment 4. Multicast join information, get a new group of the AGG storage
  • the broadcast join information is (VLAN1, S2, Groupl).
  • the preset protocol packet is generated according to the comparison result, and the preset protocol packet is an IGMP packet or a PIM packet.
  • the step 303 includes: the AGG generates an IGMP message according to a comparison format, where the preset format includes: a VI format and a V2 format. Or V3 format, the VI, V2, and V3 are IGMP protocol version numbers.
  • the generating the IGMP according to the preset format according to the comparison result includes: the AGG generates a first IGMP report message according to the newly added multicast join information in the comparison result, where the first IGMP report message is generated according to the newly added multicast group information. of.
  • the AGG according to the comparison result is the preset format, that is, the VI format or the location.
  • the V2 format generates a first IGMP report message, where the first IGMP report message is an IGMP Report message, and the first IGMP report message includes the newly added multicast group information, that is, newly added in VLAN1. Multicast group information Group4.
  • generating an IGMP message according to the preset format includes: the AGG generates an allow message according to the newly added multicast join information in the comparison result, where the allow message is according to the new The generated multicast group information is generated based on the newly added multicast source information and multicast group information.
  • the AGG when the version number of the IGMP protocol is V3, the AGG generates an allow packet according to the multicast join information added in the comparison result.
  • the allowed packet may be a TO_IN (NULL, Group4), and the allowed packet indicates that the multicast group information Group4 is newly added to the VLAN 1.
  • the AGG For the new multicast source information and the multicast group information (S2, Group1) in the VLAN 1 of the embodiment 3, the AGG generates an allowable packet according to the newly added multicast join information in the comparison result.
  • the message may be ALLOW (S2, Group1), and the allowed message indicates that multicast source information and multicast group information (S2, Group1) are newly added in VLAN 1.
  • the reduced multicast exists in the comparison result. And generating, according to the comparison result, generating an IGMP message according to the preset format, according to the comparison result, according to the comparison, the AGG according to the comparison, when the group information, or the comparison result, the reduced multicast source information and the multicast group information, As a result, the reduced multicast join information generates an exit message, and the exit message is generated according to the reduced multicast group information, or according to the reduced multicast source information and multicast group information.
  • the AGG when the IGMP protocol version number is V3, the AGG generates an exit message according to the reduced multicast join information in the comparison result.
  • the exit message may be TO_EX (NULL, Group 2 ) and TO_EX (NULL, Group3), and the exit message indicates that the multicast group information Group2 and Group3 are reduced in the VLAN 1.
  • the AGG For the reduced multicast source information and the multicast group information (S 1, Group 1 ) in the VLAN 1 of the embodiment 4, the AGG generates an exit message according to the reduced multicast join information in the comparison result, for example, the The exit message may be BLOCK (S1, Groupl), and the exit message indicates that the multicast source information and the multicast group information (S1, Groupl) are reduced in VLAN1.
  • the generating an IGMP report according to the preset format according to the comparison result includes: the AGG generates an exit indication message according to the reduced multicast join information in the comparison result, where the exit indication message is generated according to the reduced multicast group information. It should be noted that the method is applicable to the case where the preset format is the V2 format, and the first multicast router is configured with the IGMP fast leave function.
  • the reduced multicast group information Group2 and Group3 in the VLAN 1 of the embodiment of the present invention when the IGMP protocol version number is in the VI format, or when the IGMP protocol version number is in the V2 format and the foregoing
  • the multicast router is configured with the IGMP Fast Leave (IGMP Fast Leave) function
  • the AGG generates an exit indication message according to the reduced multicast join information in the comparison result, where the exit indication message is sent. It can be an IGMP leave message, and the exit indication message is generated according to the reduced multicast group information Group2 and Group3 in the VLAN1.
  • the generating the IGMP message according to the preset format according to the comparison result further includes: The AGG receives the specific group query message sent by the first multicast router, where the specific group query message includes: a specific VLAN identifier; the AGG generates a second IGMP latest updated multicast join according to the comparison result. Information generated. For example, for the reduced multicast group information Group2 and Group3 in the VLAN 1 of the embodiment of the present invention, when the IGMP protocol version number is V2, the AGG receives the specific group query message sent by the first multicast router.
  • the specific group query message includes: a specific VLAN identifier, that is, VLAN1.
  • the AGG After receiving the specific group query message, the AGG sends the multicast group information corresponding to the VLAN 1 stored in the AGG, which is updated in step 303, (VLAN1, Group1) to the first multicast router.
  • VLAN1, Group1 For the reduced multicast source information and the multicast group information (VLAN1, SI, Group 1) in the VLAN 1 of the embodiment of the present invention, when the IGMP protocol version number is V3, the AGG receives the first multicast router.
  • the specific group query message sent by the specific group query message includes: a specific VLAN identifier, that is, VLAN1.
  • the AGG After receiving the specific group query message, the AGG sends the multicast source information and the multicast group information (VLAN1, S2, Group1) corresponding to the VLAN 1 stored in the AGG that is updated in step 303 to the first multicast. router.
  • the AGG may perform no action for the reduced multicast group information Group2 and Group3 in the VLAN 1 of the embodiment 2.
  • the first multicast router is configured with a timer. When the first multicast router does not receive the multicast group information Group2 and Group3 corresponding to VLAN1, the multicast group information Group2 corresponding to VLAN1 and The receiver of the group 3 discards the reception of the multicast group information Group3, and then the AGG removes the multicast group information Group2 and Group3 corresponding to the VLAN 1 from the corresponding multicast forwarding entry port.
  • the step 303 includes: when the new multicast group information exists in the comparison result, according to the comparison result, according to the pre-pre
  • the generating a preset protocol packet includes: generating, by the AGG, the PIM SM Join according to the newly added multicast join information in the comparison result, where the PIM SM Join is generated according to the newly added multicast group information. of.
  • the AGG For example, for the multicast group information Group4 added in the VLAN 1 in the first embodiment of the present invention, the AGG generates a PIM SM Join.
  • the PIM SM Join is generated according to the newly added multicast group information, that is, the multicast group information Group4 in the VLAN 1.
  • the generating the preset protocol packet according to the preset result according to the comparison result includes: the AGG according to the comparison result
  • the newly added multicast join information is generated by the PIM SSM Join, and the PIM SSM Join is generated according to the newly added multicast source information and multicast group information.
  • the AGG generates a PIM SSM Join, and the PIM SSM Join is a root.
  • the generating the preset protocol packet according to the preset format according to the comparison result includes: the AGG adding the multicast join information according to the comparison result Generating the PIM SM Prune, the PIM SM Prune for deleting the reduced multicast group information.
  • the AGG generates PIM SM Prune.
  • the PIM SM Prune is generated according to the reduced multicast group information in the VLAN 1, that is, the reduced multicast group information Group2 and Group3 in the VLAN 1.
  • the generating the preset protocol packet according to the preset format according to the comparison result includes: the AGG is reduced according to the comparison result.
  • the multicast join information generates the PIM SSM Prune, and the PIM SSM Prune is used to delete the reduced multicast source information and multicast group information.
  • the AGG For the reduced multicast source information and the multicast group information (S1, Group1) in the VLAN 1 of the embodiment 4, the AGG generates a PIM SSM Prune according to the reduced multicast join information in the comparison result, where the PIM SSM Prune is based on The multicast source information and the multicast group information (SI, Groupl) generated in the VLAN 1 are generated.
  • the AGG sends the preset protocol packet to the first multicast router in the VLAN indicated by the specific VLAN, and the preset protocol packet is used. And updating the multicast forwarding entry, where the multicast forwarding entry includes a multicast group address and an egress port, and is used for multicast replication.
  • the AGG is based on the reduced multicast source information and multicast group information (SI, Group1) in the VLAN 1.
  • the embodiment of the present invention provides a multicast communication method, where the obtained GM LSP message is compared with the GM LSP message saved by the AGG, and when there is a change of the multicast join information in the comparison result, according to the comparison result Generating a preset protocol packet, and sending the preset protocol packet to The first multicast router, the comparison result includes new or reduced multicast group information, or includes new or reduced multicast source information and multicast group information, which is added to the prior art. Or the reduced multicast group information, or the newly added or reduced multicast source information and the multicast group information are sent to the first multicast router, and the on-demand sending of the AGG to the first multicast router path is implemented. , saving the link bandwidth between the AGG and the first multicast router.
  • the method further includes: receiving, by the first multicast router, a preset protocol packet sent by the AGG, where the first multicast router is associated with the AGG
  • the preset protocol packet is an IGMP packet or a PIM packet
  • the first multicast router sends the preset protocol packet to the last hop multicast router.
  • the first multicast router sends the preset protocol packet to the last hop multicast router according to the multicast forwarding entry, and the specific forwarding process is the same as the prior art. The invention will not be described again here.
  • the last hop multicast router When the message is sent to the last hop multicast router, the last hop multicast router performs the election. Specifically, when the IGMP protocol is run between the AGG and the last hop multicast router, the last hop multicast group router starts the IGMP router election after receiving the IGMP report sent by the first multicast router. Assume that the last hop multicast router includes Router 1 and Router 2. After Router 2 is selected as the non-querier and Router 1 is the querier, Router 1 only needs to send IGMP Report to AGG. Only Router 1 is responsible for it. The data stream of the multicast source is sent to the multicast receiver.
  • the last hop multicast group router receives the PIM SM Join or PIM SSM Join message sent by the first multicast router.
  • the hopping multicast routers send PIM hello messages to each other, and elect DR (Designated Router ⁇ > designated routers) and BDR (Backup Designated Router). For example, suppose the last hop multicast router includes router 1 and router 2. After electing router 2 as BDR and router 1 as DR, router 1 is only required to send the multicast source data stream to multicast reception. By. It should be noted that the method for electing the router is the same as the prior art, and the present invention is not described in detail herein.
  • the multicast forwarding entry is queried, and if the outbound interface of the multicast forwarding entry includes the connection to the TRILL network.
  • the port forwards the data stream of the multicast source to the TRILL network.
  • the AGG forwards the data to the TRILL network through the TRIL network.
  • the ACC device receives the multicast source sent by the TRILL network side.
  • the data stream of the multicast source is decapsulated, and the data stream of the multicast source of the Native ETH (Local EtherNet) is restored, and then the local IGMP Snooping multicast forwarding table is searched.
  • the IGMP Snooping multicast forwarding table copies and forwards the data stream of the multicast source until the data stream of the multicast source is forwarded to the multicast group information receiver.
  • An embodiment of the present invention provides an AGG 40, as shown in FIG. 4, including:
  • the obtaining unit 401 is configured to obtain a GM LSP packet sent by the ACC.
  • the storage unit 402 is configured to store the multicast update information after the latest update.
  • the comparing unit 403 is configured to compare the multicast join information in the GM LSP packet obtained by the acquiring unit with the multicast join information in the storage unit, obtain a comparison result, and send the comparison result And generating a unit, and updating the multicast joining information in the storage unit according to the comparison result.
  • a generating unit 404 configured to receive a comparison result sent by the comparing unit, and when there is a changed multicast joining information in the comparison result, generate a preset protocol packet according to the comparison result, where
  • the default protocol packet is an IGMP packet or a PIM packet.
  • the sending unit 405 is configured to send the preset protocol packet generated by the generating unit to the first multicast router, so that the first multicast router generates a multicast forwarding table according to the preset protocol packet. item.
  • the obtaining unit obtains the GM LSP message
  • the comparing unit compares the GM LSP message with the GM LSP message stored in the storage unit
  • the generating unit generates a preset protocol for the message to be sent according to the comparison result.
  • the sending unit sends the preset protocol packet to the first multicast router, where the comparison result includes new or reduced multicast group information, or includes newly added or reduced multicast source information and groups.
  • the broadcast group information is sent to the first multicast router by using the newly added or reduced multicast group information or the newly added or reduced multicast source information and the multicast group information.
  • the on-demand transmission of the AGG to the first multicast router path is implemented, which saves the link bandwidth between the AGG and the first multicast router.
  • the GM LSP message is a TRILL LSP message
  • the multicast join information in the GM LSP message includes: a VLAN identifier and a multicast group information corresponding to the VLAN identifier, or a group in the GM LSP message.
  • the broadcast join information includes a VLAN identifier and multicast source information and multicast group information corresponding to the VLAN identifier.
  • the comparing unit 403 is specifically configured to:
  • the multicast join information in the GM LSP packet includes a VLAN identifier and the VLAN.
  • the multicast join information stored in the storage unit 402 is classified and combined according to the VLAN identifier to obtain the first multicast join information, where the first multicast join information is the AGG.
  • the information and the second multicast join information are compared to obtain a comparison result, where the comparison result includes: comparing the first multicast join information with the second multicast join information to obtain the second multicast
  • the new multicast group information is added to the specific VLAN in which the information is added, and the comparison result includes the newly added multicast group information.
  • the first multicast join information and the second multicast join information are added. Compare, get the first The reduced multicast group information exists in the specific VLAN of the two multicast join information, and the comparison result includes the reduced multicast group information.
  • the multicast join information stored in the storage unit 402 is classified according to the VLAN.
  • the identifier is classified and merged to obtain the first multicast join information, where the first multicast join information is each VLAN identifier stored in the AGG and the multicast source information and the multicast group corresponding to each VLAN identifier.
  • the information about the multicast join information in the GM LSP packet obtained by the obtaining unit 401 is classified and combined according to the VLAN identifier to obtain the second multicast join information, where the second multicast join information is the GM.
  • the comparison result includes: comparing the first multicast join information with the second multicast join information, and obtaining a new multicast source message in a specific VLAN of the second multicast join information. And comparing the multicast multicast source information and the multicast group information; and comparing the first multicast join information with the second multicast join information, When there is reduced multicast source information and multicast group information in the specific VLAN of the second multicast join information, the comparison result includes the reduced multicast source information and multicast group information.
  • the generating unit 404 is specifically configured to:
  • the generating unit 404 is specifically configured to: receive the comparison result sent by the comparing unit 403, and generate the new multicast joining information according to the comparison result.
  • the first IGMP report message is generated according to the newly added multicast group information.
  • the generating unit 404 is specifically configured to:
  • the generating unit 404 is specifically configured to: receive the comparison result sent by the comparing unit 403, and generate an exit according to the reduced multicast joining information in the comparison result. And indicating the message, where the exit indication message is generated according to the reduced multicast group information.
  • the generating unit 404 is specifically configured to:
  • the generating unit 404 is specifically configured to:
  • the specific group query message includes: a specific VLAN identifier; generating a second IGMP report message, the second IGMP report message according to the comparison result. It is generated according to the updated multicast join information.
  • the preset protocol packet is a PIM packet
  • the generating unit 404 is specifically used to:
  • the generating unit 404 is specifically configured to:
  • the generating unit 404 is specifically used to:
  • the generating unit 404 is specifically configured to:
  • the embodiment of the present invention provides an AGG, where the acquiring unit acquires the GM LSP packet, and the comparing unit generates a preset protocol packet according to the comparison result, and the sending unit sends the preset protocol packet to the first a multicast router, the comparison result includes adding or reducing multicast group information, or including new or reduced multicast source information and multicast group information, compared with the prior art, the added or The reduced multicast group information, or the newly added or reduced multicast source information and the multicast group information are sent to the first multicast router, and the on-demand transmission of the AGG to the first multicast router path is implemented. The link bandwidth between the AGG and the first multicast router is saved.
  • the embodiment of the present invention provides a communication system, including an ACC and any AGG provided by the embodiment of the present invention.
  • the AGG includes: a processor 501, a memory 502, and a network interface 503, where the network interface 501 is configured to acquire a GM LSP message sent by the ACC;
  • the 502 is configured to store the multicast update information after the latest update, and store the instruction.
  • the processor 501 is configured to: execute the instruction to: add the multicast join information in the GM LSP message to the memory.
  • the processor 501 is further configured to execute the instruction, when there is a change of the multicast join information in the comparison result, according to And the comparison result is that the preset protocol packet is generated according to the preset format, and the preset protocol packet is an IGMP packet or a PIM packet.
  • the network interface 503 is further configured to send the generated preset protocol packet.
  • the first multicast router is configured to generate a multicast forwarding entry according to the preset protocol packet.
  • the processor obtains the GM LSP message, compares the GM LSP message with the GM LSP message stored in the memory, and generates a preset protocol message according to the comparison result.
  • the network interface sends the preset protocol packet to the first multicast router, where the comparison result includes new or reduced multicast group information, or includes new or reduced multicast source information and multicast.
  • the group information is sent to the first multicast router by using the newly added or reduced multicast group information or the newly added or reduced multicast source information and the multicast group information.
  • the on-demand transmission of the AGG to the first multicast router path saves the link bandwidth between the AGG and the first multicast router.
  • the GM LSP message is a TRILL LSP message
  • the multicast join information in the GM LSP message includes: a VLAN identifier and a multicast group information corresponding to the VLAN identifier, or a group in the GM LSP message.
  • the broadcast join information includes a VLAN identifier and multicast source information and multicast group information corresponding to the VLAN identifier.
  • the processor 501 is configured to compare the multicast join information in the GM LSP message with the latest updated multicast join information stored in the AGG, to obtain a comparison result, including :
  • the multicast join information in the GM LSP packet includes the VLAN identifier and the multicast group information corresponding to the VLAN identifier
  • the multicast join information stored in the memory 502 is classified and merged according to the VLAN identifier,
  • the first multicast join information where the first multicast join information is each VLAN identifier stored in the AGG and the multicast group information corresponding to each VLAN identifier
  • the multicast join information in the GM LSP packet is classified and merged according to the VLAN identifier, and the second multicast join information is obtained, where the second multicast join information is each VLAN identifier in the GM LSP packet and the Each of the VLANs identifies the corresponding multicast group information
  • the first multicast join information and the second multicast join information are compared to obtain a comparison result, where the comparison result includes: adding the first multicast join information Comparing with the second multicast join information, the new multicast group information is added to the specific VLAN of the second multicast join information, and the comparison result includes
  • the multicast join information in the GM LSP packet includes the VLAN identifier and the multicast source information and the multicast group information corresponding to the VLAN identifier
  • the multicast join information stored in the memory 502 is identified by the VLAN. And performing the merging and merging to obtain the first multicast joining information, where the first multicast joining information is each VLAN identifier stored in the AGG and the multicast source information and multicast group information corresponding to each VLAN identifier.
  • the multicast join information in the GM LSP packet obtained by the processor 501 is classified and combined according to the VLAN identifier to obtain the second multicast join information, where the second multicast join information is the GM LSP.
  • Each VLAN identifier stored in the packet and the multicast source information and the multicast group information corresponding to each of the VLAN identifiers are compared; the first multicast join information and the second multicast join information are compared, and a comparison result is obtained.
  • the comparison result includes: comparing the first multicast join information with the second multicast join information, and obtaining new multicast source information in a specific VLAN of the second multicast join information.
  • the comparison result includes the newly added multicast source information and the multicast group information; when the first multicast join information is compared with the second multicast join information, the When there is reduced multicast source information and multicast group information in a specific VLAN of the second multicast join information, the comparison result includes the reduced multicast source information and multicast group information.
  • the processor 501 executes the instruction, and generates a preset protocol packet according to the comparison result according to the comparison result, including: As a result of the comparison, an IGMP message is generated according to a preset format.
  • the preset format includes: a VI format, a V2 format, or a V3 format, and the VIs, V2s, and V3s are IGMP protocol version numbers. If the newly added multicast group information exists, the processor 501 executes the instruction, and generates an IGMP message according to the comparison result according to the comparison result, including:
  • the first IGMP report message is generated according to the newly added multicast join information in the comparison result, and the first IGMP report message is generated according to the newly added multicast group information.
  • the processor 501 is configured to generate an IGMP message according to the comparison result according to the comparison result, including:
  • the processor 501 executes the instruction, and generates an IGMP message according to the comparison result according to the comparison result, including:
  • the processor 501 is configured to generate an IGMP message according to the comparison result according to the comparison result, including:
  • the processor 501 executes the instruction, configured to generate according to the preset format according to the comparison result.
  • IGMP text including:
  • the specific group query message includes: a specific VLAN identifier; generating a second IGMP report message according to the comparison result, and generating the subsequent multicast join information of.
  • the processor 501 executes the instruction, according to the comparison result, Generate preset protocol packets according to the preset format, including:
  • the processor 501 executes the instruction, and generates a preset protocol packet according to the preset format according to the comparison result.
  • the PIM SSM Join is generated according to the newly added multicast join information in the comparison result, and the PIM SSM Join is generated according to the newly added multicast source information and multicast group information.
  • the processor 501 executes the instruction, and generates a preset protocol message according to the preset result according to the comparison result, including: according to the comparison
  • the reduced multicast join information in the result generates the PIM SM Prune, and the PIM SM Prune is used to delete the reduced multicast group information.
  • the processor 501 executes the instruction, and generates a preset protocol packet according to the comparison result according to the comparison result, including :
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct connection or communication connection shown or discussed may be an indirect connection or communication connection through some interface, device or unit, and may be in electrical, mechanical or other form.
  • the components displayed for the unit may or may not be physical units, ie may be located in one place, or may be distributed over multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明实施例提供一种组播通信方法和汇聚交换机,涉及通信领域,能够实现组播流量按需复制。该方法包括:汇聚交换机(AGG)获取接入交换机(ACC)发送的组播组地址链路状态协议数据单元(GM LSP)报文;将该GM LSP报文中的组播加入信息与该AGG存储的组播加入信息做比较,得到比较结果,根据所述比较结果更新所述AGG存储的组播加入信息;并按照预设格式将该比较结果中变化的组播加入信息生成预设协议报文,该预设协议报文为因特网组管理协议(IGMP)报文或协议无关组播(PIM)报文;将该预设协议报文发送至第一组播路由器。本发明实施例提供的组播通信方法和汇聚交换机用于组播通信。

Description

一种组播通信方法和汇聚交换机 本申请要求于 2013 年 4 月 19 日提交中国专利局、 申请号为 CN 201310137909.7, 发明名称为 "一种组播通信方法和汇聚交换机" 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明涉及通信领域, 尤其涉及一种组播通信方法和汇聚交换机。 背景技术 TRILL(Transparent Interconnect of Lots of Links, 多链路透明互联) 网络是一种由运行 TRILL协议的 RB(Route Bridge,路由桥接设备)设备 组成的网络。 TRILL网络可以应用于多种场景, 其中, 当 TRILL网络 在 IPTV(Internet Protocol Television , 交互式网络电视)场景中应用时, AGG ( Aggregation Switch , 汇聚交换机)和 ACC(Access Switch , 接入 交换机)之间连接形成 TRILL网络, AGG连接组播路由器, ACC连接 组播组的接收者,组播路由器中的最后一跳路由器与组播源连接。组播 组的接收者通过向 ACC 发送 IGMP ( Internet Group Management Protocol , 因特网组管理协议)报文, 由 ACC转化为携带 Group Address TLV ( Group Address Tag-Length-Value , 组播组地址标签长度值 ) 的 LSP ( Link State PDU , 链路状态协议数据单元) 报文来点播组播源的 节目, 特别的, 携带所述 Group Address TLV的 LSP报文称为 GM LSP ( Group Mac Link State PDU, 组播组地址链路状态协议数据单元) 报 文, 该 GM LSP报文需要经过 AGG、 与所述 AGG连接的路由器传送 至最后一跳路由器, 以便于最后一跳路由器从组播源获取组播流, 并通 过网络传送至组播组的接收者。
现有技术中, AGG和第一组播路由器之间釆用静态组播方式发送 GM LSP报文, 所述第一组播路由器为与所述 AGG直接连接的组播路由器, 无 法实现组播流量按需复制,存在 AGG和第一组播路由器之间的链路带宽的 浪费。 发明内容 本发明的实施例提供一种组播通信方法和汇聚交换机, 能够实现 组播流量按需复制, 节约链路带宽。
为达到上述目的, 本发明的实施例釆用如下技术方案:
第一方面, 本发明提供一种组播通信方法, 应用于 AGG, 包括: 获取 ACC发送的 GM LSP报文;
将所述 GM LSP报文中的组播加入信息与所述 AGG存储的最近一 次更新后的组播加入信息做比较,得到比较结果,根据所述比较结果更 新所述 AGG存储的组播加入信息;
当所述比较结果中存在变化的组播加入信息时, 根据所述比较结 果, 按照预设格式生成预设协议报文, 所述预设协议报文为 IGMP ( Internet Group Management Protocol, 因特网组管理协议)报文或 PIM ( Protocol Independent Multicast, 十办议无关组播) 才艮文;
将所述预设协议报文发送至第一组播路由器, 以便于所述第一组 播路由器根据所述预设协议报文生成组播转发表项。
结合第一方面, 在第一方面的第一种可能实现方式中, 所述 GM LSP报文为 TRILL LSP报文, 所述 GM LSP报文中的组播加入信息包 括: VLAN( Virtual Local Area Network,虚拟局域网)标识和所述 VLAN 标识对应的组播组信息, 或所述 GM LSP报文中的组播加入信息包括: VLAN标识和所述 VLAN标识对应的组播源信息及组播组信息。
结合第一方面、 第一方面的第一种可能实现方式, 在第一方面的 第二种可能实现方式中, 所述将所述 GM LSP报文中的组播加入信息 与所述 AGG存储的最近一次更新后的组播加入信息做比较, 得到比较 结果, 包括:
当所述 GM LSP 报文中的组播加入信息包括 VLAN 标识和所述 VLAN标识对应的组播组信息时,
将所述 AGG中存储的最近一次更新后的组播加入信息按照 VLAN 标识进行归类合并,得到第一组播加入信息, 所述第一组播加入信息为 所述 AGG中存储的每个 VLAN标识及所述每个 VLAN标识对应的组 播组信息;
将所述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类 合并, 得到第二组播加入信息, 所述第二组播加入信息为所述 GM LSP 报文中的每个 VLAN标识及所述每个 VLAN标识对应的组播组信息; 比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括:
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN 中存在新增的组播组信息时, 所述比较结果包括所述新增的组播组信息;
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN 中存在减少的组播组信息时, 所述比较结果包括所述减少的组播组信息;
或当所述 GM LSP报文中的组播加入信息包括 VLAN标识和所述 VLAN标识对应的组播源信息及组播组信息时,
将所述 AGG中存储的最近一次更新后的组播加入信息按照 VLAN 标识进行归类合并,得到第一组播加入信息, 所述第一组播加入信息为 所述 AGG中存储的每个 VLAN标识及所述每个 VLAN标识对应的组 播源信息及组播组信息;
将所述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类 合并, 得到第二组播加入信息, 所述第二组播加入信息为所述 GM LSP 报文中存储的每个 VLAN标识及所述每个 VLAN标识对应的组播源信 息及组播组信息;
比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括:
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN 中存在新增的组播源信息及组 播组信息时, 所述比较结果包括所述新增的组播源信息及组播组信息; 当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN 中存在减少的组播源信息及组 播组信息时, 所述比较结果包括所述减少的组播源信息及组播组信息。
结合第一方面的第二种可能实现方式, 在第一方面的第三种可能 实现方式中, 当所述预设协议报文为 IGMP报文时, 所述根据所述比较 结果, 按照预设格式生成预设协议报文包括: 所述 AGG根据比较结果, 按照预设格式生成 IGMP报文, 所述预 设格式包括: VI格式、 V2格式或 V3格式,所述 VI、 V2和 V3为 IGMP 协议版本号。
结合第一方面的第三种可能实现方式, 在第一方面的第四种可能 实现方式中, 当所述预设格式为所述 VI格式或所述 V2格式时, 当所 述比较结果中存在所述新增的组播组信息时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包括:
所述 AGG根据所述比较结果中所述新增的组播加入信息生成第一 IGMP报告报文, 所述第一 IGMP报告报文为根据所述新增的组播组信 息生成的;
当所述预设格式为所述 V 3格式, 当所述比较结果中存在新增的组 播组信息, 或所述比较结果中存在新增的组播源信息及组播组信息时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包括:
所述 AGG 根据所述比较结果中新增的组播加入信息生成允许报 文, 所述允许报文为根据所述新增的组播组信息, 或根据所述新增的组 播源信息及组播组信息生成的;
当所述预设格式为所述 VI格式或所述 V2格式时, 当所述比较结 果中存在所述减少的组播组信息时, 所述根据所述比较结果,按照预设 格式生成 IGMP报文包括:
所述 AGG根据所述比较结果中所述减少的组播加入信息生成退出 指示报文, 所述退出指示报文为根据所述减少的组播组信息生成的; 当所述预设格式为 V3格式时, 当所述比较结果中存在所述减少的 组播组信息,或所述比较结果中存在所述减少的组播源信息及组播组信 息时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包括: 所述 AGG 根据所述比较结果中减少的组播加入信息生成退出报 文, 所述退出报文为根据所述减少的组播组信息, 或根据所述减少的组 播源信息及组播组信息生成的。
结合第一方面的第三种可能实现方式, 在第一方面的第五种可能 实现方式中, 当所述预设格式为所述 V2格式或当所述预设格式为所述 V3格式时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包 括: 所述 AGG接收所述第一组播路由器发送的特定组查询报文, 所述 特定组查询 文包括: 特定 VLAN标识;
所述 AGG根据所述比较结果生成第二 IGMP报告报文, 所述第二 IGMP报告报文为根据所述更新后的所述 AGG存储的最近一次更新后 的组播加入信息生成的。
结合第一方面的第三种可能实现方式, 在第一方面的第六种可能 实现方式中, 当所述预设协议报文为 PIM报文时,
当所述比较结果中存在新增的组播组信息时, 所述根据所述比较 结果, 按照预设格式生成预设协议报文包括:
所述 AGG根据所述比较结果中新增的组播加入信息生成 PIM SM
Join (Protocol Independent Multicast Service Message Join , 协议无关组 播业务加入消息 ), 所述 PIM SM Join为 居所述新增的组播组信息生 成的;
当所述比较结果中存在所述新增的组播源信息及组播组信息时, 所述根据所述比较结果, 按照预设格式生成预设协议报文包括:
所述 AGG 根据所述比较结果中新增的组播加入信息生成 PIM SSM Join ( Protocol Independent Multicast Source Specific Muticast Join , 协议无关组播指定信源组播加入消息) , 所述 PIM SSM Join为根据所 述新增的组播源信息及组播组信息生成的;
当所述比较结果中存在所述减少的组播组信息时, 所述根据所述 比较结果, 按照预设格式生成预设协议报文包括:
所述 AGG 居所述比较结果中减少的组播加入信息生成 PIM SM Prune ( Protocol Independent Multicast Service Message Prune , 协议无关 组播业务删除消息 ) , 所述 PIM SM Prune用于删除所述减少的组播组 信息;
当所述比较结果中存在所述减少的组播源信息及组播组信息时, 所述根据所述比较结果, 按照预设格式生成预设协议报文包括:
所述 AGG 根据所述比较结果中减少的组播加入信息生成 PIM SSM Prune ( Protocol Independent Multicast Source Specific Multicast Prune, 协议无关组播指定信源组播删除消息) , 所述 PIM SSM Prune 用于删除所述减少的组播源信息及组播组信息。 第二方面, 本发明提供一种 AGG, 包括:
获取单元, 用于获取 ACC发送的 GM LSP报文;
存储单元, 用于存储最近一次更新后的组播加入信息;
比较单元, 用于将所述获取单元获取到的所述 GM LSP报文中的 组播加入信息与所述存储单元中的组播加入信息做比较, 得到比较结 果并将所述比较结果发送至生成单元, 并根据所述比较结果更新所述 存储单元中的组播加入信息;
生成单元, 用于接收所述比较单元发送的比较结果, 当所述比较 结果中存在变化的组播加入信息时,根据所述比较结果,按照预设格式 生成预设协议报文,所述预设协议报文为因特网组管理协议 IGMP报文 或协议无关组播 PIM报文;
发送单元, 用于将所述生成单元生成的所述预设协议报文发送至 第一组播路由器,以便于所述第一组播路由器根据所述预设协议报文生 成组播转发表项。
结合第二方面, 在第二方面的的第一种可能实现方式中, 所述 GM LSP报文为 TRILL LSP报文, 所述 GM LSP报文中的组播加入信息包 括: VLAN标识和所述 VLAN标识对应的组播组信息,或所述 GM LSP 报文中的组播加入信息包括 VLAN标识和所述 VLAN标识对应的组播 源信息及组播组信息。
结合第二方面、 第二方面的第一种可能实现方式, 在第二方面的 第二种可能实现方式中, 所述比较单元具体用于:
当所述 GM LSP 报文中的组播加入信息包括 VLAN 标识和所述 VLAN标识对应的组播组信息时,
将所述存储单元中存储的组播加入信息按照 VLAN标识进行归类 合并, 得到第一组播加入信息, 所述第一组播加入信息为所述 AGG中 存储的每个 VLAN标识及所述每个 VLAN标识对应的组播组信息; 将所述获取单元获取的所述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类合并,得到第二组播加入信息, 所述第二组播加入 信息为所述 GM LSP报文中的每个 VLAN标识及所述每个 VLAN标识 对应的组播组信息;
比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括:
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN 中存在新增的组播组信息时, 所述比较结果包括所述新增的组播组信息;
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN 中存在减少的组播组信息时, 所述比较结果包括所述减少的组播组信息;
或当所述 GM LSP报文中的组播加入信息包括 VLAN标识和所述 VLAN标识对应的组播源信息及组播组信息时,
将所述存储单元中存储的组播加入信息按照 VLAN标识进行归类 合并, 得到第一组播加入信息, 所述第一组播加入信息为所述 AGG中 存储的每个 VLAN标识及所述每个 VLAN标识对应的组播源信息及组 播组信息;
将所述获取单元获取的所述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类合并,得到第二组播加入信息, 所述第二组播加入 信息为所述 GM LSP报文中存储的每个 VLAN标识及所述每个 VLAN 标识对应的组播源信息及组播组信息;
比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括:
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN 中存在新增的组播源信息及组 播组信息时, 所述比较结果包括所述新增的组播源信息及组播组信息; 当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN 中存在减少的组播源信息及组 播组信息时, 所述比较结果包括所述减少的组播源信息及组播组信息。
结合第二方面的第二种可能实现方式, 在第二方面的第三种可能 实现方式中, 当所述预设协议报文为 IGMP报文时, 所述生成单元具体 用于:
接收所述比较单元发送的比较结果, 根据所述比较结果, 按照预 设格式生成 IGMP报文, 所述预设格式包括: VI格式、 V2格式或 V3 格式, 所述 VI、 V2和 V3为 IGMP协议版本号。 结合第二方面的第三种可能实现方式, 在第二方面的第四种可能 实现方式中, 当所述预设格式为所述 VI格式或所述 V2格式, 所述比 较结果中存在所述新增的组播组信息时, 所述生成单元具体用于: 接收所述比较单元发送的比较结果, 根据所述比较结果中所述新 增的组播加入信息生成第一 IGMP报告报文,所述第一 IGMP报告报文 为根据所述新增的组播组信息生成的;
当所述预设格式为 V3格式时, 当所述比较结果中存在所述新增的 组播组信息,或所述比较结果中存在所述新增的组播源信息及组播组信 息时, 所述生成单元具体用于:
接收所述比较单元发送的比较结果, 根据所述比较结果中新增的 组播加入信息生成允许报文,所述允许报文为根据所述新增的组播组信 息, 或根据所述新增的组播源信息及组播组信息生成的;
当所述预设格式为所述 VI格式或所述 V2格式时, 当所述比较结 果中存在所述减少的组播组信息时, 所述生成单元具体用于:
接收所述比较单元发送的比较结果, 根据所述比较结果中所述减 少的组播加入信息生成退出指示报文,所述退出指示报文为根据所述减 少的组播组信息生成的;
当所述预设格式为 V3格式时, 当所述比较结果中存在所述减少的 组播组信息,或所述比较结果中存在所述减少的组播源信息及组播组信 息时, 所述生成单元具体用于:
接收所述比较单元发送的比较结果, 根据所述比较结果中减少的 组播加入信息生成退出报文,所述退出报文为根据所述减少的组播组信 息, 或根据所述减少的组播源信息及组播组信息生成的。
结合第二方面的第三种可能实现方式, 在第二方面的第五种可能 实现方式中, 当所述预设格式为所述 V2格式或当所述预设格式为所述 V3格式时, 所述生成单元具体用于:
接收所述第一组播路由器发送的特定组查询报文, 所述特定组查 询才艮文包括: 特定 VL AN标识;
根据所述比较结果生成第二 IGMP报告报文,所述第二 IGMP报告 报文为根据所述更新后的组播加入信息生成的。
结合第二方面的第三种可能实现方式, 在第二方面的第六种可能 实现方式中, 当所述预设协议报文为 PIM报文时,
当所述比较结果中存在新增的组播组信息时, 所述生成单元具体 用于:
接收所述比较单元的比较结果, 根据所述比较结果中新增的组播 加入信息生成所述 PIM SM Join, 所述 PIM SM Join为才艮据所述新增的 组播组信息生成的;
当所述比较结果中存在新增的组播源信息及组播组信息时, 所述 生成单元具体用于:
接收所述比较单元的比较结果, 根据所述比较结果中新增的组播 加入信息生成所述 PIM SSM Join , 所述 PIM SSM Join为才艮据所述新增 的组播源信息及组播组信息生成的;
当所述比较结果中存在减少的组播组信息时, 所述生成单元具体 用于:
接收所述比较单元的比较结果, 根据所述比较结果中减少的组播 加入信息生成所述 PIM SM Prune ,所述 PIM SM Prune用于删除所述减 少的组播组信息;
当所述比较结果中存在减少的组播源信息及组播组信息时, 所述 生成单元具体用于:
接收所述比较单元的比较结果, 根据所述比较结果中减少的组播 加入信息生成所述 PIM SSM Prune ,所述 PIM SSM Prune用于删除所述 减少的组播源信息及组播组信息。
本发明实施例提供一种组播通信方法和汇聚交换机, 该组播通信方 法包括: AGG获取 ACC发送的 GM LSP报文; 将所述 GM LSP报文中的组 播加入信息与所述 AGG存储的最近一次更新后的组播加入信息做比较, 得到比较结果, 根据所述比较结果更新所述 AGG存储的组播加入信息; 当所述比较结果中存在变化的组播加入信息时, 根据所述比较结果, 按 照预设格式生成预设协议报文, 所述预设协议报文为因特网组管理协议
I GMP报文或协议无关组播 P IM报文; 将所述预设协议报文发送至第一组 播路由器, 以便于所述第一组播路由器根据所述预设协议报文生成组播 转发表项。 这样一来, 将获取的 GM LSP报文与所述 AGG保存的 GM LSP 报文进行比较, 当所述比较结果中存在变化的组播加入信息时, 根据比 较结果生成预设协议报文, 并将所述预设协议报文发送至第一组播路由 器, 所述比较结果包括新增的或减少组播组信息、 或包括新增的或减少 的组播源信息及组播组信息, 较现有技术, 将所述新增的或减少的组播 组信息, 或所述新增的或减少的组播源信息及组播组信息主动发送至第 一组播路由器, 实现了 AGG到第一组播路由器路径上的按需发送, 节约 了 AGG到第一组播路由器间的链路带宽。
附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的一种组播通信方法流程图;
图 2为本发明实施例提供的一种交互式电视网络结构示意图; 图 3为本发明实施例提供的另一种组播通信方法流程图;
图 4为本发明实施例提供的一种 AGG结构示意图;
图 5为本发明实施例提供的另一种 AGG结构示意图。
具体实施方式 下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例提供一种组播通信方法, 应用于 AGG, 如图 1所示, 包 括:
101、 获取 ACC发送的 GM LSP报文。
所述 GM LSP报文包含 12比特位的 VLAN标识和所述 VLAN标识对应 的组播组信息, 或 VLAN标识和所述 VLAN标识对应的组播源信息及组播 组信息, 或^"细标签 ( Fine Grained Label, FGL )和所述^"细标签对应的组 播组信息, 或精细标签和所述精细标签对应的组播源信息及组播组信息, 需 要说明的是, 所述精细标签为 24比特位的 VLAN标识, 因此, 本发明实施 例中的 VLAN标识既可指代 12比特位的 VLAN标识,也可以指代 24比特位 的 VLAN标识。
102、 将所述 GM LSP报文中的组播加入信息与所述 AGG存储的最近 一次更新后的组播加入信息做比较, 得到比较结果, 根据所述比较结果更新 所述 AGG存储的组播加入信息。
103、 当所述比较结果中存在变化的组播加入信息时, 根据所述比较结 果, 按照预设格式生成预设协议报文, 所述预设协议报文为因特网组管理协 议 IGMP报文或协议无关组播 PIM报文。
104、 将所述预设协议报文发送至第一组播路由器, 以便于所述第一组 播路由器根据所述预设协议报文生成组播转发表项。 行比较, 当所述比较结果中存在变化的组播加入信息时, 根据比较结果生成 预设协议报文, 并将所述预设协议报文发送至第一组播路由器, 所述比较结 果包括新增的或减少组播组信息、或包括新增的或减少的组播源信息及组播 组信息, 较现有技术, 将所述新增的或减少的组播组信息, 或所述新增的或 减少的组播源信息及组播组信息主动发送至第一组播路由器, 实现了 AGG 到第一组播路由器路径上的按需发送, 节约了 AGG到第一组播路由器间的 链路带宽。
需要说明的是, 该组播通信方法可以在 TRILL 网络和组播路由器之间 实现。 TRILL网络不仅可以用于数据中心场景, 也可以用于 IPTV场景, 图 2为交互式电视网络 IPTV的结构示意图, 在该 IPTV网络中, ACC205用于 直接连接组播源信息或组播组信息的接收者 206, ACC205可以直接连接组 播源信息或组播组信息接收者 206,也可以通过 Native ETH(Native Ethernet, 本地以太网)接入组播源信息或组播组信息接收者 206。 AGG204 是多台 ACC205的汇聚点, ACC205与 AGG204之间是 TRILL网络。 AGG204通过 ACC205接入组播接收者 206的点播请求, 并通过第一组播路由器 203及最 后一跳组播路由器 202 将携带有所述点播请求中的组播源信息或组播源及 组播组信息的报文发送给组播源 201来点播节目。
AGG和 ACC及其中间的转发设备构成 TRILL网络, AGG和 ACC之 间运行 TRILL协议。 TRILL协议是一种在 TRILL网络上基于链路状态计算 的路由协议, 运行 TRILL协议的设备叫做 RB ( Route Bridge, 路由桥接设 备), AGG和 ACC属于 TRILL网络边缘的 RB设备。 RB通过 TRILL协议 中的信息获知 TRILL网络拓朴、分发树信息。每个 RB以设备自身作为源节 点, 通过最短路径树算法生成到其他 RB的单播转发表, RB以每颗分发树 树根为源节点, 通过最短路径树算法生成到其他 RB的分发树转发表。
本发明实施例提供的组播通信方法还可以应用于 IPTV 场景组播通信 中, 执行主体为 AGG, 该组播通信方法执行的具体过程如图 3所示, 包括:
301、 获取 ACC发送的 GM LSP报文。
首先, ACC获取组播组接收者发送的 GM LSP报文, 然后, 所述 ACC 将 GM LSP报文按照洪泛算法发送给 AGG,最后,所述 AGG获取接入交换 机 ACC发送的 GM LSP报文。
具体的, ACC获取组播组接收者发送的 GM LSP报文的方法如下:
TRILL 网络边缘的 RB 启用 IGMP SNOOPING(Internet Group Management Protocol Snooping, 因特网组管理协议侦听)功能, 周期性的向 组播组接收者发送查询报文, 触发组播组接收者发送 IGMP Report ( Internet Group Management Protocol Report, 因特网组管理协议报文)。
当 ACC通过侦听功能收到 IGMP Report报文的端口信息时, 需要根据 所述报文的端口信息建立组播转发表项,向组播组接收者端口侧实现组播流 量按需复制。 当 ACC收到 IGMP Report报文时, 需要通知 TRILL网络所述 IGMP Report报文中的组播组信息, 或组播源信息及组播组信息, 根据所述 组播组信息, 或所述组播源信息及组播组信息进行剪枝计算, 实现 TRILL 网络中的组播流量按需复制。
302、 将所述 GM LSP报文中的组播加入信息与所述 AGG存储的最近 一次更新后的组播加入信息做比较, 得到比较结果。
举例来说, 步骤 302可以按如下两种方法实现:
第一种: 当所述 GM LSP报文中的组播加入信息包括 VLAN标识和所 述 VLAN标识对应的组播组信息时,将所述 AGG中存储的最近一次更新后 的组播加入信息按照 VLAN标识进行归类合并, 得到第一组播加入信息, 所述第一组播加入信息为所述 AGG 中存储的每个 VLAN标识及所述每个 VLAN标识对应的组播组信息;将所述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类合并, 得到第二组播加入信息, 所述第二组播加入信息 为所述 GM LSP报文中的每个 VLAN标识及所述每个 VLAN标识对应的组 播组信息; 比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括: 当将所述第一组播加入信息与所述第二组播加入 信息做比较, 得到所述第二组播加入信息的特定 VLAN 中存在新增的组播 组信息, 所述比较结果包括所述新增的组播组信息。
实施例 1 :
示例的, 本发明实施例假设 AGG存储的最近一次更新后的组播加入信 息为 ACC1通告的 GM LSP报文 1 ( VLAN1, Group 1 , Group2 )和 ACC2 通告的 GM LSP报文 2 ( VLAN1, Group 1 , Group3 ), 所述 AGG接收到的 GM LSP报文中的组播加入信息为 ACC3通告的 GM LSP报文 3 ( VLAN1, Group2, Group4 ), 需要说明的是, 所述 AGG接收到的 GM LSP报文中的 组播加入信息可以为一个,也可以为多个。所述 GM LSP报文 1、所述 GM LSP 报文 2及所述 GM LSP报文 3的组播加入信息包括 VLAN标识和所述 VLAN 标识对应的组播组信息。 首先, 将所述 AGG中存储的最近一次更新后的组 播加入信息按照 VLAN标识进行归类合并, 即对所述 GM LSP报文 1、所述 GM LSP报文 2中的组播加入信息按照 VLAN标识进行归类合并,由于所述 GM LSP报文 1、 所述 GM LSP报文 2中的 VLAN标识均为 VLAN1, 因此 归类合并后得到的第一组播加入信息为 AGG 中存储的 VLAN1 及所述 VLAN1对应的组播组信息 Group 1, Group2及 Group3。 然后, 将所述接收 到的 GM LSP报文 3中的组播加入信息按照 VLAN标识进行归类合并, 得 到第二组播加入信息,由于所述 GM LSP报文 3的 VLAN标识也为 VLAN1, 因此归类合并后得到的 GM LSP报文 3中的第二组播加入信息为 VLAN1及 所述 VLAN1对应的组播组信息 Group2及 Group4。 然后, 将所述第一组播 加入信息和所述第二组播加入信息进行比较, 明显的, 通过比较可以得到所 述第二组播加入信息的 VLAN1中存在新增的组播组信息 Group4。
当将所述第一组播加入信息与所述第二组播加入信息做比较,得到所述 第二组播加入信息的特定 VLAN 中存在减少的组播组信息, 所述比较结果 包括所述减少的组播组信息。
实施例 2:
示例的, 本发明实施例假设 AGG存储的最近一次更新后的组播加入信 息为 ACC1通告的 GM LSP报文 4 ( VLAN1 , Group 1 , Group2 )和 ACC2 通告的 GM LSP报文 5 ( VLAN1, Group 1 , Group3 ), 所述 AGG接收到的 GM LSP报文中的组播加入信息为 ACC2通告的 GM LSP报文 6 ( VLAN1, Group 1 ), 需要说明的是。 所述 GM LSP报文 4、 所述 GM LSP报文 5及所 述 GM LSP报文 6的组播加入信息包括 VLAN标识和所述 VLAN标识对应 的组播组信息。 首先, 将所述 AGG中存储的最近一次更新后的组播加入信 息按照 VLAN标识进行归类合并,即对所述 GM LSP报文 4及所述 GM LSP 报文 5中的组播加入信息按照 VLAN标识进行归类合并,由于所述 GM LSP 报文 4、 所述 GM LSP报文 5中的 VLAN标识均为 VLAN1, 因此归类合并 后得到的第一组播加入信息为 AGG中存储的 VLAN1及所述 VLAN1对应 的组播组信息 Group 1, Group2及 Group3。 然后, 将所述接收到的 GM LSP 报文 6中的组播加入信息按照 VLAN标识进行归类合并, 得到第二组播加 入信息, 由于所述 GM LSP报文 6的 VLAN标识为 VLAN1, 因此归类合并 后得到的 GM LSP报文 6中的第二组播加入信息为 VLAN1及所述 VLAN1 对应的组播组信息 Groupl。 然后, 将所述第一组播加入信息和所述第二组 播加入信息进行比较, 明显的, 通过比较可以得到所述第二组播加入信息的 VLAN1中存在减少的组播组信息 Group2及 Group3。
第二种: 当所述 GM LSP报文中的组播加入信息包括 VLAN标识和所 述 VLAN标识对应的组播源信息及组播组信息时,将所述 AGG中存储的最 近一次更新后的组播加入信息按照 VLAN标识进行归类合并, 得到第一组 播加入信息,所述第一组播加入信息为所述 AGG中存储的每个 VLAN标识 及所述每个 VLAN标识对应的组播源信息及组播组信息; 将所述 GM LSP 报文中的组播加入信息按照 VLAN标识进行归类合并, 得到第二组播加入 信息, 所述第二组播加入信息为所述 GM LSP报文中存储的每个 VLAN标 识及所述每个 VLAN标识对应的组播源信息及组播组信息; 比较所述第一 组播加入信息和所述第二组播加入信息,得到比较结果,所述比较结果包括: 当将所述第一组播加入信息与所述第二组播加入信息做比较,得到所述第二 组播加入信息的特定 VLAN 中存在新增的组播源信息及组播组信息时, 所 述比较结果包括所述新增的组播源信息及组播组信息。
实施例 3:
示例的, 本发明实施例假设 AGG存储的最近一次更新后的组播加入信 息为 ACC1通告的 GM LSP报文 7(VLAN1, S1, Group 1), 所述 AGG接收 到的 GM LSP报文 8 中的组播加入信息为 ACC2通告的 GM LSP报文 8 ( VLAN1 , S2, Groupl) 和 ACC3通告的 GM LSP报文 9 ( VLAN1 , SI , Groupl),需要说明的是。 所述 GM LSP报文 7, 所述 GM LSP报文 8及所述 GM LSP报文 9的组播加入信息包括 VLAN标识和所述 VLAN标识对应的 组播源信息及组播组信息。 首先, 将所述 AGG中存储的最近一次更新后的 组播加入信息按照 VLAN标识进行归类合并, 由于所述 GM LSP报文 7中 的 VLAN标识为 VLAN1 ,因此归类合并后得到的第一组播加入信息为 AGG 中存储的 VLAN1及所述 VLAN1对应的组播源信息及组播组信息为 ( Sl, Groupl)。 然后, 将所述接收到的 GM LSP报文 8和所述 GM LSP报文 9中 的组播加入信息按照 VLAN标识进行归类合并, 得到第二组播加入信息, 由于所述 GM LSP报文 8和所述 GM LSP报文 9的 VLAN标识均为 VLAN1, 因此归类合并后得到第二组播加入信息为 VLAN1及所述 VLAN1对应的组 播源信息及组播组信息为 (S2, Groupl )及(Sl, Groupl)。 然后, 将所述 第一组播加入信息和所述第二组播加入信息进行比较, 明显的, 通过比较可 以得到所述第二组播加入信息的 VLAN1中的存在新增的组播源信息及组播 组信息 ( S2, Groupl )。
当将所述第一组播加入信息与所述第二组播加入信息做比较,得到所述 第二组播加入信息的特定 VLAN中存在减少的组播源信息及组播组信息时, 所述比较结果包括所述减少的组播源信息及组播组信息。
实施例 4:
示例的, 本发明实施例假设 AGG存储的最近一次更新后的组播加入信 息为 ACC1通告的 GM LSP报文 10(VLAN1, SI , Groupl)和 ACC2通告的 GM LSP报文 11 (VLAN1, S2, Groupl), 所述 AGG接收到的 ACC3通告的 GM LSP报文 12中的组播加入信息为 (VLAN1, S2, Groupl),需要说明的 是所述 GM LSP报文 10及 GM LSP报文 11的组播加入信息包括 VLAN标 识和所述 VLAN标识对应的组播源信息及组播组信息。 首先, 将所述 AGG 中存储的最近一次更新后的组播加入信息按照 VLAN标识进行归类合并, 由于所述 GM LSP报文 10及所述 GM LSP报文 11 中的 VLAN标识为 VLAN1 ,因此归类合并后得到的第一组播加入信息为 AGG中存储的 VLAN1 及所述 VLAN1 对应的组播源信息及组播组信息为 (Sl, Groupl)及(S2, Groupl)。 然后, 将所述接收到的 GM LSP报文 12中的组播加入信息按照 VLAN标识进行归类合并,得到第二组播加入信息, 由于所述 GM LSP报文 12的 VLAN标识为 VLAN1, 因此归类合并后得到的 GM LSP报文 12中的 第二组播加入信息为 VLANl及所述 VLANl对应的组播源信息及组播组信 息为 (S2, Groupl )。 然后, 将所述第一组播加入信息和所述第二组播加入 信息进行比较,明显的,通过比较可以得到所述第二组播加入信息的 VLAN1 中的存在减少的组播源信息及组播组信息 (Sl、 Graupl )。
需要说明的是, 所述 AGG接收到的 GM LSP报文中的组播加入信息可 以为一个, 也可以为多个, 因此, 所述将所述 GM LSP报文中的组播加入信 息与所述 AGG存储的最近一次更新后的组播加入信息做比较, 得到的比较 结果中可以同时存在增加组播加入信息和减少组播加入信息的情况。 示例 的, 假设 AGG存储的最近一次更新后的组播加入信息为 ACC1通告的 GM LSP报文 13为 ( VLAN1, Group 1, Group2 )和 ACC2通告的 GM LSP报文 14 ( VLAN2, Group3, Group4 ), 所述 AGG接收到的 ACC3通告的 GM LSP 报文 15为 (VLANl,Group2, Group5), 所述 AGG接收到的 ACC2通告的 GM LSP报文 16为(VLAN2, Group4), 则将所述 AGG中存储的最近一次更 新后的组播加入信息按照 VLAN标识进行归类合并, 得到的第一组播加入 信息为 (VLAN1, Group 1 , Group2 )和 (VLAN2, Group3 , Group4 ); 将 所述 AGG接收到的 GM LSP报文中的组播加入信息按照 VLAN标识进行归 类合并, 得到的第二组播加入信息为(VLANl ,Group2, Group5)和 (VLAN2, Group4), 然后将所述第一组播加入信息和所述第二组播加入信息比较, 明 显的, 通过比较可以得到比较结果为所述第二组播加入信息的 VLAN1中存 在新增的组播组信息 Group5, 存在减少的组播组信息 Groupl;VLAN2中存 在减少的组播组信息 Graup3。 然后执行步骤 303, 根据所述比较结果, 按照 预设格式生成预设协议报文。
303、 根据所述比较结果更新所述 AGG存储的组播加入信息。
步骤 303具体包括: AGG利用步骤 302得到的比较结果更新所述 AGG 中存储的最近一次更新后的组播加入信息, 将新增的组播组信息, 或组播源 信息及组播组信息加入到所述 AGG中存储的最近一次更新后的组播加入信 息中, 将减少的组播组信息, 或组播源信息及组播组信息从所述 AGG中存 储的最近一次更新后的组播加入信息中删除, 得到最新的 AGG存储的组播 加入信息。
示例的, 可以根据实施例 2更新所述 AGG存储的组播加入信息, 得到 新的所述 AGG存储的组播加入信息为 (VLAN1, Group 1 ); 可以根据实施 例 4更新所述 AGG存储的的组播加入信息, 得到新的所述 AGG存储的组 播加入信息为 (VLAN1, S2, Groupl )。
304、 当所述比较结果中存在变化的组播加入信息时, 根据所述比较结 果, 按照预设格式生成预设协议报文, 所述预设协议报文为 IGMP报文或 PIM报文。
当所述 AGG与第一组播路由器之间运行 IGMP协议时, 步骤 303具体 包括: 所述 AGG根据比较结果, 按照预设格式生成 IGMP报文, 所述预设 格式包括: VI格式、 V2格式或 V3格式, 所述 VI、 V2和 V3为 IGMP协 议版本号。
当所述预设格式为所述 VI格式或所述 V2格式时, 当所述比较结果中 存在所述新增的组播组信息时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包括: 所述 AGG根据所述比较结果中所述新增的组播加入信息 生成第一 IGMP报告报文,所述第一 IGMP报告报文为根据所述新增的组播 组信息生成的。
示例的, 对于本发明实施例 1 VLAN1新增的组播组信息 Group4, 当所 述 IGMP协议版本号为 VI或 V2时, 所述 AGG根据比较结果,按照预设格 式即所述 VI格式或所述 V2格式生成第一 IGMP报告报文,所述第一 IGMP 报告报文可以为 IGMP Report报文,所述第一 IGMP报告报文包括所述新增 的组播组信息, 即 VLAN1中新增的组播组信息 Group4。
当所述预设格式为 V3格式时, 当所述比较结果中存在所述新增的组播 组信息, 或所述比较结果中存在所述新增的组播源信息及组播组信息时, 所 述根据所述比较结果, 按照预设格式生成 IGMP报文包括: 所述 AGG根据 所述比较结果中新增的组播加入信息生成允许报文,所述允许报文为根据所 述新增的组播组信息, 或根据所述新增的组播源信息及组播组信息生成的。
示例的, 对于实施例 1 中 VLAN1新增的组播组信息 Group4, 当所述 IGMP协议版本号为 V3时,所述 AGG根据所述比较结果中新增的组播加入 信息生成允许报文, 示例的, 所述允许报文可以为 TO_IN(NULL, Group4), 所述允许报文表示 VLAN1 新增加了组播组信息 Group4。 对于实施例 3VLAN1中新增的组播源信息及组播组信息 (S2, Groupl ), 所述 AGG根据 所述比较结果中新增的组播加入信息生成允许报文, 示例的, 所述允许报文 可以为 ALLOW (S2, Groupl), 所述允许报文表示 VLAN1中新增加了组播 源信息及组播组信息 (S2, Groupl)。
当所述预设格式为 V3格式时, 当所述比较结果中存在所述减少的组播 组信息, 或所述比较结果中存在所述减少的组播源信息及组播组信息时, 所 述根据所述比较结果, 按照预设格式生成 IGMP报文包括: 所述 AGG根据 所述比较结果中减少的组播加入信息生成退出报文,所述退出报文为根据所 述减少的组播组信息, 或根据所述减少的组播源信息及组播组信息生成的。
示例的,对于实施例 2 VLAN1中减少的组播组信息 Group2及 Group3, 当所述 IGMP协议版本号为 V3时, 所述 AGG根据所述比较结果中减少的 组播加入信息生成退出报文, 示例的, 所述退出报文可以为 TO_EX(NULL, Group2)及 TO_EX(NULL, Group3), 所述退出报文表示 VLAN1中减少了组 播组信息 Group2及 Group3。 对于实施例 4 VLAN1中减少的组播源信息及 组播组信息 (S 1, Group 1 ), 所述 AGG根据所述比较结果中减少的组播加入 信息生成退出报文, 示例的, 所述退出报文可以为 BLOCK (Sl, Groupl), 所述退出报文表示 VLAN1 中减少了组播源信息及组播组信息 (Sl, Groupl ) o
当所述预设格式为所述 VI格式或所述 V2格式时, 当所述比较结果中 存在所述减少的组播组信息时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包括: 所述 AGG根据所述比较结果中所述减少的组播加入信息 生成退出指示报文, 所述退出指示报文为根据所述减少的组播组信息生成 的。 需要说明的是, 该方法适用于所述预设格式为 V2格式, 且所述第一组 播路由器配置有 IGMP快速离开功能的情况。
示例的, 对于所述本发明实施例 2 VLAN1中减少的组播组信息 Group2 及 Group3, 当所述 IGMP协议版本号为 VI格式时, 或当所述 IGMP协议版 本号为 V2格式且所述第一组播路由器配置有 IGMP快速离开 (IGMP Fast Leave, IGMP快速离开)功能时,所述 AGG根据所述比较结果中所述减少的 组播加入信息生成退出指示报文, 所述退出指示报文可以为 IGMP leave报 文, 所述退出指示报文为根据所述 VLAN1 中减少的组播组信息 Group2及 Group3生成的。
可选的, 当所述预设格式为所述 V2格式或当所述预设格式为所述 V3 格式时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文还包括: 所 述 AGG接收所述第一组播路由器发送的特定组查询报文, 所述特定组查询 报文包括: 特定 VLAN标识; 所述 AGG根据所述比较结果生成第二 IGMP 最近一次更新后的组播加入信息生成的。 示例的, 对于本发明实施例 2 VLAN1 中减少的组播组信息 Group2及 Group3, 当所述 IGMP协议版本号为 V2时, 所述 AGG接收所述第一组播 路由器发送的特定组查询报文, 所述特定组查询报文包括: 特定 VLAN标 识即 VLAN1。所述 AGG收到特定组查询报文后,将步骤 303更新得到的所 述 AGG中存储的 VLAN1对应的组播组信息即 ( VLAN1, Group 1 )发送至 第一组播路由器。 对于本发明实施例 4 VLAN1中减少的组播源信息及组播 组信息 (VLAN1, SI , Group 1 ), 当所述 IGMP协议版本号为 V3时, 所述 AGG接收所述第一组播路由器发送的特定组查询报文, 所述特定组查询报 文包括: 特定 VLAN标识即 VLAN1。 所述 AGG收到特定组查询报文后, 将步骤 303更新得到的所述 AGG中存储的 VLAN1对应的组播源信息及组 播组信息即 (VLAN1, S2, Groupl )发送至第一组播路由器。
可选的, 当所述 IGMP协议版本号为 VI格式时, 对于实施例 2 VLAN1 中减少的组播组信息 Group2及 Group3, 所述 AGG也可以不做任何动作。 由于第一组播路由器设置有定时器, 当该定时器规定的时间内第一组播路由 器没有收到 VLAN1对应的组播组信息 Group2及 Group3, 则认为 VLAN1 对应的该组播组信息 Group2 及 Group3 的接收者放弃了该组播组信息 Group3的接收, 然后, AGG将 VLAN1对应的所述组播组信息 Group2及 Group3从对应的组播转发表项出端口去除。
进一步的, 当所述 AGG与第一组播路由器之间运行 PIM协议时, 步骤 303具体包括: 所述比较结果中存在新增的组播组信息时, 所述根据所述比 较结果, 按照预设格式生成预设协议报文包括: 所述 AGG根据所述比较结 果中新增的组播加入信息生成所述 PIM SM Join, 所述 PIM SM Join为根据 所述新增的组播组信息生成的。
示例的,对于本发明实施例 1所述 VLAN1中新增的组播组信息 Group4, 所述 AGG生成 PIM SM Join。所述 PIM SM Join为才艮据所述新增的组播组信 息即 VLAN1中的组播组信息 Group4生成的。
当所述比较结果中存在新增的组播源信息及组播组信息时,所述根据所 述比较结果, 按照预设格式生成预设协议报文包括: 所述 AGG根据所述比 较结果中新增的组播加入信息生成所述 PIM SSM Join, 所述 PIM SSM Join 为根据所述新增的组播源信息及组播组信息生成的。
示例的, 对于本发明实施例 3 VLAN1中新增的组播源信息及组播组信 息 (S2, Groupl ), 所述 AGG生成 PIM SSM Join, 所述 PIM SSM Join为根 据所述 VLAN1中新增的组播源信息及组播组信息 (S2, Groupl )生成的。 当所述比较结果中存在减少的组播组信息时, 所述根据所述比较结果, 按照预设格式生成预设协议报文包括: 所述 AGG根据所述比较结果中减少 的组播加入信息生成所述 PIM SM Prune, 所述 PIM SM Prune用于删除所述 减少的组播组信息。
示例的, 对于本发明实施例 2 中所述 VLAN1 中减少的组播组信息 Group2及 Group3, 所述 AGG生成 PIM SM Prune。所述 PIM SM Prune为根 据所述 VLAN1中减少的组播组信息即 VLAN1中减少的组播组信息 Group2 及 Group3生成的。
当所述比较结果中存在减少的组播源信息及组播组信息时,所述根据所 述比较结果, 按照预设格式生成预设协议报文包括: 所述 AGG根据所述比 较结果中减少的组播加入信息生成所述 PIM SSM Prune, 所述 PIM SSM Prune用于删除所述减少的组播源信息及组播组信息。
对于实施例 4 VLAN1中减少的组播源信息及组播组信息 (Sl, Groupl ), 所述 AGG根据所述比较结果中减少的组播加入信息生成 PIM SSM Prune, 所述 PIM SSM Prune为根据所述 VLAN1中减少的组播源信息及组播组信息 (SI , Groupl )生成的。
305、 将所述预设协议报文发送至第一组播路由器, 以便于所述第一组 播路由器根据所述预设协议报文生成组播转发表项。
当特定 VLAN标识下存在变化的组播加入信息时,所述 AGG在所 述特定 VLAN指示的 VLAN中将所述预设协议报文发送至第一组播路由 器, 利用所述预设协议报文更新所述组播转发表项, 所述组播转发表项包括 组播组地址, 出端口, 用于组播复制。
示例的, 对于实施例 4 VLAN1中减少的组播源信息及组播组信息 (Sl, Groupl ), 所述 AGG根据所述 VLAN1中减少的组播源信息及组播组信息 (SI , Groupl )生成 PIM SSM Prune,然后在 VLAN1的通道中将该 PIM SSM Prune 发送至第一组播路由器, 然后该第一组播路由器利用该 PIM SSM Prune 更新所述组播转发表项, 将减少的组播源信息及组播组信息(S1, Groupl )的出端口从该组播转发表项中去除。
本发明实施例提供一种组播通信方法, 将获取的 GM LSP报文与所述 AGG保存的 GM LSP报文进行比较, 当所述比较结果中存在变化的组播加 入信息时, 根据比较结果生成预设协议报文, 并将所述预设协议报文发送至 第一组播路由器, 所述比较结果包括新增的或减少组播组信息、 或包括新增 的或减少的组播源信息及组播组信息, 较现有技术, 将所述新增的或减少的 组播组信息,或所述新增的或减少的组播源信息及组播组信息主动发送至第 一组播路由器, 实现了 AGG到第一组播路由器路径上的按需发送, 节约了 AGG到第一组播路由器间的链路带宽。
需要说明的是, 在所述 IPTV场景的组播通信中, 该方法还包括: 第一 组播路由器接收所述 AGG发送的预设协议报文, 所述第一组播路由器为与 所述 AGG连接的路由器, 所述预设协议报文为 IGMP报文或 PIM报文, 所 第一组播路由器将所述预设协议报文发送至最后一跳组播路由器。需要说明 的是,所述第一组播路由器将所述预设协议报文发送至最后一跳组播路由器 是根据组播转发表项进行转发的, 具体的转发过程与现有技术相同, 本发明 在此不再赘述。
当报文发送到最后一跳组播路由器时, 最后一跳组播路由器进行选举。 具体的, 当所述 AGG与最后一跳组播路由器之间运行 IGMP协议时, 最后 一跳组播组路由器在接收到第一组播路由器发送的 IGMP Report后,开始进 行 IGMP路由器选举, 示例的, 假设最后一跳组播路由器中包含路由器 1 和路由器 2, 经过选举得到路由器 2为非查询器, 路由器 1为查询器, 则后 面只需要路由器 1往 AGG发送 IGMP Report, 也只有路由器 1负责将组播 源的数据流发送给组播接收者。 当所述 AGG与最后一跳组播路由器之间运 行 PIM协议时,最后一跳组播组路由器在接收到第一组播路由器发送的 PIM SM Join或 PIM SSM Join消息之后,在所述最后一跳组播路由器之间互相发 送 PIM hello报文, 选举出 DR ( Designated Router ·> 指定路由器)和 BDR(Backup Designated Router, 备份指定路由器)。 示例的, 假设最后一跳组播路由器包 含路由器 1和路由器 2, 进过选举得到路由器 2为 BDR, 路由器 1为 DR, 则后面只需要路由器 1负责将组播源的数据流发送给组播接收者。需要说明 的是, 所述路由器选举的方法与现有技术相同, 本发明在此不做详述。
特别的,在查询器路由器 1或 DR路由器 1接收到组播源发送过来的组 播源的数据流后, 查询组播转发表项, 如果组播转发表项的出接口包含连接 TRILL网络的出端口, 则将所述组播源的数据流进行复制转发; AGG从第 一组播路由器收到组播源的数据流之后, 通过 TRILL 网络剪枝后的分发树 表项, 向 TRILL网络进行转发; ACC设备收到 TRILL网络侧发送的组播源 的数据流后, 首先对所述组播源的数据流进行解封装, 恢复成 Native ETH ( Native EtherNet, 本地以太网) 的组播源的数据流, 然后查找本地 IGMP Snooping组播转发表,按照所述 IGMP Snooping组播转发表对所述组播源的 数据流进行复制转发, 直至所述组播源的数据流转发至组播组信息接收者。
本发明实施例提供一种 AGG40, 如图 4所示, 包括:
获取单元 401, 用于获取 ACC发送的 GM LSP报文。
存储单元 402, 用于存储最近一次更新后的组播加入信息。
比较单元 403, 用于将所述获取单元获取到的所述 GM LSP报文中的组 播加入信息与所述存储单元中的组播加入信息做比较,得到比较结果并将所 述比较结果发送至生成单元,并根据所述比较结果更新所述存储单元中的组 播加入信息。
生成单元 404, 用于接收所述比较单元发送的比较结果, 当所述比较结 果中存在变化的组播加入信息时, 根据所述比较结果, 按照预设格式生成预 设协议报文, 所述预设协议报文为 IGMP报文或 PIM报文。
发送单元 405, 用于将所述生成单元生成的所述预设协议报文发送至第 一组播路由器,以便于所述第一组播路由器根据所述预设协议报文生成组播 转发表项。
这样一来, 获取单元获取所述 GM LSP报文, 比较单元将所述 GM LSP 报文与存储单元存储的 GM LSP报文进行比较,生成单元根据比较结果将需 要发送的报文生成预设协议报文,发送单元将所述预设协议报文发送至第一 组播路由器, 所述比较结果包括新增的或减少组播组信息、 或包括新增的或 减少的组播源信息及组播组信息, 较现有技术, 将所述新增的或减少的组播 组信息,或所述新增的或减少的组播源信息及组播组信息主动发送至第一组 播路由器, 实现了 AGG到第一组播路由器路径上的按需发送, 节约了 AGG 到第一组播路由器间的链路带宽。
所述 GM LSP报文为 TRILL LSP报文, 所述 GM LSP报文中的组播加 入信息包括: VLAN标识和所述 VLAN标识对应的组播组信息,或所述 GM LSP报文中的组播加入信息包括 VLAN标识和所述 VLAN标识对应的组播 源信息及组播组信息。
可选的, 所述比较单元 403具体用于:
当所述 GM LSP报文中的组播加入信息包括 VLAN标识和所述 VLAN 标识对应的组播组信息时,将所述存储单元 402中存储的组播加入信息按照 VLAN标识进行归类合并,得到第一组播加入信息,所述第一组播加入信息 为所述 AGG中存储的每个 VLAN标识及所述每个 VLAN标识对应的组播 组信息; 将所述获取单元 401获取的所述 GM LSP报文中的组播加入信息 按照 VLAN标识进行归类合并, 得到第二组播加入信息, 所述第二组播加 入信息为所述 GM LSP报文中的每个 VLAN标识及所述每个 VLAN标识对 应的组播组信息; 比较所述第一组播加入信息和所述第二组播加入信息,得 到比较结果, 所述比较结果包括: 当将所述第一组播加入信息与所述第二组 播加入信息做比较, 得到所述第二组播加入信息的特定 VLAN中存在新增 的组播组信息, 所述比较结果包括所述新增的组播组信息; 当将所述第一组 播加入信息与所述第二组播加入信息做比较,得到所述第二组播加入信息的 特定 VLAN中存在减少的组播组信息, 所述比较结果包括所述减少的组播 组信息。
或当所述 GM LSP 报文中的组播加入信息包括 VLAN 标识和所述 VLAN标识对应的组播源信息及组播组信息时,将所述存储单元 402中存储 的组播加入信息按照 VLAN标识进行归类合并, 得到第一组播加入信息, 所述第一组播加入信息为所述 AGG中存储的每个 VLAN标识及所述每个 VLAN标识对应的组播源信息及组播组信息;将所述获取单元 401获取的所 述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类合并, 得到第 二组播加入信息, 所述第二组播加入信息为所述 GM LSP报文中存储的每 个 VLAN标识及所述每个 VLAN标识对应的组播源信息及组播组信息; 比 较所述第一组播加入信息和所述第二组播加入信息,得到比较结果, 所述比 较结果包括: 当将所述第一组播加入信息与所述第二组播加入信息做比较, 得到所述第二组播加入信息的特定 VLAN中存在新增的组播源信息及组播 组信息时, 所述比较结果包括所述新增的组播源信息及组播组信息; 当将所 述第一组播加入信息与所述第二组播加入信息做比较,得到所述第二组播加 入信息的特定 VLAN中存在减少的组播源信息及组播组信息时, 所述比较 结果包括所述减少的组播源信息及组播组信息。
可选的, 当所述预设协议报文为 IGMP报文时, 所述生成单元 404具体 用于:
接收所述比较单元 403发送的比较结果,根据所述比较结果,按照预设 格式生成 IGMP报文, 所述预设格式包括: VI格式、 V2格式或 V3格式, 所述 VI、 V2和 V3为 IGMP协议版本号。 果中存在所述新增的组播组信息时, 所述生成单元 404具体用于: 接收所述比较单元 403发送的比较结果,根据所述比较结果中所述新增 的组播加入信息生成第一 IGMP报告报文,所述第一 IGMP报告报文为根据 所述新增的组播组信息生成的。
当所述预设格式为 V3格式时, 当所述比较结果中存在所述新增的组播 组信息,或所述比较结果中存在所述新增的组播源信息及组播组信息时, 所 述生成单元 404具体用于:
接收所述比较单元 403发送的比较结果,根据所述比较结果中新增的组 播加入信息生成允许报文,所述允许报文为根据所述新增的组播组信息,或 根据所述新增的组播源信息及组播组信息生成的。 较结果中存在所述减少的组播组信息时, 所述生成单元 404具体用于: 接收所述比较单元 403发送的比较结果,根据所述比较结果中所述减少 的组播加入信息生成退出指示报文,所述退出指示报文为根据所述减少的组 播组信息生成的。
当所述预设格式为 V3格式时, 当所述比较结果中存在所述减少的组播 组信息,或所述比较结果中存在所述减少的组播源信息及组播组信息时, 所 述生成单元 404具体用于:
接收所述比较单元 403发送的比较结果,根据所述比较结果中减少的组 播加入信息生成退出报文,所述退出报文为根据所述减少的组播组信息,或 根据所述减少的组播源信息及组播组信息生成的。 所述生成单元 404具体用于:
接收所述第一组播路由器发送的特定组查询报文,所述特定组查询报文 包括: 特定 VLAN标识; 根据所述比较结果生成第二 IGMP报告报文, 所 述第二 IGMP报告报文为根据所述更新后的组播加入信息生成的。
当所述预设协议报文为 PIM报文时,
当所述比较结果中存在新增的组播组信息时,所述生成单元 404具体用 于:
接收所述比较单元 403的比较结果,根据所述比较结果中新增的组播加 入信息生成所述 PIM SM Join,所述 PIM SM Join为才艮据所述新增的组播组 信息生成的。 当所述比较结果中存在新增的组播源信息及组播组信息时,所述生成单 元 404具体用于:
接收所述比较单元 403的比较结果,根据所述比较结果中新增的组播加 入信息生成所述 PIM SSM Join, 所述 PIM SSM Join为根据所述新增的组播 源信息及组播组信息生成的。
当所述比较结果中存在减少的组播组信息时,所述生成单元 404具体用 于:
接收所述比较单元的比较结果,根据所述比较结果中减少的组播加入信 息生成所述 PIM SM Prune,所述 PIM SM Prune用于删除所述减少的组播组 信息。
当所述比较结果中存在减少的组播源信息及组播组信息时,所述生成单 元 404具体用于:
接收所述比较单元的比较结果,根据所述比较结果中减少的组播加入信 息生成所述 PIM SSM Prune,所述 PIM SSM Prune消息用于删除所述减少的 组播源信息及组播组信息。
本发明实施例提供一种 AGG, 获取单元获取所述 GM LSP报文, 比较 元根据比较结果将需要发送的报文生成预设协议报文,发送单元将所述预设 协议报文发送至第一组播路由器,所述比较结果包括新增的或减少组播组信 息、 或包括新增的或减少的组播源信息及组播组信息, 较现有技术, 将所述 新增的或减少的组播组信息,或所述新增的或减少的组播源信息及组播组信 息主动发送至第一组播路由器, 实现了 AGG到第一组播路由器路径上的按 需发送, 节约了 AGG到第一组播路由器间的链路带宽。
本发明实施例提供一种通信系统, 包括 ACC及本发明实施例提供的任 意一种 AGG。
本发明实施例提供另一种 AGG, 如图 5所示, 该 AGG包括: 处理器 501, 存储器 502和网络接口 503, 其中, 该网络接口 501用于 获取 ACC发送的 GM LSP报文; 该存储器 502用于存储最近一次更新后的 组播加入信息, 以及存储指令; 所述处理器 501用于执行该指令用于: 将所 述 GM LSP报文中的组播加入信息与所述存储器中的组播加入信息做比较, 得到比较结果, 并根据所述比较结果更新所述存储器中的组播加入信息; 所 述处理器 501 还用于执行该指令用于当所述比较结果中存在变化的组播加 入信息时, 根据所述比较结果, 按照预设格式生成预设协议报文, 所述预设 协议报文为 IGMP报文或 PIM报文; 该网络接口 503还用于将生成的所述 预设协议报文发送至第一组播路由器,以便于所述第一组播路由器根据所述 预设协议报文生成组播转发表项。
这样一来, 处理器获取所述 GM LSP报文, 将所述 GM LSP报文与所 述存储器中存储的 GM LSP报文进行比较, 根据比较结果将需要发送的报 文生成预设协议报文,网络接口再将所述预设协议报文发送至第一组播路由 器, 所述比较结果包括新增的或减少组播组信息、或包括新增的或减少的组 播源信息及组播组信息, 较现有技术, 将所述新增的或减少的组播组信息, 或所述新增的或减少的组播源信息及组播组信息主动发送至第一组播路由 器, 实现了 AGG到第一组播路由器路径上的按需发送, 节约了 AGG到第 一组播路由器间的链路带宽。
所述 GM LSP报文为 TRILL LSP报文, 所述 GM LSP报文中的组播加 入信息包括: VLAN标识和所述 VLAN标识对应的组播组信息,或所述 GM LSP报文中的组播加入信息包括 VLAN标识和所述 VLAN标识对应的组播 源信息及组播组信息。
可选地,所述处理器 501执行该指令用于将所述 GM LSP报文中的组 播加入信息与所述 AGG 存储的最近一次更新后的组播加入信息做比 较, 得到比较结果, 包括:
当所述 GM LSP报文中的组播加入信息包括 VLAN标识和所述 VLAN 标识对应的组播组信息时, 将所述存储器 502 中存储的组播加入信息按照 VLAN标识进行归类合并,得到第一组播加入信息,所述第一组播加入信息 为所述 AGG中存储的每个 VLAN标识及所述每个 VLAN标识对应的组播 组信息; 将所述处理器 501获取的所述 GM LSP报文中的组播加入信息按 照 VLAN标识进行归类合并, 得到第二组播加入信息, 所述第二组播加入 信息为所述 GM LSP报文中的每个 VLAN标识及所述每个 VLAN标识对应 的组播组信息; 比较所述第一组播加入信息和所述第二组播加入信息,得到 比较结果, 所述比较结果包括: 当将所述第一组播加入信息与所述第二组播 加入信息做比较, 得到所述第二组播加入信息的特定 VLAN中存在新增的 组播组信息, 所述比较结果包括所述新增的组播组信息; 当将所述第一组播 加入信息与所述第二组播加入信息做比较,得到所述第二组播加入信息的特 定 VLAN中存在减少的组播组信息, 所述比较结果包括所述减少的组播组 信息。
或当所述 GM LSP 报文中的组播加入信息包括 VLAN 标识和所述 VLAN标识对应的组播源信息及组播组信息时,将所述存储器 502中存储的 组播加入信息按照 VLAN标识进行归类合并, 得到第一组播加入信息, 所 述第一组播加入信息为所述 AGG 中存储的每个 VLAN 标识及所述每个 VLAN标识对应的组播源信息及组播组信息;将所述处理器 501获取的所述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类合并, 得到第二 组播加入信息, 所述第二组播加入信息为所述 GM LSP报文中存储的每个 VLAN标识及所述每个 VLAN标识对应的组播源信息及组播组信息; 比较 所述第一组播加入信息和所述第二组播加入信息,得到比较结果, 所述比较 结果包括: 当将所述第一组播加入信息与所述第二组播加入信息做比较,得 到所述第二组播加入信息的特定 VLAN中存在新增的组播源信息及组播组 信息时,所述比较结果包括所述新增的组播源信息及组播组信息; 当将所述 第一组播加入信息与所述第二组播加入信息做比较,得到所述第二组播加入 信息的特定 VLAN中存在减少的组播源信息及组播组信息时, 所述比较结 果包括所述减少的组播源信息及组播组信息。
可选的, 当所述预设协议报文为 IGMP报文时, 所述处理器 501执行该 指令用于根据所述比较结果, 按照预设格式生成预设协议报文, 包括: 根据所述比较结果,按照预设格式生成 IGMP报文,所述预设格式包括: VI格式、 V2格式或 V3格式, 所述 VI、 V2和 V3为 IGMP协议版本号。 果中存在所述新增的组播组信息时, 所述处理器 501 执行该指令用于根据 所述比较结果, 按照预设格式生成 IGMP报文, 包括:
根据所述比较结果中所述新增的组播加入信息生成第一 IGMP报告报 文, 所述第一 IGMP报告报文为根据所述新增的组播组信息生成的。
当所述预设格式为 V3格式时, 当所述比较结果中存在所述新增的组播 组信息,或所述比较结果中存在所述新增的组播源信息及组播组信息时, 所 述处理器 501 执行该指令用于根据所述比较结果, 按照预设格式生成 IGMP报文包括:
根据所述比较结果中新增的组播加入信息生成允许报文,所述允许报文 为根据所述新增的组播组信息,或根据所述新增的组播源信息及组播组信息 生成的。 存在所述减少的组播组信息时, 所述处理器 501执行该指令用于根据所述 比较结果, 按照预设格式生成 IGMP报文, 包括:
根据所述比较结果中所述减少的组播加入信息生成退出指示报文,所述 退出指示报文为根据所述减少的组播组信息生成的。
当所述预设格式为 V3格式时, 当所述比较结果中存在所述减少的组播 组信息,或所述比较结果中存在所述减少的组播源信息及组播组信息时, 所 述处理器 501 执行该指令用于根据所述比较结果, 按照预设格式生成 IGMP报文, 包括:
根据所述比较结果中减少的组播加入信息生成退出报文,所述退出报文 为根据所述减少的组播组信息,或根据所述减少的组播源信息及组播组信息 生成的。
可选的, 当所述预设格式为所述 V2格式或当所述预设格式为所述 V3 格式时, 所述处理器 501执行该指令用于根据所述比较结果, 按照预设格 式生成 IGMP 文, 包括:
接收所述第一组播路由器发送的特定组查询报文,所述特定组查询报文 包括: 特定 VLAN标识; 根据所述比较结果生成第二 IGMP报告报文, 所 后的组播加入信息生成的。
可选的, 当所述预设协议报文为 PIM报文, 所述比较结果中存在所述 新增的组播组信息时,所述处理器 501执行该指令用于根据所述比较结果, 按照预设格式生成预设协议报文, 包括:
根据所述比较结果中所述新增的组播加入信息生成所述 PIM SM Join, 所述 PIM SM Join为才艮据所述新增的组播组信息生成的。
当所述比较结果中存在所述新增的组播源信息及组播组信息时,所述处 理器 501执行该指令用于根据所述比较结果, 按照预设格式生成预设协 议报文, 包括:
根据所述比较结果中新增的组播加入信息生成所述 PIM SSM Join, 所 述 PIM SSM Join为根据所述新增的组播源信息及组播组信息生成的。
当所述比较结果中存在所述减少的组播组信息时,所述处理器 501执行 该指令用于根据所述比较结果,按照预设格式生成预设协议报文,包括: 根据所述比较结果中减少的组播加入信息生成所述 PIM SM Prune, 所 述 PIM SM Prune用于删除所述减少的组播组信息。 当所述比较结果中存在所述减少的组播源信息及组播组信息时,所述处 理器 501执行该指令用于根据所述比较结果, 按照预设格式生成预设协 议报文, 包括:
根据所述比较结果中所述减少的组播加入信息生成所述 PIM SSM Prune,所述 PIM SSM Prune用于删除所述减少的组播源信息及组播组信息。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的方法的具体步骤, 可以参考前述断路由器装置实施例中的对应过程, 在 此不再赘述。
需要说明的是,本发明实施例提供的网络编码方法步骤的先后顺序可以 进行适当调整, 步骤也可以根据情况进行相应增减, 任何熟悉本技术领域的 技术人员在本发明揭露的技术范围内, 可轻易想到变化的方法, 因此不再赘 述。
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描 述的系统, 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统, 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接辆合或通信连接可以是通过一些接口,装置或单元的间接辆合 或通信连接, 可以是电性, 机械或其它的形式。 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理包括, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以釆用硬件的形式实现, 也可以釆用硬件加软件 功能单元的形式实现。

Claims

权 利 要 求
1、 一种组播通信方法, 应用于汇聚交换机 AGG, 其特征在于, 包 括:
获取接入交换机 ACC 发送的组播组地址链路状态协议数据单元 GM LSP报文;
将所述 GM LSP报文中的组播加入信息与所述 AGG存储的最近一 次更新后的组播加入信息做比较, 得到比较结果, 根据所述比较结果 更新所述 AGG存储的组播加入信息;
当所述比较结果中存在变化的组播加入信息时, 根据所述比较结 果, 按照预设格式生成预设协议报文, 所述预设协议报文为因特网组 管理协议 IGMP报文或协议无关组播 PIM报文;
将所述预设协议报文发送至第一组播路由器, 以便于所述第一组 播路由器根据所述预设协议报文生成组播转发表项。
2、 根据权利要求 1所述的方法, 其特征在于,
所述 GM LSP报文为多链路透明互联协议 TRILL LSP报文, 所述 GM LS P报文中的组播加入信息包括: 虚拟局域网 VL AN标识和所述 VLAN标识对应的组播组信息, 或所述 GM LSP报文中的组播加入信 息包括: VLAN标识和所述 VL AN标识对应的组播源信息及组播组信 息。
3、 根据权利要求 1 或 2 所述的方法, 其特征在于, 所述将所述 GM LSP报文中的组播加入信息与所述 AGG存储的最近一次更新后的 组播加入信息做比较, 得到比较结果, 包括:
当所述 GM LSP 报文中的组播加入信息包括 VLAN 标识和所述 VLAN标识对应的组播组信息时,
将所述 AGG中存储的最近一次更新后的组播加入信息按照 VLAN 标识进行归类合并, 得到第一组播加入信息, 所述第一组播加入信息 为所述 AGG中存储的每个 VLAN标识及所述每个 VLAN标识对应的 组播组信息;
将所述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类 合并, 得到第二组播加入信息, 所述第二组播加入信息为所述 GM LSP 报文中的每个 VLAN标识及所述每个 VLAN标识对应的组播组信息; 比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括:
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN中存在新增的组播组信息时, 所述比较结果包括所述新增的组播组信息;
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN中存在减少的组播组信息时, 所述比较结果包括所述减少的组播组信息;
或当所述 GM LSP报文中的组播加入信息包括 VLAN标识和所述 VLAN标识对应的组播源信息及组播组信息时,
将所述 AGG中存储的最近一次更新后的组播加入信息按照 VLAN 标识进行归类合并, 得到第一组播加入信息, 所述第一组播加入信息 为所述 AGG中存储的每个 VLAN标识及所述每个 VLAN标识对应的 组播源信息及组播组信息;
将所述 GM LSP报文中的组播加入信息按照 VLAN标识进行归类 合并, 得到第二组播加入信息, 所述第二组播加入信息为所述 GM LSP 报文中存储的每个 VLAN标识及所述每个 VLAN标识对应的组播源信 息及组播组信息;
比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括:
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN中存在新增的组播源信息及组 播组信息时, 所述比较结果包括所述新增的组播源信息及组播组信息; 当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN中存在减少的组播源信息及组 播组信息时, 所述比较结果包括所述减少的组播源信息及组播组信息。
4、 根据权利要求 3所述的方法, 其特征在于, 当所述预设协议报 文为 IGMP 报文时, 所述根据所述比较结果, 按照预设格式生成预设 协议报文包括:
所述 AGG根据比较结果, 按照预设格式生成 IGMP报文, 所述预 设格式包括: VI格式、 V2格式或 V3格式,所述 VI、 V2和 V3为 IGMP 版本号。
5、 根据权利要求 4所述的方法, 其特征在于,
当所述预设格式为所述 VI格式或所述 V2格式, 所述比较结果中 存在所述新增的组播组信息时, 所述根据所述比较结果, 按照预设格 式生成 IGMP 文包括:
所述 AGG根据所述比较结果中所述新增的组播加入信息生成第一 IGMP报告报文,所述第一 IGMP报告报文为根据所述新增的组播组信 息生成的;
当所述预设格式为 V3格式,所述比较结果中存在所述新增的组播 组信息, 或所述比较结果中存在所述新增的组播源信息及组播组信 , ¾ 时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包括: 所述 AGG 根据所述比较结果中新增的组播加入信息生成允许报 文, 所述允许报文为根据所述新增的组播组信息, 或根据所述新增的 组播源信息及组播组信息生成的;
当所述预设格式为所述 VI格式或所述 V2格式时, 当所述比较结 果中存在所述减少的组播组信息时, 所述根据所述比较结果, 按照预 设格式生成 IGMP报文包括:
所述 AGG根据所述比较结果中所述减少的组播加入信息生成退出 指示报文, 所述退出指示报文为根据所述减少的组播组信息生成的; 当所述预设格式为 V3格式时, 当所述比较结果中存在所述减少的 组播组信息, 或所述比较结果中存在所述减少的组播源信息及组播组 信息时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包括: 所述 AGG 根据所述比较结果中减少的组播加入信息生成退出报 文, 所述退出报文为根据所述减少的组播组信息, 或根据所述减少的 组播源信息及组播组信息生成的。
6、 根据权利要求 4所述的方法, 其特征在于,
当所述预设格式为所述 V2格式或当所述预设格式为所述 V3格式 时, 所述根据所述比较结果, 按照预设格式生成 IGMP报文包括: 所述 AGG接收所述第一组播路由器发送的特定组查询报文, 所述 特定组查询 文包括: 特定 VLAN标识;
所述 AGG根据所述比较结果生成第二 IGMP报告报文, 所述第二 IGMP报告报文为根据所述更新后的所述 AGG存储的组播加入信息生 成的。
7、 根据权利要求 4所述的方法, 其特征在于, 当所述预设协议报 文为 PIM 文时,
当所述比较结果中存在所述新增的组播组信息时, 所述根据所述 比较结果, 按照预设格式生成预设协议报文包括:
所述 AGG根据所述比较结果中所述新增的组播加入信息生成协议 无关组播业务加入消息 PIM SM Join , 所述 PIM SM Join为才艮据所述新 增的组播组信息生成的;
当所述比较结果中存在所述新增的组播源信息及组播组信息时, 所述根据所述比较结果, 按照预设格式生成预设协议报文包括:
所述 AGG根据所述比较结果中所述新增的组播加入信息生成协议 无关组播指定信源加入消息 PIM SSM Join , 所述 PIM SSM Join为根据 所述新增的组播源信息及组播组信息生成的;
当所述比较结果中存在所述减少的组播组信息时, 所述根据所述 比较结果, 按照预设格式生成预设协议报文包括:
所述 AGG根据所述比较结果中所述减少的组播加入信息生成协议 无关组播业务删除消息 PIM SM Prune ,所述 PIM SM Prune用于删除所 述减少的组播组信息;
当所述比较结果中存在所述减少的组播源信息及组播组信息时, 所述根据所述比较结果, 按照预设格式生成预设协议报文包括:
所述 AGG根据所述比较结果中所述减少的组播加入信息生成协议 无关组播指定信源组播删除消息 PIM SSM Prune ,所述 PIM SSM Prune 用于删除所述减少的组播源信息及组播组信息。
8、 一种汇聚交换机 AGG, 其特征在于, 包括:
获取单元, 用于获取接入交换机 ACC发送的组播组地址链路状态 协议数据单元 GM LSP报文;
存储单元, 用于存储最近一次更新后的组播加入信息;
比较单元, 用于将所述获取单元获取到的所述 GM LSP报文中的 组播加入信息与所述存储单元中的组播加入信息做比较, 得到比较结 果并将所述比较结果发送至生成单元, 并根据所述比较结果更新所述 存储单元中的组播加入信息;
生成单元, 用于接收所述比较单元发送的比较结果, 当所述比较 结果中存在变化的组播加入信息时, 根据所述比较结果, 按照预设格 式生成预设协议报文, 所述预设协议报文为因特网组管理协议 IGMP 报文或协议无关组播 PIM报文;
发送单元, 用于将所述生成单元生成的所述预设协议报文发送至 第一组播路由器, 以便于所述第一组播路由器根据所述预设协议报文 生成组播转发表项。
9、 根据权利要求 8所述的 AGG, 其特征在于,
所述 GM LSP报文为多链路透明互联协议 TRILL LSP报文, 所述 GM LS P报文中的组播加入信息包括: 虚拟局域网 VLAN标识和所述 VLAN标识对应的组播组信息, 或所述 GM LSP报文中的组播加入信 息包括: VLAN标识和所述 VLAN标识对应的组播源信息及组播组信 息。
10、 根据权利要求 8或 9所述的 AGG, 其特征在于, 所述比较单 元具体用于:
当所述 GM LSP 报文中的组播加入信息包括 VLAN 标识和所述 VLAN标识对应的组播组信息时,
将所述存储单元中存储的组播加入信息按照 VLAN标识进行归类 合并, 得到第一组播加入信息, 所述第一组播加入信息为所述 AGG中 存储的每个 VLAN标识及所述每个 VLAN标识对应的组播组信息; 将所述获取单元获取的所述 GM LSP报文中的组播加入信息按照 VLAN 标识进行归类合并, 得到第二组播加入信息, 所述第二组播加 入信息为所述 GM LSP报文中的每个 VLAN标识及所述每个 VLAN标 识对应的组播组信息;
比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括:
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN中存在新增的组播组信息时, 所述比较结果包括所述新增的组播组信息;
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN中存在减少的组播组信息时, 所述比较结果包括所述减少的组播组信息;
或当所述 GM LSP报文中的组播加入信息包括 VLAN标识和所述 VLAN标识对应的组播源信息及组播组信息时,
将所述存储单元中存储的组播加入信息按照 VLAN标识进行归类 合并, 得到第一组播加入信息, 所述第一组播加入信息为所述 AGG中 存储的每个 VLAN标识及所述每个 VLAN标识对应的组播源信息及组 播组信息;
将所述获取单元获取的所述 GM LSP报文中的组播加入信息按照 VLAN 标识进行归类合并, 得到第二组播加入信息, 所述第二组播加 入信息为所述 GM LSP 报文中存储的每个 VLAN 标识及所述每个 VLAN标识对应的组播源信息及组播组信息;
比较所述第一组播加入信息和所述第二组播加入信息, 得到比较 结果, 所述比较结果包括:
当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN中存在新增的组播源信息及组 播组信息时, 所述比较结果包括所述新增的组播源信息及组播组信息; 当将所述第一组播加入信息与所述第二组播加入信息做比较, 得 到所述第二组播加入信息的特定 VLAN中存在减少的组播源信息及组 播组信息时, 所述比较结果包括所述减少的组播源信息及组播组信息。
11、 根据权利要求 10所述的 AGG, 其特征在于, 当所述预设协议 报文为 IGMP报文时, 所述生成单元具体用于:
接收所述比较单元发送的比较结果, 根据所述比较结果, 按照预 设格式生成 IGMP报文, 所述预设格式包括: VI格式、 V2格式或 V3 格式, 所述 VI、 V2和 V3为 IGMP协议版本号。
12、 根据权利要求 11所述的 AGG, 其特征在于,
当所述预设格式为所述 VI格式或所述 V2格式, 所述比较结果中 存在所述新增的组播组信息时, 所述生成单元具体用于:
接收所述比较单元发送的比较结果, 根据所述比较结果中所述新 增的组播加入信息生成第一 IGMP报告报文, 所述第一 IGMP报告报 文为根据所述新增的组播组信息生成的;
当所述预设格式为 V3格式,所述比较结果中存在所述新增的组播 组信息, 或所述比较结果中存在所述新增的组播源信息及组播组信 , ¾ 时, 所述生成单元具体用于:
接收所述比较单元发送的比较结果, 根据所述比较结果中新增的 组播加入信息生成允许报文, 所述允许报文为根据所述新增的组播组 信息, 或根据所述新增的组播源信息及组播组信息生成的;
当所述预设格式为所述 VI格式或所述 V2格式时, 当所述比较结 果中存在所述减少的组播组信息时, 所述生成单元具体用于:
接收所述比较单元发送的比较结果, 根据所述比较结果中所述减 少的组播加入信息生成退出指示报文, 所述退出指示报文为根据所述 减少的组播组信息生成的; 当所述预设格式为 V3格式时, 当所述比较结果中存在所述减少的 组播组信息, 或所述比较结果中存在所述减少的组播源信息及组播组 信息时, 所述生成单元具体用于:
接收所述比较单元发送的比较结果, 根据所述比较结果中减少的 组播加入信息生成退出报文, 所述退出报文为根据所述减少的组播组 信息, 或根据所述减少的组播源信息及组播组信息生成的。
13、 根据权利要求 11所述的 AGG, 其特征在于,
当所述预设格式为所述 V2格式或当所述预设格式为所述 V3格式 时, 所述生成单元具体用于:
接收所述第一组播路由器发送的特定组查询报文, 所述特定组查 询才艮文包括: 特定 VL AN标识;
根据所述比较结果生成第二 IGMP报告报文, 所述第二 IGMP报 告报文为根据所述更新后的组播加入信息生成的。
14、 根据权利要求 11所述的 AGG, 其特征在于, 当所述预设协议 才艮文为 PIM ^艮文,
当所述比较结果中存在所述新增的组播组信息时, 所述生成单元 具体用于:
接收所述比较单元的比较结果, 根据所述比较结果中所述新增的 组播加入信息生成协议无关组播业务加入消息 PIM SM Join ,所述 PIM SM Join为根据所述新增的组播组信息生成的;
当所述比较结果中存在所述新增的组播源信息及组播组信息时, 所述生成单元具体用于:
接收所述比较单元的比较结果, 根据所述比较结果中新增的组播 加入信息生成协议无关组播指定信源加入消息 PIM SSM Join , 所述 PIM SSM Join为根据所述新增的组播源信息及组播组信息生成的; 当所述比较结果中存在所述减少的组播组信息时, 所述生成单元 具体用于:
接收所述比较单元的比较结果, 根据所述比较结果中减少的组播 加入信息生成协议无关组播业务删除消息 PIM SM Prune,所述 PIM SM Prune用于删除所述减少的组播组信息;
当所述比较结果中存在所述减少的组播源信息及组播组信息时, 所述生成单元具体用于:
接收所述比较单元的比较结果, 根据所述比较结果中所述减少的组 播加入信息生成协议无关组播指定信源组播删除消息 PIM SSM Prune : 所述 PIM SSM Prune用于删除所述减少的组播源信息及组播組信息。
PCT/CN2014/075760 2013-04-19 2014-04-21 一种组播通信方法和汇聚交换机 WO2014169856A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14784835.2A EP2981036B1 (en) 2013-04-19 2014-04-21 Multicast communication method and aggregation switch
US14/885,500 US20160043878A1 (en) 2013-04-19 2015-10-16 Multicast communications method and aggregation switch

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310137909.7 2013-04-19
CN201310137909.7A CN104113483B (zh) 2013-04-19 2013-04-19 一种组播通信方法和汇聚交换机

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/885,500 Continuation US20160043878A1 (en) 2013-04-19 2015-10-16 Multicast communications method and aggregation switch

Publications (1)

Publication Number Publication Date
WO2014169856A1 true WO2014169856A1 (zh) 2014-10-23

Family

ID=51710118

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/075760 WO2014169856A1 (zh) 2013-04-19 2014-04-21 一种组播通信方法和汇聚交换机

Country Status (4)

Country Link
US (1) US20160043878A1 (zh)
EP (1) EP2981036B1 (zh)
CN (1) CN104113483B (zh)
WO (1) WO2014169856A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9479348B2 (en) * 2014-09-30 2016-10-25 Vmware, Inc. Technique to submit multicast membership state in absence of querier
US9935782B1 (en) * 2015-04-14 2018-04-03 Cisco Technology, Inc. Scalable internet group management protocol (IGMP) snooping in a switch fabric
CN106330728B (zh) * 2015-07-07 2019-09-24 中兴通讯股份有限公司 选举候备指定路由器及指定路由器故障处理的方法、设备
US10721159B2 (en) * 2018-04-25 2020-07-21 Hewlett Packard Enterprise Development Lp Rebuilt flow events
CN109617821B (zh) * 2019-01-11 2021-04-27 新华三技术有限公司 一种组播报文的传输方法、主控板及设备

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005434A (zh) * 2007-01-15 2007-07-25 杭州华为三康技术有限公司 二层组播虚拟局域网聚合方法及其汇聚交换机
CN102761493A (zh) * 2012-07-26 2012-10-31 杭州华三通信技术有限公司 一种多链接透明互联网络中组播路由表项更新方法和装置
CN103036787A (zh) * 2011-10-09 2013-04-10 华为技术有限公司 一种网络路由收敛处理方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101286863B (zh) * 2007-04-10 2012-06-06 中兴通讯股份有限公司 基于mpls组播的组播应用业务实现系统及方法
US8259569B2 (en) * 2008-09-09 2012-09-04 Cisco Technology, Inc. Differentiated services for unicast and multicast frames in layer 2 topologies
US8559427B2 (en) * 2011-02-25 2013-10-15 Telefonaktiebolaget Lm Ericsson (Publ) Efficient way to manage host subscription state on a proxy device
CN102761477B (zh) * 2012-05-08 2016-08-03 中兴通讯股份有限公司 组播协议报文发送方法及装置
US10225094B2 (en) * 2012-05-29 2019-03-05 Futurewei Technologies, Inc. SDN facilitated multicast in data center

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101005434A (zh) * 2007-01-15 2007-07-25 杭州华为三康技术有限公司 二层组播虚拟局域网聚合方法及其汇聚交换机
CN103036787A (zh) * 2011-10-09 2013-04-10 华为技术有限公司 一种网络路由收敛处理方法和装置
CN102761493A (zh) * 2012-07-26 2012-10-31 杭州华三通信技术有限公司 一种多链接透明互联网络中组播路由表项更新方法和装置

Also Published As

Publication number Publication date
US20160043878A1 (en) 2016-02-11
EP2981036A4 (en) 2016-04-06
CN104113483B (zh) 2017-06-20
EP2981036B1 (en) 2018-10-03
CN104113483A (zh) 2014-10-22
EP2981036A1 (en) 2016-02-03

Similar Documents

Publication Publication Date Title
US11206148B2 (en) Bit indexed explicit replication
EP3070877B1 (en) Evpn inter-subnet multicast forwarding
US8638787B2 (en) Multicast hello on demand
US8537816B2 (en) Multicast VPN support for IP-VPN lite
WO2018205982A1 (zh) 软件定义网络中广播、组播实现方法、装置及存储介质
WO2019184752A1 (zh) 网络设备的管理方法、装置及系统
EP2109260A1 (en) Multicast method and multicast routing method
CN102137000B (zh) 一种建立切换组播分发树的方法、装置及系统
WO2006063513A1 (fr) Procede de multidiffusion dans un reseau prive virtuel utilisant un routeur virtuel
WO2010075771A1 (zh) 一种组播虚拟私有网络的外联网组网方法、系统和装置
WO2012003743A1 (zh) 组播流量的转发方法及装置
EP2783482A1 (en) Improved replication management for remote multicast replication network
WO2010111956A1 (zh) 一种组播转发路径收敛的方法和系统
WO2013139159A1 (zh) 在网络中转发报文的方法和运营商边缘设备
WO2014169856A1 (zh) 一种组播通信方法和汇聚交换机
US10225091B2 (en) Method for implementing point-to-multipoint multicast, network node, and system
WO2015027736A1 (zh) 分层虚拟专用局域网服务的实现方法及装置
CN106357541B (zh) 一种信息传递方法和装置
CN108011828B (zh) 一种组播切换方法、装置、核心层交换机及存储介质
US12063153B2 (en) Method and apparatus for implementing multicast
WO2012103748A1 (zh) 一种组播控制方法、路由设备及组播系统
WO2018010568A1 (zh) 信息的通告方法、转发条目的生成方法及装置
WO2021169254A1 (zh) 一种路由匹配方法、信息发送方法及装置
CN114157597B (zh) 经加权的多播加入负载平衡
WO2015070427A1 (zh) 维护关联ma设置方法、装置及系统

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14784835

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 2014784835

Country of ref document: EP