[go: up one dir, main page]

CN102572007B - Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment - Google Patents

Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment Download PDF

Info

Publication number
CN102572007B
CN102572007B CN201110400470.3A CN201110400470A CN102572007B CN 102572007 B CN102572007 B CN 102572007B CN 201110400470 A CN201110400470 A CN 201110400470A CN 102572007 B CN102572007 B CN 102572007B
Authority
CN
China
Prior art keywords
multicast
ipv4
address
edge device
ipv6
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.)
Expired - Fee Related
Application number
CN201110400470.3A
Other languages
Chinese (zh)
Other versions
CN102572007A (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 CN201110400470.3A priority Critical patent/CN102572007B/en
Publication of CN102572007A publication Critical patent/CN102572007A/en
Priority to PCT/CN2012/079078 priority patent/WO2013082947A1/en
Application granted granted Critical
Publication of CN102572007B publication Critical patent/CN102572007B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/167Adaptation for transition between two IP versions, e.g. between IPv4 and IPv6
    • 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/1836Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with heterogeneous network architecture

Landscapes

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

Abstract

本发明公开了一种跨越IPv4网络转发IPv6组播报文的方法和边缘设备,属于通信领域。第一边缘设备接收用户发送的IPv6组播接入请求后,将该IPv6组播接入请求封装成IPv4组播接入请求并发送给第二边缘设备,接收第二边缘设备发送的IPv4报文,对所述IPv4报文解封装得到IPv6组播报文,并将IPv6组播报文发送给用户。通过本发明,能够实现在两个IPv6孤岛间跨越IPv4网络传输IPv6组播报文。

The invention discloses a method and an edge device for forwarding IPv6 multicast messages across an IPv4 network, belonging to the communication field. After receiving the IPv6 multicast access request sent by the user, the first edge device encapsulates the IPv6 multicast access request into an IPv4 multicast access request and sends it to the second edge device, and receives the IPv4 packet sent by the second edge device , decapsulating the IPv4 message to obtain an IPv6 multicast message, and sending the IPv6 multicast message to the user. Through the present invention, it is possible to realize the transmission of IPv6 multicast messages across the IPv4 network between two IPv6 isolated islands.

Description

跨越IPv4网络转发IPv6组播报文的方法和边缘设备Method and edge device for forwarding IPv6 multicast message across IPv4 network

技术领域technical field

本发明实施例涉及通信技术领域,尤其涉及一种跨越IPv4网络转发IPv6组播报文的方法和边缘设备。The embodiment of the present invention relates to the technical field of communication, and in particular to a method and an edge device for forwarding IPv6 multicast messages across an IPv4 network.

背景技术Background technique

因特网协议(Internet Protocol,IP)自上世纪70年代被提出以来,以其简单易用、移植性强等优势确立了自身以及以其为核心衍生出来的TCP/IP协议族在数字通信方面的核心协议地位,成为了全球网络的主流框架协议。目前通用的IP协议为IPv4,IPv4在设计之处所留下的一些不足之处也逐渐暴露出来,主要有下面几点:Since the Internet Protocol (IP) was proposed in the 1970s, it has established itself and the TCP/IP protocol family derived from it as the core of digital communication with its advantages of ease of use and strong portability. The status of the agreement has become the mainstream framework agreement of the global network. The current common IP protocol is IPv4, and some deficiencies in the design of IPv4 are gradually exposed, mainly as follows:

1、地址短缺。2011年4月,全球IPv4地址宣告分配告罄,虽然有VPN、NAT等技术可以实现地址的重用,但是由于正在推广的移动网络IP化、物联网等应用,全球IP终端急剧增加,势必会消耗大量的IP地址,因此IPv4地址陷入短缺是一个不争的事实。1. Address shortage. In April 2011, the global IPv4 address allocation was exhausted. Although VPN, NAT and other technologies can realize the reuse of addresses, due to the application of mobile network IP and Internet of Things, the global IP terminals are increasing rapidly, which will inevitably consume a lot of IPv4 addresses. Therefore, it is an indisputable fact that IPv4 addresses are in short supply.

2、IP头长度不固定,解析开销较大。为了增加其扩展性,IPv4允许IP头本身携带最多40个字节的选项字段,这样使得IP头是变长的,给报文解析带来一定的困难,增加了解析报文的开销。2. The length of the IP header is not fixed, and the analysis overhead is relatively large. In order to increase its scalability, IPv4 allows the IP header itself to carry an option field of up to 40 bytes, which makes the IP header longer, brings certain difficulties to packet parsing, and increases the overhead of parsing packets.

3、安全性方面考虑较少。IPv4协议本身对于安全性考虑是很少的,虽然后续通过GRE、IPSEC等技术实现了对IPv4报文的加密,但是终究IPv4协议自身是不带安全认证功能的。3. Less security considerations. The IPv4 protocol itself has little security considerations. Although the encryption of IPv4 packets is realized through technologies such as GRE and IPSEC, the IPv4 protocol itself does not have a security authentication function after all.

为了解决IPv4协议的上述缺陷,特别是地址短缺问题,IPv6协议应运而生。IPv6协议扩展地址空间到128b,提供了几乎用之不竭的地址。IPv6协议通过固定IPv6头长度,增加扩展头的方式,解决了报文解析和安全认证的问题。因此IPv6协议替代IPv4协议是大势所趋。In order to solve the above defects of the IPv4 protocol, especially the address shortage problem, the IPv6 protocol came into being. The IPv6 protocol extends the address space to 128b, providing almost inexhaustible addresses. The IPv6 protocol solves the problems of message parsing and security authentication by fixing the length of the IPv6 header and adding an extension header. Therefore, it is the general trend that the IPv6 protocol replaces the IPv4 protocol.

在IPv6替代IPv4的过程中,出于设备成本以及业务稳定等因素的考虑,老的IPv4网络升级为IPv6网络的过程是一个渐进的过程,并且是按照由边缘设备向核心设备、由新建网络向现存网络逐步推进的。所以可以预见在今后相当长的一段时间内,IPv4网络与IPv6网络共存是一个常态,两者的兼容互通是一个需要解决的重大问题。在演进过程的前期,由于边缘设备和新建网络首先会采用IPv6协议,因此会存在一个IPv6孤岛穿越IPv4网络互访的问题。目前IPv6孤岛之间的单播隧道过渡技术比较多样,主要分为IP隧道技术以及MPLS技术两大类;而目前关于IPv6组播尚无成熟的过渡技术。In the process of replacing IPv4 with IPv6, due to factors such as equipment cost and business stability, the process of upgrading the old IPv4 network to IPv6 network is a gradual process, and it is based on the process from edge equipment to core equipment, from new networks to The existing network is gradually promoted. Therefore, it can be predicted that for a long period of time in the future, the coexistence of IPv4 network and IPv6 network will be a normal state, and the compatibility and intercommunication between the two is a major problem that needs to be solved. In the early stage of the evolution process, because edge devices and new networks will first adopt the IPv6 protocol, there will be a problem of IPv6 islands crossing the IPv4 network for mutual access. Currently, there are various transition technologies for unicast tunnels between IPv6 islands, mainly divided into two categories: IP tunnel technology and MPLS technology; however, there is no mature transition technology for IPv6 multicast at present.

发明内容Contents of the invention

本发明实施例提供一种跨越IPv4网络转发IPv6组播报文的方法和边缘设备,用于解决IPv6孤岛中的组播报文穿越IPv4网络的问题。Embodiments of the present invention provide a method and an edge device for forwarding IPv6 multicast messages across an IPv4 network, which are used to solve the problem that multicast messages in an IPv6 isolated island traverse the IPv4 network.

本发明实施例一方面提供了一种跨越IPv4网络转发IPv6组播报文的方法,包括:Embodiments of the present invention provide a method for forwarding IPv6 multicast packets across an IPv4 network on the one hand, including:

第一边缘设备接收IPv6用户发送的IPv6组播加入请求,所述IPv6组播加入请求中携带组播信息,所述组播信息包括组播源地址以及所述用户请求加入的组播组地址;所述组播组地址为IPv6自动映射组播地址,其中自动映射地址标志位为1;所述IPv6用户位于用户孤岛,所述组播源位于源孤岛,所述用户孤岛通过所述第一边缘设备连接所述IPv4网络,所述第一边缘设备支持IPv6协议和IPv4协议;The first edge device receives an IPv6 multicast join request sent by an IPv6 user, where the IPv6 multicast join request carries multicast information, and the multicast information includes a multicast source address and a multicast group address that the user requests to join; The multicast group address is an IPv6 automatic mapping multicast address, wherein the automatic mapping address flag is 1; the IPv6 user is located on the user island, the multicast source is located on the source island, and the user island passes through the first edge The device is connected to the IPv4 network, and the first edge device supports the IPv6 protocol and the IPv4 protocol;

所述第一边缘设备根据所述IPv6自动映射组播地址的自动映射地址标志为1,确定从所述组播组地址中获取第二边缘设备的IPv4地址;所述IPv4网络通过所述第二边缘设备连接所述源孤岛,所述第二边缘设备支持IPv6协议和IPv4协议;The first edge device determines to obtain the IPv4 address of the second edge device from the multicast group address according to the automatic mapping address flag of the IPv6 automatic mapping multicast address being 1; the IPv4 network passes the second The edge device is connected to the source island, and the second edge device supports IPv6 protocol and IPv4 protocol;

所述第一边缘设备向所述第二边缘设备发送根据所述IPv6组播加入请求生成的IPv4组播加入请求,该IPv4组播加入请求中携带所述组播信息;所述IPv4组播加入请求的源地址为所述第一边缘设备的IPv4地址,目的地址为所述第二边缘设备的IPv4地址;The first edge device sends an IPv4 multicast join request generated according to the IPv6 multicast join request to the second edge device, the IPv4 multicast join request carries the multicast information; the IPv4 multicast join request The source address of the request is the IPv4 address of the first edge device, and the destination address is the IPv4 address of the second edge device;

所述第一边缘设备接收所述第二边缘设备发送的IPv4报文,所述IPv4报文的源地址为所述第二边缘设备的IPv4地址,目的地址为所述第一边缘设备的IPv4地址;对所述IPv4报文进行解封装,得到IPv6组播报文,将所述IPv6组播报文发送给所述用户。The first edge device receives the IPv4 message sent by the second edge device, the source address of the IPv4 message is the IPv4 address of the second edge device, and the destination address is the IPv4 address of the first edge device ; Decapsulating the IPv4 message to obtain an IPv6 multicast message, and sending the IPv6 multicast message to the user.

本发明实施例另一方面提供了一种跨越IPv4网络转发IPv6组播报文的边缘设备,包括:On the other hand, the embodiments of the present invention provide an edge device for forwarding IPv6 multicast packets across an IPv4 network, including:

第二边缘设备接收第一边缘设备发送的IPv4组播加入请求,所述IPv4组播加入请求的源地址为所述第一边缘设备的IPv4地址,目的地址为所述第二边缘设备的IPv4地址;所述IPv4组播加入请求是所述第一边缘设备根据IPv6用户的IPv6组播加入请求生成的,所述IPv4组播加入请求中携带组播信息,所述组播信息包括组播源地址和组播组地址;所述组播组地址为IPv6自动映射组播地址,其中自动映射地址标志位为1;所述IPv6用户位于用户孤岛,所述组播源位于源孤岛,所述用户孤岛通过所述第一边缘设备连接所述IPv4网络,所述IPv4网络通过所述第二边缘设备连接所述源孤岛,所述第一边缘设备和所述第二边缘设备支持IPv6协议和IPv4协议;The second edge device receives the IPv4 multicast join request sent by the first edge device, the source address of the IPv4 multicast join request is the IPv4 address of the first edge device, and the destination address is the IPv4 address of the second edge device The IPv4 multicast join request is generated by the first edge device according to the IPv6 multicast join request of the IPv6 user, and the IPv4 multicast join request carries multicast information, and the multicast information includes a multicast source address and the multicast group address; the multicast group address is an IPv6 automatic mapping multicast address, wherein the automatic mapping address flag is 1; the IPv6 user is located in the user island, the multicast source is located in the source island, and the user island Connect the IPv4 network through the first edge device, connect the IPv4 network to the source island through the second edge device, the first edge device and the second edge device support IPv6 protocol and IPv4 protocol;

所述第二边缘设备获取所述IPv4组播加入请求中的组播信息,根据所述组播信息加入组播组,并建立组播转发表项;所述组播转发表项包括所述组播源地址,组播组地址,所述第一边缘设备的IPv4地址和IPv6地址,以及所述第二边缘设备的IPv4地址和IPv6地址;The second edge device obtains the multicast information in the IPv4 multicast join request, joins the multicast group according to the multicast information, and establishes a multicast forwarding entry; the multicast forwarding entry includes the group Broadcast source address, multicast group address, IPv4 address and IPv6 address of the first edge device, and IPv4 address and IPv6 address of the second edge device;

所述第二边缘设备从组播源接收IPv6组播报文;The second edge device receives an IPv6 multicast packet from a multicast source;

所述第二边缘设备根据所述组播转发表项复制所述IPv6组播报文,将复制得到的IPv6组播报文封装成IPv4报文,所述IPv4报文的源地址为所述第二边缘设备的IPv4地址,目的地址为所述第一边缘设备的IPv4地址;将所述IPv4报文发送给所述第一边缘设备。The second edge device copies the IPv6 multicast message according to the multicast forwarding entry, and encapsulates the copied IPv6 multicast message into an IPv4 message, and the source address of the IPv4 message is the first An IPv4 address of the edge device, the destination address being the IPv4 address of the first edge device; sending the IPv4 packet to the first edge device.

本发明实施例的再一方面提供了一种边缘设备,支持IPv6协议和IPv4协议,并连接IPv4网络和用户孤岛,所述边缘设备包括:Another aspect of the embodiments of the present invention provides an edge device that supports the IPv6 protocol and the IPv4 protocol, and connects the IPv4 network and the user island, and the edge device includes:

接收器,用于接收IPv6用户发送的IPv6组播加入请求,所述IPv6组播加入请求中携带组播信息,所述组播信息包括组播源地址以及所述用户请求加入的组播组地址;所述组播组地址为IPv6自动映射组播地址,其中自动映射地址标志位为1;所述IPv6用户位于所述用户孤岛,所述组播源位于源孤岛;A receiver, configured to receive an IPv6 multicast join request sent by an IPv6 user, where the IPv6 multicast join request carries multicast information, and the multicast information includes a multicast source address and a multicast group address that the user requests to join ; The multicast group address is an IPv6 automatic mapping multicast address, wherein the automatic mapping address flag is 1; the IPv6 user is located in the user island, and the multicast source is located in the source island;

获取单元,用于根据所述IPv6自动映射组播地址的自动映射地址标志为1,确定从所述组播组地址中获取第二边缘设备的IPv4地址;所述IPv4网络通过所述第二边缘设备连接所述源孤岛,所述第二边缘设备支持IPv6协议和IPv4协议;An acquisition unit, configured to determine to obtain the IPv4 address of the second edge device from the multicast group address according to the automatic mapping address flag of the IPv6 automatic mapping multicast address being 1; the IPv4 network passes through the second edge The device is connected to the source island, and the second edge device supports IPv6 protocol and IPv4 protocol;

第一处理器,用于根据所述IPv6组播加入请求生成IPv4组播加入请求,并向所述第二边缘设备发送所述IPv4组播加入请求,该IPv4组播加入请求中携带所述组播信息;所述IPv6自动映射组播地址的自动映射地址标志为1,确定从所述组播组地址中A first processor, configured to generate an IPv4 multicast join request according to the IPv6 multicast join request, and send the IPv4 multicast join request to the second edge device, the IPv4 multicast join request carrying the group broadcast information; the automatic mapping address flag of the IPv6 automatic mapping multicast address is 1, and it is determined from the multicast group address

第二处理器,用于接收所述第二边缘设备发送的IPv4报文,所述IPv4报文的源地址为所述第二边缘设备的IPv4地址,目的地址为所述第一边缘设备的IPv4地址;对所述IPv4报文进行解封装,得到IPv6组播报文,将所述IPv6组播报文发送给所述用户。The second processor is configured to receive the IPv4 message sent by the second edge device, the source address of the IPv4 message is the IPv4 address of the second edge device, and the destination address is the IPv4 address of the first edge device address; decapsulating the IPv4 message to obtain an IPv6 multicast message, and sending the IPv6 multicast message to the user.

本发明实施例的第四方面提供了一种边缘设备,支持IPv6协议和IPv4协议,并连接IPv4网络和源孤岛,所述边缘设备包括:The fourth aspect of the embodiments of the present invention provides an edge device that supports the IPv6 protocol and the IPv4 protocol, and connects the IPv4 network and the source island, and the edge device includes:

第一接收器,用于接收第一边缘设备发送的IPv4组播加入请求,所述IPv4组播加入请求的源地址为所述第一边缘设备的IPv4地址,目的地址为所述第二边缘设备的IPv4地址;所述IPv4组播加入请求是所述第一边缘设备根据IPv6用户的IPv6组播加入请求生成的,所述IPv4组播加入请求中携带组播信息,所述组播信息包括组播源地址和组播组地址;所述组播组地址为IPv6自动映射组播地址,其中自动映射地址标志位为1;所述IPv6用户位于用户孤岛,所述组播源位于所述源孤岛,所述用户孤岛通过所述第一边缘设备连接所述IPv4网络,所述第一边缘设备支持IPv6协议和IPv4协议;The first receiver is configured to receive the IPv4 multicast join request sent by the first edge device, the source address of the IPv4 multicast join request is the IPv4 address of the first edge device, and the destination address is the second edge device IPv4 address; the IPv4 multicast join request is generated by the first edge device according to the IPv6 multicast join request of the IPv6 user, and the IPv4 multicast join request carries multicast information, and the multicast information includes group broadcast source address and multicast group address; the multicast group address is an IPv6 automatic mapping multicast address, wherein the automatic mapping address flag is 1; the IPv6 user is located on a user island, and the multicast source is located on the source island , the user island is connected to the IPv4 network through the first edge device, and the first edge device supports IPv6 protocol and IPv4 protocol;

第一处理器,用于获取所述IPv4报文中的组播信息,根据所述组播信息加入组播组,建立组播转发表项;所述组播转发表项包括所述组播源地址,组播组地址,所述第一边缘设备的IPv4地址和IPv6地址,以及所述第二边缘设备的IPv4地址和IPv6地址;A first processor, configured to acquire multicast information in the IPv4 message, join a multicast group according to the multicast information, and establish a multicast forwarding entry; the multicast forwarding entry includes the multicast source address, multicast group address, IPv4 address and IPv6 address of the first edge device, and IPv4 address and IPv6 address of the second edge device;

第二接收器,用于从组播源接收IPv6组播报文;The second receiver is used to receive the IPv6 multicast message from the multicast source;

第二处理器,用于根据所述组播转发表项复制所述IPv6组播报文,将复制得到的IPv6组播报文封装成IPv4报文,所述IPv4报文的源地址为所述第二边缘设备的IPv4地址,目的地址为所述第一边缘设备的IPv4地址;将所述IPv4报文发送给所述第一边缘设备。The second processor is configured to copy the IPv6 multicast message according to the multicast forwarding entry, and encapsulate the copied IPv6 multicast message into an IPv4 message, and the source address of the IPv4 message is the The IPv4 address of the second edge device, the destination address being the IPv4 address of the first edge device; sending the IPv4 packet to the first edge device.

本发明实施例中,第一边缘设备收到用户发送的IPv6组播接入请求后,将该IPv6组播接入请求封装成IPv4组播接入请求并发送给第二边缘设备,接收第二边缘设备发送的IPv4报文,对所述IPv4报文解封装得到IPv6组播报文,并将IPv6组播报文发送给用户。通过本发明,能够实现在两个IPv6孤岛间跨越IPv4网络传输IPv6组播报文。In the embodiment of the present invention, after receiving the IPv6 multicast access request sent by the user, the first edge device encapsulates the IPv6 multicast access request into an IPv4 multicast access request and sends it to the second edge device, and receives the second Decapsulate the IPv4 message sent by the edge device to obtain an IPv6 multicast message, and send the IPv6 multicast message to the user. Through the present invention, it is possible to realize the transmission of IPv6 multicast messages across the IPv4 network between two IPv6 isolated islands.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained according to these drawings without any creative effort.

图1为本发明实施例的应用场景图;FIG. 1 is an application scene diagram of an embodiment of the present invention;

图2为本发明实施例中一种跨越IPv4网络转发IPv6组播报文的方法流程示意图;Fig. 2 is a schematic flow diagram of a method for forwarding IPv6 multicast packets across an IPv4 network in an embodiment of the present invention;

图3为本发明实施例中IPv6自动映射组播地址的结构示意图;Fig. 3 is the structural representation of IPv6 automatic mapping multicast address in the embodiment of the present invention;

图4为本发明实施例中另一种跨越IPv4网络转发IPv6组播报文的方法流程示意图;FIG. 4 is a schematic flow diagram of another method for forwarding IPv6 multicast packets across an IPv4 network in an embodiment of the present invention;

图5为本发明实施例中边缘设备的结构示意图Fig. 5 is a schematic structural diagram of an edge device in an embodiment of the present invention

图6为本发明实施例中另一边缘设备的结构示意图。FIG. 6 is a schematic structural diagram of another edge device in an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

如图1所示,为本发明实施例的应用场景图。其中,用于组播请求加入组播组的用户位于IPv6孤岛(称为用户孤岛,图中示出了用户孤岛1和用户孤岛2)中,组播源位于另一IPv6孤岛(称为源孤岛)中,用户孤岛与源孤岛分别通过各自的边缘设备(Provider Edge,PE)连接到IPv4骨干网络。其中,各边缘设备PE1-PE3均支持IPv6协议和IPv4协议,IPv6孤岛通过其边缘设备与另一个IPv6孤岛进行通信。当用户1需要加入组播组时,用户1向自身所在的用户孤岛1的PE1发送IPv6组播加入请求,PE1将该IPv6组播加入请求封装成IPv4组播加入请求后发送给PE2,PE2根据该IPv4组播接入请求建立组播转发表项后,与组播源建立连接,从组播源获取IPv6组播报文,将获取到的IPv6组播报文封装成IPv4报文发送给PE1,PE1将该IPv4报文转换成IPv6组播报文发送给用户1。通过上述方式,能够实现IPv6组播报文跨越IPv4骨干网络,在IPv6孤岛间的转发。As shown in FIG. 1 , it is an application scenario diagram of the embodiment of the present invention. Among them, the user for multicast request to join the multicast group is located in an IPv6 island (called user island, user island 1 and user island 2 are shown in the figure), and the multicast source is located in another IPv6 island (called source island ), user islands and source islands are connected to the IPv4 backbone network through their respective edge devices (Provider Edge, PE). Wherein, each edge equipment PE1-PE3 supports IPv6 protocol and IPv4 protocol, and the IPv6 isolated island communicates with another IPv6 isolated island through its edge equipment. When user 1 needs to join a multicast group, user 1 sends an IPv6 multicast join request to PE1 of user island 1 where it is located, and PE1 encapsulates the IPv6 multicast join request into an IPv4 multicast join request and sends it to PE2. After the IPv4 multicast access request establishes a multicast forwarding entry, it establishes a connection with the multicast source, obtains IPv6 multicast packets from the multicast source, encapsulates the obtained IPv6 multicast packets into IPv4 packets, and sends them to PE1. , PE1 converts the IPv4 packet into an IPv6 multicast packet and sends it to User 1. Through the above method, it is possible to realize the forwarding of IPv6 multicast packets across the IPv4 backbone network and between IPv6 isolated islands.

如图2所示,本发明实施例中跨越IPv4网络转发IPv6组播报文的方法具体包括:As shown in Figure 2, the method for forwarding the IPv6 multicast message across the IPv4 network in the embodiment of the present invention specifically includes:

202,第一边缘设备接收IPv6用户发送的IPv6组播加入请求,所述IPv6组播加入请求中携带组播信息。202. The first edge device receives an IPv6 multicast join request sent by an IPv6 user, where the IPv6 multicast join request carries multicast information.

具体地,该第一边缘设备为用户孤岛的边缘设备,该组播信息包括组播源信息以及组播组信息。第一边缘设备接收本孤岛内的IPv6用户发送的组播加入请求。可选地,该组播加入请求的目的地址(即该用户请求加入的组播组的地址)为IPv6自动映射组播地址,该IPv6自动映射组播地址中包括源孤岛的边缘设备的IPv4地址。Specifically, the first edge device is an edge device of a user island, and the multicast information includes multicast source information and multicast group information. The first edge device receives the multicast join request sent by the IPv6 users in the local island. Optionally, the destination address of the multicast join request (that is, the address of the multicast group that the user requests to join) is an IPv6 automatic mapping multicast address, and the IPv6 automatic mapping multicast address includes the IPv4 address of the edge device of the source island .

如图3所示,所述IPv6自动映射组播地址为一种特殊的组播地址,该地址总长为128bit,前8bit固定为11111111,用来标识该地址为组播地址,第9bit到12bit为标志字段,目前仅有第12bit被赋予了明确定义,即该bit位被置1时,表示非保留组播组。本发明实施例中,可以用第9bit至第11bit中的任意一位,如第11bit来标识自动映射地址,则标志字段为0011时,表示该IPv6地址为非保留组播组的自动映射地址。范围是IPv6地址中的保留字段,共4bit,接下来的80bit用于标识组播组,最后的32bit是一个IPv4地址,在本发明实施例中,是指源孤岛的边缘设备的IPv4地址。As shown in Figure 3, the IPv6 automatic mapping multicast address is a special multicast address, the total length of the address is 128bit, and the first 8bit is fixed as 11111111, which is used to identify the address as a multicast address, and the 9th to 12bit are In the flag field, currently only the 12th bit is clearly defined, that is, when this bit is set to 1, it indicates a non-reserved multicast group. In the embodiment of the present invention, any one of the 9th bit to the 11th bit can be used, such as the 11th bit to identify the automatic mapping address, and when the flag field is 0011, it indicates that the IPv6 address is an automatic mapping address of a non-reserved multicast group. The scope is a reserved field in the IPv6 address, 4 bits in total, the next 80 bits are used to identify the multicast group, and the last 32 bits are an IPv4 address, which in the embodiment of the present invention refers to the IPv4 address of the edge device of the source island.

参考图1,本实施例中,假设组播源IPv6地址为:2001::100,组播源支持两个组播组G1和G2,G1为FF30:0001::10.0.0.2,G2为FF30:0002::10.0.0.2。用户孤岛的PE1的IPv4地址为20.0.0.2,IPv6地址为2002.20.0.0.2::1/64。源孤岛的PE2的IPv4地址为10.0.0.2,IPv6地址为2002:10.0.0.2::1/64。用户发送的IPv6组播加入请求的源地址为用户的IPv6地址,目的地址为组播组G1:FF30:0001::10.0.0.2,指定的组播源的地址是2001::100。With reference to Fig. 1, in the present embodiment, assume that the multicast source IPv6 address is: 2001::100, the multicast source supports two multicast groups G1 and G2, G1 is FF30:0001::10.0.0.2, and G2 is FF30: 0002::10.0.0.2. The IPv4 address of PE1 in the user island is 20.0.0.2, and the IPv6 address is 2002.20.0.0.2::1/64. The IPv4 address of PE2 on the source island is 10.0.0.2, and the IPv6 address is 2002:10.0.0.2::1/64. The source address of the IPv6 multicast join request sent by the user is the user's IPv6 address, the destination address is the multicast group G1:FF30:0001::10.0.0.2, and the specified multicast source address is 2001::100.

204,所述第一边缘设备根据所述IPv6组播加入请求获取第二边缘设备的IPv4地址。204. The first edge device acquires the IPv4 address of the second edge device according to the IPv6 multicast join request.

具体地,该第二边缘设备为源孤岛的边缘设备。用户孤岛的边缘设备接收到用户发送的IPv6组播加入请求后,获取该IPv6组播加入请求的目的地址,即IPv6自动映射组播地址,并从IPv6自动映射组播地址中获取源孤岛的边缘设备的IPv4地址,所述源孤岛的边缘设备的IPv4地址为所述IPv6自动映射组播地址的后32bit。Specifically, the second edge device is an edge device of the source island. After receiving the IPv6 multicast join request sent by the user, the edge device of the user island obtains the destination address of the IPv6 multicast join request, that is, the IPv6 automatic mapping multicast address, and obtains the edge of the source island from the IPv6 automatic mapping multicast address The IPv4 address of the device, the IPv4 address of the edge device of the source island is the last 32 bits of the IPv6 auto-mapped multicast address.

进一步地,用户孤岛的边缘设备根据IPv6自动映射组播地址的自动映射地址标志来决定是否从IPv6自动映射组播地址中获取源孤岛的边缘设备的IPv4地址。Further, the edge device of the user island decides whether to obtain the IPv4 address of the edge device of the source island from the IPv6 auto-mapping multicast address according to the auto-mapping address flag of the IPv6 auto-mapping multicast address.

当用户1发送的IPv6组播加入请求的目的地址为FF30:0001::10.0.0.2时,该地址的自动映射地址标志位为1,因此确定需要获取源孤岛的边缘设备PE2的IPv4地址,并可以进一步确定所述PE2的IPv4地址为10.0.0.2。When the destination address of the IPv6 multicast join request sent by user 1 is FF30:0001::10.0.0.2, the auto-mapping address flag of this address is 1, so it is determined that the IPv4 address of the edge device PE2 of the source island needs to be obtained, and It may be further determined that the IPv4 address of PE2 is 10.0.0.2.

206,所述第一边缘设备向所述第二边缘设备发送根据所述IPv6组播加入请求生成的IPv4组播加入请求,该IPv4组播加入请求中携带所述组播信息。206. The first edge device sends an IPv4 multicast join request generated according to the IPv6 multicast join request to the second edge device, where the IPv4 multicast join request carries the multicast information.

所述第一边缘设备从所述IPv6组播加入请求中获取到第二边缘设备的IPv4地址后,根据所述IPv6组播加入请求生成IPv4组播加入请求,向第二边缘设备发送所述IPv4组播加入请求,该IPv4组播加入请求可以是组播侦听发现报告(Multicast Listener Discovery,MLD,report),该MLD report中携带组播信息。After the first edge device obtains the IPv4 address of the second edge device from the IPv6 multicast join request, it generates an IPv4 multicast join request according to the IPv6 multicast join request, and sends the IPv4 address to the second edge device. A multicast join request, the IPv4 multicast join request may be a multicast listener discovery report (Multicast Listener Discovery, MLD, report), and the MLD report carries multicast information.

具体地,该MLD report的源地址为20.0.0.2,目的地址为10.0.0.2,其中所述组播信息包括组播源2001::100,组播组FF30:0001::10.0.0.2,所述MLDreport中进一步包括PE1的IPv6地址2002.20.0.0.2::1/64以及所述PE2的IPv6地址2002.10.0.0.2::1/64。Specifically, the source address of the MLD report is 20.0.0.2, and the destination address is 10.0.0.2, wherein the multicast information includes the multicast source 2001::100, the multicast group FF30:0001::10.0.0.2, the The MLDreport further includes the IPv6 address 2002.20.0.0.2::1/64 of PE1 and the IPv6 address 2002.10.0.0.2::1/64 of PE2.

其中,根据所述IPv6组播加入请求生成IPv4组播加入请求,可以是给所述IPv6组播加入请求封装IPv4报文头。Wherein, generating an IPv4 multicast join request according to the IPv6 multicast join request may be to encapsulate an IPv4 packet header for the IPv6 multicast join request.

PE2收到该MLD report后,根据该MLD report加入组播组FF30:0001::10.0.0.2,并建立与该MLD report对应的组播转发表项。PE上包括了一个组播转发表,用于存储组播转发表项。该组播转发表包括组播源,组播组,第一边缘设备的IPv4地址,IPv6地址以及第二边缘设备的IPv4地址和IPv6地址,具体到本实施例中,该组播转发表可以如表1所示。After receiving the MLD report, PE2 joins the multicast group FF30:0001::10.0.0.2 according to the MLD report, and creates a multicast forwarding entry corresponding to the MLD report. The PE includes a multicast forwarding table for storing multicast forwarding table items. The multicast forwarding table includes the multicast source, the multicast group, the IPv4 address of the first edge device, the IPv6 address and the IPv4 address and the IPv6 address of the second edge device, specifically in this embodiment, the multicast forwarding table can be as follows Table 1 shows.

表1Table 1

生成该组播转发表项后,第二边缘设备与组播源建立连接,从组播源接收IPv6组播报文,根据该组播转发表项复制IPv6组播报文,将复制得到的IPv6组播报文封装成IPv4报文,然后将封装后的IPv4报文发送给第一边缘设备。After generating the multicast forwarding entry, the second edge device establishes a connection with the multicast source, receives the IPv6 multicast packet from the multicast source, copies the IPv6 multicast packet according to the multicast forwarding entry, and copies the obtained IPv6 The multicast packet is encapsulated into an IPv4 packet, and then the encapsulated IPv4 packet is sent to the first edge device.

208,所述第一边缘设备接收第二边缘设备发送的IPv4报文,对所述IPv4报文进行解封装,得到IPv6组播报文,将所述IPv6组播报文发送给所述用户。208. The first edge device receives the IPv4 packet sent by the second edge device, decapsulates the IPv4 packet to obtain an IPv6 multicast packet, and sends the IPv6 multicast packet to the user.

本发明实施例中,当第一边缘设备收到用户发送的IPv6组播加入请求时,会记录用户和用户请求加入的组播组的对应关系,当收到第二边缘设备发送的IPv4报文后,对该报文进行解封装,得到IPv6组播报文,并根据该对应关系将所述IPv6组播报文发送给所述用户。In the embodiment of the present invention, when the first edge device receives the IPv6 multicast join request sent by the user, it will record the corresponding relationship between the user and the multicast group that the user requests to join, and when receiving the IPv4 message sent by the second edge device Afterwards, the message is decapsulated to obtain an IPv6 multicast message, and the IPv6 multicast message is sent to the user according to the corresponding relationship.

如图4所示,本发明实施例中另一种跨越IPv4网络转发IPv6组播报文的方法,具体包括:As shown in Figure 4, another kind of method for forwarding IPv6 multicast message across IPv4 network in the embodiment of the present invention specifically includes:

402,第二边缘设备接收第一边缘设备发送的IPv4组播加入请求,所述IPv4组播加入请求是所述第一边缘设备根据IPv6组播加入请求生成的,所述IPv4组播加入请求中携带组播信息。402. The second edge device receives an IPv4 multicast join request sent by the first edge device, the IPv4 multicast join request is generated by the first edge device according to the IPv6 multicast join request, and the IPv4 multicast join request includes Carry multicast information.

其中,所述第二边缘设备为源孤岛的边缘设备,所述第一边缘设备为用户孤岛的边缘设备,所述组播信息包括组播源信息和组播组信息。Wherein, the second edge device is an edge device of a source island, the first edge device is an edge device of a user island, and the multicast information includes multicast source information and multicast group information.

404,所述第二边缘设备获取所述IPv4组播加入请求中的组播信息,根据所述组播信息加入组播组,并建立组播转发表项。404. The second edge device obtains the multicast information in the IPv4 multicast join request, joins a multicast group according to the multicast information, and creates a multicast forwarding entry.

所述组播转发表项包括组播源,组播组,第一边缘设备的IPv4地址,IPv6地址以及第二边缘设备的IPv4地址和IPv6地址。The multicast forwarding entry includes a multicast source, a multicast group, an IPv4 address, an IPv6 address of the first edge device, and an IPv4 address and an IPv6 address of the second edge device.

406,所述第二边缘设备从组播源接收IPv6组播报文。406. The second edge device receives an IPv6 multicast packet from a multicast source.

408,所述第二边缘设备根据所述组播转发表项复制IPv6组播报文,将复制得到的IPv6组播报文封装成IPv4报文,将所述IPv4报文发送给所述第一边缘设备。408. The second edge device copies the IPv6 multicast packet according to the multicast forwarding entry, encapsulates the copied IPv6 multicast packet into an IPv4 packet, and sends the IPv4 packet to the first edge device.

本发明图4所示实施例是从第二边缘设备的角度对图2所示实施例进行的进一步阐释,因此,图4所示实施例中没有详述的部分,均可以参照对图2实施例的描述。The embodiment shown in FIG. 4 of the present invention is a further explanation of the embodiment shown in FIG. 2 from the perspective of the second edge device. Therefore, the parts not described in detail in the embodiment shown in FIG. 4 can be implemented by referring to FIG. 2 Example description.

本发明上述实施例通过用户孤岛的边缘设备与源孤岛的边缘设备将用户和组播源发送的IPv6报文转换成IPv4报文进行交互,实现了跨越IPv4网络转发IPv6组播报文。In the above embodiment of the present invention, the edge device of the user island and the edge device of the source island convert the IPv6 message sent by the user and the multicast source into an IPv4 message for interaction, and realize the forwarding of the IPv6 multicast message across the IPv4 network.

如图5所示,本发明实施例提供了一种边缘设备,用于实施图2所示的方法,该边缘设备包括:As shown in FIG. 5, an embodiment of the present invention provides an edge device for implementing the method shown in FIG. 2, and the edge device includes:

接收器502,用于接收IPv6用户发送的IPv6组播加入请求,所述IPv6组播加入请求中携带组播信息。The receiver 502 is configured to receive an IPv6 multicast join request sent by an IPv6 user, where the IPv6 multicast join request carries multicast information.

其中,该边缘设备为用户孤岛的边缘设备,该组播信息包括组播源信息以及组播组信息。该组播加入请求的目的地址为IPv6自动映射组播地址,该IPv6自动映射组播地址中包括源孤岛的边缘设备的IPv4地址。Wherein, the edge device is an edge device of an isolated user island, and the multicast information includes multicast source information and multicast group information. The destination address of the multicast join request is an IPv6 automatic mapping multicast address, and the IPv6 automatic mapping multicast address includes the IPv4 address of the edge device of the source isolated island.

获取单元504,用于根据所述IPv6组播加入请求获取第二边缘设备的IPv4地址。The obtaining unit 504 is configured to obtain the IPv4 address of the second edge device according to the IPv6 multicast join request.

其中,该第二边缘设备为源孤岛的边缘设备。所述获取单元504具体用于获取该IPv6组播加入请求的目的地址,即IPv6自动映射组播地址,并从IPv6自动映射组播地址中获取源孤岛的边缘设备的IPv4地址,即将所述目的地址的最后32bit作为所述第二边缘设备的IPv4地址。Wherein, the second edge device is an edge device of the source island. The obtaining unit 504 is specifically used to obtain the destination address of the IPv6 multicast join request, that is, the IPv6 automatic mapping multicast address, and obtain the IPv4 address of the edge device of the source island from the IPv6 automatic mapping multicast address, that is, the destination The last 32 bits of the address are used as the IPv4 address of the second edge device.

第一处理器506,用于根据所述IPv6组播加入请求生成IPv4组播加入请求,并向所述第二边缘设备发送所述IPv4组播加入请求,该IPv4组播加入请求中携带所述组播信息。The first processor 506 is configured to generate an IPv4 multicast join request according to the IPv6 multicast join request, and send the IPv4 multicast join request to the second edge device, the IPv4 multicast join request carrying the Multicast information.

第二处理器508,用于接收所述第二边缘设备发送的IPv4报文,对所述IPv4报文进行解封装,得到IPv6组播报文,将所述IPv6组播报文发送给所述用户。The second processor 508 is configured to receive the IPv4 packet sent by the second edge device, decapsulate the IPv4 packet to obtain an IPv6 multicast packet, and send the IPv6 multicast packet to the user.

此外,该边缘设备还可以进一步包括记录单元510,用于在所述接收器502接收到该IPv6组播加入请求后,记录用户与用户请求加入的组播组的对应关系。则所述第二处理器508,具体用于根据所述记录单元记录的用户与组播组的对应关系,将所述IPv6组播报文发送给所述用户。In addition, the edge device may further include a recording unit 510, configured to record the correspondence between the user and the multicast group that the user requests to join after the receiver 502 receives the IPv6 multicast join request. The second processor 508 is specifically configured to send the IPv6 multicast packet to the user according to the correspondence between the user and the multicast group recorded by the recording unit.

如图6所示,本发明实施例另外提供了一种边缘设备,用于实施图4所示的方法,该边缘设备包括:As shown in FIG. 6, an embodiment of the present invention additionally provides an edge device for implementing the method shown in FIG. 4, and the edge device includes:

第一接收器602,用于接收第一边缘设备发送的IPv4组播加入请求,所述IPv4组播加入请求是所述第一边缘设备根据IPv6组播加入请求生成的,所述IPv4组播加入请求中携带组播信息。The first receiver 602 is configured to receive the IPv4 multicast join request sent by the first edge device, the IPv4 multicast join request is generated by the first edge device according to the IPv6 multicast join request, and the IPv4 multicast join request The request carries multicast information.

第一处理器604,用于获取所述IPv4报文中的组播信息,根据所述组播信息加入组播组,建立组播转发表项。The first processor 604 is configured to acquire multicast information in the IPv4 message, join a multicast group according to the multicast information, and establish a multicast forwarding entry.

第二接收器606,用于从组播源接收IPv6组播报文。The second receiver 606 is configured to receive an IPv6 multicast packet from a multicast source.

第二处理器608,用于根据所述组播转发表项复制所述IPv6组播报文,将复制得到的IPv6组播报文封装成IPv4报文,将所述IPv4报文发送给所述第一边缘设备。The second processor 608 is configured to copy the IPv6 multicast message according to the multicast forwarding entry, encapsulate the copied IPv6 multicast message into an IPv4 message, and send the IPv4 message to the First edge device.

该边缘设备还可以进一步包括存储器610,用于存储第一处理器604建立的组播转发表项。则第二处理器608具体用于从该存储器获取该组播转发表项,并根据该组播转发表项复制IPv6组播报文。The edge device may further include a memory 610 configured to store the multicast forwarding entry established by the first processor 604 . The second processor 608 is specifically configured to obtain the multicast forwarding entry from the memory, and copy the IPv6 multicast packet according to the multicast forwarding entry.

本发明上述各实施例属于同一发明构思,但各有侧重,因此,在某一实施例中没有描述的特征,可以参考其他实施例。The above-mentioned embodiments of the present invention belong to the same inventive concept, but each has its own emphases. Therefore, for features not described in a certain embodiment, reference can be made to other embodiments.

本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存储介质中,该程序在执行时,执行包括上述方法实施例的步骤;而前述的存储介质包括:ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the steps for realizing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the It includes the steps of the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other various media that can store program codes.

最后应说明的是:以上实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be Modifications are made to the technical solutions described in the foregoing embodiments, or equivalent replacements are made to some of the technical features; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the various embodiments of the present invention.

Claims (7)

1. cross over a method for IPv4 forwarded IPv6 multicast message, it is characterized in that, comprising:
First edge device receives the IPv6 multicast that IPv6 user sends and joins request, and carry multicast information during described IPv6 multicast joins request, described multicast information comprises the multicast group address that multicast source address and described user ask to add; Described multicast group address is IPv6 automatic mapping multicast address, and wherein automatic mapping address mark position is 1;
Described first edge device is 1 according to the automatic mapping address mark of described IPv6 automatic mapping multicast address, determines the IPv4 address obtaining the second edge device from described multicast group address; Wherein, described IPv6 user is positioned at user's isolated island, described multicast source is positioned at source isolated island, described user's isolated island connects IPv4 network by described first edge device, described source isolated island is by IPv4 network described in described second edge equipment connection, and described first edge device and described second edge device all support IPv6 agreement and IPv4 agreement;
Described first edge device joins request to described IPv6 multicast and encapsulates IPv4 heading, generate IPv4 multicast to join request, the source address that described IPv4 multicast joins request is the IPv4 address of described first edge device, and destination address is the IPv4 address of described second edge device; Described first edge device sends described IPv4 multicast to described second edge device and joins request, and sets up to make described second edge device the multicast forwarding list item joining request corresponding with described IPv6 multicast;
Described first edge device receives the IPv4 message that described second edge device sends according to described multicast forwarding list item, and the source address of described IPv4 message is the IPv4 address of described second edge device, and destination address is the IPv4 address of described first edge device; Decapsulation is carried out to described IPv4 message, obtains IPv6 multicast message, described IPv6 multicast message is sent to described user;
The IPv4 address obtaining the second edge device from described multicast group address comprises:
Obtain the IPv4 address of last 32bit as described second edge device of described multicast group address.
2. method according to claim 1, is characterized in that, after the IPv6 multicast that described reception IPv6 user sends joins request, described method also comprises the corresponding relation set up between multicast group that described user and described user ask to add,
Describedly described user is sent to specifically to comprise described IPv6 multicast message:
According to described corresponding relation, described IPv6 multicast message is sent to described user.
3. cross over a method for IPv4 forwarded IPv6 multicast message, it is characterized in that, comprising:
The IPv4 multicast that second edge device receives the first edge device transmission joins request, and the source address that described IPv4 multicast joins request is the IPv4 address of described first edge device, and destination address is the IPv4 address of described second edge device; Described IPv4 multicast joins request, and to be described first edge device to join request generation according to the IPv6 multicast of IPv6 user, and carry multicast information during described IPv4 multicast joins request, described multicast information comprises multicast source address and multicast group address; Described multicast group address is IPv6 automatic mapping multicast address, and wherein automatic mapping address mark position is 1; Described IPv6 user is positioned at user's isolated island, described multicast source is positioned at source isolated island, described user's isolated island connects IPv4 network by described first edge device, described source isolated island is by IPv4 network described in described second edge equipment connection, and described first edge device and described second edge device support IPv6 agreement and IPv4 agreement;
Described second edge device obtain described IPv4 multicast join request in multicast information, add multicast group according to described multicast information, and set up multicast forwarding list item; Described multicast forwarding list item comprises described multicast source address, multicast group address, the IPv4 address of described first edge device and IPv6 address, and the IPv4 address of described second edge device and IPv6 address;
Described second edge device receives IPv6 multicast message from multicast source;
Described second edge device copies described IPv6 multicast message according to described multicast forwarding list item, IPv4 message is packaged into by copying the IPv6 multicast message obtained, the source address of described IPv4 message is the IPv4 address of described second edge device, and destination address is the IPv4 address of described first edge device; Described IPv4 message is sent to described first edge device, after IPv6 multicast message being obtained to the decapsulation of described IPv4 message to make described first edge device, is transmitted to IPv6 user.
4. an edge device, is characterized in that, support IPv6 agreement and IPv4 agreement, and connect IPv4 network and user's isolated island, described edge device comprises:
Receiver, the IPv6 multicast sent for receiving IPv6 user joins request, and carries multicast information during described IPv6 multicast joins request, and described multicast information comprises the multicast group address that multicast source address and described user ask to add; Described multicast group address is IPv6 automatic mapping multicast address, and wherein automatic mapping address mark position is 1; Described IPv6 user is positioned at described user's isolated island, and described multicast source is positioned at source isolated island;
Acquiring unit, for being 1 according to the automatic mapping address mark of described IPv6 automatic mapping multicast address, determines the IPv4 address obtaining the second edge device from described multicast group address; Described IPv4 network is by source isolated island described in described second edge equipment connection, and described second edge device supports IPv6 agreement and IPv4 agreement;
First processor, join request for giving described IPv6 multicast and encapsulate IPv4 heading, generate IPv4 multicast to join request, and send described IPv4 multicast to described second edge device and join request, set up to make described second edge device the multicast forwarding list item joining request corresponding with described IPv6 multicast; The source address that described IPv4 multicast joins request is the IPv4 address of described first edge device, and destination address is the IPv4 address of described second edge device;
Second processor, for receiving the IPv4 message that described second edge device sends according to described multicast forwarding list item, the source address of described IPv4 message is the IPv4 address of described second edge device, and destination address is the IPv4 address of described first edge device; Decapsulation is carried out to described IPv4 message, obtains IPv6 multicast message, described IPv6 multicast message is sent to described user;
Described acquiring unit is specifically for obtaining the IPv4 address of last 32bit as described second edge device of described multicast group address.
5. edge device according to claim 4, it is characterized in that, described edge device also comprises record cell, and user receives after described IPv6 multicast joins request at described receiver, records the corresponding relation that described user and described user ask the multicast group added;
Described second processor, specifically for the corresponding relation of asking the multicast group added according to the described user of described recording unit records and described user, sends to described user by described IPv6 multicast message.
6. an edge device, is characterized in that, support IPv6 agreement and IPv4 agreement, and connect IPv4 network and source isolated island, described edge device comprises:
First receiver, the IPv4 multicast sent for receiving the first edge device joins request, and the source address that described IPv4 multicast joins request is the IPv4 address of described first edge device, and destination address is the IPv4 address of described second edge device; Described IPv4 multicast joins request, and to be described first edge device to join request generation according to the IPv6 multicast of IPv6 user, and carry multicast information during described IPv4 multicast joins request, described multicast information comprises multicast source address and multicast group address; Described multicast group address is IPv6 automatic mapping multicast address, and wherein automatic mapping address mark position is 1; Described IPv6 user is positioned at user's isolated island, and described multicast source is positioned at described source isolated island, and described user's isolated island connects described IPv4 network by described first edge device, and described first edge device supports IPv6 agreement and IPv4 agreement;
First processor, for obtaining the multicast information in described IPv4 message, adding multicast group according to described multicast information, setting up multicast forwarding list item; Described multicast forwarding list item comprises described multicast source address, multicast group address, the IPv4 address of described first edge device and IPv6 address, and the IPv4 address of described second edge device and IPv6 address;
Second receiver, for receiving IPv6 multicast message from multicast source;
Second processor, for copying described IPv6 multicast message according to described multicast forwarding list item, IPv4 message is packaged into by copying the IPv6 multicast message obtained, the source address of described IPv4 message is the IPv4 address of described second edge device, and destination address is the IPv4 address of described first edge device; Described IPv4 message is sent to described first edge device, after IPv6 multicast message being obtained to the decapsulation of described IPv4 message to make described first edge device, is transmitted to IPv6 user.
7. edge device according to claim 6, it is characterized in that, described edge device comprises memory further, for storing the multicast forwarding list item that described first processor is set up, described second processor specifically for obtaining this multicast forwarding list item from this memory, and copies described IPv6 multicast message according to this multicast forwarding list item.
CN201110400470.3A 2011-12-06 2011-12-06 Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment Expired - Fee Related CN102572007B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201110400470.3A CN102572007B (en) 2011-12-06 2011-12-06 Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment
PCT/CN2012/079078 WO2013082947A1 (en) 2011-12-06 2012-07-24 Method and edge device for forwarding ipv6 multicast message across ipv4 network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110400470.3A CN102572007B (en) 2011-12-06 2011-12-06 Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment

Publications (2)

Publication Number Publication Date
CN102572007A CN102572007A (en) 2012-07-11
CN102572007B true CN102572007B (en) 2015-05-27

Family

ID=46416463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110400470.3A Expired - Fee Related CN102572007B (en) 2011-12-06 2011-12-06 Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment

Country Status (2)

Country Link
CN (1) CN102572007B (en)
WO (1) WO2013082947A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102572007B (en) * 2011-12-06 2015-05-27 华为技术有限公司 Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment
CN102820977B (en) * 2012-08-07 2016-05-25 福建星网锐捷网络有限公司 Method of multicasting, device and the network equipment
CN103841037B (en) 2012-11-21 2017-12-29 华为技术有限公司 The method and apparatus of multicast message forwarding
CN103533100B (en) * 2013-10-15 2016-09-21 中国联合网络通信集团有限公司 Message transmitting method and node device
GB2524131B (en) * 2013-10-28 2020-07-08 Pismo Labs Technology Ltd Methods and systems for transmitting broadcast data
US10374826B2 (en) 2014-06-30 2019-08-06 Pismo Labs Technology Limited Methods and systems for transmitting broadcast data
CN112787923B (en) * 2019-11-07 2024-06-21 华为技术有限公司 Message processing method, device and system

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001193A (en) * 2006-01-11 2007-07-18 华为技术有限公司 Group broadcast desposition method between IPv6 islet and its equipment
CN101197752A (en) * 2007-11-19 2008-06-11 清华大学 Multicast Implementation Method Based on Independent Multicast-Specific Source Protocol in Softwire Tunnel

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4365998B2 (en) * 2000-07-21 2009-11-18 株式会社日立製作所 Multicast communication method and communication apparatus
US7443880B2 (en) * 2004-06-25 2008-10-28 Cisco Technology, Inc. Arrangement for reaching IPv4 public network nodes by a node in a IPv4 private network via an IPv6 access network
CN101394298A (en) * 2007-09-20 2009-03-25 华为技术有限公司 Method and device for establishing multicast transmission path and realizing multicast transmission
CN102572007B (en) * 2011-12-06 2015-05-27 华为技术有限公司 Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101001193A (en) * 2006-01-11 2007-07-18 华为技术有限公司 Group broadcast desposition method between IPv6 islet and its equipment
CN101197752A (en) * 2007-11-19 2008-06-11 清华大学 Multicast Implementation Method Based on Independent Multicast-Specific Source Protocol in Softwire Tunnel

Also Published As

Publication number Publication date
WO2013082947A1 (en) 2013-06-13
CN102572007A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102572007B (en) Method for forwarding IPv6 (Internet Protocol Version 6) multicasting message across IPv4 (Internet Protocol Version 4) network, and edge equipment
WO2010057386A1 (en) Data package forwarding method, system and device
CN102447617A (en) Method, terminal and gateway for transmitting IPv6 message in IPv4 network
US11849381B2 (en) Use of IP networks for routing of cellular data packets
WO2021174943A1 (en) Data forwarding method and apparatus, and device and storage medium
CN104038422B (en) Message forwarding method and gateway
CN106851435B (en) Method for sending multicast stream and backend device
WO2012068854A1 (en) Method and apparatus for updating media access control (mac) address
US12114250B2 (en) Selective importing of UE addresses to VRF in 5G networks
CN101534210B (en) A method and equipment for setting priority of multicast IP messages
US12477033B2 (en) PFCP session load balancer
WO2012136006A1 (en) Routing method and device for host in multi-homing site
US12063583B2 (en) Use of IP networks for routing of cellular data packets
CN101001193B (en) An IPv6 inter-island multicast deployment method and device thereof
CN101184017A (en) Ethernet tunnel processing method, communication system and related equipment
CN103222246B (en) The method and apparatus that internet protocol version IPv6 multicast address generates
WO2011095109A1 (en) Method and apparatus for achieving communications between different networks
WO2024045537A1 (en) Message transmission method and network device
US20250119317A1 (en) Methods, network nodes, media for supporting ethernet bridging on user plane
CN116527570A (en) Method and device for dynamically acquiring multicast group member information in BIER network
WO2023165544A1 (en) Method and apparatus for discovering root node
WO2025025807A1 (en) Message processing method, device, and storage medium
CN115460138A (en) Network interworking method and device
CN115460140A (en) Network intercommunication method and device
CN115460141A (en) Network intercommunication method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150527