Message transmission method and device and electronic equipment
By establishing a multicast transmission channel between the message sending device and the receiving host, the network instability caused by multicast replication is solved, and the stability and efficiency of multicast transmission are improved.
Patent Information
- Application Number
- CN202510933352.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-07
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2045-07-07
AI Technical Summary
In multi-context scenarios, multicast replication leads to unstable performance in multicast forwarding and packet loss. Current rate limiting methods have high uncertainty, which affects the stability of network devices.
The message sending device sends multicast probe messages to multiple receiving hosts, and receives multicast feedback messages from the first receiving host that enables PIM-SM, thus establishing a multicast transmission channel, avoiding multicast replication to unnecessary receiving hosts, and reducing performance impact and link overhead.
It improves the stability of network systems for multicast transmission and reduces the performance impact and link overhead caused by multicast replication.
Smart Images

Figure CN120639679B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a message transmission method, apparatus and electronic device. Background Technology
[0002] As a communication method alongside unicast and broadcast, multicast technology effectively solves the problem of single-point sending and multi-point receiving, thereby achieving efficient point-to-multipoint data transmission in a network and saving significant network bandwidth and reducing network load. Multicast technology can be used to easily provide new value-added services, including online live streaming, IPTV, distance education, telemedicine, internet radio, and real-time video conferencing—information services with high requirements for bandwidth and real-time data interaction. However, in multi-context scenarios (such as virtual firewalls), multicast replication often occurs, significantly impacting multicast forwarding and packet loss performance, and hindering stable device output.
[0003] In related technologies, multicast rate limiting is used to maintain multicast performance. However, setting a reasonable rate limit value and whether the actual scenario allows for setting such a value introduce uncertainty into the implementation of this method. Therefore, a solution is needed that can improve multicast performance and network stability. Summary of the Invention
[0004] This application provides a message transmission method, apparatus, and electronic device to alleviate or solve one or more technical problems existing in the prior art.
[0005] In a first aspect, embodiments of this application provide a message transmission method applied to a message sending device, wherein the message sending device is configured to enable a multicast routing protocol, and the method includes:
[0006] Send multicast probe messages to multiple receiving hosts;
[0007] Receive a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast probe message and a feedback identifier; the first receiving host is a receiving host among the plurality of receiving hosts that is configured to enable Protocol Independent Multicast-Sparse Mode (PIM-SM);
[0008] A multicast transmission channel is established between the host and the first receiving host, and multicast transmission is performed.
[0009] Secondly, embodiments of this application provide a message transmission method applied to a first receiving host, the first receiving host being configured to enable PIM-SM, the method comprising:
[0010] Receive multicast probe messages sent by the message sending device;
[0011] A feedback identifier is added to the multicast probe message to obtain a multicast feedback message, and the multicast feedback message is sent to the message sending device.
[0012] In response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established between the message sending device and the multicast transmission is performed.
[0013] Thirdly, embodiments of this application provide a message transmission apparatus applied to a message sending device, wherein the message sending device is configured to enable a multicast routing protocol, and the apparatus includes:
[0014] The sending module is used to send multicast probe messages to multiple receiving hosts;
[0015] The first receiving module is used to receive a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast probe message and a feedback identifier; the first receiving host is a receiving host among the plurality of receiving hosts that is configured to enable PIM-SM;
[0016] The first transmission module is used to establish a multicast transmission channel with the first receiving host and perform multicast transmission.
[0017] Fourthly, embodiments of this application provide a message transmission apparatus applied to a first receiving host, the first receiving host being configured to enable PIM-SM, the apparatus comprising:
[0018] The second receiving module is used to receive multicast probe messages sent by the message sending device;
[0019] The processing module is used to add a feedback identifier to the multicast probe message, obtain a multicast feedback message, and send the multicast feedback message to the message sending device;
[0020] The second transmission module is used to establish a multicast transmission channel with the message sending device and perform multicast transmission in response to the message sending device receiving the multicast feedback message.
[0021] Fifthly, embodiments of this application provide an electronic device, including a memory, a processor, and a computer program stored in the memory, wherein the processor implements any of the methods of embodiments of this application when executing the computer program.
[0022] Sixthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method of any one of the embodiments of this application.
[0023] In a seventh aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the method of any one of the embodiments of this application.
[0024] According to the technical solution of this application embodiment, a message sending device sends multicast probe messages to multiple receiving hosts and receives multicast feedback messages sent by a first receiving host. The multicast feedback message includes a multicast probe message and a feedback identifier. The first receiving host is a receiving host among the multiple receiving hosts that is configured to enable PIM-SM. Then, a multicast transmission channel is established between the message sending device and the first receiving host for multicast transmission. Since the message sending device sends multicast probe messages in advance, and only receiving hosts configured to enable PIM-SM can receive the multicast probe messages, the message sending device can find the first receiving host with multicast transmission needs in advance and establish a multicast transmission channel only with the first receiving host. This avoids multicast replication to other receiving hosts that do not need multicast transmission, reduces the performance impact and link overhead caused by multicast replication, and improves the stability of the network system.
[0025] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application, it can be implemented according to the contents of the specification. In order to make the above and other objects, features and advantages of this application more obvious and understandable, specific embodiments of this application are given below. Attached Figure Description
[0026] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments according to this application and should not be construed as limiting the scope of this application.
[0027] Figure 1 This illustration shows a multicast network scenario provided in an embodiment of this application.
[0028] Figure 2 A flowchart of the message transmission method provided in an embodiment of this application is shown;
[0029] Figure 3 A flowchart of a message transmission method provided in another embodiment of this application is shown;
[0030] Figure 4 A flowchart of a message transmission method provided in another embodiment of this application is shown;
[0031] Figure 5 A block diagram of a message transmission apparatus provided in an embodiment of this application is shown;
[0032] Figure 6 A block diagram of a message transmission apparatus according to another embodiment of this application is shown;
[0033] Figure 7 A block diagram of an electronic device provided in an embodiment of this application is shown. Detailed Implementation
[0034] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the concept or scope of this application. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.
[0035] To facilitate understanding of the technical solutions of the embodiments of this application, the relevant technologies of the embodiments of this application are described below. The following relevant technologies are optional solutions and can be combined with the technical solutions of the embodiments of this application in any way, and all of them fall within the protection scope of the embodiments of this application.
[0036] The following terms will be used in the following text:
[0037] Multicast: A network communication method that allows a single sender to efficiently transmit data to a specific group of receivers. Unlike unicast and broadcast, multicast sends data only to devices that have joined a specific multicast group, saving bandwidth and computing resources.
[0038] Multicast replication refers to the process by which network devices (such as routers and switches) replicate and forward received multicast data packets to multiple downstream interfaces as needed during multicast transmission. This ensures that all members joining the multicast group can receive the data while avoiding unnecessary traffic flooding.
[0039] This application aims to provide a message transmission method, apparatus, and electronic device. Referring to the TCP (Transmission Control Protocol) three-way handshake, the message sending device pre-sends a multicast probe message to locate the target receiving host. The receiving host returns a specific signal to the message sending device. After receiving the return signal, the message sending device establishes a multicast transmission channel with the target receiving host, preventing multicast replication to other non-target receiving hosts and reducing the performance impact and link overhead caused by multicast replication. Considering that only receiving hosts configured to enable PIM-SM can recognize or detect multicast probe messages, the message sending device pre-sends a multicast probe message before multicast transmission. This allows the message sending device to find the first receiving host with multicast transmission needs in advance and establish a multicast transmission channel only with the first receiving host, thereby preventing multicast replication to other receiving hosts that do not need multicast transmission, reducing the performance impact and link overhead caused by multicast replication, and improving the stability of the network system.
[0040] The message transmission method provided in this application embodiment can be applied to message transmission network scenarios. Figure 1 This application provides a schematic diagram of a message transmission network scenario, as illustrated in the embodiments thereof. Figure 1 As shown, the message transmission network scenario includes message sending devices and multiple receiving hosts. Optionally, the message sending device includes a multicast source and a router, and the router can be configured with multiple contexts (such as virtual firewalls). Figure 1 (Not shown), a Context can isolate multiple logical networks on the same router. Each Context has its own independent routing table, policies, and forwarding rules. Each Context can correspond to one or more receiving hosts. In a Context that supports multicast, the multicast routing protocol needs to be managed independently. The multicast source is used to send multicast data to the router, and the router performs multicast replication and forwarding based on the Context to which the receiving host belongs.
[0041] It should be noted that the application scenarios or application examples provided in the embodiments of this application are for ease of understanding, and the embodiments of this application do not specifically limit the application of the technical solutions.
[0042] The technical solution of this application and how it solves the aforementioned technical problems are described in detail below with specific embodiments. The listed specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described in detail below with reference to the accompanying drawings.
[0043] Figure 2 A flowchart of the message transmission method provided in an embodiment of this application is shown, such as... Figure 2 As shown, this method can be applied to Figure 1 The message sending device shown includes steps S201, S202 and S203.
[0044] Step S201: Send multicast probe messages to multiple receiving hosts.
[0045] Optionally, the multicast probe message can be an MR (Multicast Router) signal, which is sent by the router in the message sending device to multiple receiving hosts.
[0046] Multiple receiving hosts are connected to the message sending device. The message sending device can send multicast probe messages to each receiving host. Multicast probe messages will only be recognized or detected by receiving hosts configured with PIM-SM enabled if the message sending device is configured to enable multicast routing protocols and the receiving hosts are configured to enable PIM-SM (Protocol Independent Multicast-Sparse Mode). Receiving hosts not configured with PIM-SM enabled will not be able to recognize or detect multicast probe messages.
[0047] Step S202: Receive the multicast feedback message sent by the first receiving host. The multicast feedback message includes a multicast probe message and a feedback identifier.
[0048] The first receiving host is the receiving host among multiple receiving hosts that is configured to enable PIM-SM, and the message sending device is configured to enable multicast routing protocols. Optionally, the multicast routing protocol includes global multicast routing protocols and IGMP (Internet Group Management Protocol).
[0049] After receiving a multicast probe message, the first receiving host can perform specific processing on the multicast probe message to obtain a multicast feedback message. Optionally, the first receiving host can add a preset specific identifier to the multicast probe message to obtain the multicast feedback message. The form and length of the specific identifier are not limited, and include, but are not limited to, the following: numbers, symbols, identification codes, etc. of arbitrary length.
[0050] Step S203: Establish a multicast transmission channel with the first receiving host and perform multicast transmission.
[0051] In this embodiment, before executing step S201, the message sending device and the receiving host requiring multicast transmission can be pre-configured. An exemplary configuration method is as follows: enabling the multicast routing protocol on the message sending device to enable multicast transmission based on the multicast routing protocol; and enabling IGMP on the first interface, which is the interface on the message sending device connected to the first receiving host. Furthermore, PIM-SM on the first receiving host also needs to be enabled.
[0052] Both the multicast routing protocol and PIM-SM can be configured via command-line enable. Optionally, the global multicast routing protocol can be enabled via command line in the system view, and IGMP and PIM-SM can be enabled via command line in the interface view.
[0053] Specific examples are as follows:
[0054] #
[0055] multicast routing
[0056] # This command is used to enable the global multicast routing protocol.
[0057] #
[0058] interface Ten-GigabitEthernet0 / 1 / 4
[0059] The `pim sm#` command is used to enable PIM-SM on the interface.
[0060] The `igmp enable#` command is used to enable IGMP on an interface.
[0061] #
[0062] By establishing a multicast transmission channel between the message sending device and the first receiving host, the message sending device can send multicast data only to the first receiving host and not to other receiving hosts.
[0063] In some embodiments, when performing step S203, the feedback identifier in the multicast feedback message can be identified first to determine whether the feedback identifier is a preset specific identifier. If the feedback identifier is determined to be a preset specific identifier, a multicast acknowledgment message is generated and then sent to the first receiving host, so that the message sending device and the first receiving host establish a multicast transmission channel based on the multicast acknowledgment message and perform multicast transmission.
[0064] In some embodiments, after a multicast transmission is performed between the message sending device and the first receiving host, the message sending device may receive a first signal sent by the first receiving host, which indicates that the multicast transmission between the first receiving host and the message sending device is complete. Then, in response to the first signal, the multicast transmission channel with the first receiving host is disconnected.
[0065] When the message sending device receives the first signal sent by the first receiving host, it indicates that the first receiving host has completed the reception of multicast data. At this time, the multicast transmission channel between the message sending device and the first receiving host can be disconnected to prevent the message sending device from continuing to transmit multicast data to the first receiving host when the first receiving host no longer has a need for multicast transmission.
[0066] According to the technical solution of this application embodiment, a message sending device sends multicast probe messages to multiple receiving hosts and receives multicast feedback messages sent by a first receiving host. The multicast feedback message includes a multicast probe message and a feedback identifier. The first receiving host is a receiving host among the multiple receiving hosts that is configured to enable PIM-SM. Then, a multicast transmission channel is established between the message sending device and the first receiving host for multicast transmission. Since the message sending device sends multicast probe messages in advance, and only receiving hosts configured to enable PIM-SM can receive the multicast probe messages, the message sending device can find the first receiving host with multicast transmission needs in advance and establish a multicast transmission channel only with the first receiving host. This avoids multicast replication to other receiving hosts that do not need multicast transmission, reduces the performance impact and link overhead caused by multicast replication, and improves the stability of the network system.
[0067] Figure 3 A flowchart of the message transmission method provided in an embodiment of this application is shown, such as... Figure 3 As shown, the method can be applied to a first receiving host, which is configured to enable PIM-SM, and may specifically include the following steps S301, S302 and S303.
[0068] Step S301: Receive the multicast probe message sent by the message sending device.
[0069] Optionally, the multicast probe message can be an MR signal, which is sent by the router in the message sending device to multiple receiving hosts.
[0070] When the message sending device is configured to enable multicast routing protocols, the receiving host will only recognize or detect multicast probe messages if it is configured to enable PIM-SM.
[0071] Step S302: Add a feedback identifier to the multicast probe message to obtain a multicast feedback message, and send the multicast feedback message to the message sending device.
[0072] The feedback identifier is a pre-defined specific identifier. The form and length of the specific identifier are not limited, and include, but are not limited to, the following: numbers, symbols, identification codes, etc. of any length.
[0073] Optionally, the first receiving host sends the multicast feedback message to the message sending device in unicast form.
[0074] Step S303: In response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established between the message sending device and the multicast transmission is performed.
[0075] In this embodiment, before executing step S301, the message sending device and the first receiving host are pre-configured. An exemplary configuration method is as follows: the multicast routing protocol of the message sending device is enabled, allowing the message sending device to perform multicast transmission based on the multicast routing protocol; and IGMP of the first interface is enabled, which is the interface on the message sending device connected to the first receiving host. Furthermore, PIM-SM of the first receiving host also needs to be enabled.
[0076] In some embodiments, when performing step S303, a multicast acknowledgment message sent by the message sending device can be received first. The multicast acknowledgment message is generated by the message sending device when it determines that the feedback identifier is a preset specific identifier. Then, based on the multicast acknowledgment message, a multicast transmission channel is established between the message sending device and the multicast transmission is performed.
[0077] In some embodiments, after a multicast transmission is performed between the first receiving host and the message sending device, a first signal is sent to the message sending device to cause the message sending device to disconnect the multicast transmission channel with the first receiving host. The first signal indicates that the multicast transmission between the first receiving host and the message sending device has been completed.
[0078] According to the technical solution of this application embodiment, a first receiving host configured to enable PIM-SM receives a multicast probe message sent by a message sending device, adds a feedback identifier to the multicast probe message to obtain a multicast feedback message, and sends the multicast feedback message to the message sending device. Then, in response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established between the receiving host and the message sending device, and multicast transmission is performed. Because the message sending device sends the multicast probe message in advance, and only receiving hosts configured to enable PIM-SM can receive the multicast probe message, the message sending device can find the first receiving host with multicast transmission needs in advance and establish a multicast transmission channel only with the first receiving host. This avoids multicast replication to other receiving hosts that do not need multicast transmission, reduces the performance impact and link overhead caused by multicast replication, and improves the stability of the network system.
[0079] Figure 4 A flowchart of the message transmission method provided in an embodiment of this application is shown, such as... Figure 4 As shown, the message transmission method can be applied to Figure 1 The multicast network scenario shown includes the following steps S401 to S408:
[0080] Step S401: Enable the global multicast routing protocol of the message sending device, enable IGMP of the first interface, and enable PIM-SM of the first receiving host.
[0081] The first interface is the interface on the message sending device that connects to the first receiving host. Optionally, the first interface is an interface on the router that connects to the first receiving host.
[0082] In step S402, the message sending device sends multicast probe messages to multiple receiving hosts connected to it.
[0083] Multicast probe messages can be MR signals, which can be sent by the router in the sending device to multiple receiving hosts. Multicast probe messages can be recognized or detected by receiving hosts that have multicast routing protocols enabled and PIM-SM enabled on their interfaces. For other receiving hosts that have not enabled multicast routing protocols and whose interfaces have not enabled PIM-SM, multicast probe messages cannot be recognized or detected.
[0084] In step S403, the first receiving host identifies the multicast probe message, adds a feedback identifier to the multicast probe message to obtain the multicast feedback message, and sends the multicast feedback message to the message sending device.
[0085] The multicast feedback message includes a multicast probe message and a feedback identifier. The feedback identifier is a pre-defined, specific identifier; its form and length are unrestricted, and include, but are not limited to, numbers, symbols, and identification codes of arbitrary length. The multicast feedback message can only be recognized by the sending device and will not interfere with other devices on the link.
[0086] Optionally, the first receiving host sends the multicast feedback message to the message sending device in unicast form to avoid the situation where broadcast consumes resources.
[0087] In step S404, the message sending device receives the multicast feedback message, identifies the feedback identifier in the multicast feedback message, and generates a multicast acknowledgment message if the feedback identifier is a preset specific identifier.
[0088] In step S405, the message sending device sends a multicast acknowledgment message to the first receiving host.
[0089] The multicast acknowledgment message is essentially a confirmation message acknowledging the establishment of a multicast transmission channel between the first receiving host and the message sending device. After receiving the multicast acknowledgment message, the first receiving host can establish a multicast transmission channel with the message sending device and transmit multicast messages. At this time, the first receiving host will not perform multicast replication on other contexts outside its own context, thereby reducing the impact on device performance.
[0090] Step S406: A multicast transmission channel is established between the message sending device and the first receiving host, and multicast transmission is performed.
[0091] In step S407, after the multicast transmission ends, the first receiving host sends a first signal to the message sending device. The first signal is used to indicate that the multicast transmission between the first receiving host and the message sending device is complete.
[0092] In step S408, after receiving the first signal, the message sending device disconnects the multicast transmission channel with the first receiving host.
[0093] According to the technical solution of this application embodiment, a message sending device sends multicast probe messages to multiple receiving hosts and receives multicast feedback messages sent by a first receiving host. The multicast feedback message includes a multicast probe message and a feedback identifier. The first receiving host is a receiving host among the multiple receiving hosts that is configured to enable PIM-SM. Then, a multicast transmission channel is established between the message sending device and the first receiving host for multicast transmission. Since the message sending device sends multicast probe messages in advance, and only receiving hosts configured to enable PIM-SM can receive the multicast probe messages, the message sending device can find the first receiving host with multicast transmission needs in advance and establish a multicast transmission channel only with the first receiving host. This avoids multicast replication to other receiving hosts that do not need multicast transmission, reduces the performance impact and link overhead caused by multicast replication, and improves the stability of the network system.
[0094] Corresponding to the application scenarios and methods provided in the embodiments of this application, the embodiments of this application also provide a message transmission device.
[0095] Figure 5 A block diagram of a message transmission apparatus provided in an embodiment of this application is shown, such as Figure 5 As shown, the message transmission device is applied to the message sending equipment and includes:
[0096] Sending module 51 is used to send multicast probe messages to multiple receiving hosts;
[0097] The first receiving module 52 is used to receive a multicast feedback message sent by the first receiving host; the multicast feedback message includes the multicast probe message and a feedback identifier; the first receiving host is a receiving host among the plurality of receiving hosts that is configured to enable PIM-SM, and the router connected to the message sending device is configured to enable the multicast routing protocol.
[0098] The first transmission module 53 is used to establish a multicast transmission channel with the first receiving host and perform multicast transmission.
[0099] In some embodiments, when the first transmission module 53 establishes a multicast transmission channel with the first receiving host and performs multicast transmission, it performs the following steps:
[0100] Identify the feedback identifier in the multicast feedback message;
[0101] If the feedback identifier is determined to be a preset specific identifier, a multicast acknowledgment message is generated;
[0102] The multicast acknowledgment message is sent to the first receiving host, so that the message sending device and the first receiving host establish a multicast transmission channel based on the multicast acknowledgment message and perform multicast transmission.
[0103] In some embodiments, the apparatus further includes an enabling module, the enabling module being configured to:
[0104] Before sending multicast probe messages to multiple receiving hosts, the multicast routing protocol of the message sending device is enabled so that the message sending device performs multicast transmission based on the multicast routing protocol;
[0105] Enable IGMP on the first interface; the first interface is the interface on the message sending device that is connected to the first receiving host.
[0106] In some embodiments, the apparatus further includes:
[0107] The third receiving module is used to receive a first signal sent by the first receiving host after establishing a multicast transmission channel with the first receiving host and performing multicast transmission; the first signal is used to indicate that the multicast transmission between the first receiving host and the message sending device is completed.
[0108] The first disconnect module is used to disconnect the multicast transmission channel with the first receiving host in response to the first signal.
[0109] According to the apparatus of this application embodiment, a message sending device sends multicast probe messages to multiple receiving hosts and receives multicast feedback messages sent by a first receiving host. The multicast feedback message includes a multicast probe message and a feedback identifier. The first receiving host is a receiving host among the multiple receiving hosts that is configured to enable PIM-SM. Then, a multicast transmission channel is established between the device and the first receiving host, and multicast transmission is performed. Because the message sending device sends multicast probe messages in advance, and only receiving hosts configured to enable PIM-SM can receive the multicast probe messages, the message sending device can find the first receiving host with multicast transmission needs in advance and establish a multicast transmission channel only with the first receiving host. This avoids multicast replication to other receiving hosts that do not need multicast transmission, reduces the performance impact and link overhead caused by multicast replication, and improves the stability of the network system.
[0110] The functions of each module in each device in the embodiments of this application can be found in the corresponding description in the above method, and they have corresponding beneficial effects, which will not be repeated here.
[0111] Corresponding to the application scenarios and methods provided in the embodiments of this application, the embodiments of this application also provide a message transmission device.
[0112] Figure 6 A block diagram of a message transmission apparatus provided in an embodiment of this application is shown, such as Figure 6As shown, the message transmission device is applied to a first receiving host, which is configured to enable PIM-SM, including:
[0113] The second receiving module 61 is used to receive multicast probe messages sent by the message sending device;
[0114] Processing module 62 is used to add a feedback identifier to the multicast probe message, obtain a multicast feedback message, and send the multicast feedback message to the message sending device;
[0115] The second transmission module 63 is used to establish a multicast transmission channel with the message sending device and perform multicast transmission in response to the message sending device receiving the multicast feedback message.
[0116] In some embodiments, when the second transmission module 63 establishes a multicast transmission channel with the message sending device and performs multicast transmission, it performs the following steps:
[0117] Receive a multicast acknowledgment message sent by the message sending device; the multicast acknowledgment message is generated by the message sending device when it determines that the feedback identifier is a preset specific identifier;
[0118] Based on the multicast acknowledgment message, a multicast transmission channel is established between the multicast acknowledgment message and the message sending device, and multicast transmission is performed.
[0119] In some embodiments, the apparatus further includes:
[0120] The second sending module is used to send a first signal to the message sending device after establishing a multicast transmission channel and performing multicast transmission, so that the message sending device disconnects the multicast transmission channel with the first receiving host; the first signal is used to indicate that the multicast transmission between the first receiving host and the message sending device is completed.
[0121] In some embodiments, when the processing module 62 sends the multicast feedback message to the message sending device, it performs the following steps:
[0122] The multicast feedback message is sent to the message sending device in unicast form.
[0123] According to the apparatus of this application embodiment, a first receiving host configured to enable PIM-SM receives a multicast probe message sent by a message sending device, adds a feedback identifier to the multicast probe message to obtain a multicast feedback message, and sends the multicast feedback message to the message sending device. Then, in response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established between the receiving host and the message sending device, and multicast transmission is performed. Because the message sending device sends the multicast probe message in advance, and only receiving hosts configured to enable PIM-SM can receive the multicast probe message, the message sending device can find the first receiving host with multicast transmission needs in advance and establish a multicast transmission channel only with the first receiving host. This avoids multicast replication to other receiving hosts that do not need multicast transmission, reduces the performance impact and link overhead caused by multicast replication, and improves the stability of the network system.
[0124] The functions of each module in each device in the embodiments of this application can be found in the corresponding description in the above method, and they have corresponding beneficial effects, which will not be repeated here.
[0125] Figure 7 This is a block diagram for implementing the electronic device provided in the embodiments of this application. Figure 7 As shown, the electronic device includes a memory 701 and a processor 702. The memory 701 stores a computer program that can run on the processor 702. When the processor 702 executes the computer program, it implements the method described in the above embodiments. The number of memories 701 and processors 702 can be one or more. In a specific implementation, the electronic device may also include a communication interface 703 for communicating with external devices and performing data exchange and transmission.
[0126] In practical implementation, if the memory 701, processor 702, and communication interface 703 are implemented independently, they can be interconnected via a bus to communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0127] Optionally, in a specific implementation, if the memory 701, processor 702, and communication interface 703 are integrated on a single chip, the memory 701, processor 702, and communication interface 703 can communicate with each other through an internal interface.
[0128] This application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method provided in this application.
[0129] This application provides a computer program product, including a computer program that, when executed by a processor, implements the method provided in this application.
[0130] This application also provides a chip including a processor for calling and executing instructions stored in a memory, causing a communication device with the chip installed to perform the method provided in this application.
[0131] This application also provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, output interface, processor, and memory are connected through an internal connection path. The processor is used to execute code in the memory. When the code is executed, the processor is used to execute the method provided in the application embodiment.
[0132] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting Advanced Reduced Instruction Set Machines (ARM) architecture.
[0133] Further, optionally, the aforementioned memory may include read-only memory and random access memory. The memory may be volatile memory or non-volatile memory, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. By way of example, but not limitation, many forms of RAM are available. Examples include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), and Direct Rambus RAM (DR RAM).
[0134] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.
[0135] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0136] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "a plurality of" means two or more, unless otherwise explicitly specified.
[0137] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process. Furthermore, the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functionality involved.
[0138] The logic and / or steps described in the flowchart or otherwise herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus or device (such as a computer-based system, a processor-included system or other system that can fetch and execute instructions from, an instruction execution system, apparatus or device).
[0139] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. All or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware, the program being stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiments.
[0140] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. This storage medium can be a read-only memory, a disk, or an optical disk, etc.
[0141] The above description is merely an exemplary embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope described in this application, and these should all be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A message transmission method, characterized in that, Applied to a message sending device configured to enable a multicast routing protocol, the method includes: Send multicast probe messages to multiple receiving hosts; Receive a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast probe message and a feedback identifier; the first receiving host is a receiving host among the plurality of receiving hosts that is configured to enable Protocol Independent Multicast-Sparse Mode (PIM-SM); Establish a multicast transmission channel with the first receiving host and perform multicast transmission; The step of establishing a multicast transmission channel with the first receiving host and performing multicast transmission includes: identifying the feedback identifier in the multicast feedback message; generating a multicast acknowledgment message when the feedback identifier is determined to be a preset specific identifier; and sending the multicast acknowledgment message to the first receiving host, so that the message sending device and the first receiving host establish a multicast transmission channel based on the multicast acknowledgment message and perform multicast transmission.
2. The method according to claim 1, characterized in that, Before sending multicast probe messages to multiple receiving hosts, the method further includes: Enable the multicast routing protocol of the message sending device so that the message sending device performs multicast transmission based on the multicast routing protocol; Enable Internet Group Management Protocol (IGMP) on the first interface; the first interface is the interface on the message sending device that is connected to the first receiving host.
3. The method according to claim 1, characterized in that, After establishing a multicast transmission channel with the first receiving host and performing multicast transmission, the method further includes: The system receives a first signal sent by the first receiving host; the first signal indicates that the multicast transmission between the first receiving host and the message sending device has been completed. In response to the first signal, the multicast transmission channel with the first receiving host is disconnected.
4. A message transmission method, characterized in that, Applied to a first receiving host, the first receiving host being configured to enable PIM-SM, the method includes: Receive multicast probe messages sent by the message sending device; A feedback identifier is added to the multicast probe message to obtain a multicast feedback message, and the multicast feedback message is sent to the message sending device. In response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established between the message sending device and the multicast transmission is performed; The step of establishing a multicast transmission channel with the message sending device and performing multicast transmission includes: receiving a multicast acknowledgment message sent by the message sending device; the multicast acknowledgment message is generated by the message sending device when it determines that the feedback identifier is a preset specific identifier; and establishing a multicast transmission channel with the message sending device and performing multicast transmission based on the multicast acknowledgment message.
5. The method according to claim 4, characterized in that, After establishing a multicast transmission channel with the message sending device and performing multicast transmission, the method further includes: A first signal is sent to the message sending device to cause the message sending device to disconnect the multicast transmission channel with the first receiving host; the first signal is used to indicate that the multicast transmission between the first receiving host and the message sending device has been completed.
6. The method according to claim 4, characterized in that, Sending the multicast feedback message to the message sending device includes: The multicast feedback message is sent to the message sending device in unicast form.
7. A message transmission device, characterized in that, An apparatus for use in a message sending device configured to enable a multicast routing protocol, the apparatus comprising: The sending module is used to send multicast probe messages to multiple receiving hosts; The first receiving module is used to receive a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast probe message and a feedback identifier; the first receiving host is a receiving host among the plurality of receiving hosts that is configured to enable PIM-SM; The first transmission module is used to establish a multicast transmission channel with the first receiving host and perform multicast transmission. The first transmission module is further configured to: identify the feedback identifier in the multicast feedback message; generate a multicast acknowledgment message when the feedback identifier is determined to be a preset specific identifier; and send the multicast acknowledgment message to the first receiving host, so that the message sending device and the first receiving host establish a multicast transmission channel based on the multicast acknowledgment message and perform multicast transmission.
8. A message transmission device, characterized in that, Applied to a first receiving host, the first receiving host being configured to enable PIM-SM, the device includes: The second receiving module is used to receive multicast probe messages sent by the message sending device; The processing module is used to add a feedback identifier to the multicast probe message, obtain a multicast feedback message, and send the multicast feedback message to the message sending device; The second transmission module is used to establish a multicast transmission channel with the message sending device and perform multicast transmission in response to the message sending device receiving the multicast feedback message; The second transmission module is further configured to: receive a multicast acknowledgment message sent by the message sending device; the multicast acknowledgment message is generated by the message sending device when it determines that the feedback identifier is a preset specific identifier; and establish a multicast transmission channel with the message sending device based on the multicast acknowledgment message and perform multicast transmission.
9. An electronic device, characterized in that, It includes a memory, a processor, and a computer program stored in the memory, wherein the processor, when executing the computer program, implements the method of any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method of any one of claims 1 to 6.
11. A computer program product, characterized in that, It includes a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Multicast message processing method, device and system and vehicle
CN117978735A
