[go: up one dir, main page]

WO2011144048A2 - Multicast realization method and network device - Google Patents

Multicast realization method and network device Download PDF

Info

Publication number
WO2011144048A2
WO2011144048A2 PCT/CN2011/074357 CN2011074357W WO2011144048A2 WO 2011144048 A2 WO2011144048 A2 WO 2011144048A2 CN 2011074357 W CN2011074357 W CN 2011074357W WO 2011144048 A2 WO2011144048 A2 WO 2011144048A2
Authority
WO
WIPO (PCT)
Prior art keywords
network device
multicast
information
terminal
igmp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2011/074357
Other languages
French (fr)
Chinese (zh)
Other versions
WO2011144048A3 (en
Inventor
牛承光
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201180000523.0A priority Critical patent/CN102742221B/en
Priority to PCT/CN2011/074357 priority patent/WO2011144048A2/en
Publication of WO2011144048A2 publication Critical patent/WO2011144048A2/en
Publication of WO2011144048A3 publication Critical patent/WO2011144048A3/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

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/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports

Definitions

  • the present invention relates to the field of network communications, and in particular, to a multicast implementation method and a network device. Background technique
  • IPTV Internet Protocol Television
  • IPTV Internet Protocol Television
  • the embodiments of the present invention provide a multicast implementation method and a network device to solve the problem that the IPTV service is interrupted due to a network device or link failure, and the user experience is poor.
  • an embodiment of the present invention provides a multicast implementation method, including:
  • the first network device receives the multicast group management protocol IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal;
  • the multicast backup information includes receiving the IGMP message.
  • the embodiment of the present invention provides a multicast network device, including: a first receiver, configured to receive a multicast group management protocol IGMP message from a terminal, where the IGMP message includes the multicast requested by the terminal Group information
  • An acquiring module configured to obtain multicast backup information, where the multicast backup information includes port information for receiving the IGMP message, information about the terminal, and the multicast group information;
  • the second network device sends the multicast backup information, so that the second network device forwards the multicast stream to the terminal according to the multicast backup information when the network device is faulty.
  • the embodiment of the present invention provides a second network device implemented by multicast, including: a second receiver, configured to receive multicast backup information from a first network device, where the multicast backup information includes the first network The device receives the port information of the multicast group management protocol IGMP message from the terminal, the information of the terminal, and the multicast group information;
  • An update module configured to update local IGMP group information according to the multicast group backup information
  • a second transmitter configured to forward the multicast stream to the terminal according to the local IGMP group information when the first network device is faulty.
  • the multicast group information of the terminal is backed up on the second network device.
  • the multicast network is forwarded by the second network device, and the IPTV service is not interrupted.
  • FIG. 1 is a schematic diagram of a network for deploying an IPTV service by using a dual-system hot backup technology
  • FIG. 2 is a flowchart of a multicast implementation method according to an embodiment of the present invention
  • FIG. 3 is a multicast implementation according to an embodiment of the present invention.
  • Network device block diagram
  • FIG. 4 is a block diagram of a second network device implemented by a multicast according to an embodiment of the present invention.
  • the embodiment of the invention provides a multicast implementation method and a network device.
  • the method includes: receiving, by the first network device, a multicast group management protocol IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal; acquiring multicast backup information, the multicast backup information And including the port information of the IGMP message, the information about the terminal, and the multicast group information; and sending the multicast backup information to the second network device, so that the second network device is in the first When the network device is faulty, the multicast stream is forwarded to the terminal according to the multicast backup information.
  • the technical solution provided by the embodiment of the present invention can solve the problem that the IPTV service is interrupted due to the failure of the primary router or the primary link, and the user experience is poor.
  • IP multicast technology The deployment of IPTV services requires the use of IP multicast technology.
  • the IP multicast technology is used by the multicast source to send IP packets.
  • the destination IP address of the packet is the multicast group address. Only the terminal device that joins the multicast group can receive the IP multicast packet.
  • IP multicast protocol includes multicast group management protocol IGMP (Internet Group)
  • Management Protocol is a mechanism for establishing and maintaining multicast membership between a terminal and a router.
  • the terminal wants to join the specified multicast group, it sends an IGMP Report message carrying the multicast group address.
  • the terminal wants to leave the specified multicast group it sends the IGMP carrying the multicast group address. Leave message.
  • the router periodically checks whether a member of a known multicast group is active through the IGMP protocol, and collects and maintains the membership of the connected network group.
  • dual-system hot backup technology can be adopted.
  • the dual-system refers to the two primary and secondary network devices.
  • the two network devices use the active and standby election protocols, such as the Virtual Router Redundancy Protocol (VRRP) to determine the primary and backup relationships.
  • VRRP Virtual Router Redundancy Protocol
  • the aggregation switch is dual-homed to this.
  • On two network devices The link, port, or VLAN of each pair of primary and secondary relationships is called a protection group and can pass the protection group ID (identification).
  • the protection group relationship table is stored on the primary and backup network devices, including the port number of the primary network device, the protection group ID, and the port number of the standby network device.
  • Figure 1 is a network diagram for deploying IPTV services using dual-system hot backup technology.
  • the first network device is in a standby state
  • the second network device is in a standby state.
  • the switch 1 is dual-homed to the first network device and the second network device, and the port 1 of the first network device and the port 4 of the second network device are a pair. Active and standby ports.
  • Example 1
  • FIG. 2 is a flowchart of a multicast implementation method according to an embodiment of the present invention, where the method includes:
  • the first network device receives the IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal.
  • the multicast group information includes a multicast group address
  • a multicast source address may further include £
  • the first network device updates the local IGMP group information according to the IGMP message, where the IGMP group information includes multicast group information and an egress port list.
  • the first network device updates the outbound port list of the local IGMP group information according to the port that receives the IGMP message.
  • the first network device receives the IGMP Report message of the terminal 1 through the port 1 and requests to join the multicast group 1; when there is no multicast group 1 in the local IGMP group information of the first network device, Add multicast group 1 address and port 1; when there is already multicast group 1, add port 1 to the outbound port list of multicast group 1. If the terminal 1 sends an IGMP Leave message to the multicast group 1, the port 1 is deleted from the outbound port list in multicast group 1 in the IGMP group information.
  • the first network device may establish a multicast path with the multicast source according to the local IGMP group information, and receive the multicast stream from the multicast source. For example, according to the local IGMP group information, PIM (Protocol Independent Multicast) is applied. The PIM protocol is applied to multicast routers to establish and maintain multicast routes.
  • a multicast source establishes a secondary multicast source.
  • a data transmission path to multiple receiving ends) establishes a multicast path with a multicast source.
  • the first network device may generate a multicast forwarding table according to the local IGMP group information, and forward the multicast stream to the terminal, where the multicast forwarding table includes an ingress port, a multicast group information, and an egress port list.
  • the multicast backup information includes port information of receiving the IGMP message, information about the terminal, and the multicast group information.
  • the first network device may obtain information about the terminal according to the link layer encapsulation information of the IGMP.
  • the information of the terminal includes an IP address of the terminal, a MAC address of the terminal, a VLAN tag (for example, a public network VLAN tag, a private network VLAN tag), and the like.
  • the first network device and the second network device may be a service gateway or a router, such as a BRAS (Broadband Remote Access Server).
  • BRAS Broadband Remote Access Server
  • the first network device and the second network device are in a master-slave relationship.
  • the first network device and the second network device can determine the relationship between the master and the backup through the active and standby election protocols, for example, VRRP, and maintain the relationship between the master and the backup.
  • active and standby election protocols for example, VRRP
  • the first network device and the second network device store a protection group relationship table, including a correspondence between a primary network device port number, a protection group ID, and a backup network device port number.
  • the port information may be a port number or a protection group ID.
  • the protection group ID can be obtained by querying the protection group relationship table according to the port number of the IGMP message.
  • the first network device Before receiving the IGMP message from the terminal, the first network device may establish a PPOOE (Point-to-Point Protocol over Ethernet) session with the terminal, and in the The PPPOE session information is backed up on the network device, so that the second network device maintains a PPPOE session with the terminal when the first network device fails.
  • PPOOE Point-to-Point Protocol over Ethernet
  • the IGMP message can be encapsulated by PPPOE.
  • the first network device may send the multicast backup information to the second network device by using a control plane, such as a signaling channel.
  • a control plane such as a signaling channel.
  • the first network device may also establish a reliable transmission channel, such as a TCP connection, with the second network device, and send the multicast backup information to the second network device through the reliable transmission channel.
  • a reliable transmission channel such as a TCP connection
  • the second network device may query the protection group relationship table according to the port information, and obtain an outbound port that the second network device forwards the multicast stream to the terminal. For example, as shown in FIG. 1, the first network device receives the IGMP message from the terminal 1 through the port 1, and the port information sent by the first network device to the second network device is the port number 1, and the second network device Query the entry in the protection group relationship table with the primary port number being 1, and obtain the corresponding backup port number 4. That is, when the first network device fails, the second network device sends the multicast data to the terminal. Port 4.
  • the second network device may update the local IGMP group information according to the multicast group information and the egress port.
  • the network device may also generate an IGMP copy message, where the IGMP copy message includes at least the IGMP message and the data link layer header from the terminal.
  • the format of the IGMP replication packet is as follows:
  • Protocol version number this field is 1 byte. For example, you can fill in 0x01, which means version 1;
  • Type of the message This field is 1 byte. For example, you can define the values as follows:
  • Packet Length defines the length of the Packet part, which is 2 bytes; Reserved: Reserved field, this field is 2 bytes;
  • Packet The packet body, which may include a data link layer header and an IGMP packet, and has a variable length; Attributes: An attribute field, which is a variable length field, can contain multiple attributes, each of which is in TLV (Type Length Value) format.
  • TLV Type Length Value
  • AttrType Describes the type of the attribute, which is 1 byte. For example, you can define the following attribute types:
  • VRF VPN Routing and Forwarding Table
  • the first network device sends the foregoing packet to the second network device.
  • the second network device can simulate the manner in which the terminal sends IGMP messages, and constructs a packet format that can be processed by the IGMP protocol stack according to the foregoing packet.
  • the second network device may update the local IGMP group information according to the foregoing packet.
  • the second network device may establish a multicast path with the multicast source according to the local IGMP group information, and receive the multicast stream from the multicast source.
  • the second network device may send a port list to the forwarding plane according to the local IGMP group information, and generate a multicast forwarding table.
  • the second network device When the second network device is in the standby state, the second network device does not perform multicast data. Encapsulating, not forwarding the multicast stream to the egress port; when the first network device fails, the second network device switches to the primary state, the second network device encapsulates the multicast data, and forwards the data to the egress port Multicast stream.
  • the second network device when the second network device is in the standby state, the second network device does not send the port list to the forwarding plane, and because there is no out port, the multicast stream is not forwarded to the terminal; when the first network device When the second network device is switched to the primary state, the second network device sends a port list according to the local IGMP group information, generates a multicast forwarding table, and encapsulates the multicast data, and forwards the multicast stream to the terminal. .
  • the technical solution provided by the embodiment of the present invention is backed up on the second network device.
  • the IGMP group information of the terminal when the first network device fails, the second network device continues to forward the multicast stream to the terminal, and the IPTV service is not interrupted, thereby ensuring the user experience.
  • Example 2
  • FIG. 3 is a block diagram of a network device implemented by a multicast according to an embodiment of the present invention.
  • the network device includes a first receiver 201, an obtaining module 202, and a first transmitter 203. among them:
  • the first receiver 201 is configured to receive an IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal;
  • the obtaining module 202 is configured to obtain multicast backup information, where the multicast backup information includes port information of the IGMP message, information about the terminal, and the multicast group information.
  • the first transmitter 203 is configured to send the multicast backup information to the second network device, so that the second network device sends the multicast backup information to the terminal according to the multicast backup information when the network device is faulty. Forward the multicast stream.
  • the multicast group information includes a multicast group address, and may also include a multicast source address.
  • the network device is further configured to update the local IGMP group information according to the IGMP message, where the IGMP group information includes the multicast group information and the outbound port list.
  • the network device updates the outbound port list of the local IGMP group information according to the port that receives the IGMP message.
  • the network device may establish a multicast path with the multicast source according to the local IGMP group information, and receive the multicast stream from the multicast source.
  • the obtaining module 202 may obtain information about the terminal according to the link layer encapsulation information of the IGMP.
  • the information of the terminal includes an IP address of the terminal, and the terminal MAC address, VLAN tag (such as public network VLAN tag, private network VLAN tag).
  • the network device and the second network device may be routers, such as BRAS.
  • the network device and the second network device are in a master-slave relationship.
  • the network device may further include:
  • the master/slave relationship module 204 is configured to run an active/standby election protocol, such as VRRP, to maintain a master-slave relationship with the second network device.
  • an active/standby election protocol such as VRRP
  • the network device and the second network device store a protection group relationship table, including a correspondence between a primary network device port number, a protection group ID, and a backup network device port number.
  • the port information may be a port number or a protection group ID.
  • the protection group ID can be obtained by querying the protection group relationship table according to the port number of the IGMP message.
  • the network device may establish a PPPOE session with the terminal before receiving the IGMP message from the terminal.
  • the network device may back up the PPPOE session information on the second network device, so that the second network device maintains a PPPOE session with the terminal when the network device fails.
  • the IGMP message can be encapsulated by PPPOE.
  • the transmitter 203 may send the port information, the information of the terminal, and the multicast group information to a second network device by using a control plane, such as a signaling channel.
  • a control plane such as a signaling channel.
  • the network device may also establish a reliable transmission channel, such as a TCP connection, with the second network device, and the transmitter 203 sends the port information and the device to the second network device by using the reliable transmission channel.
  • a reliable transmission channel such as a TCP connection
  • the second network device queries the protection group relationship table according to the port information, and obtains an egress port that the second network device forwards the multicast stream to the terminal.
  • the second network device may update the local IGMP group information according to the multicast group information and the egress port.
  • the network device may also generate an IGMP copy message, where the IGMP copy message includes at least the IGMP message and the data link layer header from the terminal.
  • the format of the IGMP copy is as follows:
  • Protocol version number this field is 1 byte. For example, you can fill in 0x01, which means version 1;
  • Type Type of the message. This field is 1 byte. For example, the values can be defined as follows: 1 : IGMP message type;
  • Packet Length defines the length of the Packet part, which is 2 bytes; Reserved: Reserved field, this field is 2 bytes;
  • the packet body which may include a data link layer header and an IGMP packet, and has a variable length;
  • An attribute field which is a variable length field, can contain multiple attributes, each of which is in TLV (Type Length Value) format.
  • TLV Type Length Value
  • AttrType Describes the type of the attribute, which is 1 byte. For example, you can define the following attribute types:
  • VRF VPN Routing and Forwarding Table
  • Layer 3 VPN Virtual Private Network
  • the network device sends the foregoing packet to the second network device.
  • the second network device can simulate the manner in which the terminal sends IGMP messages, and constructs a packet format that can be processed by the IGMP protocol stack according to the foregoing packet.
  • the second network device may update the local IGMP group information according to the foregoing packet.
  • the second network device forwards the multicast stream to the terminal according to the multicast forwarding table generated by the local IGMP group information.
  • FIG. 4 it is a block diagram of a second network device implemented by a multicast according to an embodiment of the present invention.
  • the second network device includes a second receiver 301, an update module 302, and a second transmitter 303. among them:
  • the second receiver 301 is configured to receive multicast backup information from the first network device, where the multicast backup information includes the port information that the first network device receives the multicast group management protocol IGMP message from the terminal.
  • the update module 302 is configured to update the local IGMP group information according to the multicast group backup information;
  • the second transmitter 303 is configured to forward the multicast stream to the terminal according to the local IGMP group information when the first network device is faulty.
  • the first network device obtains multicast backup information, where the multicast backup information includes port information that the first network device receives an IGMP message from the terminal, where the terminal Information and the multicast group information.
  • the port information may be a port number or a protection group ID.
  • the multicast group information includes a multicast group address, and may also include a multicast source address.
  • the information of the terminal includes an IP address of the terminal, a MAC address of the terminal, a VLAN tag (for example, a public network VLAN tag, a private network VLAN tag), and the like.
  • a VLAN tag for example, a public network VLAN tag, a private network VLAN tag
  • the first network device and the second network device may be routers, such as BRAS.
  • the first network device and the second network device are in a master-slave relationship.
  • the second network device may also run an active/standby election protocol, such as VRRP, to maintain a master-slave relationship with the first network device.
  • an active/standby election protocol such as VRRP
  • the second network device stores a protection group relationship table, including a correspondence between a primary network device port number, a protection group ID, and a backup network device port number.
  • the second receiver 301 receives PPPOE session information from the terminal of the first network device; when the first network device fails, the The second network device is further configured to maintain a PPPOE session with the terminal according to the PPPOE session information.
  • the second network device may update the local IGMP group information according to the multicast backup information. specifically,
  • the second network device queries the protection group relationship table according to the port information, and obtains an outbound port that the second network device forwards the multicast stream to the terminal;
  • the second network device updates the local IGMP group information according to the multicast group information and the egress port.
  • the second network device may receive an IGMP copy message from the first network device, where the IGMP copy message includes at least the IGMP message and the data link layer header from the terminal.
  • the format of the IGMP copy message is as follows:
  • Protocol version number this field is 1 byte. For example, you can fill in 0x01, which means version 1;
  • Type Type of the message. This field is 1 byte. For example, the values can be defined as follows: 1 : IGMP message type;
  • Packet Length defines the length of the Packet part, which is 2 bytes; Reserved: Reserved field, this field is 2 bytes;
  • the packet body which may include a data link layer header and an IGMP packet, and has a variable length;
  • An attribute field which is a variable length field, can contain multiple attributes, each of which is in TLV (Type Length Value) format.
  • TLV Type Length Value
  • AttrType Describes the type of the attribute, which is 1 byte. For example, you can define the following attribute types:
  • the second network device may simulate a manner in which the terminal sends an IGMP message, and construct a packet format that can be processed by the IGMP protocol stack according to the IGMP copy message.
  • the second network device may update the local IGMP group information according to the IGMP copy message.
  • the second network device may establish a multicast path with the multicast source according to the local IGMP group information, and receive the multicast stream from the multicast source.
  • the second network device may send a port list to the forwarding plane according to the local IGMP group information, and generate a multicast forwarding table.
  • the second network device When the second network device is in the standby state, the second network device does not perform multicast data. Encapsulating, not forwarding the multicast stream to the egress port; when the first network device fails, the second network device switches to the primary state, the second network device encapsulates the multicast data, and forwards the data to the egress port Multicast stream.
  • the second network device when the second network device is in the standby state, the second network device does not send the port list to the forwarding plane, and because there is no out port, the multicast stream is not forwarded to the terminal; when the first network device When the second network device is switched to the primary state, the second network device sends a port list according to the local IGMP group information, generates a multicast forwarding table, and encapsulates the multicast data, and forwards the multicast stream to the terminal. .
  • the technical solution provided by the embodiment of the present invention is also applicable to the control of the primary and backup links by using MC-LAG (Multi-Chassis Link Aggregation Group) or Smartlink (Flexible Link, or Backup Link) technology. Network scenario.
  • MC-LAG Multi-Chassis Link Aggregation Group
  • Smartlink Felexible Link, or Backup Link
  • the second network device when the IGMP group information of the terminal is backed up on the second network device, when the first network device fails, the second network device maintains the IGMP group information of the terminal, and the second The network device can continue to forward the multicast stream to the terminal, and the IPTV service is not interrupted, thereby ensuring the user experience.
  • the IPTV service when the primary router fails, the IPTV service is interrupted, and the user experience is poor.
  • a program to instruct related hardware may be stored in a computer readable storage medium, which may be a ROM/RAM, a magnetic disk or an optical disk or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The present invention discloses a multicast realization method and a network device. The method includes: a first network device receives an Internet Group Management Protocol (IGMP) message from a terminal, wherein the IGMP message includes a multicast group information requested by the terminal; a multicast backup information is obtained, and the multicast backup information includes the information of the port through which the IGMP message is received, the information of the terminal and the multicast group information; the multicast backup information is sent to a second network device so as to enable the second network device to forward a multicast stream to the terminal according to the multicast backup information when the first network device fails. By adopting the technical solution provided by embodiments of the present invention, the problems of the interruption of Internet Protocol Television (IPTV) service caused by the failure of a master router or a master link and bad user experience in the art are solved.

Description

说 明 书  Description

一种组播实现的方法和网络设备 技术领域  Method and network device for implementing multicast

本发明涉及网络通信领域,尤其涉及一种组播实现的方法和网络 设备。 背景技术  The present invention relates to the field of network communications, and in particular, to a multicast implementation method and a network device. Background technique

在部署 IPTV ( Internet Protocol Television, 互联网电视)业务的 时候, 由于 IPTV对可靠性要求比较高, 通常需要采用冗余的方法, 在 IP骨干网边缘部署至少两个路由器, 选出 DR ( Designated Router, 选举路由器)和 BDR ( Backup Designated Router,备份选举路由器), 正常情况下由 DR负责向下游终端复制组播流。 当 DR出现故障时, BDR会升级为主角色, 负责向下游复制组播流, 但是 IPTV业务将发 生较长时间的中断, 用户体验比较差。 发明内容  When deploying IPTV (Internet Protocol Television) services, because IPTV has high reliability requirements, it is usually necessary to adopt a redundant method. At least two routers are deployed on the edge of the IP backbone network, and a DR (Designated Router) is selected. The router is elected to back up the router. The DR is responsible for replicating the multicast stream to the downstream terminal. When the DR is faulty, the BDR is upgraded to the primary role and is responsible for replicating the multicast stream downstream. However, the IPTV service will be interrupted for a long time and the user experience is poor. Summary of the invention

本发明实施例提供了一种组播实现的方法和网络设备,以解决现 有技术中, 由于网络设备或链路故障导致 IPTV业务中断, 用户体验 差的问题。  The embodiments of the present invention provide a multicast implementation method and a network device to solve the problem that the IPTV service is interrupted due to a network device or link failure, and the user experience is poor.

为解决上述技术问题, 本发明实施例提供了一种组播实现的方 法, 包括:  To solve the above technical problem, an embodiment of the present invention provides a multicast implementation method, including:

第一网络设备接收来自终端的组播组管理协议 IGMP报文,所述 IGMP报文包含所述终端请求的组播组信息;  The first network device receives the multicast group management protocol IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal;

获取组播备份信息,所述组播备份信息包括接收所述 IGMP报文 的端口信息、 所述终端的信息和所述组播组信息; Obtaining multicast backup information, where the multicast backup information includes receiving the IGMP message. Port information, information of the terminal, and the multicast group information;

向第二网络设备发送所述组播备份信息,以使所述第二网络设备 在所述第一网络设备故障时,根据所述组播备份信息向所述终端转发 组播流。 本发明实施例提供了一种组播实现的网络设备, 包括: 第一接收器, 用于接收来自终端的组播组管理协议 IGMP报文, 所述 IGMP报文包含所述终端请求的组播组信息;  Sending the multicast backup information to the second network device, so that the second network device forwards the multicast stream to the terminal according to the multicast backup information when the first network device is faulty. The embodiment of the present invention provides a multicast network device, including: a first receiver, configured to receive a multicast group management protocol IGMP message from a terminal, where the IGMP message includes the multicast requested by the terminal Group information

获取模块, 用于获取组播备份信息, 所述组播备份信息包括接收 所述 IGMP报文的端口信息、 所述终端的信息和所述组播组信息; 第一发送器, 用于向第二网络设备发送所述组播备份信息, 以使 所述第二网络设备在所述网络设备故障时,根据所述组播备份信息向 所述终端转发组播流。 本发明实施例提供了一种组播实现的第二网络设备, 包括: 第二接收器, 用于接收来自第一网络设备的组播备份信息, 所述 组播备份信息包括所述第一网络设备接收来自终端的组播组管理协 议 IGMP报文的端口信息, 所述终端的信息和组播组信息;  An acquiring module, configured to obtain multicast backup information, where the multicast backup information includes port information for receiving the IGMP message, information about the terminal, and the multicast group information; The second network device sends the multicast backup information, so that the second network device forwards the multicast stream to the terminal according to the multicast backup information when the network device is faulty. The embodiment of the present invention provides a second network device implemented by multicast, including: a second receiver, configured to receive multicast backup information from a first network device, where the multicast backup information includes the first network The device receives the port information of the multicast group management protocol IGMP message from the terminal, the information of the terminal, and the multicast group information;

更新模块, 用于根据所述组播组备份信息更新本地 IGMP组信 息;  An update module, configured to update local IGMP group information according to the multicast group backup information;

第二发送器, 用于当所述第一网络设备故障时, 根据所述本地 IGMP组信息向终端转发组播流。  And a second transmitter, configured to forward the multicast stream to the terminal according to the local IGMP group information when the first network device is faulty.

采用本发明实施例提供的技术方案,通过在第二网络设备上备份 终端的组播组信息, 当第一网络设备故障时, 通过第二网络设备转发 组播流, IPTV业务不会中断, 保证了用户体验。 附图说明 By using the technical solution provided by the embodiment of the present invention, the multicast group information of the terminal is backed up on the second network device. When the first network device is faulty, the multicast network is forwarded by the second network device, and the IPTV service is not interrupted. The user experience. DRAWINGS

图 1是采用双机热备份技术部署 IPTV业务的网络示意图; 图 2是本发明实施例提供的一种组播实现的方法流程图; 图 3是本发明实施例提供的一种组播实现的网络设备框图; 图 4是本发明实施例提供的一种组播实现的第二网络设备框图。 具体实施方式  1 is a schematic diagram of a network for deploying an IPTV service by using a dual-system hot backup technology; FIG. 2 is a flowchart of a multicast implementation method according to an embodiment of the present invention; FIG. 3 is a multicast implementation according to an embodiment of the present invention. Network device block diagram; FIG. 4 is a block diagram of a second network device implemented by a multicast according to an embodiment of the present invention. detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术 方案进行清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发 明的一部分实施例, 而不是全部的实施例。 基于本发明中的实施 例, 本领域普通技术人员在没有做出创造性劳动前提下所获得的 所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

本发明实施例提供了一种组播实现的方法和网络设备。所述方法 包括: 第一网络设备接收来自终端的组播组管理协议 IGMP报文, 所 述 IGMP报文包含所述终端请求的组播组信息; 获取组播备份信息, 所述组播备份信息包括接收所述 IGMP报文的端口信息、所述终端的 信息和所述组播组信息; 向第二网络设备发送所述组播备份信息, 以 使所述第二网络设备在所述第一网络设备故障时,根据所述组播备份 信息向所述终端转发组播流。 采用本发明实施例提供的技术方案, 可 以解决现有技术中,由于主路由器或主链路故障导致 IPTV业务中断, 用户体验差的问题。  The embodiment of the invention provides a multicast implementation method and a network device. The method includes: receiving, by the first network device, a multicast group management protocol IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal; acquiring multicast backup information, the multicast backup information And including the port information of the IGMP message, the information about the terminal, and the multicast group information; and sending the multicast backup information to the second network device, so that the second network device is in the first When the network device is faulty, the multicast stream is forwarded to the terminal according to the multicast backup information. The technical solution provided by the embodiment of the present invention can solve the problem that the IPTV service is interrupted due to the failure of the primary router or the primary link, and the user experience is poor.

IPTV业务的部署需要使用 IP组播技术。 IP组播技术是指组播源 发送 IP报文, 报文的目的 IP地址是组播组地址, 只有加入该组播组 的终端设备才能够接收到该 IP组播报文。 在网络中实现 IP组播报文 的转发, 即组播流的传输, 必须在设备上运行可互操作的 IP组播协 议。 IP组播协议包括组播组管理协议 IGMP ( Internet Group The deployment of IPTV services requires the use of IP multicast technology. The IP multicast technology is used by the multicast source to send IP packets. The destination IP address of the packet is the multicast group address. Only the terminal device that joins the multicast group can receive the IP multicast packet. To implement IP multicast packet forwarding on the network, that is, multicast stream transmission, an interoperable IP multicast protocol must be run on the device. IP multicast protocol includes multicast group management protocol IGMP (Internet Group)

Management Protocol ), 是终端和路由器之间建立和维护组播成员关 系的机制。 在 IGMP协议中, 当终端希望加入指定的组播组时, 发送 携带该组播组地址的 IGMP Report报文; 当终端希望离开指定的组播 组时, 会发送携带该组播组地址的 IGMP Leave报文。 路由器通过 IGMP协议周期性地查询某个已知组播组的成员是否处于活动状态, 实现所连网络组成员关系的收集与维护。 Management Protocol ) is a mechanism for establishing and maintaining multicast membership between a terminal and a router. In the IGMP protocol, when the terminal wants to join the specified multicast group, it sends an IGMP Report message carrying the multicast group address. When the terminal wants to leave the specified multicast group, it sends the IGMP carrying the multicast group address. Leave message. The router periodically checks whether a member of a known multicast group is active through the IGMP protocol, and collects and maintains the membership of the connected network group.

为了提供 IPTV业务可靠性, 可以采用双机热备份技术。 双机 是指主、 备两台网络设备, 这两台网络设备通过主备选举协议, 例 如 VRRP ( Virtual Router Redundancy Protocol, 虚拟路由冗余协议 ) 决策出主、 备关系, 汇聚交换机双归属到这两台网络设备上。 每一 对主、 备关系的链路、 端口或 VLAN称为保护组, 可通过保护组 ID (标识)。 主、 备网络设备上存有保护组关系表, 包括主网络设备的 端口号、 保护组 ID、 备网络设备的端口号等的对应关系。 如图 1, 是 采用双机热备份技术部署 IPTV业务的网络示意图。第一网络设备 为主状态, 第二网络设备为备状态, 交换机 1双归属到第一网络设 备和第二网络设备上, 第一网络设备的端口 1、 第二网络设备的端 口 4是一对主备端口。 实施例 1  In order to provide IPTV service reliability, dual-system hot backup technology can be adopted. The dual-system refers to the two primary and secondary network devices. The two network devices use the active and standby election protocols, such as the Virtual Router Redundancy Protocol (VRRP) to determine the primary and backup relationships. The aggregation switch is dual-homed to this. On two network devices. The link, port, or VLAN of each pair of primary and secondary relationships is called a protection group and can pass the protection group ID (identification). The protection group relationship table is stored on the primary and backup network devices, including the port number of the primary network device, the protection group ID, and the port number of the standby network device. Figure 1 is a network diagram for deploying IPTV services using dual-system hot backup technology. The first network device is in a standby state, and the second network device is in a standby state. The switch 1 is dual-homed to the first network device and the second network device, and the port 1 of the first network device and the port 4 of the second network device are a pair. Active and standby ports. Example 1

参见图 2, 是本发明实施例提供的一种组播实现的方法流程图, 所述方法包括:  FIG. 2 is a flowchart of a multicast implementation method according to an embodiment of the present invention, where the method includes:

101 : 第一网络设备接收来自终端的 IGMP报文, 所述 IGMP报 文包含所述终端请求的组播组信息。 所述组播组信息包括组播组地址, 还可以包括组播源地址£ 所述第一网络设备根据所述 IGMP报文更新本地 IGMP组信息, 所述 IGMP组信息包括组播组信息和出端口列表。 The first network device receives the IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal. The multicast group information includes a multicast group address, a multicast source address may further include £ The first network device updates the local IGMP group information according to the IGMP message, where the IGMP group information includes multicast group information and an egress port list.

所述第一网络设备根据接收到所述 IGMP报文的端口更新本地 IGMP组信息的出端口列表。  The first network device updates the outbound port list of the local IGMP group information according to the port that receives the IGMP message.

举例来说, 如图 1所示, 第一网络设备通过端口 1收到终端 1的 IGMP Report报文, 请求加入组播组 1; 当第一网络设备本地 IGMP 组信息中没有组播组 1, 则添加组播组 1地址和端口 1 ; 当已有组播 组 1,则在组播组 1的出端口列表中添加端口 1。如果终端 1发送 IGMP Leave报文离开组播组 1, 则在 IGMP组信息中组播组 1下的出端口 列表中删除端口 1。  For example, as shown in FIG. 1 , the first network device receives the IGMP Report message of the terminal 1 through the port 1 and requests to join the multicast group 1; when there is no multicast group 1 in the local IGMP group information of the first network device, Add multicast group 1 address and port 1; when there is already multicast group 1, add port 1 to the outbound port list of multicast group 1. If the terminal 1 sends an IGMP Leave message to the multicast group 1, the port 1 is deleted from the outbound port list in multicast group 1 in the IGMP group information.

所述第一网络设备可以根据本地 IGMP 组信息建立与组播源的 组播路径, 并接收来自组播源的组播流。 例如, 根据本地 IGMP组信 息, 通过 PIM ( Protocol Independent Multicast, 协议无关组播 ) ( PIM 协议应用于组播路由器之间, 用于建立和维护组播路由, 组播路由建 立了一个从组播源到多个接收端的数据传输路径)建立与组播源的组 播路径。  The first network device may establish a multicast path with the multicast source according to the local IGMP group information, and receive the multicast stream from the multicast source. For example, according to the local IGMP group information, PIM (Protocol Independent Multicast) is applied. The PIM protocol is applied to multicast routers to establish and maintain multicast routes. A multicast source establishes a secondary multicast source. A data transmission path to multiple receiving ends) establishes a multicast path with a multicast source.

所述第一网络设备可以根据本地 IGMP 组信息, 生成组播转发 表, 向所述终端转发组播流, 所述组播转发表中包含入端口, 组播组 信息和出端口列表。  The first network device may generate a multicast forwarding table according to the local IGMP group information, and forward the multicast stream to the terminal, where the multicast forwarding table includes an ingress port, a multicast group information, and an egress port list.

102:获取组播备份信息,所述组播备份信息包括接收所述 IGMP 报文的端口信息、 所述终端的信息和所述组播组信息。  102: Obtain multicast backup information, where the multicast backup information includes port information of receiving the IGMP message, information about the terminal, and the multicast group information.

所述第一网络设备可以根据所述 IGMP的链路层封装信息获取所 述终端的信息。 所述终端的信息包括所述终端的 IP地址, 所述终端的 MAC地址, VLAN标签(例如公网 VLAN标签, 私网 VLAN标签)等。  The first network device may obtain information about the terminal according to the link layer encapsulation information of the IGMP. The information of the terminal includes an IP address of the terminal, a MAC address of the terminal, a VLAN tag (for example, a public network VLAN tag, a private network VLAN tag), and the like.

103: 向第二网络设备发送所述组播备份信息, 以使所述第二网 络设备在所述第一网络设备故障时,根据所述组播备份信息向所述终 端转发组播流。 103: Send the multicast backup information to a second network device, so that the second network When the first network device fails, the network device forwards the multicast stream to the terminal according to the multicast backup information.

所述第一网络设备和所述第二网络设备可以是业务网关或者 路由器, 例如 BRAS ( Broadband Remote Access Server, 宽带远程接 入服务器)。  The first network device and the second network device may be a service gateway or a router, such as a BRAS (Broadband Remote Access Server).

所述第一网络设备和所述第二网络设备互为主备关系。  The first network device and the second network device are in a master-slave relationship.

所述第一网络设备和所述第二网络设备可以通过主备选举协 议, 例如 VRRP, 决策出主、 备关系, 并维护主、 备关系。  The first network device and the second network device can determine the relationship between the master and the backup through the active and standby election protocols, for example, VRRP, and maintain the relationship between the master and the backup.

所述第一网络设备和所述第二网络设备存有保护组关系表, 包 括主网络设备端口号, 保护组 ID和备网络设备端口号的对应关系。  The first network device and the second network device store a protection group relationship table, including a correspondence between a primary network device port number, a protection group ID, and a backup network device port number.

所述端口信息可以是端口号或保护组 ID。 例如根据接收所述 IGMP报文的端口号, 查询保护组关系表, 可以获得保护组 ID。  The port information may be a port number or a protection group ID. For example, the protection group ID can be obtained by querying the protection group relationship table according to the port number of the IGMP message.

在接收来自所述终端的 IGMP报文之前,所述第一网络设备可以 与所述终端建立 PPPOE ( Point-to-Point Protocol over Ethernet, 以太 网承载点到点协议)会话,并在所述第二网络设备上备份所述 PPPOE 会话信息, 以使所述第二网络设备在所述第一网络设备故障时, 维护 与所述终端的 PPPOE会话。  Before receiving the IGMP message from the terminal, the first network device may establish a PPOOE (Point-to-Point Protocol over Ethernet) session with the terminal, and in the The PPPOE session information is backed up on the network device, so that the second network device maintains a PPPOE session with the terminal when the first network device fails.

所述 IGMP报文可以通过 PPPOE封装。  The IGMP message can be encapsulated by PPPOE.

所述第一网络设备可以通过控制平面, 例如信令通道, 向第二 网络设备发送所述组播备份信息。 或者,  The first network device may send the multicast backup information to the second network device by using a control plane, such as a signaling channel. Or,

所述第一网络设备也可以和所述第二网络设备间建立可靠的 传输通道, 例如 TCP连接, 通过所述可靠的传输通道向所述第二网 络设备发送所述组播备份信息。  The first network device may also establish a reliable transmission channel, such as a TCP connection, with the second network device, and send the multicast backup information to the second network device through the reliable transmission channel.

所述第二网络设备可以根据所述端口信息, 查询保护组关系表, 获得所述第二网络设备向所述终端转发组播流的出端口。 举例来说, 如图 1所示, 第一网络设备通过端口 1接收到来自终端 1的 IGMP报文,则第一网络设备发送给第二网络设备的端口信息为端 口号 1, 第二网络设备查询保护组关系表中主端口号为 1的表项, 获取 对应的备端口号为 4, 即当第一网络设备发生故障时, 第二网络设备 向所述终端发送组播数据的出端口为端口 4 。 The second network device may query the protection group relationship table according to the port information, and obtain an outbound port that the second network device forwards the multicast stream to the terminal. For example, as shown in FIG. 1, the first network device receives the IGMP message from the terminal 1 through the port 1, and the port information sent by the first network device to the second network device is the port number 1, and the second network device Query the entry in the protection group relationship table with the primary port number being 1, and obtain the corresponding backup port number 4. That is, when the first network device fails, the second network device sends the multicast data to the terminal. Port 4.

所述第二网络设备可以根据所述组播组信息和所述出端口更新 本地 IGMP组信息。  The second network device may update the local IGMP group information according to the multicast group information and the egress port.

所述网络设备也可以生成一个 IGMP复制报文,所述 IGMP复制 报文中至少包括所述来自终端的 IGMP报文和数据链路层头部。 例 如, 所述 IGMP复制报文格式如下:  The network device may also generate an IGMP copy message, where the IGMP copy message includes at least the IGMP message and the data link layer header from the terminal. For example, the format of the IGMP replication packet is as follows:

0 1 2 3 0 1 2 3

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 10 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- +■ - + - +■ -+-+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- +■ - + - +■ -+-

1 Vers ion | Type 1 Length 11 Vers ion | Type 1 Length 1

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- - + - -+- ++' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- - + - -+- +

1 Packet Length 1 reserved 11 Packet Length 1 reserved 1

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- - + - -+- '++' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- - + - -+- '+

1 Packet 11 Packet 1

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- - + - -+- '++' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- - + - -+- '+

1 Attributes ... 1 Attributes ...

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- - + - -+- '+ 其中:  +' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- - + - -+- '+ where:

Version: 协议版本号, 该字段为 1个字节。 例如, 可以填 0x01, 表示版本 1;  Version: Protocol version number, this field is 1 byte. For example, you can fill in 0x01, which means version 1;

Type: 报文的类型,该字段为 1个字节。例如,可以定义值如下:Type: Type of the message. This field is 1 byte. For example, you can define the values as follows:

1 : IGMP报文类型; 1 : IGMP packet type;

Length: 定义整个组播组请求信息报文的长度, 该字段为 2个字 节, 其值〉 =4个字节;  Length: Defines the length of the entire multicast group request message. The field is 2 bytes and its value is >=4 bytes.

Packet Length: 定义 Packet部分的长度, 该字段为 2个字节; Reserved: 保留字段, 该字段为 2个字节;  Packet Length: defines the length of the Packet part, which is 2 bytes; Reserved: Reserved field, this field is 2 bytes;

Packet: 报文体, 可以包括数据链路层头部和 IGMP报文, 长度 可变; Attributes: 属性字段, 是一个可变长字段, 可包含多个属性, 每 个属性为 TLV ( Type Length Value, 类型长度值)格式。 例如:Packet: The packet body, which may include a data link layer header and an IGMP packet, and has a variable length; Attributes: An attribute field, which is a variable length field, can contain multiple attributes, each of which is in TLV (Type Length Value) format. E.g:

+ + + + + +

I AttrType | AttrLen | Att rValue  I AttrType | AttrLen | Att rValue

+ + +  + + +

AttrType: 描述属性的类型, 该字段为 1个字节。 例如, 可以定 义如下属性类型:  AttrType: Describes the type of the attribute, which is 1 byte. For example, you can define the following attribute types:

1: 表示 VRF ( VPN Routing and Forwarding Table, VPN路由转 发表)名称属性, 用来标识终端从属于哪个三层 VPN ( Virtual 1: Indicates the VRF (VPN Routing and Forwarding Table) name attribute, which is used to identify which Layer 3 VPN the terminal belongs to.

Private Network, 虚拟专用网) 的域。 Private Network, virtual private network) domain.

所述第一网络设备向所述第二网络设备发送上述报文。  The first network device sends the foregoing packet to the second network device.

所述第二网络设备可以模拟终端发送 IGMP报文的方式, 根据上 述报文构造 IGMP协议栈可以处理的报文格式。  The second network device can simulate the manner in which the terminal sends IGMP messages, and constructs a packet format that can be processed by the IGMP protocol stack according to the foregoing packet.

所述第二网络设备可以根据上述报文更新本地 IGMP组信息。 所述第二网络设备可以根据本地 IGMP 组信息建立与组播源的 组播路径, 并接收来自组播源的组播流。  The second network device may update the local IGMP group information according to the foregoing packet. The second network device may establish a multicast path with the multicast source according to the local IGMP group information, and receive the multicast stream from the multicast source.

所述第二网络设备可以根据本地 IGMP 组信息向转发平面下发 出端口列表, 生成组播转发表; 当所述第二网络设备处于备状态时, 所述第二网络设备不进行组播数据的封装, 不向出端口转发组播流; 当所述第一网络设备故障, 所述第二网络设备切换为主状态时, 所述 第二网络设备进行组播数据的封装, 并向出端口转发组播流。 或者, 当所述第二网络设备处于备状态时,所述第二网络设备不向转发 平面下发出端口列表, 由于没有出端口, 不会向终端转发组播流; 当 所述第一网络设备故障, 所述第二网络设备切换为主状态时, 所述第 二网络设备根据本地 IGMP 组信息下发出端口列表, 生成组播转发 表, 并进行组播数据的封装, 向终端转发组播流。  The second network device may send a port list to the forwarding plane according to the local IGMP group information, and generate a multicast forwarding table. When the second network device is in the standby state, the second network device does not perform multicast data. Encapsulating, not forwarding the multicast stream to the egress port; when the first network device fails, the second network device switches to the primary state, the second network device encapsulates the multicast data, and forwards the data to the egress port Multicast stream. Or, when the second network device is in the standby state, the second network device does not send the port list to the forwarding plane, and because there is no out port, the multicast stream is not forwarded to the terminal; when the first network device When the second network device is switched to the primary state, the second network device sends a port list according to the local IGMP group information, generates a multicast forwarding table, and encapsulates the multicast data, and forwards the multicast stream to the terminal. .

采用本发明实施例提供的技术方案,通过在第二网络设备上备份 终端的 IGMP组信息, 当第一网络设备出现故障时, 通过第二网络设 备继续向终端转发组播流, IPTV业务不会发生中断, 保证了用户 体验。 实施例 2 The technical solution provided by the embodiment of the present invention is backed up on the second network device. The IGMP group information of the terminal, when the first network device fails, the second network device continues to forward the multicast stream to the terminal, and the IPTV service is not interrupted, thereby ensuring the user experience. Example 2

参见图 3, 是本发明实施例提供的一种组播实现的网络设备框 图, 所述网络设备包括第一接收器 201, 获取模块 202和第一发送 器 203。 其中:  FIG. 3 is a block diagram of a network device implemented by a multicast according to an embodiment of the present invention. The network device includes a first receiver 201, an obtaining module 202, and a first transmitter 203. among them:

所述第一接收器 201, 用于接收来自终端的 IGMP 报文, 所述 IGMP报文包含所述终端请求的组播组信息;  The first receiver 201 is configured to receive an IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal;

所述获取模块 202, 用于获取组播备份信息, 所述组播备份信息 包括接收所述 IGMP报文的端口信息、所述终端的信息和所述组播组 信息;  The obtaining module 202 is configured to obtain multicast backup information, where the multicast backup information includes port information of the IGMP message, information about the terminal, and the multicast group information.

所述第一发送器 203, 用于向第二网络设备发送所述组播备份信 息, 以使所述第二网络设备在所述网络设备故障时, 根据所述组播备 份信息向所述终端转发组播流。  The first transmitter 203 is configured to send the multicast backup information to the second network device, so that the second network device sends the multicast backup information to the terminal according to the multicast backup information when the network device is faulty. Forward the multicast stream.

 Can

所述组播组信息包括组播组地址, 还可以包括组播源地址。 所述网络设备还用于根据所述 IGMP报文更新本地 IGMP组信 息, 所述 IGMP组信息中包括组播组信息和出端口列表。  The multicast group information includes a multicast group address, and may also include a multicast source address. The network device is further configured to update the local IGMP group information according to the IGMP message, where the IGMP group information includes the multicast group information and the outbound port list.

所述网络设备根据接收到所述 IGMP报文的端口更新本地 IGMP 组信息的出端口列表。  The network device updates the outbound port list of the local IGMP group information according to the port that receives the IGMP message.

所述网络设备可以根据本地 IGMP组信息建立与组播源的组播 路径, 并接收来自组播源的组播流。  The network device may establish a multicast path with the multicast source according to the local IGMP group information, and receive the multicast stream from the multicast source.

所述获取模块 202可以根据所述 IGMP的链路层封装信息获取所 述终端的信息。 所述终端的信息包括所述终端的 IP地址, 所述终端 的 MAC地址, VLAN标签(例如公网 VLAN标签, 私网 VLAN标 签)等。 The obtaining module 202 may obtain information about the terminal according to the link layer encapsulation information of the IGMP. The information of the terminal includes an IP address of the terminal, and the terminal MAC address, VLAN tag (such as public network VLAN tag, private network VLAN tag).

所述网络设备和所述第二网络设备可以是路由器, 例如 BRAS。  The network device and the second network device may be routers, such as BRAS.

所述网络设备和所述第二网设备互为主备关系。  The network device and the second network device are in a master-slave relationship.

所述网络设备还可以包括:  The network device may further include:

主备关系模块 204, 用于运行主备选举协议, 例如 VRRP, 维护与 所述第二网络设备之间的主、 备关系。  The master/slave relationship module 204 is configured to run an active/standby election protocol, such as VRRP, to maintain a master-slave relationship with the second network device.

所述网络设备和所述第二网络设备存有保护组关系表, 包括主 网络设备端口号, 保护组 ID和备网络设备端口号的对应关系。  The network device and the second network device store a protection group relationship table, including a correspondence between a primary network device port number, a protection group ID, and a backup network device port number.

所述端口信息可以是端口号或保护组 ID。 例如根据接收所述 IGMP报文的端口号, 查询保护组关系表, 可以获得保护组 ID。  The port information may be a port number or a protection group ID. For example, the protection group ID can be obtained by querying the protection group relationship table according to the port number of the IGMP message.

在接收来自所述终端的 IGMP报文之前, 所述网络设备可以与所 述终端建立 PPPOE会话。所述网络设备可以在所述第二网络设备上备 份所述 PPPOE会话信息, 以使所述第二网络设备在所述网络设备故障 时, 维护与所述终端的 PPPOE会话。  The network device may establish a PPPOE session with the terminal before receiving the IGMP message from the terminal. The network device may back up the PPPOE session information on the second network device, so that the second network device maintains a PPPOE session with the terminal when the network device fails.

所述 IGMP报文可以通过 PPPOE封装。  The IGMP message can be encapsulated by PPPOE.

所述发送器 203可以通过控制平面, 例如信令通道, 向第二网络 设备发送所述端口信息、 所述终端的信息和所述组播组信息。  The transmitter 203 may send the port information, the information of the terminal, and the multicast group information to a second network device by using a control plane, such as a signaling channel.

所述网络设备也可以和所述第二网络设备间建立可靠的传输 通道, 例如 TCP连接, 所述发送器 203通过所述可靠的传输通道向 所述第二网络设备发送所述端口信息、所述终端的信息和所述组播组 信息。  The network device may also establish a reliable transmission channel, such as a TCP connection, with the second network device, and the transmitter 203 sends the port information and the device to the second network device by using the reliable transmission channel. The information about the terminal and the multicast group information.

所述第二网络设备根据所述端口信息, 查询保护组关系表, 获得 所述第二网络设备向所述终端转发组播流的出端口。 所述第二网络设备可以根据所述组播组信息和所述出端口更新 本地 IGMP组信息。 The second network device queries the protection group relationship table according to the port information, and obtains an egress port that the second network device forwards the multicast stream to the terminal. The second network device may update the local IGMP group information according to the multicast group information and the egress port.

所述网络设备也可以生成一个 IGMP复制报文,所述 IGMP复制 报文中至少包括所述来自终端的 IGMP报文和数据链路层头部。  The network device may also generate an IGMP copy message, where the IGMP copy message includes at least the IGMP message and the data link layer header from the terminal.

例如所述 IGMP复制 文格式如下:  For example, the format of the IGMP copy is as follows:

0 1 2 3 0 1 2 3

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 10 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+- +-+ -+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+-+- +■ - + - + - + - ++- +-+ -+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+ -+- +■ - + - + - + - +

1 Vers ion | Type 1 Length 11 Vers ion | Type 1 Length 1

+- +-+ -+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+-+- - + - + - + - ' ++- +-+ -+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+ -+- - + - + - + - ' +

1 Packet Length 1 reserved 11 Packet Length 1 reserved 1

+- +-+ -+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+-+- - + - + - + - ' ++- +-+ -+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+ -+- - + - + - + - ' +

1 Packet 11 Packet 1

+- +-+ -+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+-+- - + - + - + - ' ++- +-+ -+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+ -+- - + - + - + - ' +

1 Attributes ... 1 Attributes ...

+- + -+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+-+- - + - + - + - ' +  +- + -+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+ - + - -+-+-+-+-+- - + - + - + - ' +

Version: 协议版本号, 该字段为 1个字节。 例如, 可以填 0x01, 表示版本 1; Version: Protocol version number, this field is 1 byte. For example, you can fill in 0x01, which means version 1;

Type: 报文的类型,该字段为 1个字节。例如,可以定义值如下: 1 : IGMP报文类型;  Type: Type of the message. This field is 1 byte. For example, the values can be defined as follows: 1 : IGMP message type;

Length: 定义整个组播组请求信息报文的长度, 该字段为 2个字 节, 其值〉 =4个字节;  Length: Defines the length of the entire multicast group request message. The field is 2 bytes and its value is >=4 bytes.

Packet Length: 定义 Packet部分的长度, 该字段为 2个字节; Reserved: 保留字段, 该字段为 2个字节;  Packet Length: defines the length of the Packet part, which is 2 bytes; Reserved: Reserved field, this field is 2 bytes;

Packet: 报文体, 可以包括数据链路层头部和 IGMP报文, 长度 可变;  Packet: The packet body, which may include a data link layer header and an IGMP packet, and has a variable length;

Attributes: 属性字段, 是一个可变长字段, 可包含多个属性, 每 个属性为 TLV ( Type Length Value, 类型长度值)格式。 例如:  Attributes: An attribute field, which is a variable length field, can contain multiple attributes, each of which is in TLV (Type Length Value) format. E.g:

+ + +  + + +

I AttrType | AttrLen | Att rValue  I AttrType | AttrLen | Att rValue

+ + + AttrType: 描述属性的类型, 该字段为 1个字节。 例如, 可以定 义如下属性类型: + + + AttrType: Describes the type of the attribute, which is 1 byte. For example, you can define the following attribute types:

1: 表示 VRF ( VPN Routing and Forwarding Table, VPN路由转 发表)名称属性, 用来标识终端从属于哪个三层 VPN ( Virtual Private Network, 虚拟专用网) 的域。  1: Indicates the VRF (VPN Routing and Forwarding Table) name attribute, which is used to identify the domain of the Layer 3 VPN (Virtual Private Network) to which the terminal belongs.

所述网络设备向所述第二网络设备发送上述报文。  The network device sends the foregoing packet to the second network device.

所述第二网络设备可以模拟终端发送 IGMP报文的方式, 根据上 述报文构造 IGMP协议栈可以处理的报文格式。  The second network device can simulate the manner in which the terminal sends IGMP messages, and constructs a packet format that can be processed by the IGMP protocol stack according to the foregoing packet.

所述第二网络设备可以根据上述报文更新本地 IGMP组信息。 当所述网络设备故障, 所述第二网络设备切换为主状态时, 所述 第二网络设备根据本地 IGMP 组信息生成的组播转发表向终端转发 组播流。 实施例 3  The second network device may update the local IGMP group information according to the foregoing packet. When the network device fails and the second network device is switched to the primary state, the second network device forwards the multicast stream to the terminal according to the multicast forwarding table generated by the local IGMP group information. Example 3

参见图 4, 是本发明实施例提供的一种组播实现的第二网络设 备框图, 所述第二网络设备包括第二接收器 301, 更新模块 302和 第二发送器 303。 其中:  Referring to FIG. 4, it is a block diagram of a second network device implemented by a multicast according to an embodiment of the present invention. The second network device includes a second receiver 301, an update module 302, and a second transmitter 303. among them:

所述第二接收器 301, 用于接收来自第一网络设备的组播备份信 息,所述组播备份信息包括所述第一网络设备接收来自终端的组播组 管理协议 IGMP报文的端口信息, 所述终端的信息和组播组信息; 所述更新模块 302, 用于根据所述组播组备份信息更新本地 IGMP组信息;  The second receiver 301 is configured to receive multicast backup information from the first network device, where the multicast backup information includes the port information that the first network device receives the multicast group management protocol IGMP message from the terminal. The information about the terminal and the multicast group information; the update module 302 is configured to update the local IGMP group information according to the multicast group backup information;

所述第二发送器 303, 用于当所述第一网络设备故障时, 根据所 述本地 IGMP组信息向所述终端转发组播流。  The second transmitter 303 is configured to forward the multicast stream to the terminal according to the local IGMP group information when the first network device is faulty.

所述第一网络设备获取组播备份信息,所述组播备份信息包括所 述第一网络设备接收来自终端的 IGMP报文的端口信息,所述终端的 信息和所述组播组信息。 The first network device obtains multicast backup information, where the multicast backup information includes port information that the first network device receives an IGMP message from the terminal, where the terminal Information and the multicast group information.

所述端口信息可以是端口号或保护组 ID。  The port information may be a port number or a protection group ID.

所述组播组信息包括组播组地址, 还可以包括组播源地址。  The multicast group information includes a multicast group address, and may also include a multicast source address.

所述终端的信息包括所述终端的 IP地址,所述终端的 MAC地址, VLAN标签(例如公网 VLAN标签, 私网 VLAN标签)等。  The information of the terminal includes an IP address of the terminal, a MAC address of the terminal, a VLAN tag (for example, a public network VLAN tag, a private network VLAN tag), and the like.

所述第一网络设备和所述第二网络设备可以是路由器, 例如 BRAS。  The first network device and the second network device may be routers, such as BRAS.

所述第一网络设备和所述第二网设备互为主备关系。  The first network device and the second network device are in a master-slave relationship.

所述第二网络设备还可以运行主备选举协议, 例如 VRRP, 维护 与所述第一网络设备之间的主、 备关系。  The second network device may also run an active/standby election protocol, such as VRRP, to maintain a master-slave relationship with the first network device.

所述第二网络设备存有保护组关系表,包括主网络设备端口号, 保护组 ID和备网络设备端口号的对应关系。  The second network device stores a protection group relationship table, including a correspondence between a primary network device port number, a protection group ID, and a backup network device port number.

在来自第一网络设备的组播备份信息之前, 所述第二接收器 301 接收来自所述第一网络设备的所述终端的 PPPOE会话信息; 当所述第 一网络设备故障时,所述第二网络设备还用于根据所述 PPPOE会话信 息维护与所述终端的 PPPOE会话。  Before the multicast backup information from the first network device, the second receiver 301 receives PPPOE session information from the terminal of the first network device; when the first network device fails, the The second network device is further configured to maintain a PPPOE session with the terminal according to the PPPOE session information.

所述第二网络设备可以根据所述组播备份信息更新本地 IGMP组 信息。 具体地,  The second network device may update the local IGMP group information according to the multicast backup information. specifically,

所述第二网络设备根据所述端口信息, 查询保护组关系表, 获得 所述第二网络设备向所述终端转发组播流的出端口;  The second network device queries the protection group relationship table according to the port information, and obtains an outbound port that the second network device forwards the multicast stream to the terminal;

所述第二网络设备根据所述组播组信息和所述出端口更新本地 IGMP组信息。  The second network device updates the local IGMP group information according to the multicast group information and the egress port.

所述第二网络设备可以接收来自所述第一网络设备的 IGMP复 制报文,所述 IGMP复制报文至少包括所述来自终端的 IGMP报文和 数据链路层头部。 例如, 所述 IGMP复制报文格式如下: The second network device may receive an IGMP copy message from the first network device, where the IGMP copy message includes at least the IGMP message and the data link layer header from the terminal. For example, the format of the IGMP copy message is as follows:

0 1 2 3 0 1 2 3

0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 10 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- +■ - + - +■ -+-+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- +■ - + - +■ -+-

1 Vers ion | Type 1 Length 11 Vers ion | Type 1 Length 1

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- - + - -+- ++' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- - + - -+- +

1 Packet Length 1 reserved 11 Packet Length 1 reserved 1

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- - + - -+- '++' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- - + - -+- '+

1 Packet 11 Packet 1

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- - + - -+- '++' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- - + - -+- '+

1 Attributes ... 1 Attributes ...

+' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+-+-+- - + - -+- '+ 其中:  +' -+-+-+-+-+-+-+-+ -+-+-+-+- +-+-+-+- - + - -+■ -+- -+-+-+ -+-+- - + - -+- '+ where:

Version: 协议版本号, 该字段为 1个字节。 例如, 可以填 0x01, 表示版本 1;  Version: Protocol version number, this field is 1 byte. For example, you can fill in 0x01, which means version 1;

Type: 报文的类型,该字段为 1个字节。例如,可以定义值如下: 1 : IGMP报文类型; Type: Type of the message. This field is 1 byte. For example, the values can be defined as follows: 1 : IGMP message type;

Length: 定义整个组播组请求信息报文的长度, 该字段为 2个字 节, 其值〉 =4个字节;  Length: Defines the length of the entire multicast group request message. The field is 2 bytes and its value is >=4 bytes.

Packet Length: 定义 Packet部分的长度, 该字段为 2个字节; Reserved: 保留字段, 该字段为 2个字节;  Packet Length: defines the length of the Packet part, which is 2 bytes; Reserved: Reserved field, this field is 2 bytes;

Packet: 报文体, 可以包括数据链路层头部和 IGMP报文, 长度 可变;  Packet: The packet body, which may include a data link layer header and an IGMP packet, and has a variable length;

Attributes: 属性字段, 是一个可变长字段, 可包含多个属性, 每 个属性为 TLV ( Type Length Value, 类型长度值)格式。 例如:  Attributes: An attribute field, which is a variable length field, can contain multiple attributes, each of which is in TLV (Type Length Value) format. E.g:

+ + +  + + +

I AttrType | AttrLen | Att rValue  I AttrType | AttrLen | Att rValue

+ + +  + + +

AttrType: 描述属性的类型, 该字段为 1个字节。 例如, 可以定 义如下属性类型:  AttrType: Describes the type of the attribute, which is 1 byte. For example, you can define the following attribute types:

1: 表示 VRF ( VPN Routing and Forwarding Table, VPN路由转 发表)名称属性, 用来标识终端从属于哪个三层 VPN ( Virtual Private Network, 虚拟专用网) 的域。 所述第二网络设备可以模拟终端发送 IGMP报文的方式, 根据所 述 IGMP复制报文构造 IGMP协议栈可以处理的报文格式。 1: Indicates the VRF (VPN Routing and Forwarding Table) name attribute, which is used to identify the domain of the Layer 3 VPN (Virtual Private Network) to which the terminal belongs. The second network device may simulate a manner in which the terminal sends an IGMP message, and construct a packet format that can be processed by the IGMP protocol stack according to the IGMP copy message.

所述第二网络设备可以根据所述 IGMP复制报文更新本地 IGMP 组信息。  The second network device may update the local IGMP group information according to the IGMP copy message.

所述第二网络设备可以根据本地 IGMP 组信息建立与组播源的 组播路径, 并接收来自组播源的组播流。  The second network device may establish a multicast path with the multicast source according to the local IGMP group information, and receive the multicast stream from the multicast source.

所述第二网络设备可以根据本地 IGMP 组信息向转发平面下发 出端口列表, 生成组播转发表; 当所述第二网络设备处于备状态时, 所述第二网络设备不进行组播数据的封装, 不向出端口转发组播流; 当所述第一网络设备故障, 所述第二网络设备切换为主状态时, 所述 第二网络设备进行组播数据的封装, 并向出端口转发组播流。 或者, 当所述第二网络设备处于备状态时,所述第二网络设备不向转发 平面下发出端口列表, 由于没有出端口, 不会向终端转发组播流; 当 所述第一网络设备故障, 所述第二网络设备切换为主状态时, 所述第 二网络设备根据本地 IGMP 组信息下发出端口列表, 生成组播转发 表, 并进行组播数据的封装, 向终端转发组播流。 本发明实施例提供的技术方案, 同样适用于采用 MC-LAG ( Multi-Chassis Link Aggregation Group , 多机箱链路聚合 ) 或 Smartlink (灵活链路,或备份链路)技术控制主、备链路的网络场景。  The second network device may send a port list to the forwarding plane according to the local IGMP group information, and generate a multicast forwarding table. When the second network device is in the standby state, the second network device does not perform multicast data. Encapsulating, not forwarding the multicast stream to the egress port; when the first network device fails, the second network device switches to the primary state, the second network device encapsulates the multicast data, and forwards the data to the egress port Multicast stream. Or, when the second network device is in the standby state, the second network device does not send the port list to the forwarding plane, and because there is no out port, the multicast stream is not forwarded to the terminal; when the first network device When the second network device is switched to the primary state, the second network device sends a port list according to the local IGMP group information, generates a multicast forwarding table, and encapsulates the multicast data, and forwards the multicast stream to the terminal. . The technical solution provided by the embodiment of the present invention is also applicable to the control of the primary and backup links by using MC-LAG (Multi-Chassis Link Aggregation Group) or Smartlink (Flexible Link, or Backup Link) technology. Network scenario.

采用本发明实施例提供的技术方案,通过在第二网络设备上备份 终端的 IGMP组信息, 当第一网络设备出现故障时, 由于第二网络设 备上维护了终端的 IGMP组信息, 通过第二网络设备可以继续向终 端转发组播流, IPTV业务不会中断, 保证了用户体验; 解决了现有 技术中, 主路由器出现故障时, IPTV业务中断, 用户体验差的问题。  According to the technical solution provided by the embodiment of the present invention, when the IGMP group information of the terminal is backed up on the second network device, when the first network device fails, the second network device maintains the IGMP group information of the terminal, and the second The network device can continue to forward the multicast stream to the terminal, and the IPTV service is not interrupted, thereby ensuring the user experience. In the prior art, when the primary router fails, the IPTV service is interrupted, and the user experience is poor.

本领域普通技术人员可以理解实现上述实施例方法中的全部或 部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存 储于计算机可读存储介质中, 所述存储介质可以是 ROM/RAM, 磁盘 或光盘等。 Those skilled in the art can understand that all of the above embodiments are implemented or Part of the steps may be completed by a program to instruct related hardware, and the program may be stored in a computer readable storage medium, which may be a ROM/RAM, a magnetic disk or an optical disk or the like.

以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范 围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技 术范围内, 可轻易想到的变化或替换, 都应涵盖在本发明的保护范围 之内。  The above description is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention.

Claims

权 利 要 求 书 Claim 1、 一种组播实现的方法, 其特征在于, 包括:  A multicast implementation method, comprising: 第一网络设备接收来自终端的组播组管理协议 IGMP报文,所述 IGMP报文包含所述终端请求的组播组信息;  The first network device receives the multicast group management protocol IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal; 获取组播备份信息,所述组播备份信息包括接收所述 IGMP报文 的端口信息、 所述终端的信息和所述组播组信息;  Obtaining the multicast backup information, where the multicast backup information includes the port information of the IGMP message, the information about the terminal, and the multicast group information. 向第二网络设备发送所述组播备份信息,以使所述第二网络设备 在所述第一网络设备故障时,根据所述组播备份信息向所述终端转发 组播流。  Sending the multicast backup information to the second network device, so that the second network device forwards the multicast stream to the terminal according to the multicast backup information when the first network device is faulty. 2、 根据权利要求 1所述的方法, 其特征在于, 还包括: 通过控制平面向所述第二网络设备发送所述组播备份信息; 或 者,  2. The method according to claim 1, further comprising: transmitting the multicast backup information to the second network device by using a control plane; or 通过与所述第二网络设备间建立的可靠传输通道,向所述第二 网络设备发送所述组播备份信息。  Transmitting the multicast backup information to the second network device by using a reliable transmission channel established between the second network device. 3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述第一网 络设备和所述第二网络设备互为主备关系。  The method according to claim 1 or 2, wherein the first network device and the second network device are in a master-slave relationship. 4、 一种组播实现的网络设备, 其特征在于, 包括:  A network device implemented by multicast, which is characterized in that: 第一接收器, 用于接收来自终端的组播组管理协议 IGMP报文, 所述 IGMP报文包含所述终端请求的组播组信息;  a first receiver, configured to receive a multicast group management protocol IGMP message from the terminal, where the IGMP message includes the multicast group information requested by the terminal; 获取模块, 用于获取组播备份信息, 所述组播备份信息包括接收 所述 IGMP报文的端口信息、 所述终端的信息和所述组播组信息; 第一发送器, 用于向第二网络设备发送所述组播备份信息, 以使 所述第二网络设备在所述网络设备故障时,根据所述组播备份信息向 所述终端转发组播流。  An acquiring module, configured to obtain multicast backup information, where the multicast backup information includes port information for receiving the IGMP message, information about the terminal, and the multicast group information; The second network device sends the multicast backup information, so that the second network device forwards the multicast stream to the terminal according to the multicast backup information when the network device is faulty. 5、 根据权利要求 4所述的网络设备, 其特征在于, 所述发送器 具体用于, 5. The network device according to claim 4, wherein the transmitter Specifically used, 通过控制平面向所述第二网络设备发送所述组播备份信息; 或 者,  Transmitting the multicast backup information to the second network device by using a control plane; or 通过与所述第二网络设备间建立的可靠传输通道,向所述第二 网络设备发送所述组播备份信息。  Transmitting the multicast backup information to the second network device by using a reliable transmission channel established between the second network device. 6、 根据权利要求 4所述的网络设备, 其特征在于, 所述网络设 备还包括:  The network device according to claim 4, wherein the network device further comprises: 主备关系模块, 用于运行主备选举协议, 维护与所述第二网设备 之间的主、 备关系。  An active/standby relationship module is configured to run an active/standby election protocol to maintain a primary and backup relationship with the second network device. 7、 一种组播实现的第二网络设备, 其特征在于, 包括: 第二接收器, 用于接收来自第一网络设备的组播备份信息, 所述 组播备份信息包括所述第一网络设备接收来自终端的组播组管理协 议 IGMP报文的端口信息, 所述终端的信息和组播组信息;  A second network device implemented by the multicast, comprising: a second receiver, configured to receive multicast backup information from the first network device, where the multicast backup information includes the first network The device receives the port information of the multicast group management protocol IGMP message from the terminal, the information of the terminal, and the multicast group information; 更新模块, 用于根据所述组播组备份信息更新本地 IGMP组信 息;  An update module, configured to update local IGMP group information according to the multicast group backup information; 第二发送器, 用于当所述第一网络设备故障时, 根据所述本地 IGMP组信息向所述终端转发组播流。  And a second transmitter, configured to forward the multicast stream to the terminal according to the local IGMP group information when the first network device is faulty. 8、 根据权利要求 7所述的第二网络设备, 其特征在于, 所述第 二网洛设备还用于,  The second network device according to claim 7, wherein the second network device is further configured to: 在根据所述组播组备份信息更新本地 IGMP组信息之前,根据所 述端口信息, 查询保护组关系表, 获得向所述终端转发组播流的出端 口。  Before updating the local IGMP group information according to the multicast group backup information, querying the protection group relationship table according to the port information, and obtaining an outgoing port for forwarding the multicast stream to the terminal. 9、 根据权利要求 7或 8所述的第二网络设备, 其特征在于, 所 述第二网络设备还用于向转发平面下发出端口列表, 生成组播转发 表; 当所述第二网络设备处于备状态时,所述第二发送器不向出端口 转发组播流; The second network device according to claim 7 or 8, wherein the second network device is further configured to send a port list to the forwarding plane to generate a multicast forwarding table. When the second network device is in the standby state, the second transmitter does not forward the multicast stream to the egress port; 当所述第一网络设备故障, 所述第二网络设备切换为主状态时, 所述第二发送器根据组播转发表向所述终端转发组播流。  When the first network device fails and the second network device is switched to the primary state, the second transmitter forwards the multicast stream to the terminal according to the multicast forwarding table. 10、 根据权利要求 7或 8所述的第二网络设备, 其特征在于, 所 述第二网络设备还用于,  The second network device according to claim 7 or 8, wherein the second network device is further configured to: 当所述第二网络设备处于备状态时,不向转发平面下发出端口列 表;  When the second network device is in the standby state, the port list is not sent to the forwarding plane; 当所述第一网络设备故障, 所述第二网络设备切换为主状态时, 向转发平面下发出端口列表, 生成组播转发表; 所述第二发送器根据 组播转发表向所述终端转发组播流。  When the first network device fails, the second network device switches to a primary state, and sends a port list to the forwarding plane to generate a multicast forwarding table; the second transmitter sends the multicast forwarding table to the terminal according to the multicast forwarding table. Forward the multicast stream.
PCT/CN2011/074357 2011-05-19 2011-05-19 Multicast realization method and network device Ceased WO2011144048A2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201180000523.0A CN102742221B (en) 2011-05-19 2011-05-19 A kind of method that multicast realizes and the network equipment
PCT/CN2011/074357 WO2011144048A2 (en) 2011-05-19 2011-05-19 Multicast realization method and network device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/074357 WO2011144048A2 (en) 2011-05-19 2011-05-19 Multicast realization method and network device

Publications (2)

Publication Number Publication Date
WO2011144048A2 true WO2011144048A2 (en) 2011-11-24
WO2011144048A3 WO2011144048A3 (en) 2012-04-19

Family

ID=44992100

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074357 Ceased WO2011144048A2 (en) 2011-05-19 2011-05-19 Multicast realization method and network device

Country Status (2)

Country Link
CN (1) CN102742221B (en)
WO (1) WO2011144048A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822097A (en) * 2019-11-15 2021-05-18 华为技术有限公司 Packet forwarding method, first network device, and first device group

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105848112B (en) * 2015-01-16 2019-06-25 成都鼎桥通信技术有限公司 The implementation method and device of long term evolution LTE Trouble ticket station multicast
CN109818869B (en) * 2017-11-22 2021-06-04 北京华为数字技术有限公司 Method for generating multicast traffic forwarding port and related equipment
CN109711809B (en) * 2018-12-28 2021-07-30 广东益萃网络科技有限公司 Merchant attribute setting method and device, computer equipment and storage medium
CN111372144B (en) * 2020-03-23 2021-09-28 北京小鸟科技股份有限公司 Link backup system and method for multicast video code stream
CN112615914B (en) * 2020-12-10 2022-07-05 中国电信股份有限公司江苏分公司 Method for transmitting multicast hot standby table entries by using border gateway protocol
CN113452585A (en) * 2021-05-13 2021-09-28 新华三信息安全技术有限公司 Communication method and device
CN114422484B (en) * 2021-12-16 2024-01-30 广东电网有限责任公司 Multicast method, device, mobile terminal and storage medium
CN114465955B (en) * 2022-01-06 2023-09-15 新华三技术有限公司 Multicast message processing method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599853A (en) * 2008-06-03 2009-12-09 中兴通讯股份有限公司 A kind of Ethernet dual homed connects the implementation method of irrevocable pattern in the protection
CN101610200B (en) * 2008-06-19 2012-04-04 华为技术有限公司 Switching method and device of multicast routing
CN101651553B (en) * 2009-09-03 2013-02-27 华为技术有限公司 User side multicast service primary and standby protecting system, method and route devices

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112822097A (en) * 2019-11-15 2021-05-18 华为技术有限公司 Packet forwarding method, first network device, and first device group
US12184536B2 (en) 2019-11-15 2024-12-31 Huawei Technologies Co., Ltd. Packet forwarding method, first network device, and first device group

Also Published As

Publication number Publication date
WO2011144048A3 (en) 2012-04-19
CN102742221A (en) 2012-10-17
CN102742221B (en) 2015-07-29

Similar Documents

Publication Publication Date Title
CN102742221B (en) A kind of method that multicast realizes and the network equipment
US9166807B2 (en) Transmission of layer two (L2) multicast traffic over multi-protocol label switching networks
US9197583B2 (en) Signaling of attachment circuit status and automatic discovery of inter-chassis communication peers
CN101931520B (en) A switching method and system
CN105900406B (en) For the technology of network service availability
CN112422307B (en) Method, equipment and system for EVPN and VPLS coexistence dual-activity
CN108512739A (en) The multicast state between more host's routers in Ethernet Virtual Private Network
US9660898B2 (en) Enhanced protocol independent multicast source registration over a reliable transport
WO2007012239A1 (en) A method for switching the serving services of virtual private lan and a system thereof
CN107666397A (en) The method and pe router that multicast group leaves request are transmitted between pe router
WO2012003743A1 (en) Method and apparatus for forwarding multicast traffic
CN105706393A (en) Method and system of supporting operator commands in link aggregation group
WO2013139159A1 (en) Method for forwarding packet in network and provider edge device
WO2007028293A1 (en) A method for forwarding a multicasting package in vpls
WO2012075831A1 (en) Method and system for multicast protection
CN111385138A (en) Core isolation of logical tunnels for splicing multi-homed EVPN and L2 circuits
EP2634978B1 (en) Message forwarding method and network device
WO2010111956A1 (en) Method and system for multicast-forwarding-path convergence
US10951428B2 (en) Reliable multicast using a redundant unicast overlay network
WO2012024952A1 (en) Method and system for switching path based on point to multipoint service
WO2009082905A1 (en) Method, system and switch device for dynamically establishing multicast virtual local area network
CN102333024B (en) The retransmission method of the Frame of VPLS VPLS, equipment and system
EP2098021A1 (en) Method of providing data
WO2018014767A1 (en) Information determination method and device, and storage medium
WO2022017432A1 (en) Multicast packet sending method, apparatus, and system

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201180000523.0

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11782965

Country of ref document: EP

Kind code of ref document: A2