Message transmission method and device and electronic equipment
By establishing a multicast transmission channel between the message sending device and the receiving host configured for PIM-SM, the network instability problem caused by multicast replication is solved, achieving more efficient multicast transmission and network stability.
Patent Information
- Application Number
- CN202510933352.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-07
- Publication Date
- 2025-09-12
AI Technical Summary
In multi-context scenarios, multicast replication leads to unstable multicast forwarding and packet loss performance. The existing rate-limiting method has high uncertainty, affecting the stability of network devices.
The sending device sends multicast detection packets to receiving hosts, receives feedback packets, and establishes a multicast transmission channel. Multicast transmission is performed only with receiving hosts configured with PIM-SM, preventing multicast messages from being replicated to unwanted receiving hosts.
This reduces the performance impact and link overhead caused by multicast replication and improves the stability of the network system.
Smart Images

Figure CN120639679A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a message transmission method, device and electronic device. Background Art
[0002] As a communication method alongside unicast and broadcast, multicast technology effectively solves the problem of single-point transmission and multi-point reception, enabling efficient point-to-multipoint data transmission within the network while saving significant bandwidth and reducing network load. Multicast technology facilitates the provision of new value-added services, including online live streaming, online television, distance education, telemedicine, online radio, real-time video conferencing, and other information services that require high bandwidth and real-time data exchange. However, in multi-context scenarios (such as virtual firewalls), multicast replication often occurs, significantly impacting multicast forwarding and packet loss performance, hindering stable device output.
[0003] Related technologies use multicast rate limiting to maintain multicast performance. However, this approach faces uncertainties, such as how to set a reasonable rate limit and whether the actual scenario allows for such a rate limit. Therefore, a solution is needed to improve multicast performance and network stability. Summary of the Invention
[0004] The embodiments of the present application provide a message transmission method, device, and electronic device to alleviate or solve one or more technical problems existing in the prior art.
[0005] In a first aspect, an embodiment of the present application provides a message transmission method, which is 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 detection messages to multiple receiving hosts;
[0007] Receiving a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast detection message and a feedback identifier; the first receiving host is a receiving host configured to enable protocol independent multicast-sparse mode PIM-SM among the multiple receiving hosts;
[0008] A multicast transmission channel is established with the first receiving host and multicast transmission is performed.
[0009] In a second aspect, an embodiment of the present application provides a message transmission method, applied to a first receiving host, where the first receiving host is configured to enable PIM-SM, the method comprising:
[0010] Receive multicast detection messages sent by the message sending device;
[0011] adding a feedback identifier to the multicast detection message to obtain a multicast feedback message, and sending the multicast feedback message to the message sending device;
[0012] In response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established with the message sending device and multicast transmission is performed.
[0013] In a third aspect, an embodiment of the present application provides a message transmission apparatus, which is applied to a message sending device, wherein the message sending device is configured to enable a multicast routing protocol, and the apparatus includes:
[0014] A sending module is used to send multicast detection messages to multiple receiving hosts;
[0015] A first receiving module is configured to receive a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast detection message and a feedback identifier; the first receiving host is a receiving host configured to enable PIM-SM among the multiple receiving hosts;
[0016] The first transmission module is used to establish a multicast transmission channel with the first receiving host and perform multicast transmission.
[0017] In a fourth aspect, an embodiment of the present application provides a message transmission device, applied to a first receiving host, where the first receiving host is configured to enable PIM-SM, the device comprising:
[0018] A second receiving module is used to receive a multicast detection message sent by a message sending device;
[0019] a processing module, configured to add a feedback identifier to the multicast detection message, obtain a multicast feedback message, and send the multicast feedback message to the message sending device;
[0020] The second transmission module is configured 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] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory, wherein the processor implements any method of the embodiment of the present application when executing the computer program.
[0022] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method of any one of the embodiments of the present application is implemented.
[0023] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which implements any method of the embodiments of the present application when executed by a processor.
[0024] According to the technical solution of the embodiment of the present application, a multicast detection message is sent to multiple receiving hosts through a message sending device, and a multicast feedback message sent by the first receiving host is received. The multicast feedback message includes a multicast detection message and a feedback identifier. The first receiving host is a receiving host configured to enable PIM-SM among the multiple receiving hosts. Then, a multicast transmission channel is established with the first receiving host and multicast transmission is performed. Since the message sending device sends the multicast detection message in advance, and only the receiving host configured to enable PIM-SM can receive the multicast detection message, the message sending device can find the first receiving host with multicast transmission requirements in advance, and only establish a multicast transmission channel with the first receiving host, thereby avoiding 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.
[0025] The above description is only an overview of the technical solution of this application. In order to more clearly understand the technical means of this application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of this application more obvious and easy to understand, the specific implementation methods of this application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments according to the present application and should not be regarded as limiting the scope of the present application.
[0027] Figure 1 A multicast network scenario diagram provided by an embodiment of the present application is shown;
[0028] Figure 2 A flowchart of a message transmission method provided in an embodiment of the present application is shown;
[0029] Figure 3 A flowchart of a message transmission method provided by another embodiment of the present application is shown;
[0030] Figure 4 A flowchart of a message transmission method provided in another embodiment of the present application is shown;
[0031] Figure 5 A block diagram of a message transmission device provided in an embodiment of the present application is shown;
[0032] Figure 6 A block diagram of a message transmission device provided in another embodiment of the present application is shown;
[0033] Figure 7 A block diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0034] Hereinafter, only certain exemplary embodiments are briefly described. As will be appreciated by those skilled in the art, the described embodiments may be modified in various ways without departing from the spirit or scope of the present application. Therefore, the drawings and description are to be regarded as illustrative in nature and not restrictive.
[0035] To facilitate understanding of the technical solutions of the embodiments of the present application, the following describes the related technologies of the embodiments of the present application. The following related technologies can be combined with the technical solutions of the embodiments of the present application as optional solutions, and all of them fall within the scope of protection of the embodiments of the present 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, using a one-to-many or many-to-many approach, saving bandwidth and computing resources.
[0038] Multicast replication: This refers to the process in which network devices (such as routers and switches) replicate and forward received multicast packets to multiple downstream interfaces as needed during multicast transmission to ensure that all members of the multicast group can receive the data while avoiding unnecessary traffic flooding.
[0039] The embodiments of the present application are intended to provide a message transmission method, apparatus, and electronic device. With reference to the TCP (Transmission Control Protocol) three-way handshake, a message sending device is used to send a multicast detection message in advance to find a target receiving host. The receiving host returns a specific signal to the message sending device. After the message sending device receives the return signal, a multicast transmission channel is established between the two, thereby avoiding 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 identify or detect multicast detection messages, before performing multicast transmission, the message sending device sends a multicast detection message in advance, so that the message sending device can find the first receiving host with multicast transmission requirements in advance and establish a multicast transmission channel only with the first receiving host, thereby avoiding 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 the embodiment of the present application can be applied in message transmission network scenarios. Figure 1 The diagram of the message transmission network scenario provided by the embodiment of the present application is shown as follows: Figure 1 As shown, the message transmission network scenario includes a message sending device and multiple receiving hosts. Optionally, the message sending device includes a multicast source and a router, and multiple contexts (such as virtual firewalls, Figure 1 (Not shown) Contexts can isolate multiple logical networks on the same router, each with its own routing table, policy, and forwarding rules. Each context can correspond to one or more receiving hosts. In contexts that support multicast, independent multicast routing protocols must be managed. A multicast source sends multicast data to a router, which then replicates and forwards the data based on the context to which the receiving host belongs.
[0041] It should be noted that the above application scenarios or application examples provided in the embodiments of the present application are for ease of understanding, and the embodiments of the present application do not specifically limit the application of the technical solutions.
[0042] The following describes in detail the technical solution of this application and how it solves the aforementioned technical problems using specific embodiments. The several specific embodiments listed can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. The following describes the embodiments of this application in detail with reference to the accompanying drawings.
[0043] Figure 2 A flow chart of a message transmission method provided by an embodiment of the present application is shown as follows: Figure 2 As shown, this method can be applied to Figure 1 The message sending device shown includes step S201, step S202 and step S203.
[0044] Step S201: Send a multicast detection message to multiple receiving hosts.
[0045] Optionally, the multicast detection message may be a MR (Multicast Router) signal, and a router in the message sending device sends the MR signal to multiple receiving hosts.
[0046] Multiple receiving hosts are connected to a message sending device. The message sending device can send multicast probe messages to each receiving host. Only when the message sending device is configured with a multicast routing protocol and the receiving hosts are configured with PIM-SM (Protocol Independent Multicast-Sparse Mode) enabled, can the PIM-SM-enabled receiving hosts recognize or detect multicast probe messages. Receiving hosts that are not configured with PIM-SM cannot recognize or detect multicast probe messages.
[0047] Step S202: Receive a multicast feedback message sent by a first receiving host, where the multicast feedback message includes a multicast detection message and a feedback identifier.
[0048] The first receiving host is a receiving host configured to enable PIM-SM among the multiple receiving hosts, and the message sending device is configured to enable a multicast routing protocol. Optionally, the multicast routing protocol includes a global multicast routing protocol and IGMP (Internet Group Management Protocol).
[0049] After receiving the multicast detection message, the first receiving host can perform specific processing on the multicast detection message to generate a multicast feedback message. Optionally, the first receiving host can add a preset specific identifier to the multicast detection message to generate the multicast feedback message. The specific identifier can be in any format or length, including but not limited to numbers, symbols, and identification codes of any 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 preconfigured. An exemplary configuration method includes: enabling a multicast routing protocol on the message sending device so that the message sending device performs multicast transmission based on the multicast routing protocol; and enabling IGMP on a first interface on the message sending device connected to the first receiving host. Furthermore, PIM-SM must also be enabled on the first receiving host.
[0052] Both multicast routing protocols and PIM-SM can be enabled using command lines. Alternatively, enable the multicast routing protocol globally using command lines in system view, and enable IGMP and PIM-SM using command lines in interface view.
[0053] The following are some examples:
[0054] “#
[0055] multicast routing
[0056] #Command is used to enable global multicast routing protocol
[0057] #
[0058] interface Ten-GigabitEthernet0 / 1 / 4
[0059] The pim sm# command is used to enable PIM-SM on an 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 only sends the multicast data to the first receiving host, and does not send the multicast data to other receiving hosts.
[0063] In some embodiments, when executing step S203, a feedback identifier in the multicast feedback message may be first identified to determine whether the feedback identifier is a preset specific identifier. If the feedback identifier is determined to be the preset specific identifier, a multicast confirmation message is generated, and then the multicast confirmation 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 confirmation message and perform multicast transmission.
[0064] In some embodiments, after performing multicast transmission between a message sending device and a first receiving host, the message sending device may receive a first signal sent by the first receiving host, indicating that the multicast transmission between the first receiving host and the message sending device is complete. Subsequently, in response to the first signal, the message sending device disconnects the multicast transmission channel with the first receiving host.
[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 the multicast data. At this time, the multicast transmission channel between the message sending device and the first receiving host can be disconnected to avoid the message sending device continuing to transmit multicast data to the first receiving host when the first receiving host no longer has a multicast transmission demand.
[0066] According to the technical solution of the embodiment of the present application, a multicast detection message is sent to multiple receiving hosts through a message sending device, and a multicast feedback message sent by the first receiving host is received. The multicast feedback message includes a multicast detection message and a feedback identifier. The first receiving host is a receiving host configured to enable PIM-SM among the multiple receiving hosts. Then, a multicast transmission channel is established with the first receiving host and multicast transmission is performed. Since the message sending device sends the multicast detection message in advance, and only the receiving host configured to enable PIM-SM can receive the multicast detection message, the message sending device can find the first receiving host with multicast transmission requirements in advance, and only establish a multicast transmission channel with the first receiving host, thereby avoiding 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.
[0067] Figure 3 A flow chart of a message transmission method provided by an embodiment of the present application is shown as follows: Figure 3 As shown, the method can be applied to a first receiving host, which is configured to enable PIM-SM, and can specifically include the following steps S301, S302 and S303.
[0068] Step S301: Receive a multicast detection message sent by a message sending device.
[0069] Optionally, the multicast detection message may be an MR signal, and a router in the message sending device sends the MR signal to multiple receiving hosts.
[0070] When the packet sending device is configured to enable a multicast routing protocol, the receiving host can recognize or detect the multicast detection packet only when the receiving host is configured to enable PIM-SM.
[0071] Step S302: Add a feedback identifier to the multicast detection message to obtain a multicast feedback message, and send the multicast feedback message to the message sending device.
[0072] The feedback identifier is a preset specific identifier. The form and length of the specific identifier are not limited, including but not limited to the following: numbers of any length, symbols, identification codes, etc.
[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 with the message sending device and multicast transmission is performed.
[0075] In this embodiment, before executing step S301, the message sending device and the first receiving host are preconfigured. An exemplary configuration method includes: enabling a multicast routing protocol on the message sending device so that the message sending device performs multicast transmission based on the multicast routing protocol; and enabling IGMP on a first interface on the message sending device that is connected to the first receiving host. Furthermore, PIM-SM must also be enabled on the first receiving host.
[0076] In some embodiments, when executing step S303, a multicast confirmation message sent by the message sending device can be received first. The multicast confirmation 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 confirmation message, a multicast transmission channel is established between the message sending device and multicast transmission is performed.
[0077] In some embodiments, after 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 between the first receiving host and 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.
[0078] According to the technical solution of the embodiment of the present application, the first receiving host configured to enable PIM-SM receives a multicast detection message sent by a message sending device, adds a feedback identifier to the multicast detection message, obtains a multicast feedback message, and sends the multicast feedback message to the message sending device; thereafter, in response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established with the message sending device and multicast transmission is performed. Since the message sending device sends the multicast detection message in advance, and only the receiving host configured to enable PIM-SM can receive the multicast detection message, the message sending device can find the first receiving host with multicast transmission requirements in advance and establish a multicast transmission channel only with the first receiving host, thereby avoiding 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.
[0079] Figure 4 A flow chart of a message transmission method provided by an embodiment of the present application is shown as follows: Figure 4 As shown, the message transmission method can be applied to Figure 1 In the multicast network scenario shown, the following steps S401 to S408 are specifically included:
[0080] Step S401: Activate the global multicast routing protocol of the message sending device, activate IGMP of the first interface, and activate PIM-SM of the first receiving host.
[0081] The first interface is an interface on the message sending device connected to the first receiving host. Optionally, the first interface is an interface on a router connected to the first receiving host.
[0082] Step S402: The message sending device sends a multicast detection message to multiple receiving hosts connected to it.
[0083] The multicast probe message can be a MR signal, which can be sent by a router in the message sending device to multiple receiving hosts. Multicast probe messages can be recognized or detected by receiving hosts that have a multicast routing protocol enabled and PIM-SM enabled on their interfaces. Receiving hosts that do not have a multicast routing protocol enabled or PIM-SM enabled on their interfaces cannot recognize or detect multicast probe messages.
[0084] Step S403: The first receiving host identifies the multicast detection message, adds a feedback identifier to the multicast detection message, obtains a multicast feedback message, and sends the multicast feedback message to the message sending device.
[0085] The multicast feedback message includes a multicast detection message and a feedback identifier. The feedback identifier is a pre-defined identifier with unlimited form and length, including but not limited to numbers, symbols, and identification codes of any length. The multicast feedback message is only recognized by the sending device and does 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 broadcasting occupies resources.
[0087] Step S404: The message sending device receives the multicast feedback message, identifies the feedback identifier in the multicast feedback message, and generates a multicast confirmation message when determining that the feedback identifier is a preset specific identifier.
[0088] Step S405: The message sending device sends the multicast confirmation message to the first receiving host.
[0089] The multicast confirmation message essentially confirms the establishment of a multicast transmission channel between the first receiving host and the message sending device. After receiving the multicast confirmation message, the first receiving host can establish a multicast transmission channel with the message sending device and transmit multicast messages. At this point, the first receiving host will not cause multicast replication to contexts other than its own, thus minimizing 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] Step S407: After the multicast transmission is completed, 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 completed.
[0092] Step S408: After receiving the first signal, the message sending device disconnects the multicast transmission channel between the message sending device and the first receiving host.
[0093] According to the technical solution of the embodiment of the present application, a multicast detection message is sent to multiple receiving hosts through a message sending device, and a multicast feedback message sent by the first receiving host is received. The multicast feedback message includes a multicast detection message and a feedback identifier. The first receiving host is a receiving host configured to enable PIM-SM among the multiple receiving hosts. Then, a multicast transmission channel is established with the first receiving host and multicast transmission is performed. Since the message sending device sends the multicast detection message in advance, and only the receiving host configured to enable PIM-SM can receive the multicast detection message, the message sending device can find the first receiving host with multicast transmission requirements in advance, and only establish a multicast transmission channel with the first receiving host, thereby avoiding 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.
[0094] Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application also provides a message transmission device.
[0095] Figure 5 A block diagram of a message transmission device provided in an embodiment of the present application is shown. Figure 5 As shown, the message transmission device is applied to the message sending device, including:
[0096] The sending module 51 is used to send a multicast detection message to multiple receiving hosts;
[0097] The first receiving module 52 is configured to receive a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast detection message and a feedback identifier; the first receiving host is a receiving host configured to enable PIM-SM among the multiple receiving hosts, and the router connected to the message sending device is configured to enable the multicast routing protocol;
[0098] The first transmission module 53 is configured 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, the first transmission module 53 performs the following steps:
[0100] Identifying the feedback identifier in the multicast feedback message;
[0101] When it is determined that the feedback identifier is a preset specific identifier, generating a multicast confirmation message;
[0102] The multicast confirmation 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 confirmation message and perform multicast transmission.
[0103] In some embodiments, the apparatus further comprises an enabling module, wherein the enabling module is configured to:
[0104] Before sending the multicast detection message to the multiple receiving hosts, enabling the multicast routing protocol of the message sending device 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 connected to the first receiving host.
[0106] In some embodiments, the apparatus further comprises:
[0107] a third receiving module, configured 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 being used to indicate that the multicast transmission between the first receiving host and the message sending device is complete;
[0108] The first disconnection module is configured to disconnect the multicast transmission channel with the first receiving host in response to the first signal.
[0109] According to the apparatus of the embodiment of the present application, a multicast detection message is sent to multiple receiving hosts through a message sending device, and a multicast feedback message sent by the first receiving host is received. The multicast feedback message includes a multicast detection message and a feedback identifier. The first receiving host is a receiving host configured to enable PIM-SM among the multiple receiving hosts. Then, a multicast transmission channel is established with the first receiving host and multicast transmission is performed. Since the message sending device sends the multicast detection message in advance, and only the receiving host configured to enable PIM-SM can receive the multicast detection message, the message sending device can find the first receiving host with multicast transmission requirements in advance, and only establish a multicast transmission channel with the first receiving host, thereby avoiding 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.
[0110] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0111] Corresponding to the application scenario and method of the method provided in the embodiment of the present application, the embodiment of the present application also provides a message transmission device.
[0112] Figure 6 A block diagram of a message transmission device provided in an embodiment of the present application is shown. Figure 6As shown, the message transmission device is applied to a first receiving host, and the first receiving host is configured to enable PIM-SM, including:
[0113] The second receiving module 61 is used to receive the multicast detection message sent by the message sending device;
[0114] A processing module 62 is configured to add a feedback identifier to the multicast detection message, obtain a multicast feedback message, and send the multicast feedback message to the message sending device;
[0115] The second transmission module 63 is configured 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, the second transmission module 63 performs the following steps:
[0117] receiving a multicast confirmation message sent by the message sending device; the multicast confirmation message is generated by the message sending device when determining that the feedback identifier is a preset specific identifier;
[0118] Based on the multicast confirmation message, a multicast transmission channel is established with the message sending device and multicast transmission is performed.
[0119] In some embodiments, the apparatus further comprises:
[0120] The second sending module is used to send a first signal to the message sending device after establishing a multicast transmission channel with the message sending device and performing multicast transmission, so that the message sending device disconnects the multicast transmission channel between 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 sending the multicast feedback message to the message sending device, the processing module 62 performs the following steps:
[0122] The multicast feedback message is sent to the message sending device in a unicast form.
[0123] According to the apparatus of the embodiment of the present application, the first receiving host configured to enable PIM-SM receives a multicast detection message sent by a message sending device, adds a feedback identifier to the multicast detection message, obtains a multicast feedback message, and sends the multicast feedback message to the message sending device; thereafter, in response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established with the message sending device and multicast transmission is performed. Since the message sending device sends the multicast detection message in advance, and only the receiving host configured to enable PIM-SM can receive the multicast detection message, the message sending device can find the first receiving host with multicast transmission requirements in advance, and only establish a multicast transmission channel with the first receiving host, thereby avoiding 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.
[0124] The functions of each module in each device in the embodiments of the present application can be found in the corresponding description in the above method, and have corresponding beneficial effects, which will not be repeated here.
[0125] Figure 7 A block diagram of an electronic device for implementing the embodiments of the present 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 be executed on the processor 702. When the processor 702 executes the computer program, the method of the above embodiment is implemented. The number of memory 701 and processor 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 exchanging data.
[0126] In a specific implementation, if the memory 701, processor 702, and communication interface 703 are implemented independently, the memory 701, processor 702, and communication interface 703 can be connected to each other via a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, 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 , the processor 702 , and the communication interface 703 are integrated on a chip, the memory 701 , the processor 702 , and the communication interface 703 may communicate with each other through an internal interface.
[0128] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the method provided in the embodiment of the present application when the program is executed by a processor.
[0129] An embodiment of the present application provides a computer program product, including a computer program, which implements the method provided in the embodiment of the present application when executed by a processor.
[0130] An embodiment of the present application also provides a chip, which includes a processor for calling and executing instructions stored in the memory from the memory, so that a communication device equipped with the chip executes the method provided in the embodiment of the present application.
[0131] An embodiment of the present application also provides a chip, including: an input interface, an output interface, a processor and a memory. The input interface, the output interface, the processor and the memory are connected through an internal connection path. The processor is used to execute the code in the memory. When the code is executed, the processor is used to execute the method provided in the embodiment of the application.
[0132] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.
[0133] Furthermore, optionally, the above-mentioned memory may include a read-only memory and a random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memory. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM) and direct memory bus random access memory (DR RAM).
[0134] In the above embodiments, all or part of the embodiments may be implemented using software, hardware, firmware, or any combination thereof. When implemented using software, all or part of the embodiments may be implemented in the form of 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, the processes or functions according to the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may 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 reference terms "one embodiment," "some embodiments," "example," "specific example," or "some examples" mean that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. Moreover, the specific features, structures, materials, or characteristics described may be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification, as well as features of different embodiments or examples, unless they are mutually inconsistent.
[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 being referred to. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. Throughout the description of this application, "plurality" means two or more, unless otherwise specifically defined.
[0137] Any process or method described in the flowchart or otherwise described herein can be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a specific logical function or process. The scope of the preferred embodiments of the present application includes other implementations in which the functions may be performed in a different order than shown or discussed, including performing the functions substantially simultaneously or in reverse order depending on the functions involved.
[0138] The logic and / or steps described in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with such instruction execution systems, apparatuses or devices.
[0139] It should be understood that various parts of the present 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 a memory and executed by a suitable instruction execution system. All or part of the steps of the above embodiment method can be completed by instructing the relevant hardware through a program, which can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0140] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the aforementioned integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, or an optical disk, etc.
[0141] The above is merely an exemplary embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any person skilled in the art can easily conceive of various modifications or substitutions within the technical scope described in this application, and such modifications or substitutions should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.
Claims
1. A message transmission method, characterized in that: Applied to a message sending device, the message sending device being configured to enable a multicast routing protocol, the method comprising: Send multicast detection messages to multiple receiving hosts; Receiving a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast detection message and a feedback identifier; the first receiving host is a receiving host configured to enable protocol independent multicast-sparse mode PIM-SM among the multiple receiving hosts; A multicast transmission channel is established with the first receiving host and multicast transmission is performed.
2. The method according to claim 1, characterized in that The establishing a multicast transmission channel with the first receiving host and performing multicast transmission includes: Identifying the feedback identifier in the multicast feedback message; When it is determined that the feedback identifier is a preset specific identifier, generating a multicast confirmation message; The multicast confirmation 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 confirmation message and perform multicast transmission.
3. The method according to claim 1, characterized in that Before sending the multicast detection message to the multiple receiving hosts, the method further includes: Activate a multicast routing protocol of the message sending device, so that the message sending device performs multicast transmission based on the multicast routing protocol; Enable the Internet Group Management Protocol IGMP of the first interface; the first interface is the interface on the message sending device connected to the first receiving host.
4. The method according to claim 1, wherein After establishing a multicast transmission channel with the first receiving host and performing multicast transmission, the method further includes: receiving a first signal sent by the first receiving host, wherein the first signal is used to indicate that multicast transmission between the first receiving host and the message sending device is completed; In response to the first signal, the multicast transmission channel between the first receiving host is disconnected.
5. A message transmission method, characterized in that: Applied to a first receiving host, where the first receiving host is configured to enable PIM-SM, the method includes: Receive multicast detection messages sent by the message sending device; adding a feedback identifier to the multicast detection message to obtain a multicast feedback message, and sending the multicast feedback message to the message sending device; In response to the message sending device receiving the multicast feedback message, a multicast transmission channel is established with the message sending device and multicast transmission is performed.
6. The method according to claim 5, characterized in that The establishing of a multicast transmission channel with the message sending device and performing multicast transmission includes: receiving a multicast confirmation message sent by the message sending device; the multicast confirmation message is generated by the message sending device when determining that the feedback identifier is a preset specific identifier; Based on the multicast confirmation message, a multicast transmission channel is established with the message sending device and multicast transmission is performed.
7. The method according to claim 5, 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 disconnect the multicast transmission channel between the message sending device and 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.
8. The method according to claim 5, characterized in that The sending of the multicast feedback message to the message sending device includes: The multicast feedback message is sent to the message sending device in a unicast form.
9. A message transmission device, characterized in that: Applied to a message sending device, the message sending device is configured to enable a multicast routing protocol, the apparatus comprising: A sending module is used to send multicast detection messages to multiple receiving hosts; A first receiving module is configured to receive a multicast feedback message sent by a first receiving host; the multicast feedback message includes the multicast detection message and a feedback identifier; the first receiving host is a receiving host configured to enable PIM-SM among the multiple receiving hosts; The first transmission module is used to establish a multicast transmission channel with the first receiving host and perform multicast transmission.
10. A message transmission device, characterized in that: Applied to a first receiving host, where the first receiving host is configured to enable PIM-SM, the apparatus includes: A second receiving module is used to receive a multicast detection message sent by a message sending device; a processing module, configured to add a feedback identifier to the multicast detection message, obtain a multicast feedback message, and send the multicast feedback message to the message sending device; The second transmission module is configured 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.
11. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory, wherein the processor implements the method according to any one of claims 1 to 8 when executing the computer program.
12. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
13. A computer program product, characterized in that A computer program is included which, when executed by a processor, implements the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Internet group membership protocol network device and signal processing control method thereof in IP digital broadcasting system
CN101026623A
Selective retransmission of groupcast data
CN113424472A
Data sending and receiving method and device
CN115567953A
Multicast message processing method, device and system and vehicle
CN117978735A
Multicast distribution tree establishment and maintenance in a wireless multi-hop relay communication system
US20100046400A1