Communication method and related equipment

By using its own IPv6 address to encapsulate IPv4 messages in the first device, the complexity of converting IPv4 services in IPv6 links is solved, simplifying network deployment and improving the flexibility and efficiency of non-fixed networking.

CN118842852APending Publication Date: 2024-10-25HUAWEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310472241.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-04-25
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

In the network, when IPv4 services need to be transmitted through IPv6 links, the existing technology needs to configure the mapping relationship between IPv4 addresses and IPv6 addresses between nodes in advance, which increases the complexity of network deployment and is especially difficult to implement in non-fixed networking scenarios. Flexible networking.

Method used

After obtaining the IPv4 message in the first device, it directly uses its own IPv6 address to encapsulate the IPv6 message. There is no need to pre-configure the mapping relationship between the IPv6 address of the IPv4 node and the IPv4 address, thereby realizing the connection between the IPv4 message and the IPv6 message. conversion to reduce network deployment complexity.

Benefits of technology

It simplifies the network deployment process, reduces internal storage space overhead, solves the problem of flexible networking in non-fixed networking scenarios, and improves network deployment efficiency and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118842852A_ABST
    Figure CN118842852A_ABST
Patent Text Reader

Abstract

The invention provides a communication method and related equipment, which can reduce the complexity of network deployment and also can solve the problem of flexible networking in a non-fixed networking scene. In the method, a first device obtains a first message, and the message header of the first message is an IPv4 message header; the first device sends a second message, the second message is a multicast message obtained by packaging based on the first message, the message header of the second message is an IPv6 message header, and the message source address of the second message is the link local address of the first device. Therefore, the first equipment does not need to determine the IPv6 address of the IPv4 node based on the mapping relation between the IPv6 address of the IPv4 node and the IPv4 address, and the IPv6 message can be obtained by packaging the IPv4 message through the IPv6 address of the first equipment, so that the complexity of network deployment can be reduced. In addition, the first device does not need to pre-configure the mapping relation between the IPv6 address and the IPv4 address of the IPv4 node, and the overhead of the internal storage space of the first device can also be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a communication method and related equipment. Background Art

[0002] In some network scenarios, IPv4 services are usually deployed between different nodes in the network. With the evolution of the fourth Internet Protocol version 4 (IPv4) network to the sixth Internet Protocol version 6 (IPv6) network, IPv4 services may need to be transmitted over IPv6 links.

[0003] At present, taking multicast communication as an example, the current protocol independent multicast (PIM) protocol stipulates that the address family of the multicast message header in the multicast message must be consistent with the address family of the payload.

[0004] For example, on an IPv6 link, after receiving an IPv4 message from an IPv4 node, an IPv6 node (such as node A) needs to encapsulate the IPv4 message based on the mapping relationship between the IPv6 address and the IPv4 address corresponding to the IPv4 node to obtain an IPv6-encapsulated multicast message, and further send the IPv6-encapsulated multicast message in a protocol-independent multicast internet protocol version 6 (PIMv6) neighbor. The address family of the multicast message header and the address family of the payload of the IPv6-encapsulated multicast message are both IPv6.

[0005] For another example, after an IPv6 node (such as node B) receives the IPv6-encapsulated multicast message, if the next hop node of the IPv6 node is an IPv4 node, the IPv6 node needs to convert the IPv6-encapsulated multicast message into an IPv4-encapsulated message based on the mapping relationship between the IPv6 address and the IPv4 address of the next hop node, and then transmit it through the IPv4 multicast neighbor. Among them, the address family of the multicast message header and the address family of the payload of the IPv4-encapsulated message are both IPv4.

[0006] However, in the above implementation process, the mapping relationship between the IPv4 address and the IPv6 address of each node needs to be configured in advance in Node A and Node B so that Node A and Node B can perform the conversion between the above IPv4 packets and IPv6 packets, which will greatly increase the complexity of network deployment. Summary of the invention

[0007] The present application provides a communication method and related equipment, which can reduce the complexity of network deployment and solve the problem of flexible networking in non-fixed networking scenarios.

[0008] The first aspect of the present application provides a communication method, which is executed by a first device, or the method is executed by some components in the first device (such as a processor, a chip or a chip system, etc.), or the method is implemented by a logic module or software that can realize all or part of the functions of the first device. In the first aspect and its possible implementation, the communication method is described as being executed by the first device, wherein the first device is a router, a switch, a virtual machine, a server, a terminal and other devices. In the method, the first device obtains a first message, the message header of the first message is an IPv4 message header; the first device sends a second message, the second message is a multicast message encapsulated based on the first message, the message header of the second message is an IPv6 message header, and the message source address of the second message is the address of the first device.

[0009] Based on the above technical solution, after the first device obtains the first message whose message header is an IPv4 message header, the first device sends the second message whose message header is an IPv6 message header, wherein the second message is a multicast message obtained by encapsulation based on the first message and the message source address of the second message is the address of the first device, that is, the effective load of the second message includes the first message. In other words, the address family of the multicast message header of the second message is IPv6, and the address family of the effective load of the second message is IPv4. Therefore, after the first device obtains the IPv4 message, the first device does not need to determine the IPv6 address of the IPv4 node based on the mapping relationship between the IPv6 address of the IPv4 node and the IPv4 address, but can encapsulate the IPv4 message to obtain the IPv6 message through the IPv6 address of the first device itself, which can reduce the complexity of network deployment.

[0010] Optionally, the above technical solution can be applied in non-fixed networking scenarios, where the number, location, and connection status of flexible nodes are all variables, making the deployment difficulty of pre-configuring the mapping relationship between the IPv6 address and the IPv4 address of the IPv4 node in the non-fixed networking scenario greatly increased (or even impossible), thereby greatly increasing the networking complexity of the flexible nodes. In the above technical solution, since the first device does not need to pre-configure the mapping relationship between the IPv6 address and the IPv4 address of the IPv4 node, it can improve the network deployment efficiency while solving the flexible networking problem in non-fixed networking scenarios.

[0011] In addition, in the above technical solution, the first device does not need to pre-configure the mapping relationship between the IPv6 address and the IPv4 address of the IPv4 node, which can reduce the internal storage space overhead of the first device.

[0012] It should be understood that if the message header of the first message is an IPv4 message header, it can be understood that the first message is an IPv4 message; if the message header of the second message is an IPv6 message header, it can be understood that the second message is an IPv6 message.

[0013] In a possible implementation manner of the first aspect, the message source address of the second message is a link local address of the first device.

[0014] Based on the above technical solution, when the message source address of the second message is the link local address of the first device, it can be highly adaptable to flexible networking and consistency with unicast communication, so that the first device indicates the link local address of this node (that is, the default configuration without actual parameters) without limiting the parameters of the other end, so that other nodes (such as the second device) can operate normally after docking with the first device.

[0015] In a possible implementation manner of the first aspect, before the first device sends the second message, the method further includes: the first device receiving capability information of the second device, where the capability information of the second device indicates that the second device supports receiving or forwarding IPv4 message format in a PIMv6 multicast neighbor.

[0016] It can be understood that the second device (or the first device) supports receiving or forwarding IPv4 message format in PIMv6 multicast neighbors, which means that the second device (or the first device) supports receiving or forwarding messages in PIMv6 multicast neighbors, and the payload carries IPv4 messages (or the payload carries content in IPv4 format).

[0017] Based on the above technical solution, before the first device sends the second message, the first device can also receive the capability information of the second device, so that the first device can clarify that the second device supports receiving or forwarding IPv4 message format in the PIMv6 multicast neighbor based on the capability information of the second device, and can subsequently send the second message to the second device to avoid failure of the second message transmission.

[0018] In a possible implementation manner of the first aspect, the method further includes: the first device sending capability information of the first device, where the capability information of the first device indicates that the first device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0019] Based on the above technical solution, the first device can also send the capability information of the first device to other devices (for example, the second device), so that the other devices can clearly determine that the first device supports receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors based on the capability information of the first device, and can subsequently send IPv4 packets to the PIMv6 multicast neighbors to the first device.

[0020] In a possible implementation manner of the first aspect, the capability information is carried in a Hello message in a PIM network.

[0021] Based on the above technical solution, the capability information of the first device sent by the first device (or the capability information of the second device sent by the second device) can be carried in a Hello message in the PIM network, so that the receiver of the capability information can clearly know that the sender of the capability information has the above capability based on the Hello message. Subsequently, the receiver of the capability information can receive or forward the IPv4 message format in the PIMv6 multicast neighbor between the receiver and the sender of the capability information.

[0022] Optionally, in a PIM network, a Hello message is used for discovery and / or keep-alive of a PIM neighbor, and a sender and receiver of the Hello message may also negotiate PIM-related parameters based on the Hello message.

[0023] In a possible implementation manner of the first aspect, the Hello message includes an optional type (option type) 25 field; wherein, when the value of the option type 25 field is a first value, the option type 25 field is used to carry the capability information.

[0024] Optionally, when the value of the option type 25 field is the second value, the option type 25 field is used to indicate other information, such as indicating that receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors is not supported. Exemplarily, the first value is 1 and the second value is 0; or, the first value is 0 and the second value is 1.

[0025] Optionally, in addition to the option type 25 field in the Hello message, the capability information may also be carried through other fields in the Hello message or other messages.

[0026] In a possible implementation manner of the first aspect, the second message includes any one of the following: a join message, a prune message, an assert message, and a bootstrap message.

[0027] Based on the above technical solution, in a PIM network, join messages, prune messages, assert messages and bootstrap messages can be transmitted via IPv6 multicast. To this end, the above first device can receive or forward IPv4 message formats in a PIMv6 multicast neighbor via any of the above second messages.

[0028] In a possible implementation manner of the first aspect, the first device acquiring the first message includes: the first device receiving the first message; or the first device generating the first message.

[0029] Based on the above technical solution, the first device can obtain the first message in multiple ways to improve the flexibility of solution implementation.

[0030] Optionally, in the implementation process of the first device receiving the first message, the message source address of the first message may be a link local address of the source device (ie, the sender of the first message).

[0031] The second aspect of the present application provides a communication method, which is executed by a second device, or the method is executed by some components in the second device (such as a processor, a chip or a chip system, etc.), or the method is implemented by a logic module or software that can realize all or part of the functions of the second device. In the first aspect and its possible implementation, the communication method is described as being executed by the second device, wherein the second device is a router, a switch, a virtual machine, a server, a terminal and other devices. In this method, the second device receives a second message, which is a multicast message obtained by encapsulation based on the first message, the message header of the second message is an Internet Protocol version 6 IPv6 message header, and the message source address of the second message is the address of the first device; wherein the message header of the first message is an Internet Protocol version 4 IPv4 message header; the second device forwards the second message or the second device processes the second message locally.

[0032] Based on the above technical solution, after the second device receives the second message, the second device forwards the second message or the second device processes the second message locally. The second message is a multicast message obtained by encapsulating the first message obtained by the first device, and the message source address of the second message is the address of the first device, that is, the payload of the second message includes the first message. In other words, the address family of the multicast message header of the second message is IPv6, and the address family of the payload of the second message is IPv4. Therefore, after the first device obtains the IPv4 message, the first device does not need to determine the IPv6 address of the IPv4 node based on the mapping relationship between the IPv6 address of the IPv4 node and the IPv4 address, but can encapsulate the IPv4 message to obtain the IPv6 message through the IPv6 address of the first device itself, which can reduce the complexity of network deployment.

[0033] In addition, in the above technical solution, the first device does not need to pre-configure the mapping relationship between the IPv6 address and the IPv4 address of the IPv4 node, which can reduce the internal storage space overhead of the first device.

[0034] It should be understood that if the message header of the first message is an IPv4 message header, it can be understood that the first message is an IPv4 message; if the message header of the second message is an IPv6 message header, it can be understood that the second message is an IPv6 message.

[0035] In a possible implementation manner of the second aspect, the message source address of the second message is a link local address of the first device.

[0036] Based on the above technical solution, when the message source address of the second message is the link local address of the first device, it can be highly adaptable to flexible networking and consistency with unicast communication, so that the first device indicates the link local address of this node (that is, the default configuration without actual parameters) without limiting the parameters of the other end, so that other nodes (such as the second device) can operate normally after docking with the first device.

[0037] In a possible implementation manner of the second aspect, forwarding the second message by the second device includes: when a next hop node of the second device is an IPv6 node, the second device sends the second message to the IPv6 node.

[0038] Based on the above technical solution, when the next hop node of the second device is an IPv6 node, the second device can forward the second message to the IPv6 node without performing message conversion or message decapsulation processing on the second message.

[0039] In a possible implementation manner of the second aspect, the second device forwarding the second message includes: when the next hop node of the second device is an IPv4 node, the second device determines the first message based on the second message and sends the first message to the IPv4 node.

[0040] Based on the above technical solution, when the next hop node of the second device is an IPv4 node, the second device can convert the IPv6-encapsulated multicast message into an IPv4-encapsulated message (ie, the first message), and then send the IPv4-encapsulated message through the IPv4 multicast neighbor.

[0041] In a possible implementation manner of the second aspect, before the second device receives the second message, the method further includes: the second device sending capability information of the second device, where the capability information of the second device indicates that the second device supports receiving or forwarding IPv4 message format in a PIMv6 multicast neighbor.

[0042] Based on the above technical solution, before the second device receives the second message, the second device can also send the capability information of the second device, so that the first device can clarify that the second device supports receiving or forwarding IPv4 message format in the PIMv6 multicast neighbor based on the capability information of the second device, and subsequently send the second message to the second device to avoid failure of the second message transmission.

[0043] In a possible implementation manner of the second aspect, the method further includes: the second device receiving capability information of the first device, where the capability information of the first device indicates that the first device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0044] Based on the above technical solution, the first device can also send the capability information of the first device to other devices (for example, the second device), so that the other devices can clearly determine that the first device supports receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors based on the capability information of the first device, and can subsequently send IPv4 packets to the PIMv6 multicast neighbors to the first device.

[0045] In a possible implementation manner of the second aspect, the capability information is carried in a Hello message in a PIM network.

[0046] Based on the above technical solution, the capability information of the first device sent by the first device (or the capability information of the second device sent by the second device) can be carried in a Hello message in the PIM network, so that the receiver of the capability information can clearly know that the sender of the capability information has the above capability based on the Hello message. Subsequently, the receiver of the capability information can receive or forward the IPv4 message format in the PIMv6 multicast neighbor between the receiver and the sender of the capability information.

[0047] Optionally, in a PIM network, a Hello message is used for discovery and / or keep-alive of a PIM neighbor, and a sender and receiver of the Hello message may also negotiate PIM-related parameters based on the Hello message.

[0048] In a possible implementation manner of the second aspect, the Hello message includes an optional type option type 25 field; wherein, when the value of the option type 25 field is a first value, the option type 25 field is used to carry the capability information.

[0049] Optionally, when the value of the option type 25 field is the second value, the option type 25 field is used to indicate other information, such as indicating that receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors is not supported. Exemplarily, the first value is 1 and the second value is 0; or, the first value is 0 and the second value is 1.

[0050] Optionally, in addition to the option type 25 field in the Hello message, the capability information may also be carried through other fields in the Hello message or other messages.

[0051] In a possible implementation manner of the second aspect, the second message includes any one of the following: a join message, a prune message, an assertion message, and a bootstrap message.

[0052] Based on the above technical solution, in a PIM network, join messages, prune messages, assert messages and bootstrap messages can be transmitted via IPv6 multicast. To this end, the above first device can receive or forward IPv4 message formats in a PIMv6 multicast neighbor via any of the above second messages.

[0053] The third aspect of the present application provides a communication device, which can implement the method in the first aspect or any possible implementation of the first aspect. The device includes a corresponding unit or module for executing the above method. The unit or module included in the device can be implemented by software and / or hardware. For example, the device can be a first device, or the device can be a component in the first device (such as a processor, a chip or a chip system, etc.), or the device can also be a logic module or software that can implement all or part of the functions of the first device.

[0054] The device includes a processing unit and a transceiver unit; the processing unit is used to obtain a first message, the message header of the first message is an Internet Protocol version four IPv4 message header; the transceiver unit is used to send a second message, the second message is a multicast message obtained by encapsulating the first message, the message header of the second message is an Internet Protocol version six IPv6 message header, and the message source address of the second message is the address of the first device.

[0055] In a possible implementation manner of the third aspect, the transceiver unit is further configured to receive capability information of the second device, where the capability information of the second device indicates that the second device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0056] In a possible implementation manner of the third aspect, the transceiver unit is further configured to send capability information of the first device, where the capability information of the first device indicates that the first device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0057] In a possible implementation manner of the third aspect, the capability information is carried in a Hello message in a PIM network.

[0058] In a possible implementation manner of the third aspect, the Hello message includes an optional type option type 25 field; wherein, when the value of the option type 25 field is a first value, the option type 25 field is used to carry the capability information.

[0059] In a possible implementation manner of the third aspect, the second message includes any one of the following: a join message, a prune message, an assertion message, and a bootstrap message.

[0060] In a possible implementation manner of the third aspect, the message source address of the second message is a link local address of the first device.

[0061] In a possible implementation manner of the third aspect, the processing unit is specifically used to: control the transceiver unit to receive the first message; or generate the first message.

[0062] In a fourth aspect of the present application, a communication device is provided, which can implement the method in the second aspect or any possible implementation of the second aspect. The device includes a corresponding unit or module for executing the above method. The unit or module included in the device can be implemented by software and / or hardware. For example, the device can be a second device, or the device can be a component in the second device (such as a processor, a chip or a chip system, etc.), or the device can also be a logic module or software that can implement all or part of the functions of the second device.

[0063] The device includes a processing unit and a transceiver unit; the transceiver unit is used to receive a second message, the second message is a multicast message obtained by encapsulating the first message, the message header of the second message is an Internet Protocol version six IPv6 message header, and the message source address of the second message is the address of the first device; wherein the message header of the first message is an Internet Protocol version four IPv4 message header; the processing unit is used to forward the second message or process the second message locally.

[0064] In a possible implementation manner of the fourth aspect, the processing unit is specifically configured to send the second message to the IPv6 node when the next hop node of the second device is an IPv6 node.

[0065] In a possible implementation manner of the fourth aspect, the processing unit is specifically used to determine the first message based on the second message and send the first message to the IPv4 node when the next hop node of the second device is an IPv4 node.

[0066] In a possible implementation manner of the fourth aspect, the transceiver unit is further configured to send capability information of the second device, where the capability information of the second device indicates that the second device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0067] In a possible implementation manner of the fourth aspect, the transceiver unit is further configured to receive capability information of the first device, where the capability information of the first device indicates that the first device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0068] In a possible implementation manner of the fourth aspect, the capability information is carried in a Hello message in a PIM network.

[0069] In a possible implementation manner of the fourth aspect, the Hello message includes an optional type option type25 field; wherein, when the value of the option type25 field is a first value, the option type25 field is used to carry the capability information.

[0070] In a possible implementation manner of the fourth aspect, the second message includes any one of the following: a join message, a prune message, an assertion message, and a bootstrap message.

[0071] In a possible implementation manner of the fourth aspect, the message source address of the second message is a link local address of the first device.

[0072] A fifth aspect of an embodiment of the present application provides a communication device, comprising at least one processor, which is coupled to a memory; the memory is used to store programs or instructions; the at least one processor is used to execute the program or instructions so that the device implements the method described in the first aspect or any possible implementation method of the first aspect.

[0073] A sixth aspect of an embodiment of the present application provides a communication device, comprising at least one processor, which is coupled to a memory; the memory is used to store programs or instructions; the at least one processor is used to execute the program or instructions so that the device implements the method described in the second aspect or any possible implementation method of the second aspect.

[0074] In a seventh aspect of an embodiment of the present application, a communication device is provided, comprising at least one logic circuit and an input / output interface; the logic circuit is used to execute the method described in the first aspect or any possible implementation of the first aspect; or, the logic circuit is used to execute the method described in the second aspect or any possible implementation of the second aspect.

[0075] An eighth aspect of an embodiment of the present application provides a computer-readable storage medium for storing computer execution instructions; when the computer execution instructions are executed by a processor, the processor executes the method described in the first aspect or any possible implementation of the first aspect; or, the processor executes the method described in the second aspect or any possible implementation of the second aspect.

[0076] A ninth aspect of an embodiment of the present application provides a computer program product (or computer program). When the computer program product is executed by a processor, the processor executes the method of the first aspect or any possible implementation of the first aspect; or, the processor executes the method of the second aspect or any possible implementation of the second aspect.

[0077] The tenth aspect of an embodiment of the present application provides a chip system, which includes at least one processor for supporting a communication device to implement the functions involved in the above-mentioned first aspect or any possible implementation method of the first aspect, or for supporting a communication device to implement the functions involved in the above-mentioned second aspect or any possible implementation method of the second aspect.

[0078] In a possible design, the chip system may also include a memory for storing program instructions and data necessary for the communication device. The chip system may be composed of a chip, or may include a chip and other discrete devices. Optionally, the chip system also includes an interface circuit, which provides program instructions and / or data for the at least one processor.

[0079] An eleventh aspect of an embodiment of the present application provides a communication system, which includes the communication device of the third aspect and the communication device of the fourth aspect; or, the communication system includes the communication device of the fifth aspect and the communication device of the sixth aspect; or, the communication system includes the communication device of the seventh aspect and the communication device of the eighth aspect.

[0080] Among them, the technical effects brought about by any design method in the third aspect to the twelfth aspect can refer to the technical effects brought about by different implementation methods in the above-mentioned first aspect to the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0081] Figure 1 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0082] Figure 2 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0083] Figure 3 A schematic diagram of an application scenario provided by an embodiment of the present application;

[0084] Figure 4 A schematic diagram of a communication method provided in an embodiment of the present application;

[0085] Figure 5 A schematic diagram of a communication method provided in an embodiment of the present application;

[0086] Figure 6 A schematic diagram of a message format provided in an embodiment of the present application;

[0087] Figure 7 A schematic diagram of a communication scenario provided in an embodiment of the present application;

[0088] Figure 8A schematic diagram of message processing provided in an embodiment of the present application;

[0089] Fig. 9 A schematic diagram of a communication device provided in an embodiment of the present application;

[0090] Fig.10 Another schematic diagram of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0091] The technical solutions in the embodiments of the present invention will be described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0092] The terms "system" and "network" in the embodiments of the present application can be used interchangeably. "At least one" refers to one or more, and "multiple" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B, which can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following (single)" or its similar expression refers to any combination of these items, including any combination of single (single) or plural (single). For example, "at least one of A, B and C" includes A, B, C, AB, AC, BC or ABC. And, unless otherwise specified, the ordinal words such as "first" and "second" mentioned in the embodiments of the present application are used to distinguish multiple objects, and are not used to limit the order, timing, priority or importance of multiple objects.

[0093] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0094] See also Figure 1 , is a schematic diagram of the architecture of the communication system provided in the embodiment of the present application. Figure 1 As shown, the system includes multiple network devices (or nodes), such as network device 101, network device 102, network device 103, network device 104 and network device 105, as well as other network devices that may exist.

[0095] Optional, in Figure 1 In the figure, network device 101, network device 102, network device 103, network device 104 and network device 105 are devices such as routers, switches, and virtual machines.

[0096] exist Figure 1 In the communication system shown, different network devices may support multiple communication modes, such as unicast, multicast or broadcast, etc. The present application may involve multicast or unicast communication modes between different devices.

[0097] For example, multicast, also known as multi-target broadcast or multicast, refers to a communication method for transmitting multicast messages between a sender and multiple receivers in a network, wherein the sender may also be referred to as a multicast source. The forwarding network used to forward multicast messages from the multicast source to the receivers may be referred to as a multicast network (or multicast tree). Multicast is widely used in network services such as Internet protocol television (IPTV), real-time data transmission, and multimedia conferencing. Compared with unicast, it can more effectively save network bandwidth and reduce network load.

[0098] In some network scenarios, IPv4 services are usually deployed between different nodes in the network. With the evolution of the fourth Internet Protocol version 4 (IPv4) network to the sixth Internet Protocol version 6 (IPv6) network, IPv4 services may need to be transmitted over IPv6 links.

[0099] At present, taking multicast communication as an example, the current protocol independent multicast (PIM) protocol stipulates that the address family of the multicast message header in the multicast message must be consistent with the address family of the payload.

[0100] For example, on an IPv6 link, after receiving an IPv4 message from an IPv4 node, an IPv6 node (such as node A) needs to encapsulate the IPv4 message based on the mapping relationship between the IPv6 address and the IPv4 address corresponding to the IPv4 node to obtain an IPv6-encapsulated multicast message, and further send the IPv6-encapsulated multicast message in a protocol-independent multicast internet protocol version 6 (PIMv6) neighbor. The address family of the multicast message header and the address family of the payload of the IPv6-encapsulated multicast message are both IPv6.

[0101] For another example, after an IPv6 node (such as node B) receives the IPv6-encapsulated multicast message, if the next hop node of the IPv6 node is an IPv4 node, the IPv6 node needs to convert the IPv6-encapsulated multicast message into an IPv4-encapsulated message based on the mapping relationship between the IPv6 address and the IPv4 address of the next hop node, and then transmit it through the IPv4 multicast neighbor. Among them, the address family of the multicast message header and the address family of the payload of the IPv4-encapsulated message are both IPv4.

[0102] However, in the above implementation process, the mapping relationship between the IPv4 address and the IPv6 address of each node needs to be configured in advance in Node A and Node B so that Node A and Node B can perform the conversion between the above IPv4 packets and IPv6 packets, which will greatly increase the complexity of network deployment.

[0103] As an implementation example, the above node A and node B can be Figure 2 The scenario shown is implemented. Among them, node A can be Figure 2 In the multicast basic bridging broadband (mB4) node, node B can be Figure 2 The multicast address family transition router (mAFTR) node in the .

[0104] like Figure 2 As shown in the example, the arrow pointing upwards indicates that the IPv4 client may be the IPv4 receiver in the figure. The joining process of the IPv4 receiver includes: the Internet Group Management Protocol (IGMP) joining message of the receiver may be Figure 2 The IGMP report in the mB4 node is proxied to perform mapping conversion between v4 and v6 addresses, and a multicast listener discovery report (MLD report) message is obtained and sent to the rendezvous point (RP) router in the IPv6 network (where the RP router is located at Figure 2After that, the RP router sends a PIMv6 join (PIMv4 join) (PIMv6 routers in between) message to the mAFTR node, and the mAFTR node sends a PIMv4 join (PIMv4 join) message to the RP router in the IPv4 network (IPv4 network) (i.e., the multicast aggregation point of the IPv6 network).

[0105] like Figure 2 As shown by the upward arrow in the example shown, the reverse process is that after the mAFTR node receives the IPv4 multicast message, it converts the v4 unicast route in the IPv4 multicast message into a specific v6 address to obtain the IPv6 multicast (embedded in IPv4) (IPv6 multicast) (IPv4 embeded), and then publishes it in the IPv6 network through the interior gateway protocol (IGP), so that mB4 can subsequently send the IPv6 multicast message to the IPv4 receiver.

[0106] Depend on Figure 2 As can be seen from the example shown, in order to ensure that the addresses of the client and server of the IPv4 network can be correctly identified, converted, and forwarded in the IPv6 network, the IPv6 address, network, mapping, etc. need to be planned in advance on the receiving end mB4 and the server end mAFTR, especially in the complex deployment in flexible networking scenarios.

[0107] It should be noted that since the number, location, and connection status of mobile nodes (or flexible nodes) in flexible networking are all variables, the uncertainty of flexible networking scenarios makes the networking capabilities of network equipment required to be flexible, dynamic, convenient, and easy to maintain.

[0108] In addition, Figure 2 The implementation scheme shown does not mention the supporting scheme for unicast services. In the implementation, it is very likely that the connection of IPv4 unicast services in IPv6 networks will need to be considered additionally (for example, in the lightweight dual-stack (DS-lite) scenario). For example, traffic policies are configured to match IPv4 packets to IPv4 in IPv6 tunnels. If packets need to go to different IPv4 networks, multiple tunnels need to be configured. The overall IPv6 address allocation, policy matching, tunnel forwarding process, etc. involved will make network deployment very complicated and cannot meet the demand for flexible and mobile networking, convenience and ease of use.

[0109] Optionally, in Figure 2 In the example shown, due to the different role settings of mB4 and mAFTR, this solution is more suitable for the asymmetric model of unidirectional CS from an architectural perspective. Although reverse deployment can also achieve bidirectional symmetry, the complexity will be further increased.

[0110] Optionally, in Figure 2 In the example shown, since the core business in the actual flexible networking scenario is v4, v6 is not a concern, and no v6 addresses are available, if an additional IPv6 network is forcibly deployed to carry the related v4 over v6 solution, it will increase unnecessary management burden.

[0111] Optionally, in Figure 2 In the example shown, each node in the flexible networking scenario is mobile and random. The pre-configured IPv4-IPv6 policies, tunnels, proxies, and mappings may fail to function and cause network unavailability due to configuration mismatch after replacing or missing mAFTR, mB4, or replacing Receiver.

[0112] In summary, in a communication system, how to reduce the complexity of network deployment is a technical problem that needs to be solved urgently.

[0113] In order to solve the above problems, the present application provides a communication method and related devices. After the first device obtains the IPv4 message, the first device does not need to determine the IPv6 address of the IPv4 node based on the mapping relationship between the IPv6 address of the IPv4 node and the IPv4 address, but can encapsulate the IPv4 message to obtain the IPv6 message through the IPv6 address of the first device itself, which can reduce the complexity of network deployment. The following will be described in detail with reference to more figures.

[0114] See also Figure 3 , is a schematic diagram of the communication method provided in this application, and the method includes the following steps.

[0115] S301. A first device obtains a first message, wherein a message header of the first message is an IPv4 message header.

[0116] In a possible implementation, in step S301, the process of the first device acquiring the first message may include: the first device receiving the first message; or the first device generating the first message. Specifically, the first device may acquire the first message in multiple ways to improve the flexibility of the solution implementation.

[0117] S302. The first device sends a second message, and correspondingly, the second device receives the second message, wherein the second message is a multicast message encapsulated based on the first message, the message header of the second message is an IPv6 message header, and the message source address of the second message is the address of the first device.

[0118] It should be understood that in step S301, the message header of the first message is an IPv4 message header, which can be understood as the first message is an IPv4 message; in step S302, the message header of the second message is an IPv6 message header, which can be understood as the second message is an IPv6 message.

[0119] As an implementation example, Figure 3 The method shown can be applied to Figure 4 or Figure 5 In the application scenario shown, the first message is an IPv4 message, that is, the first message is used to carry IPv4 services, and the first device and the second device are devices with IPv6 capabilities. In the following example, device A is the source device (or source node) of the first message and device B is the destination device (or destination node) of the first message.

[0120] like Figure 4 As shown, device A and / or device B may be mobile nodes, wherein the IPv4 message sent by device A needs to be transmitted through the IPv6 network to reach device B. In the IPv6 network, the network device 1 connected to device A may be used as the first device, and the network device 3 connected to device B may be used as the second device to perform Figure 3 The method shown. Figure 4 In the illustrated scenario, the first device (ie, network device 1 ) obtains the first message by receiving the first message from device A.

[0121] Optionally, in the implementation process of the first device receiving the first message, the message source address of the first message may be a link local address of the source device (ie, the sender of the first message).

[0122] like Figure 5 As shown, device A and / or device B may be mobile nodes, wherein the IPv4 message sent by device A can reach device B through the transmission of the IPv6 channel. Wherein, both device A and device B may be dual-stack devices with IPv4 and IPv6 capabilities, that is, device A may be used as the first device and device B may be used as the second device to perform Figure 3 The method shown. Figure 5 In the illustrated scenario, the first device (ie, device A) obtains the first message in a manner that the first device generates the first message.

[0123] It should be noted that in Figure 4 In the example shown, both device A and device B are not dual-stack devices. Figure 5 In the example shown, both device A and device B are dual-stack devices. In actual applications, it is also possible that one of device A and device B is a dual-stack device and the other is not a dual-stack device. This is not limited here. It is understandable that if one of the devices has IPv4 capability but not IPv6 capability, the device needs to connect to a network device with IPv6 capability (e.g. Figure 4 Device A is connected to network device 1; for example, Figure 4 After device B is connected to network device 3), it can be realized Figure 3 The method shown.

[0124] Optionally, Figure 4 or Figure 5 In the example, the network device may be a router, a switch, a virtual machine, etc., and the device A or the device B may be a server, a terminal, etc. Correspondingly, the first device and the second device may be a router, a switch, a virtual machine, a server, a terminal, etc., which are not limited here.

[0125] In a possible implementation, before the first device sends the second message in step S302, the method further includes: the first device receives capability information of the second device, the capability information of the second device indicating that the second device supports receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors. Specifically, before the first device sends the second message, the first device may also receive capability information of the second device, so that the first device can clarify that the second device supports receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors based on the capability information of the second device, and can subsequently send the second message to the second device to avoid failure in transmission of the second message.

[0126] In one possible implementation, Figure 3 The method shown also includes: the first device sends the capability information of the first device, and the capability information of the first device indicates that the first device supports receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors. Specifically, the first device can also send the capability information of the first device to other devices (such as the second device), so that the other devices can clarify that the first device supports receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors based on the capability information of the first device, and can subsequently send IPv4 messages to the PIMv6 multicast neighbors to the first device.

[0127] Optionally, the capability information is carried in a Hello message in the PIM network. The capability information of the first device sent by the first device (or the capability information of the second device sent by the second device) can be carried in a Hello message in the PIM network, so that the receiver of the capability information can clearly know that the sender of the capability information has the above-mentioned capability based on the Hello message, and the receiver of the capability information can subsequently receive or forward the IPv4 message format in the PIMv6 multicast neighbor between the receiver and the sender of the capability information.

[0128] Optionally, in a PIM network, a Hello message is used for discovery and / or keep-alive of a PIM neighbor, and a sender and receiver of the Hello message may also negotiate PIM-related parameters based on the Hello message.

[0129] Optionally, the Hello message includes an optional type (option type) 25 field; wherein, when the value of the option type 25 field is a first value, the option type 25 field is used to carry the capability information.

[0130] Optionally, when the value of the option type 25 field is the second value, the option type 25 field is used to indicate other information, such as indicating that receiving or forwarding IPv4 message formats in PIMv6 multicast neighbors is not supported. Exemplarily, the first value is 1 and the second value is 0; or, the first value is 0 and the second value is 1.

[0131] Optionally, in addition to the option type 25 field in the Hello message, the capability information may also be carried through other fields in the Hello message or other messages.

[0132] As an implementation example, take the above capability information carried by the option type 25 field in the Hello message as an example, combined with Figure 6 The implementation process is described below.

[0133] like Figure 6 As shown in the figure, the Hello message includes the following fields:

[0134] PIM Ver: PIM version number; Type: type; Reserved: reserved; Checksum: checksum; one or more Optiontype: optional type; one or more OptionLength: length of optional type; one or more OptionValue: value of optional type.

[0135] From the above implementation process, we can know that the option field with OptionType 25 (recommended) is added to the TLV field of the Hello message. This option is used to indicate that the router has the ability to transmit v4 messages to PIMv6 multicast neighbors (PIM 4in6). The OptionValue value is recommended to be 1 to indicate support, and empty to indicate non-support (compatible with the original process). When the local router supporting PIM 4in6 receives a message with Option25 set from the neighboring router at the opposite end, the negotiation is successful and the PIM4in6 message can be forwarded later.

[0136] In a possible implementation, the second message sent by the first device in step S302 includes any one of the following: a join message, a prune message, an assert message, and a bootstrap message. Specifically, in a PIM network, the join message, the prune message, the assert message, and the bootstrap message can be transmitted via IPv6 multicast. To this end, the first device can receive or forward an IPv4 message format in a PIMv6 multicast neighbor via any one of the second messages.

[0137] In a possible implementation, the message source address of the second message sent by the first device in step S302 is the link local address of the first device. Specifically, when the message source address of the second message is the link local address of the first device, it can be highly adapted to the flexible networking and the consistency with the unicast communication, so that the first device indicates the link local address of the node (i.e., the default configuration without actual parameters) without limiting the parameters of the opposite end, so that other nodes (such as the second device) can operate normally after docking with the first device.

[0138] As an application example, the above implementation process can be applied to Figure 7 The scene shown. Figure 7As shown, the mobile node (or the network device connected to the mobile node) and the access node (or the network device connected to the access node) can be a network device (such as the first device or the first device mentioned above) that can indicate the neighbor message of PIMv4 to be encapsulated in the IPv6 message and forwarded for the PIM4in6Router. Generally, the mobile node is a flexible node, and the network topology will change with the position and connection relationship between the mobile nodes; the access node is a landing node that is connected to the mobile node on one side and the fixed network on the other side. The mobile nodes and the mobile nodes to the access nodes complete the self-organizing network and the docking with the fixed network through flexible networking. The ipv4 unicast and ipv4 bidirectional multicast services of the LAN host in the mobile node are respectively transmitted through the ISISv6 neighbors and PIMv6 neighbors established between the PIM 4in6 Routers based on the IPv6 link-local address, so as to realize the interconnection of the entire network services within the flexible self-organizing network domain and the fixed network. In the flexible self-organizing network scenario, the ipv4 multicast route is transmitted only through the automatically generated IPv6 link-local address.

[0139] S303. The second device forwards the second message or processes the second message locally.

[0140] It can be understood that if the second device is not the destination node of the first message, in step S303, the second device forwards the second message; if the second device is the destination node of the first message, in step S303, the second device processes the second message locally.

[0141] In a possible implementation, the second device forwarding the second message in step S303 includes: when the next hop node of the second device is an IPv6 node, the second device sends the second message to the IPv6 node. Specifically, when the next hop node of the second device is an IPv6 node, the second device can forward the second message to the IPv6 node without performing message conversion or message decapsulation on the second message.

[0142] In a possible implementation, the second device forwarding the second message in step S303 includes: when the next hop node of the second device is an IPv4 node, the second device determines the first message based on the second message, and sends the first message to the IPv4 node. Specifically, when the next hop node of the second device is an IPv4 node, the second device can convert the IPv6-encapsulated multicast message into an IPv4-encapsulated message (i.e., the first message), and then send the IPv4-encapsulated message through the IPv4 multicast neighbor.

[0143] In a possible implementation, the second device locally processes the second message in step S303, including: the second device can convert the IPv6-encapsulated multicast message into an IPv4-encapsulated message (ie, the first message), and then the second device parses / reads the information carried by the first message.

[0144] As an implementation example, the first device or the second device may have Figure 8 The PIMv4 module and PIMv6 module are shown in the figure. The original PIMv4 and PIMv6 processes executed by the PIMv4 and PIMv6 modules remain unchanged (only PIM messages with the same address family in the IPv4 or IPv6 message header and the payload are processed), and PIM 4in6 capability negotiation, message identification, and forwarding are added. When the PIM 4in6 negotiation between neighbors is successful, a judgment mechanism is added to determine whether to process by PIMv6 or transfer to PIMv4 according to the message type. The specific process is that after the relevant capabilities are enabled, when the PIMv6 module receives a message, if it is determined that the message header and the payload address family are inconsistent (the message header is IPv6, and the payload contains the IPv4 address family), the message is not discarded, but transferred to the PIMv4 module for message processing. Therefore, neighboring routers can establish PIM 4in6 neighbors by configuring IPv4 multicast next hop IPv6 and IPv6 PIM in the global view or interface view. After the capability negotiation is successful, the address family of the (S, G) address in the multicast table entry on the router device is IPv4, and the upstream neighbor and RPF primary neighbor address are the IPv6 link-local address of the upstream router interface. After this function is configured in the global view, all PIMv6-enabled interfaces of this node support this function. If it is enabled in the interface view, only the relevant interfaces take effect.

[0145] based on Figure 3 And related technical solutions, after the first device obtains the first message whose message header is an IPv4 message header, the first device sends a second message whose message header is an IPv6 message header, wherein the second message is a multicast message obtained by encapsulation based on the first message and the message source address of the second message is the address of the first device, that is, the effective load of the second message includes the first message. In other words, the address family of the multicast message header of the second message is IPv6, and the address family of the effective load of the second message is IPv4. Therefore, after the first device obtains the IPv4 message, the first device does not need to determine the IPv6 address of the IPv4 node based on the mapping relationship between the IPv6 address of the IPv4 node and the IPv4 address, but can encapsulate the IPv4 message to obtain the IPv6 message through the IPv6 address of the first device itself, which can reduce the complexity of network deployment.

[0146] In addition, in the above technical solution, the first device does not need to pre-configure the mapping relationship between the IPv6 address and the IPv4 address of the IPv4 node, which can reduce the internal storage space overhead of the first device.

[0147] It is understandable that the above technical solution can be applied in non-fixed networking scenarios, where the number, location, and connection status of flexible nodes are all variables, making the deployment difficulty of pre-configuring the mapping relationship between the IPv6 address and the IPv4 address of the IPv4 node in the non-fixed networking scenario greatly increased (or even impossible), thereby greatly increasing the networking complexity of the flexible nodes. In the above technical solution, since the first device does not need to pre-configure the mapping relationship between the IPv6 address and the IPv4 address of the IPv4 node, it can improve the network deployment efficiency while solving the flexible networking problem in non-fixed networking scenarios.

[0148] The above describes the embodiment of the present application from the perspective of the method. The following describes the communication device provided in the embodiment of the present application from the perspective of the device.

[0149] See also Fig. 9 An embodiment of the present application provides a communication device, and the communication device 900 can implement the functions of the communication device (ie, the first device or the second device) in the above method embodiment, and thus can also achieve the beneficial effects possessed by the above method embodiment.

[0150] The communication device 900 includes a transceiver unit 901 and a processing unit 902 .

[0151] When the communication device 900 is used to implement the function of the first device in the aforementioned embodiment, the communication device 900 includes the following implementation process. The processing unit 902 is used to obtain a first message, the message header of the first message is an Internet Protocol version 4 IPv4 message header; the transceiver unit 901 is used to send a second message, the second message is a multicast message obtained by encapsulation based on the first message, the message header of the second message is an Internet Protocol version 6 IPv6 message header, and the message source address of the second message is the address of the first device.

[0152] In a possible implementation manner, the transceiver unit 901 is further configured to receive capability information of a second device, where the capability information of the second device indicates that the second device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0153] In a possible implementation, the transceiver unit 901 is further configured to send capability information of the first device, where the capability information of the first device indicates that the first device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0154] In a possible implementation manner, the capability information is carried in a Hello message in the PIM network.

[0155] In a possible implementation, the Hello message includes an optional type option type 25 field; wherein, when the value of the option type 25 field is a first value, the option type 25 field is used to carry the capability information.

[0156] In a possible implementation manner, the second message includes any one of the following: a join message, a prune message, an assert message, and a bootstrap message.

[0157] In a possible implementation manner, the message source address of the second message is a link local address of the first device.

[0158] In a possible implementation, the processing unit 902 is specifically used to: control the transceiver unit 901 to receive the first message; or, generate the first message.

[0159] In the case where the communication device 900 is used to implement the function of the second device in the aforementioned embodiment, the communication device 900 includes the following implementation process. The transceiver unit 901 is used to receive a second message, the second message is a multicast message obtained by encapsulation based on the first message, the message header of the second message is an Internet Protocol version 6 IPv6 message header, and the message source address of the second message is the address of the first device; wherein the message header of the first message is an Internet Protocol version 4 IPv4 message header; the processing unit 902 is used to forward the second message or process the second message locally.

[0160] In a possible implementation, the processing unit 902 is specifically configured to send the second message to the IPv6 node when the next hop node of the second device is an IPv6 node.

[0161] In a possible implementation, the processing unit 902 is specifically configured to determine the first message based on the second message and send the first message to the IPv4 node when the next hop node of the second device is an IPv4 node.

[0162] In a possible implementation, the transceiver unit 901 is further configured to send capability information of the second device, where the capability information of the second device indicates that the second device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0163] In a possible implementation, the transceiver unit 901 is further configured to receive capability information of the first device, where the capability information of the first device indicates that the first device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

[0164] In a possible implementation manner, the capability information is carried in a Hello message in the PIM network.

[0165] In a possible implementation, the Hello message includes an optional type option type 25 field; wherein, when the value of the option type 25 field is a first value, the option type 25 field is used to carry the capability information.

[0166] In a possible implementation manner, the second message includes any one of the following: a join message, a prune message, an assert message, and a bootstrap message.

[0167] In a possible implementation manner, the message source address of the second message is a link local address of the first device.

[0168] It should be noted that the information execution process and other contents of each unit of the above-mentioned communication device 900 can be specifically referred to the description in the method embodiment shown in the above-mentioned application, and will not be repeated here.

[0169] The present application also provides a communication device 1000, see Fig.10 As shown, Fig.10 A schematic diagram of the structure of a communication device 1000 provided in an embodiment of the present application.

[0170] Optionally, the communication device 1000 performs the function of the root node in any of the foregoing embodiments, and the communication device 1100 performs the function of the intermediate node in any of the foregoing embodiments. Alternatively, the communication device 1000 performs the function of the intermediate node in any of the foregoing embodiments, and the communication device 1100 performs the function of the root node in any of the foregoing embodiments.

[0171] Attached Fig.10 The communication device 1000 shown includes a memory 1002 and at least one processor 1001 .

[0172] Optionally, the processor 1001 implements the method in the above embodiment by reading instructions stored in the memory 1002, or the processor 1001 may also implement the method in the above embodiment through internally stored instructions. In the case where the processor 1001 implements the method in the above embodiment by reading instructions stored in the memory 1002, the memory 1002 stores instructions for implementing the method provided in the above embodiment of the present application.

[0173] Optionally, the at least one processor 1001 is one or more CPUs, or a single-core CPU or a multi-core CPU.

[0174] Further optionally, at least one processor 1001 may also be configured to execute the aforementioned Fig. 9 The corresponding implementation process of the processing unit 902 in the illustrated embodiment and the corresponding beneficial effects achieved are not described in detail here.

[0175] The memory 1002 includes but is not limited to RAM, ROM, EPROM, flash memory, or optical memory, etc. The memory 1002 stores operating system instructions.

[0176] After the program instructions stored in the memory 1002 are read by the at least one processor 1001, the communication device performs corresponding operations in the aforementioned embodiments.

[0177] Optionally, attach Fig.10 The communication device shown also includes a network interface 1003. The network interface 1003 may be a wired interface, such as an FDDI or GE interface; the network interface 1003 may also be a wireless interface. The network interface 1003 is used to perform data transmission and reception in any of the above embodiments.

[0178] Further optionally, the network interface 1003 can also be used to perform the aforementioned Fig. 9 The corresponding implementation process of the transceiver unit 901 in the illustrated embodiment and the corresponding beneficial effects achieved are not described in detail here.

[0179] It should be understood that the network interface 1003 has the functions of receiving data and sending data, and the functions of "receiving data" and "sending data" can be integrated in the same transceiver interface, or the functions of "receiving data" and "sending data" can be implemented in different interfaces respectively, which is not limited here. In other words, the network interface 1003 may include one or more interfaces for implementing the functions of "receiving data" and "sending data".

[0180] After the processor 1001 reads the program instructions in the memory 1002 , other functions that the communication device 1000 can execute can refer to the descriptions in the previous method embodiments.

[0181] Optionally, the communication device 1000 further includes a bus 1004 , and the processor 1001 and the memory 1002 are usually connected to each other via the bus 1004 , and may also be connected to each other in other ways.

[0182] Optionally, the communication device 1000 further includes an input / output interface 1005, which is used to connect to an input device and receive relevant configuration information input by a user or other device that can be linked with the communication device 1000 through an input device. The input device includes but is not limited to a keyboard, a touch screen, a microphone, and the like.

[0183] The communication device 1000 provided in the embodiment of the present application is used to execute the methods performed by the communication devices (root nodes) provided in the above-mentioned various method embodiments and achieve corresponding beneficial effects.

[0184] For example, when the communication device 1000 performs the function of the first device in the previous embodiment, in the multicast network, the communication device 1000 obtains a first message, and the message header of the first message is an IPv4 message header; the communication device 1000 sends a second message to the communication device 1100, and the second message is a multicast message obtained by encapsulation based on the first message, and the message header of the second message is an IPv6 message header, and the message source address of the second message is the address of the first device.

[0185] For another example, when the communication device 1000 performs the function of the second device in the previous embodiment, in the multicast network, the communication device 1000 receives a second message from the communication device 1100, where the second message is a multicast message encapsulated based on the first message, a message header of the second message is an Internet Protocol version six IPv6 message header, and a message source address of the second message is the address of the first device; wherein the message header of the first message is an Internet Protocol version four IPv4 message header; the communication device 1000 forwards the second message or the communication device 1000 processes the second message locally.

[0186] Fig.10 The specific implementation methods of the communication device shown can refer to the descriptions in the aforementioned method embodiments, which will not be described in detail here.

[0187] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0188] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

Claims

1. A communication method, characterized in that: include: The first device obtains a first message, wherein the message header of the first message is an Internet Protocol version 4 IPv4 message; The first device sends a second message, the second message is a multicast message encapsulated based on the first message, the message header of the second message is an Internet Protocol version 6 IPv6 message header, and the source address of the second message is the link local address of the first device.

2. The method according to claim 1, characterized in that: Before the first device sends the second message, the method further includes: The first device receives capability information of the second device, where the capability information of the second device indicates that the second device supports receiving or forwarding IPv4 message format in a Protocol Independent Multicast Version 6 Internet Communication Protocol PIMv6 multicast neighbor.

3. The method according to claim 1 or 2, characterized in that: The method further comprises: The first device sends capability information of the first device, where the capability information of the first device indicates that the first device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

4. The method according to claim 2 or 3, characterized in that: The capability information is carried in a Hello message in the PIM network.

5. The method according to claim 4, characterized in that The Hello message includes an optional type optiontype25 field; Among them, when the value of the option type 25 field is the first value, the option type 25 field is used to carry the capability information.

6. The method according to any one of claims 1 to 5, characterized in that: The second message includes any one of the following: Add join message, prune message, assert message, and bootstrap message.

7. The method according to any one of claims 1 to 6, characterized in that: The first device acquiring the first message includes: The first device receives the first message; or, The first device generates the first message.

8. A communication method, characterized in that: include: The second device receives a second message, where the second message is a multicast message encapsulated based on the first message, a message header of the second message is an Internet Protocol version 6 IPv6 message header, and a message source address of the second message is a link local address of the first device; wherein the message header of the first message is an Internet Protocol version 4 IPv4 message; The second device forwards the second message or the second device processes the second message locally.

9. The method according to claim 8, characterized in that The second device forwarding the second message includes: When the next hop node of the second device is an IPv6 node, the second device sends the second message to the IPv6 node.

10. The method according to claim 8, characterized in that The second device forwarding the second message includes: When the next hop node of the second device is an IPv4 node, the second device determines the first message based on the second message, and sends the first message to the IPv4 node.

11. The method according to any one of claims 8 to 10, characterized in that: Before the second device receives the second message, the method further includes: The second device sends capability information of the second device, where the capability information of the second device indicates that the second device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

12. The method according to any one of claims 8 to 11, characterized in that The method further comprises: The second device receives capability information of the first device, where the capability information of the first device indicates that the first device supports receiving or forwarding an IPv4 message format in a PIMv6 multicast neighbor.

13. The method according to claim 11 or 12, characterized in that: The capability information is carried in a Hello message in the PIM network.

14. The method according to claim 13, characterized in that The Hello message includes an optional type optiontype25 field; Among them, when the value of the option type 25 field is the first value, the option type 25 field is used to carry the capability information.

15. The method according to any one of claims 8 to 14, characterized in that The second message includes any one of the following: Add join message, prune message, assert message, and bootstrap message.

16. A communication device, characterized in that: including a processing unit and a transceiver unit; The processing unit is used to obtain a first message, wherein the message header of the first message is an Internet Protocol version four IPv4 message; The transceiver unit is used to send a second message, where the second message is a multicast message encapsulated based on the first message, the message header of the second message is an Internet Protocol version 6 IPv6 message header, and the source address of the second message is the link local address of the first device.

17. The device according to any one of claims 16, characterized in that The processing unit and the transceiver unit are further configured to execute the method according to any one of claims 2 to 7.

18. A communication device, characterized in that: including a processing unit and a transceiver unit; The transceiver unit is used to receive a second message, the second message is a multicast message obtained by encapsulating the first message, the message header of the second message is an Internet Protocol version six IPv6 message header, and the message source address of the second message is a link local address of the first device; wherein the message header of the first message is an Internet Protocol version four IPv4 message; The processing unit is used to forward the second message or process the second message locally.

19. The device according to any one of claims 18, characterized in that The processing unit and the transceiver unit are further configured to execute the method according to any one of claims 9 to 15.

20. A communication system, characterized in that: The system comprises a first device and a second device; wherein the first device is used to execute the method according to any one of claims 1 to 7, and the second device is used to execute the method according to any one of claims 8 to 15.