Message sending method, device, equipment, storage medium and message transmission system
By dividing terminal devices into primary and secondary devices, the target message is processed and forwarded by the primary device, which solves the message sending delay problem when service resources are limited and realizes fast message delivery.
Patent Information
- Application Number
- CN202211096213.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-08
- Publication Date
- 2025-11-07
- Estimated Expiration
- 2042-09-08
AI Technical Summary
With limited service resources, existing technologies cannot quickly send target messages to a large number of terminal devices, thus failing to meet the timeliness requirements for message delivery.
The server divides online terminal devices into primary terminal devices and secondary terminal devices. It sends the target message and the device information of the secondary terminal devices directly to the primary terminal devices, which then process and forward the message to the secondary terminal devices.
With limited service resources, it can quickly send target messages to various online terminal devices, meeting the timeliness requirements for message delivery.
Smart Images

Figure CN115842797B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of message sending, and in particular to a message sending method, device, equipment, storage medium and message transmission system. BACKGROUND
[0002] In some scenarios, a server needs to send a target message to a large number of terminal devices in a short time, so that the terminal devices process the target message. For example, in the field of network set-top boxes and broadband television networks, in the scenario of emergency message sending, a server needs to send an emergency message from an emergency broadcast message source to a plurality of network set-top boxes in a short time, so that the network set-top boxes display and broadcast the emergency message.
[0003] The current message sending method is that the server sends a target message to each terminal device connected to it. However, in some scenarios, service resources are usually limited, which leads to a long time for sending a target message to a large number of terminal devices by using the current message sending method, and cannot meet the timeliness requirement of message sending, that is, the current message sending method cannot quickly send a target message to a large number of terminal devices in the case of limited service resources. SUMMARY
[0004] Therefore, the present application provides a message sending method, device, equipment, storage medium and message transmission system to solve the problem that the current message sending method cannot quickly send a target message to a large number of terminal devices in the case of limited service resources, and the technical solution is as follows:
[0005] A message sending method applied to a server, the method comprising:
[0006] When a target message is received, terminal devices in an online terminal device list are divided into first-level terminal devices and second-level terminal devices;
[0007] The target message and device information corresponding to the second-level terminal devices are directly sent to the first-level terminal devices, so that the first-level terminal devices process the target message and forward the target message to the second-level terminal devices corresponding to the received device information.
[0008] Optionally, the terminal devices in the online terminal device list are divided into first-level terminal devices and second-level terminal devices, comprising:
[0009] determining a device selection ratio value based on the service bandwidth, the number of online terminal devices in the online terminal device list, the size of the target message, a direct response time between the server and the primary terminal device, a forwarding response time between the primary terminal device and the secondary terminal device, and a message transmission time between the primary terminal device and the secondary terminal device;
[0010] selecting a terminal device from the online terminal device list based on the device selection ratio value, the selected terminal device being the primary terminal device, and the unselected terminal devices in the online terminal device list being the secondary terminal devices.
[0011] Optionally, the determining of the device selection ratio value based on the service bandwidth, the number of online terminal devices in the online terminal device list, the size of the target message, the direct response time between the server and the primary terminal device, the forwarding response time between the primary terminal device and the secondary terminal device, and the message transmission time between the primary terminal device and the secondary terminal device comprises:
[0012] constructing a function with the device selection ratio as the independent variable and the total delivery time of the target message as the dependent variable based on the service bandwidth, the number of online terminal devices in the online terminal device list, the size of the target message, the direct response time between the server and the primary terminal device, the forwarding response time between the primary terminal device and the secondary terminal device, and the message transmission time between the primary terminal device and the secondary terminal device;
[0013] drawing a curve of the function and determining the value of the independent variable when the value of the dependent variable is the minimum value based on the curve of the function;
[0014] determining the device selection ratio value based on the value of the independent variable when the value of the dependent variable is the minimum value.
[0015] Optionally, the sending of the target message and the device information corresponding to the secondary terminal device to the primary terminal device comprises:
[0016] obtaining a first device information set and a second device information set, wherein the first device information set comprises device information corresponding to each primary terminal device respectively, and the second device information set comprises device information corresponding to each secondary terminal device respectively;
[0017] traversing the device information in the first device information set: for the currently traversed device information, obtaining device information to be assigned to the primary terminal device corresponding to the currently traversed device information from the second device information set; and sending the target message and the device information obtained from the second device information set to the primary terminal device corresponding to the currently traversed device information.
[0018] Optionally, the obtaining of the device information to be assigned to the primary terminal device corresponding to the currently traversed device information from the second device information set comprises:
[0019] If the number of the device information not yet assigned in the second device information set is greater than or equal to N, N device information not yet assigned in the second device information set is obtained, wherein N is determined based on the device selection ratio.
[0020] If the number of the device information not yet assigned in the second device information set is less than N, all the device information not yet assigned in the second device information set is obtained.
[0021] Optionally, the message sending method further comprises:
[0022] If there are still multiple device information not yet assigned in the second device information set after the traversal of the device information in the first device information set is completed, one device information not yet assigned is selected from the multiple device information not yet assigned as the target device information.
[0023] The target message and the non-target device information in the multiple device information not yet assigned are sent to the secondary terminal device corresponding to the target device information, so that the secondary terminal device corresponding to the target device information sends the target message to the secondary terminal device corresponding to the non-target device information.
[0024] Optionally, the message sending method further comprises:
[0025] If an online terminal device is added in the online terminal device list during the valid sending period of the target message, the added online terminal device is divided into a primary terminal device and a secondary terminal device, so that the target message is directly sent to the added primary terminal device and the target message is forwarded to the added secondary terminal device based on the primary terminal device.
[0026] Optionally, the message sending method further comprises:
[0027] Upon receiving a feedback message sent from a terminal device each time, the terminal device sending the feedback message is marked in the online terminal device list, and the feedback message is used to indicate that the target message has been delivered.
[0028] After reaching the ideal simple delivery time of the target message, the target message is re-sent to the terminal devices not marked in the online terminal list.
[0029] Optionally, the re-sending of the target message to the terminal devices not marked in the online terminal list comprises:
[0030] The target message is directly sent to the terminal devices not marked in the online terminal list.
[0031] A message sending method applied to a primary terminal device, the primary terminal device being obtained by the server classifying each online terminal device in an online terminal device list, the method comprising:
[0032] receiving a target message and device information from the server, wherein the terminal device corresponding to the received device information is a secondary terminal device, and the secondary terminal device is a non-primary terminal device in the online terminal device list;
[0033] processing the target message and forwarding the target message to the secondary terminal device corresponding to the received device information, so that the secondary terminal device processes the target message.
[0034] A message sending device applied to a server, the device comprising a message receiving module, a device selecting module and a message sending module;
[0035] The message receiving module is configured to receive a target message.
[0036] The device classifying module is configured to classify terminal devices in an online terminal device list into primary terminal devices and secondary terminal devices.
[0037] The message sending module is configured to directly send the target message and device information corresponding to the secondary terminal device to the primary terminal device, so that the primary terminal device processes the target message and forwards the target message to the secondary terminal device corresponding to the received device information.
[0038] A message sending device applied to a primary terminal device, the primary terminal device being obtained by the server classifying each online terminal device in an online terminal device list, the device comprising a message receiving module, a message processing module and a message forwarding module;
[0039] The message receiving module is configured to receive a target message and device information from the server, wherein the terminal device corresponding to the received device information is a secondary terminal device, and the secondary terminal device is a non-primary terminal device in the online terminal device list.
[0040] The message processing module is configured to process the target message.
[0041] The message forwarding module is configured to forward the target message to a secondary terminal device corresponding to the received device information, so that the secondary terminal device processes the target message.
[0042] A message sending device, comprising a memory and a processor;
[0043] The memory is configured to store a program.
[0044] The processor is configured to execute the program to implement each step of the message sending method of any one of the first to ninth items.
[0045] A computer readable storage medium having a computer program stored thereon, the computer program being executed by a processor to implement each step of the message sending method of any one of the first to ninth items.
[0046] A message transmission system, comprising a server and a plurality of terminal devices;
[0047] The server is configured to divide terminal devices in an online terminal device list into primary terminal devices and secondary terminal devices when a target message is received, and send the target message and device information corresponding to the secondary terminal devices directly to the primary terminal devices; wherein the terminal devices in the online terminal device list are part or all of the plurality of terminal devices.
[0048] The primary terminal device is configured to process the target message when receiving the target message and device information sent by the server, and forward the target message to a secondary terminal device corresponding to the received device information.
[0049] The secondary terminal device is configured to process the target message when receiving the target message forwarded by the primary terminal device.
[0050] The message sending method, device, equipment, storage medium and message transmission system provided by the application, when the server receives a target message, first divides terminal devices in an online terminal device list into first-level terminal devices and second-level terminal devices, then directly sends the target message and device information corresponding to the second-level terminal devices to the first-level terminal devices, the first-level terminal devices process the target message on one hand and forward the target message to the second-level terminal devices corresponding to the received device information on the other hand, and the second-level terminal devices process the target message. The message sending method provided by the application can quickly send the target message to each online terminal device using less service resources, that is, the message sending method provided by the application can meet the timeliness requirement of message sending in the case of limited service resources. BRIEF DESCRIPTION OF DRAWINGS
[0051] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the following will briefly introduce the drawings needed to be used in the embodiments or the prior art description. Obviously, the drawings in the following description only constitute the embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor based on the provided drawings.
[0052] Figure 1 The flowchart of the message sending method provided by the embodiment of the application;
[0053] Figure 2 The message sending strategy diagram of the message sending method provided by the application;
[0054] Figure 3 The flowchart of dividing the terminal devices in the online terminal device list into first-level terminal devices and second-level terminal devices provided by the embodiment of the application;
[0055] Figure 4 An example of the function curve provided by the embodiment of the application;
[0056] Figure 5 The flowchart of directly sending the target message and the device information corresponding to the second-level terminal devices to the first-level terminal devices by the server provided by the embodiment of the application;
[0057] Figure 6 The structural diagram of the message sending device applied to the server provided by the embodiment of the application;
[0058] Figure 7 The structural diagram of the message sending device applied to the first-level terminal device provided by the embodiment of the application;
[0059] Figure 8 The structural diagram of the message sending device provided by the embodiment of the application;
[0060] Figure 9 The structural schematic diagram of the message transmission system provided by the embodiment of the present application is shown. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present application will be clearly and completely described with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments of the present application. Based on the embodiments in the present application, all the other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0062] The current message sending mode is a direct sending mode, that is, a server directly sends a target message to each terminal device connected to the server. However, the service resource in some scenarios is usually limited, which leads to the inability to quickly send the target message to a large number of terminal devices.
[0063] Taking the emergency message sending scenario in the field of network set-top boxes (the network set-top box can connect the network and the television, has the attribute of the network device, and can realize the communication function by using the Internet transmission and exchange information) and broadband television network (the broadband television network is composed of a television signal service source and a communication network broadband, and the communication network broadband is a standard operator broadband or a digital cable broadband) (the emergency message sending has the characteristics of large user group, high timeliness requirement, and high reliability requirement) as an example: assuming that there are 500w network set-top boxes, the size of the emergency message is generally not more than 10kb, here 10kb is taken as an example, the service bandwidth is 500mb, the direct sending response time between the server and the network set-top box is 2s, and the time required for sending the target message of 10kb to 500w network set-top boxes by using the current message sending mode is (500w*10kb) / 500mb+2s=102s. It can be seen that, in the case of limited service resources, the current message sending mode is difficult to meet the timeliness requirement of the emergency message sending.
[0064] In view of the fact that the current message sending mode cannot quickly send the target message to a large number of terminal devices in the case of limited service resources, the present inventor has conducted research, and finally provides a message sending method with good effect, which perfectly overcomes the defects of the current message sending mode. The basic concept of the message sending method is that the server divides each online terminal device into a first-level terminal device and a second-level terminal device, and directly sends a target message to the first-level terminal device, and then the first-level terminal device forwards the target message to the second-level terminal device.
[0065] First, the hardware architecture involved in the present application will be described.
[0066] The hardware architecture related to the present application can comprise a server and a plurality of terminal devices.
[0067] Optionally, the server can be a single server, a server cluster composed of a plurality of servers, or a cloud computing server center. The server can comprise a processor, a memory, a network interface, and the like.
[0068] Optionally, the terminal device can establish a connection with the server and communicate with the server through a wired communication network (or a wireless communication network). Optionally, the terminal device can be a network set-top box. It should be noted that the terminal device can also be other devices, such as a PC, a notebook, a tablet computer, a palm computer, a mobile phone, and the like.
[0069] Those skilled in the art should understand that the terminal device and the server listed above are only examples, and other existing or future terminal devices or servers, such as those applicable to the present application, should also be included in the protection scope of the present application and are hereby incorporated by reference.
[0070] Next, the message sending method provided by the present application will be introduced through the following examples.
[0071] First embodiment
[0072] Please refer to Figure 1 , which shows a flowchart of the message sending method provided by the present application, which can comprise:
[0073] Step S101: When receiving a target message, the server divides the terminal devices in the online terminal device list into first-level terminal devices and second-level terminal devices.
[0074] Optionally, the message sending method provided by the present application can be applied to an emergency message sending scenario in the field of network set-top boxes and broadband television networks, that is, the target message can be an emergency message, and the terminal device can be a network set-top box. In the above emergency message sending scenario, when receiving an emergency message, the server divides the terminal devices in the online network set-top box list into first-level network set-top boxes and second-level network set-top boxes.
[0075] It should be noted that the above-mentioned emergency message sending scenario is only an example, and does not mean that the message sending method provided by the present application is only applicable to the emergency message sending scenario. The message sending method provided by the present application is applicable to any scenario that needs to send a message to a large number of terminal devices in a short time, that is, any scenario that needs to send a message in a high concurrency in a short time.
[0076] Optionally, the process of dividing the terminal devices in the online terminal device list into the primary terminal devices and the secondary terminal devices can comprise: selecting the terminal devices from the online terminal device list, the selected terminal devices being the primary terminal devices, and the unselected terminal devices in the online terminal device list being the secondary terminal devices.
[0077] Step S102: The server directly sends the target message and the device information corresponding to the secondary terminal device to the primary terminal device.
[0078] The device information can comprise the network information corresponding to the secondary terminal device, for example, the IP address corresponding to the secondary terminal device.
[0079] For example, the application scenario is the emergency message sending scenario in the field of network set-top boxes and broadband television networks, and step S102 is to send the emergency message and the device information corresponding to the secondary network set-top box to the primary network set-top box.
[0080] Step S103: After receiving the target message and the device information corresponding to the secondary terminal device, the primary terminal device processes the target message and forwards the target message to the secondary terminal device corresponding to the received device information.
[0081] For example, the application scenario is the emergency message sending scenario, and after receiving the emergency message and the device information corresponding to the secondary network set-top box, the primary network set-top box displays the emergency message and forwards the emergency message to the secondary network set-top box corresponding to the received device information.
[0082] Figure 2 The message sending strategy of the application is preferably shown, that is, the server selects the terminal devices from the online terminal device list, the selected terminal devices being the primary terminal devices, and the server only directly communicates with the primary terminal devices, that is, directly sends the target message and the device information corresponding to the secondary terminal device to the primary terminal device, and the primary terminal forwards the target message to the secondary terminal device.
[0083] Step S104: After receiving the target message, the secondary terminal device processes the target message.
[0084] For example, the application scenario is the emergency message sending scenario, and after receiving the emergency message, the secondary network set-top box displays the emergency message.
[0085] It should be noted that, during the valid sending period of the target message, online terminal devices can be added in the online terminal device list, if the online terminal device is added in the online terminal device list, the added online terminal device is divided into the primary terminal device and the secondary terminal device, so that the target message is directly sent to the added primary terminal device and the target message is forwarded to the added secondary terminal based on the primary terminal device.
[0086] In the message sending method provided by the embodiment of the application, when receiving the target message, the server first divides the terminal devices in the online terminal device list into the primary terminal device and the secondary terminal device, then directly sends the target message and the device information corresponding to the secondary terminal device to the primary terminal device, the primary terminal device processes the target message on one hand and forwards the target message to the secondary terminal device corresponding to the received device information on the other hand, and the secondary terminal processes the target message. The message sending method provided by the embodiment of the application can quickly send the target message to each online terminal device using less service resources, that is, the message sending method provided by the embodiment of the application can meet the timeliness requirement of message sending in the case of limited service resources.
[0087] Second embodiment
[0088] The embodiment introduces the specific implementation process of the step S101 in the above embodiment, that is, the step of dividing the terminal devices in the online terminal device list into the primary terminal device and the secondary terminal device when the server receives the target message.
[0089] Please refer to Figure 3 , which shows the flowchart of dividing the terminal devices in the online terminal device list into the primary terminal device and the secondary terminal device, which can include:
[0090] The step S301: determining the device selection ratio value based on the service bandwidth, the number of online terminal devices in the online terminal device list, the size of the target message, the direct sending response time between the server and the primary terminal device, the forwarding response time between the primary terminal device and the secondary terminal device, and the message transmission time between the primary terminal device and the secondary terminal device.
[0091] Specifically, the implementation process of the step S301 can include:
[0092] The step a1: constructing a function with the device selection ratio as the independent variable and the total delivery time of the target message as the dependent variable based on the service bandwidth, the number of online terminal devices in the online terminal device list, the size of the target message, the direct sending response time between the server and the primary terminal device, the forwarding response time between the primary terminal device and the secondary terminal device, and the message transmission time between the primary terminal device and the secondary terminal device.
[0093] If the number of online terminal devices in the online terminal device list is denoted as m, the size of the target message is denoted as n, the service bandwidth is denoted as k, the direct response time consumption between the server and the primary terminal device is denoted as t1, the forwarding response time consumption between the primary terminal device and the secondary terminal device is denoted as t2, the message transmission time consumption between the primary terminal device and the secondary terminal device is denoted as t3, the independent variable is denoted as x, and the dependent variable is denoted as y, the number of the primary terminal devices is mx, the number of the secondary terminal devices is m(1-x), the message direct sending arrival time is (m*x*n) / k+t1, the message forwarding sending arrival time is t2+((1 / x)-1)*t3, and the total arrival time of the target message is:
[0094] y=(m*x*n) / k+t1+t2+((1 / x)-1)*t3
[0095] Wherein, m, n, k, t1, t2, t3 are known.
[0096] Step a2, draw the curve of the constructed function, and determine the value of the independent variable when the value of the dependent variable is the smallest based on the drawn curve.
[0097] The function y=(m*x*n) / k+t1+t2+((1 / x)-1)*t3 can be obtained via step S2011. After obtaining the function, the curve of the function can be drawn. For example, m=500w, n=10kb, k=500mb, t1=2s, t2=2s, t3=0.2s, and y=100*x+4+((1 / x)-1)*0.2 can be obtained by substituting the above formula, and the curve drawn for y=100*x+4+((1 / x)-1)*0.2 is shown in Figure 4 .
[0098] Step a3, determine the device selection ratio value based on the value of the independent variable when the value of the dependent variable is the smallest.
[0099] In one possible implementation, the value of the independent variable when the value of the dependent variable is the smallest can be directly determined as the device selection ratio value. In another possible implementation, in order to prevent the number of secondary terminal devices from being too large, the value of the independent variable when the value of the dependent variable is the smallest can be taken upwardly.
[0100] As shown in Figure 4 , the abscissa represents the device selection ratio, and the ordinate represents the total arrival time of the target message. From Figure 4As can be seen from the figure, x when y takes the minimum value is about 0.05. In one possible implementation, 0.05 can be directly determined as the device selection ratio value. In another possible implementation, in order to prevent the number of secondary terminal devices from being too large, the value can be taken upwards on the basis of 0.05, for example, 0.1 can be taken upwards, and 0.1 is taken as the device selection ratio value.
[0101] Step S302: selecting primary terminal devices from the online terminal device list based on the device selection ratio value, and the remaining terminal devices as secondary terminal devices.
[0102] Specifically, the process of selecting primary terminal devices from the online terminal device list based on the device selection ratio value can include: determining the number p of primary terminal devices to be selected based on the total number m of online terminal devices in the online terminal device list and the device selection ratio value, and randomly selecting p online terminal devices from the online terminal device list as primary terminal devices.
[0103] The process of determining the number p of primary terminal devices to be selected based on the total number m of online terminal devices in the online terminal device list and the device selection ratio value includes: multiplying the total number m of online terminal devices in the online terminal device list by the device selection ratio value, if the multiplication result is an integer, taking the multiplication result as the number p of primary terminal devices to be selected, and if the multiplication result is not an integer, taking the integer of the multiplication result (for example, taking the integer upwards), and taking the integer result as the number p of primary terminal devices to be selected.
[0104] For example, the total number of online terminal devices in the online terminal device list is 100, the device selection ratio value is 10%, 100*10% = 10, and it is determined that the number of primary terminal devices to be selected is 10, that is, 10 terminal devices are selected from the online terminal device list as primary terminal devices. When selecting 10 terminal devices from the online terminal device list, 10 terminal devices can be randomly selected from the online terminal device list.
[0105] For example, the total number of online terminal devices in the online terminal device list is 125, the device selection ratio value is 10%, 125*10% = 12.5, and since 12.5 is not an integer, 12.5 is rounded, for example, 12.5 can be rounded upwards to obtain 13, and it is determined that the number of primary terminal devices to be selected is 13, that is, 13 terminal devices are selected from the online terminal device list as primary terminal devices.
[0106] After the primary terminal devices are selected from the online terminal list, the remaining terminal devices are secondary terminal devices.
[0107] Third embodiment
[0108] The embodiment introduces the implementation process of "step S102: the server directly sends the target message and the device information corresponding to the secondary terminal device to the primary terminal device" in the above embodiment.
[0109] Please refer to Figure 5 , which shows the flowchart of the server directly sending the target message and the device information corresponding to the secondary terminal device to the primary terminal device, which can include:
[0110] Step S501: Obtain the first device information set and the second device information set.
[0111] The first device information set includes the device information corresponding to each primary terminal device, and the second device information set includes the device information corresponding to each secondary terminal device.
[0112] It should be noted that after the terminal device connects to the network, it will report its corresponding device information to the server. The device information can include the network information (such as IP address) of the corresponding terminal device, and can also include the identity information (such as device identifier) of the corresponding terminal device, that is, the server has the device information corresponding to each online terminal in the online terminal list. After dividing the terminal devices in the online terminal list into primary terminal devices and secondary terminal devices, the first device information set can be composed of the device information corresponding to each primary terminal device, and the second device information set can be composed of the device information corresponding to each secondary terminal device.
[0113] It should be noted that generally, the network information (such as IP address) of the terminal device will not be frequently changed, but the network information of the terminal device may still change due to some reasons. When this situation occurs, the terminal device will send the new network information and its identity information to the server, and the server will update the network information of the terminal device identified by the received identity information to the received network information. For example, terminal device e changes the network information (such as IP address) because of restart. It detects that the network information has changed, and sends the new network information (such as new IP address) and its identity information to the server. The server can determine that the network information of terminal device e has changed according to the received identity information, and then update the network information of terminal device e to the received new network information.
[0114] Step S502: Traverse the device information in the first device information set:
[0115] Step S5021: For the current traversed device information, obtain the device information to be assigned to the primary terminal device corresponding to the current traversed device information from the second device information set.
[0116] Specifically, the process of obtaining device information from the second device information set to be assigned to the primary terminal device corresponding to the device information currently traversed can include: if the number of device information not yet assigned in the second device information set is greater than or equal to N, obtaining N device information not yet assigned from the second device information set; if the number of device information not yet assigned in the second device information set is less than N, obtaining all device information not yet assigned from the second device information set.
[0117] Wherein, N is determined based on the device selection value ratio. If the device selection ratio value is represented as r, N is determined based on 1-r and r. Specifically, if (1-r) / r is an integer, N=(1-r) / r, for example, if the device selection ratio value is 10%, N=(1-10%) / 10%=9; if (1-r) / r is not an integer, (1-r) / r can be rounded, and N is equal to the rounding result of (1-r) / r, for example, (1-r) / r can be rounded down, and N is equal to the rounding down result of (1-r) / r.
[0118] Step S5022: sending the target message and the device information obtained from the second device information set to the primary terminal device corresponding to the device information currently traversed.
[0119] When sending the target message and the device information obtained from the second device information set to the primary terminal device corresponding to the device information currently traversed, the target message and the device information obtained from the second device information set can be packaged into a whole and sent to the primary terminal device corresponding to the device information currently traversed. When sending the packaged data, the corresponding long connection can be found based on the identity information in the device information currently traversed, and the packaged data is sent out based on the long connection.
[0120] The process of step S402 will be described below in combination with a specific example:
[0121] Suppose there are 100 terminal devices in the online terminal device list, and the device selection ratio is 10%, then there are 10 primary terminal devices and 90 secondary terminal devices, i.e. there are 10 device information in the first device information set and 90 device information in the second device information set: for the first device information f 1-1 , 9 network information f 2-1 ~f 2-9 (including 9 IP addresses) are obtained from the second device information set, and the target message and the 9 network information f 2-1 ~f 2-9 are packaged and sent to the corresponding terminal device f 1-1 ; for the second device information f 1-2Get 9 network information f from the second device information set 2-10 ~f 2-18 (for example, 9 IP addresses), pack the target message and the 9 network information f 2-10 ~f 2-18 and send to the corresponding terminal device 1-2 for the 10th device information f in the first device information set 1-10 Get 9 network information f from the second device information set 2-82 ~f 2-90 (for example, 9 IP addresses), pack the target message and the 9 network information f 2-82 ~f 2-90 and send to the corresponding terminal device 1-10 .
[0122] It should be noted that in some cases, there may be a case where the device information in the second device information set is still not allocated after the end of the traversal of the device information in the first device information set. In this case, the following strategy can be used:
[0123] If the unallocated device information is one, the target message is directly sent to the secondary terminal device corresponding to the device information. If the unallocated device information is multiple, one device information (which can be randomly selected) is selected from the multiple unallocated device information as the target device information, and the target device information and the non-target device information in the multiple unallocated device information are sent to the secondary terminal device corresponding to the target device information, so that the secondary terminal device corresponding to the target device information sends the target message to the secondary terminal device corresponding to the non-target device information.
[0124] It should be noted that in the process of traversing the device information in the first device information set, there may be a case where there is no unallocated device information in the second device information set when traversing a certain device information. In this case, only the target message is sent to the corresponding primary terminal device from the current traversed device information.
[0125] The primary terminal device receives the target data and device information from the server, processes the target message on one hand, and on the other hand, based on the network information (such as IP address) in the received device information, forwards the target message to the secondary terminal corresponding to the device information. The secondary terminal processes the target message after receiving the target message.
[0126] Fourth embodiment
[0127] In order to ensure that the target message can reach each online terminal, the embodiment of the present application provides another message sending method, which comprises the following processes in addition to the steps S101-S104 in the above embodiment:
[0128] After receiving the target message, each terminal device (primary terminal device and secondary terminal device) sends a feedback message indicating that the target message has been reached to the server; the server marks the terminal device sending the feedback message in the online terminal list after receiving the feedback message from the terminal device every time; and the server re-sends the target message to the terminal devices not marked in the online terminal list after the ideal simple reach time of the target message.
[0129] It should be noted that the feedback message comprises a message reach mark and identity information (such as device mark) of the terminal device sending the feedback message, and the server can know which terminal device the target message reaches according to the identity information in the feedback message after receiving the feedback message, and then mark the terminal device reaching the target message in the online terminal list.
[0130] When re-sending the target message, the server preferably sends the target message directly to the terminal devices not marked in the online terminal list. Generally, the terminal devices not marked in the online terminal list are not many, and in order to ensure that the target message reaches these terminal devices, the direct sending mode is preferably adopted, that is, the target message is re-sent directly to the terminal devices not marked in the online terminal list. Of course, when re-sending the target message, the direct sending + forwarding strategy can also be adopted for re-sending, for example, a terminal device is selected from the terminal devices not marked, and the server sends the target message and the device information corresponding to other terminal devices not marked to the terminal device, so that the selected terminal device forwards the target message to other terminal devices not marked.
[0131] In the message sending method provided by the embodiment of the present application, when receiving a target message, the server first divides the terminal devices in the online terminal device list into primary terminal devices and secondary terminal devices, and then sends the target message and the device information corresponding to the secondary terminal devices to the primary terminal devices. The primary terminal devices process the target message and forward the target message to the secondary terminal devices corresponding to the received device information, so that the secondary terminal devices process the target message. In order to ensure that the target message can be sent to each terminal device, each terminal device sends a feedback message indicating that the target message has been sent to the server after receiving the target message. The server marks the terminal device sending the feedback message in the online terminal device list each time the server receives the feedback message. After the ideal simple sending time of the target message is reached, the server re-sends the target message to the terminal devices not marked in the online terminal device list. The message sending method provided by the embodiment of the present application can quickly send the target message to each online terminal device using less service resources. In addition, the sending confirmation strategy and the message re-sending strategy of the target message can ensure that the target message is sent to each terminal device.
[0132] Taking the network set-top box and the broadband television network field as an example, assuming that there are 500w network set-top boxes, the size of the emergency message is 10kb, the service bandwidth is 500mb, the direct sending response time between the server and the network set-top box is 2s, the forwarding response time between the primary terminal device and the secondary terminal device is 2s, and the message transmission time between the primary terminal device and the secondary terminal device is 0.2s. If the device selection ratio determined by the method provided by the embodiment of the present application is 0.05, the time required for sending the 10kb target message to the 500w network set-top boxes using the sending strategy provided by the present application is y=100*x+4+((1 / x)-1)*0.2=100*0.05+4+((1 / 0.05)-1)*0.2≈13s. The 13s is the simple sending time. In addition, the time required for the terminal device to send the feedback message to the server is 2s, and the time required for the message re-sending is 5s. The total time is 20s. It should be noted that the message re-sending time of 5s is calculated by taking 5% (the normal network sending rate is about 98%, and here 95% is taken as an example) of the devices that need to be re-sent: 25w*10k / 500m=5s.
[0133] The above content mentions that the time required for sending the 10kb target message to the 500w network set-top boxes using the existing message sending method is (500w*10kb) / 500mb+2s=102s, which is only the simple sending time.
[0134] Compared with the time consumption of the two sending modes, it can be seen that the time consumption of the sending method provided by the embodiment of the application is far less than that of the existing message sending mode. It can be seen that the message sending method provided by the embodiment of the application can quickly send the target message to each online terminal device by using less service resources.
[0135] Fifth embodiment
[0136] The embodiment of the application further provides a message sending device applied to a server, and the message sending device provided by the embodiment of the application is described below. The message sending device described below can be correspondingly referred to the message sending method described above.
[0137] Please refer to Figure 6 , which shows a structural schematic diagram of the message sending device applied to the server provided by the embodiment of the application, and can include a message receiving module 601, a device selection module 602 and a message sending module 603.
[0138] The message receiving module 601 is used for receiving a target message.
[0139] The device division module 602 is used for dividing terminal devices in an online terminal device list into primary terminal devices and secondary terminal devices.
[0140] The message sending module 603 is used for directly sending the target message and device information corresponding to the secondary terminal devices to the primary terminal devices, so that the primary terminal devices process the target message and forward the target message to the secondary terminal devices corresponding to the received device information.
[0141] Optionally, the device division module 602 can include a device selection proportion value determination module and a device selection module.
[0142] The device selection proportion value determination module is used for determining a device selection proportion value based on a service bandwidth, a number of online terminal devices in the online terminal device list, a size of the target message, a direct sending response time consumption between the server and the primary terminal devices, a forwarding response time consumption between the primary terminal devices and the secondary terminal devices and a message transmission time consumption between the primary terminal devices and the secondary terminal devices.
[0143] The device selection module is used for selecting terminal devices from the online terminal device list based on the device selection proportion value, and the selected terminal devices are used as the primary terminal devices, and the unselected terminal devices in the online terminal device list are used as the secondary terminal devices.
[0144] Optionally, the device selection ratio value determination module comprises a function construction submodule, a function curve drawing submodule and a device selection ratio value determination submodule.
[0145] The function construction submodule is configured to construct a function with a device selection ratio as an independent variable and a total delivery time of the target message as a dependent variable based on a service bandwidth, a number of online terminal devices in the online terminal device list, a size of the target message, a direct transmission response time consumption between the server and the primary terminal device, a forwarding response time consumption between the primary terminal device and the secondary terminal device, and a message transmission time consumption between the primary terminal device and the secondary terminal device.
[0146] The function curve drawing submodule is configured to draw a curve of the function.
[0147] The device selection ratio value determination submodule is configured to determine a value of the independent variable when the dependent variable has a minimum value based on the curve of the function, and determine a device selection ratio value based on the value of the independent variable when the dependent variable has the minimum value.
[0148] Optionally, the message sending module 603, when sending the target message and the device information corresponding to the secondary terminal device to the primary terminal device, is specifically configured to:
[0149] obtain a first device information set and a second device information set, wherein the first device information set comprises device information corresponding to each primary terminal device respectively, and the second device information set comprises device information corresponding to each secondary terminal device respectively;
[0150] traverse the device information in the first device information set: for the currently traversed device information, obtain device information to be allocated to the primary terminal device corresponding to the currently traversed device information from the second device information set; and send the target message and the device information obtained from the second device information set to the primary terminal device corresponding to the currently traversed device information.
[0151] Optionally, the message sending module 603, when obtaining device information to be allocated to the primary terminal device corresponding to the currently traversed device information from the second device information set, is specifically configured to:
[0152] if the number of device information not yet allocated in the second device information set is greater than or equal to N, obtain N pieces of device information not yet allocated from the second device information set, wherein N is determined based on the device selection ratio;
[0153] if the number of device information not yet allocated in the second device information set is less than N, obtain all device information not yet allocated from the second device information set.
[0154] Optionally, the message sending module 603 is further configured to:
[0155] if there are still a plurality of unassigned device information in the second device information set after the device information in the first device information set is traversed, selecting one device information from the plurality of unassigned device information as target device information;
[0156] sending the target message and non-target device information in the plurality of unassigned device information to the secondary terminal device corresponding to the target device information, so that the secondary terminal device corresponding to the target device information sends the target message to the secondary terminal device corresponding to the non-target device information.
[0157] Optionally, the device division module 602 is further configured to:
[0158] if an online terminal device is added in the online terminal device list within the effective sending period of the target message, performing division of the added online terminal device into primary terminal devices and secondary terminal devices, so as to directly send the target message to the added primary terminal device and forward the target message to the added secondary terminal device based on the primary terminal device.
[0159] Optionally, the message sending device provided by the embodiment of the application can further comprise a terminal marking module and a message resending module.
[0160] The terminal marking module is configured to mark the terminal device sending the feedback message in the online terminal device list when receiving the feedback message from the terminal device every time, the feedback message being used to indicate that the target message has been delivered.
[0161] The message resending module is configured to resend the target message to the terminal device not marked in the online terminal device list after reaching the ideal simple delivery time of the target message.
[0162] Optionally, the message resending module when resending the target message to the terminal device not marked in the online terminal device list is specifically configured to:
[0163] directly send the target message to the terminal device not marked in the online terminal device list.
[0164] The message sending device applied to a server provided by the embodiment of the present application, when receiving a target message, first divides terminal devices in an online terminal device list into primary terminal devices and secondary terminal devices, then sends the target message and device information corresponding to the secondary terminal devices to the primary terminal devices, so that the primary terminal devices process the target message and forward the target message to the secondary terminal devices corresponding to the received device information. The message sending device provided by the embodiment of the present application can quickly send the target message to each online terminal device using less service resources.
[0165] Sixth embodiment
[0166] The embodiment of the present application also provides a message sending device applied to a terminal device, and the message sending device provided by the embodiment of the present application is described below.
[0167] Please refer to Figure 7 , which shows a structural schematic diagram of the message sending device provided by the embodiment of the present application. The message sending device provided by the embodiment of the present application is applied to a primary terminal device, which is obtained by the server dividing each online terminal device in an online terminal device list into levels. The device can include a message receiving module 701, a message processing module 702 and a message forwarding module 703.
[0168] The message receiving module 701 is used for receiving a target message and device information from the server.
[0169] The received device information corresponds to a secondary terminal device, and the secondary terminal device is a non-primary terminal device in the online terminal device list.
[0170] The message processing module 702 is used for processing the target message.
[0171] The message forwarding module 703 is used for forwarding the target message to the secondary terminal device corresponding to the received device information, so that the secondary terminal device processes the target message.
[0172] The message sending device provided by the embodiment of the present application can quickly send the target message to each online terminal device using less service resources.
[0173] Seventh embodiment
[0174] The embodiment of the present application also provides a message sending device, please refer to Figure 8 , which shows a structural schematic diagram of the message sending device. The message sending device can include at least one processor 801, at least one communication interface 802, at least one memory 803 and at least one communication bus 804.
[0175] In the embodiments of the present application, the number of the processor 801, the communication interface 802, the memory 803 and the communication bus 804 is at least one, and the processor 801, the communication interface 802 and the memory 803 complete the communication with each other through the communication bus 804;
[0176] The processor 801 can be a central processing unit CPU, or an application specific integrated circuit ASIC, or one or more integrated circuits configured to implement the embodiments of the present application, etc.
[0177] The memory 803 can include a high-speed RAM memory, and can also include a non-volatile memory, such as at least one disk memory, etc.
[0178] The memory stores a program, and the processor can call the program stored in the memory, and the program is used for:
[0179] When the target message is received, the terminal devices in the online terminal device list are divided into primary terminal devices and secondary terminal devices;
[0180] The target message and the device information corresponding to the secondary terminal devices are directly sent to the primary terminal devices, so that the primary terminal devices process the target message, and forward the target message to the secondary terminal devices corresponding to the received device information.
[0181] Optionally, the refinement function and the extension function of the program can refer to the description above.
[0182] Eighth embodiment
[0183] The embodiments of the present application also provide a readable storage medium, which can store a program suitable for processor execution, and the program is used for:
[0184] When the target message is received, the terminal devices in the online terminal device list are divided into primary terminal devices and secondary terminal devices;
[0185] The target message and the device information corresponding to the secondary terminal devices are directly sent to the primary terminal devices, so that the primary terminal devices process the target message, and forward the target message to the secondary terminal devices corresponding to the received device information.
[0186] Optionally, the refinement function and the extension function of the program can refer to the description above.
[0187] Ninth embodiment
[0188] The embodiment of the present application also provides a message transmission system, referring to Figure 9 , a structural schematic diagram of the message transmission system is shown, which can comprise a server and a plurality of terminal devices.
[0189] The server is used for dividing the terminal devices in the online terminal device list into primary terminal devices and secondary terminal devices when receiving a target message, and directly sending the target message and the device information corresponding to the secondary terminal devices to the primary terminal devices.
[0190] The terminal devices in the online terminal device list are part or all of the plurality of terminal devices.
[0191] The specific implementation process of the server dividing the terminal devices in the online terminal device list into primary terminal devices and secondary terminal devices, and directly sending the target message and the device information corresponding to the secondary terminal devices to the primary terminal devices can refer to the first embodiment to the third embodiment, and the embodiment will not be repeated here.
[0192] The primary terminal device is used for processing the target message and forwarding the target message to the secondary terminal devices corresponding to the received device information when receiving the target message and the device information sent by the server.
[0193] The secondary terminal device is used for processing the target message when receiving the target message forwarded by the primary terminal device.
[0194] Optionally, each terminal device (the primary terminal device and the secondary terminal device) is also used for sending a feedback message indicating that the target message has arrived to the server after receiving the target message.
[0195] The server is also used for marking the terminal device sending the feedback message in the online terminal device list when receiving the feedback message sent by each terminal device, and reissuing the target message to the terminal devices not marked in the online terminal list after reaching the ideal simple arrival time of the target message.
[0196] It should be noted that the feedback message comprises a message arrival identifier and identity information (such as a device identifier) of the terminal device sending the feedback message, and the server can know which terminal device the target message has arrived to according to the identity information in the feedback message after receiving the feedback message, and then mark the terminal device having arrived to the target message in the online terminal list.
[0197] In order to ensure that the target message arrives to the terminal devices not marked in the online terminal list, the server preferably directly sends the target message to the terminal devices not marked in the online terminal list when reissuing the target message.
[0198] The message sending system provided by the embodiments of the present application can quickly send target messages to each online terminal device using less service resources, and the sending confirmation strategy and message re-sending strategy of the target message can ensure that the target message is sent to each online terminal device.
[0199] Finally, it is also necessary to point out that, in this document, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0200] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same or similar parts between various embodiments can be referred to each other.
[0201] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to the embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A message sending method characterized by, Applied to a server, the method comprises: When receiving a target message, dividing terminal devices in an online terminal device list into primary terminal devices and secondary terminal devices; Sending the target message and device information corresponding to the secondary terminal devices to the primary terminal devices, so that the primary terminal devices process the target message and forward the target message to secondary terminal devices corresponding to the received device information; The dividing of the terminal devices in the online terminal device list into primary terminal devices and secondary terminal devices comprises: Determining a device selection proportion value based on a service bandwidth, a number of online terminal devices in the online terminal device list, a size of the target message, a direct sending response time consumption between the server and the primary terminal devices, a forwarding response time consumption between the primary terminal devices and the secondary terminal devices, and a message transmission time consumption between the primary terminal devices and the secondary terminal devices; Selecting terminal devices from the online terminal device list based on the device selection proportion value, the selected terminal devices being the primary terminal devices, and the unselected terminal devices in the online terminal device list being the secondary terminal devices.
2. The message sending method of claim 1, wherein, The determining of the device selection proportion value based on the service bandwidth, the number of online terminal devices in the online terminal device list, the size of the target message, the direct sending response time consumption between the server and the primary terminal devices, the forwarding response time consumption between the primary terminal devices and the secondary terminal devices, and the message transmission time consumption between the primary terminal devices and the secondary terminal devices comprises: Constructing a function with the device selection proportion as an independent variable and a total delivery time of the target message as a dependent variable based on the service bandwidth, the number of online terminal devices in the online terminal device list, the size of the target message, the direct sending response time consumption between the server and the primary terminal devices, the forwarding response time consumption between the primary terminal devices and the secondary terminal devices, and the message transmission time consumption between the primary terminal devices and the secondary terminal devices; Plotting a curve of the function; Determining a value of the independent variable when the value of the dependent variable is the smallest, and determining the device selection proportion value based on the value of the independent variable when the value of the dependent variable is the smallest.
3. The message sending method of claim 1, wherein, The sending of the target message and the device information corresponding to the secondary terminal devices to the primary terminal devices comprises: Obtaining a first device information set and a second device information set, wherein the first device information set comprises device information corresponding to each primary terminal device respectively, and the second device information set comprises device information corresponding to each secondary terminal device respectively; Traversing the device information in the first device information set: for the currently traversed device information, obtaining device information to be allocated to a primary terminal device corresponding to the currently traversed device information from the second device information set; and sending the target message and the device information obtained from the second device information set to the primary terminal device corresponding to the currently traversed device information.
4. The message sending method of claim 3, wherein, The obtaining of the device information to be assigned to the primary terminal device corresponding to the device information currently traversed from the second device information set comprises: If the number of device information not yet assigned in the second device information set is greater than or equal to N, N device information not yet assigned in the second device information set is obtained; If the number of device information not yet assigned in the second device information set is less than N, all device information not yet assigned in the second device information set is obtained.
5. The message sending method of claim 3, wherein, Further comprising: If there are still multiple device information not yet assigned in the second device information set after the traversal of the device information in the first device information set is completed, one device information not yet assigned is selected from the multiple device information not yet assigned as target device information; The target message and the non-target device information in the multiple device information not yet assigned are sent to the secondary terminal device corresponding to the target device information, so that the secondary terminal device corresponding to the target device information sends the target message to the secondary terminal device corresponding to the non-target device information.
6. The message sending method according to any one of claims 1-5, characterized in that, Further comprising: If an online terminal device is added in the online terminal device list during the effective sending period of the target message, the added online terminal device is divided into a primary terminal device and a secondary terminal device, so that the target message is directly sent to the added primary terminal device and the target message is forwarded to the added secondary terminal device based on the primary terminal device.
7. The message sending method according to any one of claims 1-5, characterized in that, Further comprising: When receiving a feedback message sent from a terminal device, the terminal device sending the feedback message is marked in the online terminal device list, and the feedback message is used to indicate that the target message has been delivered; After the ideal simple delivery time of the target message is reached, the target message is re-sent to the terminal device not marked in the online terminal device list.
8. The message sending method of claim 7, wherein, The re-sending of the target message to the terminal device not marked in the online terminal device list comprises: The target message is directly sent to the terminal device not marked in the online terminal device list.
9. A message sending method characterized by, The method is applied to a primary terminal device, the primary terminal device is obtained by the server dividing each online terminal device in an online terminal device list into different levels, and the method comprises: Receiving a target message and device information from the server, wherein the terminal device corresponding to the received device information is a secondary terminal device, and the secondary terminal device is a non-primary terminal device in the online terminal device list; Processing the target message and forwarding the target message to the secondary terminal device corresponding to the received device information, so that the secondary terminal device processes the target message; The server divides the terminal device in the online terminal device list into a primary terminal device and a secondary terminal device, which comprises: The server determines a device selection proportion value based on a service bandwidth, a number of online terminal devices in the online terminal device list, a size of the target message, a direct sending response time between the server and a primary terminal device, a forwarding response time between the primary terminal device and the secondary terminal device, and a message transmission time between the primary terminal device and the secondary terminal device; and selects a terminal device from the online terminal device list based on the device selection proportion value, with the selected terminal device as the primary terminal device and the unselected terminal devices in the online terminal device list as the secondary terminal devices.
10. A message sending apparatus characterized by comprising: The application is applied to a server, and the device comprises a message receiving module, a device division module and a message sending module. The message receiving module is used for receiving a target message. The device division module is used for dividing terminal devices in an online terminal device list into primary terminal devices and secondary terminal devices. The message sending module is used for directly sending the target message and device information corresponding to the secondary terminal devices to the primary terminal devices, so that the primary terminal devices process the target message and forward the target message to the secondary terminal devices corresponding to the received device information. The device division module is specifically used for: determining a device selection proportion value based on a service bandwidth, a number of online terminal devices in the online terminal device list, a size of the target message, a direct sending response time between the server and a primary terminal device, a forwarding response time between the primary terminal device and the secondary terminal device, and a message transmission time between the primary terminal device and the secondary terminal device; selecting a terminal device from the online terminal device list based on the device selection proportion value, with the selected terminal device as the primary terminal device and the unselected terminal devices in the online terminal device list as the secondary terminal devices.
11. A message sending apparatus characterized by comprising: The application is applied to a primary terminal device, which is obtained by a server dividing each online terminal device in an online terminal device list into different levels, and the device comprises a message receiving module, a message processing module and a message forwarding module. The message receiving module is used for receiving a target message and device information from the server, wherein the terminal device corresponding to the received device information is a secondary terminal device, and the secondary terminal device is a non-primary terminal device in the online terminal device list. The message processing module is used for processing the target message. The message forwarding module is used for forwarding the target message to the secondary terminal device corresponding to the received device information, so that the secondary terminal device processes the target message. The server divides terminal devices in an online terminal device list into primary terminal devices and secondary terminal devices, which comprises: The server determines a device selection proportion value based on a service bandwidth, a number of online terminal devices in the online terminal device list, a size of the target message, a direct sending response time between the server and a primary terminal device, a forwarding response time between the primary terminal device and a secondary terminal device, and a message transmission time between the primary terminal device and the secondary terminal device, and selects a terminal device from the online terminal device list based on the device selection proportion value, wherein the selected terminal device is the primary terminal device, and the unselected terminal devices in the online terminal device list are the secondary terminal devices.
12. A message sending device, characterized by Comprise: a memory and a processor; the memory is configured to store a program; the processor is configured to execute the program to implement each step of the message sending method according to any one of claims 1-8.
13. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement each step of the message sending method according to any one of claims 1-8.
14. A message transmission system characterized by comprising: Comprise: a server and a plurality of terminal devices; the server is configured to divide terminal devices in an online terminal device list into primary terminal devices and secondary terminal devices when receiving a target message, and send the target message and device information corresponding to the secondary terminal devices to the primary terminal devices directly, wherein the terminal devices in the online terminal device list are part or all of the plurality of terminal devices; the primary terminal devices are configured to process the target message and forward the target message to the secondary terminal devices corresponding to the received device information when receiving the target message and the device information sent by the server; the secondary terminal devices are configured to process the target message when receiving the target message forwarded by the primary terminal devices; The server divides the terminal devices in the online terminal device list into primary terminal devices and secondary terminal devices, comprising: The server determines a device selection proportion value based on a service bandwidth, a number of online terminal devices in the online terminal device list, a size of the target message, a direct sending response time between the server and a primary terminal device, a forwarding response time between the primary terminal device and a secondary terminal device, and a message transmission time between the primary terminal device and the secondary terminal device, and selects a terminal device from the online terminal device list based on the device selection proportion value, wherein the selected terminal device is the primary terminal device, and the unselected terminal devices in the online terminal device list are the secondary terminal devices.
Citation Information
Patent Citations
Message pushing method and device, and message pushing server
CN105978971A
Message processing method and device, and electronic equipment
CN112269614A
Smart home equipment binding method and terminal
CN114513379A