+

CN110022534A - A kind of data transmission method and device based on multicast - Google Patents

A kind of data transmission method and device based on multicast Download PDF

Info

Publication number
CN110022534A
CN110022534A CN201910245620.4A CN201910245620A CN110022534A CN 110022534 A CN110022534 A CN 110022534A CN 201910245620 A CN201910245620 A CN 201910245620A CN 110022534 A CN110022534 A CN 110022534A
Authority
CN
China
Prior art keywords
queue
multicast
multicast group
sent
data packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910245620.4A
Other languages
Chinese (zh)
Other versions
CN110022534B (en
Inventor
张新常
赵彦玲
孙雁杰
魏亮
张玮
王鲁
孙萌
史慧玲
张建伟
何亦然
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
National Supercomputing Center in Jinan
Original Assignee
National Supercomputing Center in Jinan
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by National Supercomputing Center in Jinan filed Critical National Supercomputing Center in Jinan
Priority to CN201910245620.4A priority Critical patent/CN110022534B/en
Publication of CN110022534A publication Critical patent/CN110022534A/en
Application granted granted Critical
Publication of CN110022534B publication Critical patent/CN110022534B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management

Landscapes

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

Abstract

本发明涉及一种基于组播的数据传输方法及装置,包括当接收到终端UE发送的数据请求时,判断组播组是否存在,若组播组存在,判断组播组的主组播队列中的全部数据包编号所对应的数据包是否已经发送完成,若组播组的主组播队列中的全部数据包编号所对应的数据包没有发送完成,将UE加入组播组中,为UE建立补发队列,将需要为UE补发的数据包编号写入UE的补发队列中,按照UE的补发队列中的数据包编号,在组播组内发送数据包。本发明可以在组播组建立后,UE随时加入,且所有UE都可以接收到完整的数据,同时还可以节约网络带宽,降低网络设备的负载。

The present invention relates to a method and device for data transmission based on multicast, comprising: when receiving a data request sent by a terminal UE, judging whether a multicast group exists; if the multicast group exists, judging whether the multicast group is in the main multicast queue Whether the data packets corresponding to all the data packet numbers have been sent, if the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group have not been sent, add the UE to the multicast group to establish a In the reissue queue, the number of the data packet that needs to be reissued for the UE is written into the reissue queue of the UE, and the data packet is sent in the multicast group according to the number of the data packet in the reissue queue of the UE. The present invention can join the UE at any time after the multicast group is established, and all UEs can receive complete data, meanwhile, the network bandwidth can be saved and the load of the network equipment can be reduced.

Description

一种基于组播的数据传输方法及装置A kind of data transmission method and device based on multicast

技术领域technical field

本发明涉及网络通信技术领域,尤其涉及一种基于组播的数据传输方法及装置。The present invention relates to the technical field of network communication, and in particular, to a method and device for data transmission based on multicast.

背景技术Background technique

随着网络视频行业的跨越式增长、市场规模暴增,尤其在未来5G中,面向大规模用户的音频、视频、图像等业务急剧增长,造成网络流量的爆炸式增长,组播技术支持多个UE同时请求相同数据源的场景,在一些场景下实施应用组播技术可以避免发送大量相同的数据。在实现本发明过程中,发明人发现在网络视频点播中,大量UE请求相同的数据源的视频数据,但它们发起请求的时间点不同,若实施现有的组播技术,会导致有些用户无法接收到完整的视频数据。因此,在有些网络应用中无法利用现有的组播技术,会导致网络带宽被大量占用,同时也增加了网络设备的负载。With the leap-forward growth of the network video industry and the surge in market size, especially in the future 5G, services such as audio, video, and images for large-scale users have grown rapidly, resulting in an explosive growth of network traffic. Multicast technology supports multiple In the scenario where the UE requests the same data source at the same time, in some scenarios, the application of the multicast technology can avoid sending a large amount of the same data. In the process of implementing the present invention, the inventor found that in the online video-on-demand, a large number of UEs request video data from the same data source, but they initiate requests at different time points. If the existing multicast technology is implemented, some users may not be able to Complete video data is received. Therefore, in some network applications, the existing multicast technology cannot be used, which will cause a large amount of network bandwidth to be occupied, and also increase the load of network equipment.

发明内容SUMMARY OF THE INVENTION

本发明所要解决的技术问题是针对现有技术的不足,提供一种基于组播的数据传输方法及装置。The technical problem to be solved by the present invention is to provide a multicast-based data transmission method and device aiming at the deficiencies of the prior art.

本发明解决上述技术问题的技术方案如下:The technical scheme that the present invention solves the above-mentioned technical problems is as follows:

一种基于组播的数据传输方法,包括,A multicast-based data transmission method, comprising,

当接收到终端UE发送的数据请求时,判断组播组是否存在;When receiving the data request sent by the terminal UE, determine whether the multicast group exists;

若所述组播组存在,判断所述组播组的主组播队列中的全部数据包编号所对应的数据包是否已经发送完成;If the multicast group exists, determine whether the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group have been sent;

若所述组播组的主组播队列中的全部数据包编号所对应的数据包没有发送完成,将所述UE加入到所述组播组中;If the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group have not been sent, add the UE to the multicast group;

为所述UE建立补发队列,将需要为所述UE补发的数据包编号写入所述UE的补发队列中;establishing a reissue queue for the UE, and writing the packet number that needs to be reissued for the UE into the reissue queue of the UE;

按照所述UE的补发队列中的数据包编号,在所述组播组内发送数据包。The data packets are sent in the multicast group according to the data packet numbers in the reissue queue of the UE.

本发明的有益效果是:当UE加入组播组时,通过统计不会重新发送的数据包,将在组播组内不会重新发送的数据包再次发送,使得UE可以接收到完整的数据,同时UE可以任意时刻加入组播组,还节约了网络带宽,降低了网络设备的负载。The beneficial effects of the present invention are: when the UE joins the multicast group, by counting the data packets that will not be resent, the data packets that will not be resent in the multicast group are sent again, so that the UE can receive complete data, At the same time, the UE can join the multicast group at any time, which saves network bandwidth and reduces the load of network equipment.

在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.

进一步地,若所述组播组不存在,Further, if the multicast group does not exist,

建立组播组,将所述UE加入所述组播组中;establishing a multicast group, and adding the UE to the multicast group;

计算组播源需要发送的全部数据需占用的时长;Calculate the time it takes for all the data to be sent by the multicast source;

按照所述组播源需要发送的全部数据需占用的时长,将所述需要发送的全部数据分为k个数据包,发送每个数据包占用的时长相同,其中,所述k是整数且k>1;Divide all the data to be sent into k data packets according to the duration of all the data to be sent by the multicast source, and the duration of each data packet to be sent is the same, where the k is an integer and k >1;

将所述k个数据包编号;Numbering the k data packets;

为所述组播组建立所述主组播队列,将所述k个数据包编号按照发送顺序写入所述主组播队列;establishing the main multicast queue for the multicast group, and writing the k data packet numbers into the main multicast queue according to the sending order;

在所述组播组中顺序发送所述主组播队列中第1至k的数据包编号所对应的数据包。The data packets corresponding to the first to k-th data packet numbers in the main multicast queue are sequentially sent in the multicast group.

采用上述进一步方案的有益效果是:当组播组建立时,建立主组播队列,将需要发送的数据按照发送时长平均分为几个数据包,在主组播队列中写入数据包编号,按照主组播队列中的数据包编号的顺序发送数据包,保证所有数据包按照顺序进行发送。The beneficial effect of adopting the above-mentioned further scheme is: when a multicast group is established, a main multicast queue is established, the data to be sent is divided into several data packets equally according to the transmission time, and the data packet number is written in the main multicast queue, The data packets are sent in the order of the data packet numbers in the main multicast queue to ensure that all data packets are sent in order.

在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.

进一步地,所述将需要为所述UE补发的数据包编号写入所述UE的补发队列中的具体步骤包括:Further, the specific steps of writing the data packet number that needs to be reissued for the UE into the reissue queue of the UE include:

当所述UE加入所述组播组时,所述主组播队列中已完成发送n个数据包编号所对应的数据包,所述n是整数且1<n<k;When the UE joins the multicast group, the primary multicast queue has completed sending data packets corresponding to n data packet numbers, where n is an integer and 1<n<k;

为所述UE建立补发队列;establishing a reissue queue for the UE;

获取当所述UE加入组播组时,所述组播组中所有UE的补发队列中未完成发送的队列数量;Acquire the number of queues that have not been sent in the reissue queues of all UEs in the multicast group when the UE joins the multicast group;

根据所述组播组中所有UE的补发队列中未完成发送的队列数量,确定所述UE的补发队列中的数据包编号。The number of the data packets in the reissue queue of the UE is determined according to the number of uncompleted transmission queues in the reissue queues of all UEs in the multicast group.

采用上述进一步方案的有益效果是:通过为新加入组播组的UE建立补发队列,使得新加入的UE可以接收到全部数据,同时对补发队列中的需要发送的数据包进行统计,节约了网络带宽,降低了网络设备的负载。The beneficial effect of adopting the above-mentioned further scheme is: by establishing a retransmission queue for the UE that newly joins the multicast group, the newly added UE can receive all the data, and at the same time, the data packets to be sent in the retransmission queue are counted, saving energy The network bandwidth is reduced and the load of network equipment is reduced.

在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.

进一步地,若所述组播组中所有UE的补发队列中未完成发送的队列数量大于1,Further, if the number of queues that have not been sent in the reissue queues of all UEs in the multicast group is greater than 1,

将所述主组播队列中的第1至n的数据包编号写入所述UE的补发队列;Write the first to n data packet numbers in the main multicast queue into the reissue queue of the UE;

当所述UE加入组播组时,获取所述组播组中所有UE的补发队列中未发送的数据包编号;When the UE joins the multicast group, obtain the unsent data packet numbers in the reissue queues of all UEs in the multicast group;

计算所述组播组中所有UE的补发队列中未发送的数据包编号的并集,得到未发送的数据包编号的并集;Calculate the union of the unsent data packet numbers in the reissue queues of all UEs in the multicast group, and obtain the union of the unsent data packet numbers;

删除所述UE的补发队列中与所述未发送的数据包编号的并集中相同的数据包编号。Delete the same data packet number in the reissue queue of the UE as the union of the unsent data packet numbers.

采用上述进一步方案的有益效果是:当组播组内已存在多个补发队列时,通对组播组中已存在补发队列中未发送的数据包进行统计,可以省去新的补发队列中重复发送已在补发队列中的数据包,节约了网络带宽,降低了网络设备的负载。The beneficial effect of adopting the above-mentioned further scheme is: when there are multiple reissue queues in the multicast group, the statistics on the unsent data packets in the existing reissue queues in the multicast group can be saved, and new reissue queues can be omitted. The data packets in the reissue queue are repeatedly sent in the queue, which saves network bandwidth and reduces the load of network equipment.

在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.

进一步地,若所述组播组中所有UE的补发队列中未完成发送的队列数量等于1,Further, if the number of queues that have not been sent in the reissue queues of all UEs in the multicast group is equal to 1,

将所述主组播队列中的第1至n的数据包编号写入所述UE的补发队列;Write the first to n data packet numbers in the main multicast queue into the reissue queue of the UE;

获取当所述UE加入组播组时,所述组播组中补发队列中未发送的数据包编号;Acquire the number of the unsent data packets in the reissue queue in the multicast group when the UE joins the multicast group;

删除所述UE的补发队列中与所述组播组中补发队列中未发送的数据包编号中相同的数据包编号。Delete the same data packet number in the reissue queue of the UE as the number of the unsent data packets in the reissue queue in the multicast group.

采用上述进一步方案的有益效果是:当组播组中只有一个补发队列时,只需要对这一个补发队列中未发送的数据包进行统计,新加入组播组的UE的补发队列中无需再次发送已在补发队列中的数据包,节约了网络带宽,降低了网络设备的负载。The beneficial effect of adopting the above-mentioned further scheme is: when there is only one reissue queue in the multicast group, it is only necessary to count the unsent data packets in this one reissue queue, and the reissue queue of the UE that newly joins the multicast group needs to be counted. There is no need to resend the data packets already in the reissue queue, which saves network bandwidth and reduces the load of network equipment.

在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.

进一步地,若所述组播组中所有UE的补发队列中未完成发送的队列数量等于零,Further, if the number of queues that have not been sent in the reissue queues of all UEs in the multicast group is equal to zero,

将所述主组播队列中的第1至n的数据包编号写入所述UE的补发队列。Write the 1st to nth data packet numbers in the main multicast queue into the retransmission queue of the UE.

采用上述进一步方案的有益效果是:作为第一个加入组播组的UE,或已在组播组中的所有UE的补发队列已经完成发送后,新加入组播组的UE,顺序接收从第1至k的数据包。The beneficial effect of adopting the above-mentioned further scheme is: as the first UE to join the multicast group, or after the retransmission queues of all UEs already in the multicast group have completed sending, the UEs newly joining the multicast group receive the following in sequence. Packets 1 to k.

在上述技术方案的基础上,本发明还可以做如下改进。On the basis of the above technical solutions, the present invention can also be improved as follows.

进一步地,若所述主组播队列中的全部数据包编号所对应的数据包发送完成,不再接收UE加入所述组播组;Further, if the data packets corresponding to all the data packet numbers in the main multicast queue are sent, no more UEs are received to join the multicast group;

直到所述组播组内所有UE的补发队列完成发送,删除组播组。The multicast group is deleted until the retransmission queues of all UEs in the multicast group complete the transmission.

采用上述进一步方案的有益效果是:当组播组中没有补发队列时,新加入的UE的补发队列就需要补发在新加入UE加入组播组的时间点前,主组播队列中已经发送完成的数据包,可以使得新加入组播组的UE接收到完整数据。The beneficial effect of adopting the above-mentioned further scheme is: when there is no reissue queue in the multicast group, the reissue queue of the newly joined UE needs to reissue the reissue queue before the time point when the newly joined UE joins the multicast group. The data packets that have been sent can enable the UEs newly joining the multicast group to receive complete data.

本发明解决上述技术问题的另一种技术方案如下:Another technical scheme that the present invention solves the above-mentioned technical problem is as follows:

一种基于组播的数据传输装置,包括:A multicast-based data transmission device, comprising:

预判断模块,用于当接收到终端UE发送的数据请求时,判断组播组是否存在,若所述组播组存在,判断所述组播组的主组播队列中的全部数据包编号所对应的数据包是否已经发送完成,若所述组播组的主组播队列中的全部数据包编号所对应的数据包没有发送完成,将所述UE加入所述组播组中;The pre-judgment module is used for judging whether a multicast group exists when receiving a data request sent by the terminal UE, and if the multicast group exists, judging the number of all data packets in the main multicast queue of the multicast group. Whether the corresponding data packets have been sent, if the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group have not been sent, add the UE to the multicast group;

主组播队列模块,用于计算组播源需要发送的全部数据需占用的时长;按照所述组播源需要发送的全部数据需占用的时长,将所述需要发送的全部数据分为k个数据包,发送每个数据包占用的时长相同,其中,所述k是整数且k>1,将所述k个数据包编号,为所述组播组建立主组播队列,将所述k个数据包编号按照发送顺序写入所述主组播队列,在所述组播组中顺序发送所述主组播队列中第1至k的数据包编号所对应的数据包。The main multicast queue module is used to calculate the time occupied by all the data that the multicast source needs to send; according to the time occupied by all the data that the multicast source needs to send, divide all the data to be sent into k Data packets, the time taken to send each data packet is the same, where the k is an integer and k>1, the k data packets are numbered, a main multicast queue is established for the multicast group, and the k The data packet numbers are written into the main multicast queue according to the sending order, and the data packets corresponding to the data packet numbers 1 to k in the main multicast queue are sequentially sent in the multicast group.

补发队列模块,用于当所述UE加入所述组播组时,所述主组播队列中已完成发送n个数据包编号所对应的数据包,所述n是整数且1<n<k;为所述UE建立补发队列;获取当所述UE加入组播组时,所述组播组中所有UE的补发队列中未完成发送的队列数量;根据所述组播组中所有UE的补发队列中未完成发送的队列数量,确定在所述UE的补发队列中的数据包编号,按照所述UE的补发队列中的数据包编号,在所述组播组内发送数据包。The reissue queue module is used to send data packets corresponding to n data packet numbers in the main multicast queue when the UE joins the multicast group, where n is an integer and 1<n< k; establish a reissue queue for the UE; obtain the number of queues that have not been sent in the reissue queues of all UEs in the multicast group when the UE joins the multicast group; The number of queues in the reissue queue of the UE that has not been sent, determine the number of the data packets in the reissue queue of the UE, and send them in the multicast group according to the number of packets in the reissue queue of the UE data pack.

本发明的有益效果是:基于组播的数据传输装置包括预判断模块、主组播队列模块和补发队列模块,通过统计不会重新发送的数据包,将这些在组播组内不会重新发送的数据包再次发送,使得UE可以接收到完整的数据,同时UE可以随时加入组播组,节约了网络带宽,降低了网络设备的负载。The beneficial effects of the present invention are: the multicast-based data transmission device includes a pre-judgment module, a main multicast queue module and a reissue queue module, and by counting the data packets that will not be resent, these will not be resent in the multicast group. The sent data packet is sent again, so that the UE can receive complete data, and at the same time, the UE can join the multicast group at any time, which saves network bandwidth and reduces the load of network equipment.

此外,本发明还提供一种存储介质,存储有指令,当计算机读取指令时,使计算机执行上述技术方案中任一项所述的基于组播的数据传输方法。In addition, the present invention also provides a storage medium storing instructions, when the computer reads the instructions, the computer is made to execute the multicast-based data transmission method described in any one of the above technical solutions.

本发明附加的方面的优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本发明实践了解到。Advantages of additional aspects of the invention will be set forth, in part, from the following description, and in part will become apparent from the following description, or may be learned by practice of the invention.

附图说明Description of drawings

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

图1为本发明实施例提供的一种基于组播的数据传输方法的示意性流程图;1 is a schematic flowchart of a multicast-based data transmission method provided by an embodiment of the present invention;

图2为本发明另一实施例提供的一种基于组播的数据传输方法的示意性流程图;FIG. 2 is a schematic flowchart of a multicast-based data transmission method provided by another embodiment of the present invention;

图3为本发明另一实施例提供的一种基于组播的数据传输方法的示意性流程图;3 is a schematic flowchart of a multicast-based data transmission method provided by another embodiment of the present invention;

图4为本发明另一实施例提供的一种基于组播的数据传输方法的示意性流程图;4 is a schematic flowchart of a multicast-based data transmission method provided by another embodiment of the present invention;

图5为本发明另一实施例提供的一种基于组播的数据传输方法的示意性流程图;5 is a schematic flowchart of a multicast-based data transmission method provided by another embodiment of the present invention;

图6为本发明另一实施例提供的一种基于组播的数据传输方法的示意性流程图;6 is a schematic flowchart of a multicast-based data transmission method provided by another embodiment of the present invention;

图7为本发明另一实施例提供的一种基于组播的数据传输装置的模块示意图;FIG. 7 is a schematic block diagram of a multicast-based data transmission apparatus according to another embodiment of the present invention;

图8为本发明另一实施例提供的一种基于组播的数据传输方法的示意图。FIG. 8 is a schematic diagram of a multicast-based data transmission method according to another embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of the present invention.

如图1所示一种基于组播的数据传输方法100,包括,A multicast-based data transmission method 100 as shown in FIG. 1 includes:

110、当接收到终端UE发送的数据请求时,判断组播组是否存在;110. When receiving the data request sent by the terminal UE, determine whether the multicast group exists;

若组播组存在,执行步骤120。If the multicast group exists, go to step 120.

120、判断组播组的主组播队列中的全部数据包编号所对应的数据包是否已经发送完成;120. Determine whether the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group have been sent;

若组播组的主组播队列中的全部数据包编号所对应的数据包没有发送完成,执行步骤130。If the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group have not been sent, step 130 is executed.

130、将UE加入组播组中。130. Add the UE to the multicast group.

140、为UE建立补发队列,将需要为UE补发的数据包编号写入UE的补发队列中。140. Establish a reissue queue for the UE, and write the number of the data packet that needs to be reissued for the UE into the reissue queue of the UE.

150、按照UE的补发队列中的数据包编号,在组播组内发送数据包。150. Send the data packet in the multicast group according to the data packet number in the re-sending queue of the UE.

上述实施例中提供了当UE加入组播组时,通过统计不会重新发送的数据包,将在组播组内不会重新发送的数据包再次发送,使得UE可以接收到完整的数据,同时UE可以任意时刻加入组播组,还节约了网络带宽,降低了网络设备的负载。The above embodiment provides that when the UE joins the multicast group, by counting the data packets that will not be resent, the data packets that will not be resent in the multicast group are sent again, so that the UE can receive complete data, and at the same time. The UE can join the multicast group at any time, which saves network bandwidth and reduces the load of network equipment.

具体的,在另一实施例中,如图2所示一种基于组播的数据传输方法,包括上述一种基于组播的数据传输方法100中的步骤110,其中,当步骤110的判断结果是组播组不存在时,执行步骤210。Specifically, in another embodiment, as shown in FIG. 2, a multicast-based data transmission method includes step 110 in the above-mentioned multicast-based data transmission method 100, wherein, when the judgment result of step 110 is If the multicast group does not exist, step 210 is performed.

210、建立组播组,将UE加入组播组中。210. Establish a multicast group, and add the UE to the multicast group.

220、计算组播源需要发送的全部数据需占用的时长。220. Calculate the time occupied by all the data that the multicast source needs to send.

230、按照组播源需要发送的全部数据需占用的时长,将需要发送的全部数据分为k个数据包,发送每个数据包占用的时长相同,其中,k是整数且k>1。230. Divide all the data to be sent into k data packets according to the time occupied by all the data to be sent by the multicast source, and the time occupied by sending each data packet is the same, where k is an integer and k>1.

240、将k个数据包编号。240. Number the k data packets.

250、为组播组建立主组播队列,将k个数据包编号按照发送顺序写入主组播队列。250. Establish a main multicast queue for the multicast group, and write the k data packet numbers into the main multicast queue in the order of sending.

260、在组播组中顺序发送主组播队列中第1至k的数据包编号所对应的数据包。260. In the multicast group, sequentially send the data packets corresponding to the first to k data packet numbers in the main multicast queue.

上述实施例中提供了当组播组建立时,建立主组播队列,将需要发送的数据按照发送时长平均分为几个数据包,在主组播队列中写入数据包编号,按照主组播队列中的数据包编号的顺序发送数据包,保证所有数据包按照顺序进行发送。The above embodiment provides that when a multicast group is established, a main multicast queue is established, the data to be sent is evenly divided into several data packets according to the transmission time, and the data packet number is written in the main multicast queue, according to the main group. The data packets are sent in the order of the data packet numbers in the broadcast queue to ensure that all data packets are sent in order.

具体的,在优选实施例中,如图3所示一种基于组播的数据传输方法,包括上述一种基于组播的数据传输方法100中的步骤110,Specifically, in a preferred embodiment, as shown in FIG. 3, a multicast-based data transmission method includes step 110 in the above-mentioned multicast-based data transmission method 100,

120、判断组播组的主组播队列中的全部数据包编号所对应的数据包是否已经发送完成;120. Determine whether the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group have been sent;

若判断结果为是,执行步骤160;否则,执行步骤130。If the judgment result is yes, go to step 160; otherwise, go to step 130.

130、将UE加入组播组中。130. Add the UE to the multicast group.

141、当UE加入组播组时,主组播队列中已完成发送n个数据包编号所对应的数据包,n是整数且1<n<k。141. When the UE joins the multicast group, data packets corresponding to n data packet numbers have been sent in the main multicast queue, where n is an integer and 1<n<k.

142、为UE建立补发队列。142. Establish a reissue queue for the UE.

143、获取当UE加入组播组时,组播组中所有UE的补发队列中未完成发送的队列数量。143. Acquire the number of queues that have not completed transmission in the retransmission queues of all UEs in the multicast group when the UE joins the multicast group.

144、根据组播组中所有UE的补发队列中未完成发送的队列数量,确定UE的补发队列中的数据包编号。144. Determine the data packet number in the reissue queue of the UE according to the number of queues in the reissue queues of all UEs in the multicast group that have not completed transmission.

150、按照UE的补发队列中的数据包编号,在组播组内发送数据包。150. Send the data packet in the multicast group according to the data packet number in the re-sending queue of the UE.

160、不再接收UE加入组播组。160. No more receiving UEs to join the multicast group.

170、组播组内所有UE的补发队列完成发送,删除组播组。170. The reissue queues of all UEs in the multicast group complete the sending, and the multicast group is deleted.

上述实施例中提供了为新加入组播组的UE建立补发队列,使得新加入组播组的UE可以接收到全部数据,同时对补发队列中的需要发送的数据包进行统计,节约了网络带宽,降低了网络设备的负载。In the above-mentioned embodiment, it is provided to establish a reissue queue for the UE newly joining the multicast group, so that the UE newly joining the multicast group can receive all the data, and at the same time, the data packets that need to be sent in the reissue queue are counted, which saves Network bandwidth reduces the load on network devices.

具体的,在优选实施例中,如图4所示一种基于组播的数据传输方法300,包括上述一种基于组播的数据传输方法100中全部步骤,本实施例是步骤144中一种情况的实施例。Specifically, in a preferred embodiment, a multicast-based data transmission method 300 as shown in FIG. 4 includes all the steps in the above-mentioned multicast-based data transmission method 100 , and this embodiment is one of step 144 example of the situation.

310、若组播组中所有UE的补发队列中未完成发送的队列数量大于1310. If the number of uncompleted transmission queues in the retransmission queues of all UEs in the multicast group is greater than 1

320、将主组播队列中的第1至n的数据包编号写入UE的补发队列。320. Write the numbers of the 1st to nth data packets in the main multicast queue into the retransmission queue of the UE.

330、当UE加入组播组时,获取组播组中所有UE的补发队列中未发送的数据包编号。330. When the UE joins the multicast group, acquire the numbers of the unsent data packets in the retransmission queues of all UEs in the multicast group.

340、计算组播组中所有UE的补发队列中未发送的数据包编号的并集,得到未发送的数据包编号的并集。340. Calculate the union of the numbers of the unsent data packets in the retransmission queues of all UEs in the multicast group to obtain the union of the numbers of the unsent data packets.

350、删除补发队列中与未发送的数据包编号的并集中相同的数据包编号。350. Delete the same data packet number in the reissue queue as the union of the unsent data packet numbers.

本实施例中,通过每个UE的补发队列中未发送的数据包编号的集合,通过并集公式,求得这些集合的并集。例如,在组播组中有三个UE的补发队列未完成发送,三个UE的补发队列中未发送的数据包编号的集合分别对应集合A、集合B、集合C,通过并集公式,计算A∪B∪C,求得三个UE的补发队列中未发送的数据包编号的集合的并集。In this embodiment, the union of these sets is obtained through the set of unsent data packet numbers in the reissue queue of each UE and the union formula. For example, in the multicast group, there are three UEs' retransmission queues that have not been sent, and the sets of unsent data packet numbers in the three UEs' retransmission queues correspond to set A, set B, and set C respectively. Through the union formula, Calculate A∪B∪C, and obtain the union of the sets of unsent data packet numbers in the reissue queues of the three UEs.

上述实施例中提供了当组播组内已存在多个补发队列时,通对组播组中已存在补发队列中未发送的数据包进行统计,可以省去新加入组播组的UE的补发队列中重复发送已在组播组中的UE的补发队列中的数据包,节约了网络带宽,降低了网络设备的负载。The above-mentioned embodiment provides that when multiple reissue queues already exist in the multicast group, the data packets that have not been sent in the existing reissue queues in the multicast group can be counted, so that UEs that newly join the multicast group can be omitted. The data packets in the reissue queue of the UE in the multicast group are repeatedly sent in the reissue queue of the multicast group, which saves network bandwidth and reduces the load of network equipment.

具体的,在优选实施例中,如图5所示一种基于组播的数据传输方法400,包括上述一种基于组播的数据传输方法100中全部步骤,其中本实施例是步骤144中的另一种情况的实施例。Specifically, in a preferred embodiment, as shown in FIG. 5 , a multicast-based data transmission method 400 includes all the steps in the above-mentioned multicast-based data transmission method 100 . Example of another situation.

410、若组播组中所有UE的补发队列中未完成发送的队列数量等于1。410. If the number of uncompleted transmission queues in the retransmission queues of all UEs in the multicast group is equal to 1.

420、将主组播队列中的第1至n的数据包编号写入UE的补发队列。420. Write the numbers of the 1st to nth data packets in the main multicast queue into the retransmission queue of the UE.

430、获取当UE加入组播组时,组播组中补发队列中未发送的数据包编号。430. Acquire the number of the unsent data packet in the re-send queue in the multicast group when the UE joins the multicast group.

440、删除UE的补发队列中与组播组中补发队列中未发送的数据包编号中相同的数据包编号。440. Delete the same data packet number in the reissue queue of the UE as the number of the unsent data packets in the reissue queue in the multicast group.

上述实施例中提供了当组播组中只有一个补发队列时,只需要对这一个补发队列中未发送的数据包进行统计,新加入组播组的UE的补发队列中无需再次发送已在补发队列中的数据包,节约了网络带宽,降低了网络设备的负载。The above embodiment provides that when there is only one reissue queue in the multicast group, it is only necessary to count the unsent data packets in this reissue queue, and there is no need to send again in the reissue queue of the UE that newly joins the multicast group. The data packets in the queue are reissued, which saves network bandwidth and reduces the load of network equipment.

具体的,在优选实施例中,如图6所示一种基于组播的数据传输方法500,包括上述一种基于组播的数据传输方法100中全部步骤,其中本实施例是步骤144中的另一种情况的实施例。Specifically, in a preferred embodiment, as shown in FIG. 6 , a multicast-based data transmission method 500 includes all the steps in the above-mentioned multicast-based data transmission method 100 . Example of another situation.

510、若组播组中所有UE的补发队列中未完成发送的队列数量等于零。510. If the number of uncompleted transmission queues in the retransmission queues of all UEs in the multicast group is equal to zero.

520、将主组播队列中的第1至n的数据包编号写入UE的补发队列。520. Write the numbers of the 1st to nth data packets in the main multicast queue into the retransmission queue of the UE.

上述实施例中提供了,当作为第一个加入组播组的UE或前面加入组播组的UE的补发队列已经完成发送后,新加入的UE,顺序接收从第1至k的数据包。It is provided in the above-mentioned embodiment that when the reissue queue of the UE that joins the multicast group as the first one or the UE that joined the multicast group before has completed sending, the newly joined UE receives the data packets from the 1st to the kth in sequence. .

具体的,在另一个实施例中,如图6所示一种基于组播的数据传输装置,包括:Specifically, in another embodiment, as shown in FIG. 6 , a multicast-based data transmission device includes:

预判断模块,用于当接收到终端UE发送的数据请求时,判断组播组是否存在,若组播组存在,判断组播组的主组播队列中的全部数据包编号所对应的数据包是否已经发送完成,若组播组的主组播队列中的全部数据包编号所对应的数据包没有发送完成,将UE加入到组播组中;The pre-judgment module is used to judge whether the multicast group exists when receiving the data request sent by the terminal UE, and if the multicast group exists, judge the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group Whether the transmission has been completed, if the data packets corresponding to all the data packet numbers in the main multicast queue of the multicast group have not been sent, add the UE to the multicast group;

主组播队列模块,用于计算组播源需要发送的全部数据需占用的时长;按照组播源需要发送的全部数据需占用的时长,将需要发送的全部数据分为k个数据包,发送每个数据包占用的时长相同,其中,k是整数且k>1,将k个数据包编号,为组播组建立主组播队列,将k个数据包编号按照发送顺序写入主组播队列,在组播组中顺序发送主组播队列中第1至k的数据包编号所对应的数据包。The main multicast queue module is used to calculate the time required for all the data to be sent by the multicast source; according to the time required for all the data to be sent by the multicast source, all the data to be sent is divided into k data packets and sent The duration occupied by each data packet is the same, where k is an integer and k>1. Set the number of k data packets to establish a main multicast queue for the multicast group, and write the number of k data packets to the main multicast group in the order in which they are sent. Queue, in the multicast group sequentially sends the data packets corresponding to the 1st to kth data packet numbers in the main multicast queue.

补发队列模块,用于当UE加入组播组时,主组播队列中已完成发送n个数据包编号所对应的数据包,n是整数且1<n<k;为UE建立补发队列;获取当UE加入组播组时,组播组中所有UE的补发队列中未完成发送的队列数量;根据组播组中所有UE的补发队列中未完成发送的队列数量,确定在UE的补发队列中的数据包编号,按照UE的补发队列中的数据包编号,在组播组内发送数据包。The reissue queue module is used to send data packets corresponding to n data packet numbers in the main multicast queue when the UE joins the multicast group, where n is an integer and 1<n<k; establish a reissue queue for the UE ; Obtain the number of uncompleted sending queues in the reissue queues of all UEs in the multicast group when the UE joins the multicast group; determine the number of uncompleted sending queues in the reissue queues of all UEs in the multicast group The data packet number in the reissue queue of the UE is sent in the multicast group according to the data packet number in the reissue queue of the UE.

本发明实施例的有益效果是:基于组播的数据传输装置包括预判断模块、主组播队列模块和补发队列模块,通过统计不会重新发送的数据包,将这些在组播组内不会重新发送的数据包再次发送,使得UE可以接收完整的数据,同时UE可以随时加入组播组,节约了网络带宽,降低了网络设备的负载。The beneficial effect of the embodiment of the present invention is that: the multicast-based data transmission device includes a pre-judgment module, a main multicast queue module and a reissue queue module, and by counting the data packets that will not be retransmitted, these data packets that are not retransmitted in the multicast group The data packets that will be resent are sent again, so that the UE can receive complete data, and at the same time, the UE can join the multicast group at any time, which saves network bandwidth and reduces the load of network equipment.

图8为一种基于组播的数据传输方法的示意图,作为上述实施例的举例,主组播队列中顺序发送从1至k的数据包,当UE1加入组播组时,主组播队列已经完成2个数据包的发送,此时组播组内没有补发队列,因此,UE1的补发队列中是发送顺序为1、2的数据包编号。当UE2加入组播组时,主组播队列已经完成3个数据包的发送,此时组播组内有UE1的补发队列,,UE2需要接收发送顺序是1、2、3的数据包,UE1的补发队列中未发送的数据包编号是2,因此发送顺序是2的数据包可以通过UE1的补发队列中获得,UE2的补发队列中是发送顺序1、3的数据包编号。当UE3加入组播组时,此时主组播队列中已经完成发送顺序是1、2、3、4的数据包,此时组播组内的未完成发送的UE的补发队列是UE2的补发队列,UE2的补发队列中未发送的数据包是发送顺序为3的数据包,将3从1、2、3、4中删除,得到1、2、4,得到UE3的补发队列中的是发送顺序1、2、4的数据包编号。FIG. 8 is a schematic diagram of a method for data transmission based on multicast. As an example of the above embodiment, the main multicast queue sends data packets from 1 to k in sequence. When UE1 joins the multicast group, the main multicast queue has already After completing the sending of 2 data packets, there is no retransmission queue in the multicast group at this time. Therefore, the retransmission queue of UE1 contains the data packet numbers with the sending order of 1 and 2. When UE2 joins the multicast group, the main multicast queue has completed the sending of 3 data packets. At this time, there is a re-send queue of UE1 in the multicast group. UE2 needs to receive the data packets in the order of 1, 2, and 3. The number of the unsent data packets in the reissue queue of UE1 is 2, so the data packets with the sending order of 2 can be obtained from the reissue queue of UE1, and the reissue queue of UE2 is the number of the data packets in the order of sending 1 and 3. When UE3 joins the multicast group, at this time the main multicast queue has completed sending data packets in the order of 1, 2, 3, and 4. At this time, the re-sending queue of UEs that have not completed sending in the multicast group is UE2's. Reissue queue, the unsent data packets in the reissue queue of UE2 are the data packets with the sending order of 3, delete 3 from 1, 2, 3, 4, get 1, 2, 4, and get the reissue queue of UE3 In is the packet number of the sending order 1, 2, and 4.

特别的,本发明实施例中还提供了一种存储介质,存储有指令,当计算机读取指令时,使计算机执行上述实施例中的基于组播的数据传输方法。In particular, an embodiment of the present invention also provides a storage medium, which stores an instruction, and when the computer reads the instruction, makes the computer execute the multicast-based data transmission method in the foregoing embodiment.

应理解,在本发明各实施例中,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that, in each embodiment of the present invention, the size of the sequence numbers of the above-mentioned processes does not mean the sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, rather than the implementation of the embodiments of the present invention. The process constitutes any qualification.

另外,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。In addition, the term "and/or" in this article is only an association relationship to describe the associated objects, indicating that there can be three kinds of relationships, for example, A and/or B, it can mean that A exists alone, A and B exist at the same time, There are three cases of B alone. In addition, the character "/" in this document generally indicates that the related objects are an "or" relationship.

本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. Interchangeability, the above description has generally described the components and steps of each example in terms of function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口、装置或单元的间接耦合或通信连接,也可以是电的,机械的或其它的形式连接。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods, for example, multiple units or components may be combined or integrated. to another system, or some features can be ignored, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may also be electrical, mechanical or other forms of connection.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。Units described as separate components may or may not be physically separated, and components shown as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solutions in the embodiments of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以是两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.

集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分,或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or a part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .

以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or modifications within the technical scope disclosed by the present invention. Replacement, these modifications or replacements should all be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the protection scope of the claims.

Claims (9)

1. a kind of data transmission method based on multicast characterized by comprising
When receiving the request of data of terminal UE transmission, judge that multicast group whether there is;
If the multicast group exists, data corresponding to the total data packet number in the main multicast queue of the multicast group are judged Whether packet has been sent completely;
If data packet corresponding to the total data packet number in the main multicast queue of the multicast group is not sent completely, by institute UE is stated to be added in the multicast group;
Queue is reissued for UE foundation, will need what the package number reissued for the UE was written the UE to reissue queue In;
According to the package number of the UE reissued in queue, data packet is sent in the multicast group.
2. data transmission method as described in claim 1, which is characterized in that if the multicast group is not present,
Multicast group is established, the UE is added in the multicast group;
Calculate the duration that multicast source needs the total data sent that need to occupy;
According to the duration that the multicast source needs the total data sent that need to occupy, the total data sent is needed to be divided by described K number it is identical to send the duration that each data packet occupies, wherein the k is integer and k > 1 according to packet;
By the k number according to packet number;
The main multicast queue is established for the multicast group, the k number is sequentially written in the master according to transmission according to packet number Multicast queue;
Data packet corresponding to 1 package number to k in the main multicast queue is sequentially sent in the multicast group.
3. data transmission method as described in claim 1, which is characterized in that the data packet that will need to reissue for the UE The specific steps reissued in queue that the UE is written in number include:
When the multicast group is added in the UE, it is completed and is sent corresponding to n package number in the main multicast queue Data packet, the n are integer and 1 < n < k;
Queue is reissued for UE foundation;
It obtains when the multicast group is added in the UE, all UE's reissues the team for not completing and sending in queue in the multicast group Number of columns;
The number of queues for not completing and sending in queue is reissued according to UE all in the multicast group, determines that the UE's reissues team Package number in column.
4. data transmission method as claimed in claim 3, which is characterized in that if all UE's reissues queue in the multicast group In do not complete send number of queues be greater than 1,
Queue is reissued by what the 1st to n package number in the main multicast queue was written the UE;
When the multicast group is added in the UE, obtain all UE in the multicast group reissues data packet not sent in queue Number;
The union for reissuing package number not sent in queue for calculating all UE in the multicast group, obtains not sent number According to the union of packet number;
Delete the UE reissue in queue with the not sent package number and concentrate identical package number.
5. data transmission method as claimed in claim 3, which is characterized in that if all UE's reissues queue in the multicast group In do not complete send number of queues be equal to 1,
Queue is reissued by what the 1st to n package number in the main multicast queue was written the UE;
It obtains when the multicast group is added in the UE, reissues package number not sent in queue in the multicast group;
Delete the UE reissue in queue with reissued in the multicast group it is identical in package number not sent in queue Package number.
6. data transmission method as claimed in claim 3, which is characterized in that if all UE's reissues queue in the multicast group In do not complete send number of queues be equal to zero,
Queue is reissued by what the 1st to n package number in the main multicast queue was written the UE.
7. data transmission method as claimed in claim 2, which is characterized in that
If data packet corresponding to the total data packet number in the main multicast queue is sent completely, institute is added in no longer reception UE State multicast group;
Queue completion transmission is reissued until UE all in the multicast group, deletes the multicast group.
8. a kind of data transmission device based on multicast characterized by comprising
Pre- judgment module, for judging that multicast group whether there is when receiving the request of data of terminal UE transmission, if described group A group presence is broadcast, judges whether data packet corresponding to the total data packet number in the main multicast queue of the multicast group has been sent out Completion is sent, if data packet corresponding to the total data packet number in the main multicast queue of the multicast group is not sent completely, The UE is added in the multicast group;
Main multicast queue module, the duration for needing the total data sent that need to occupy for calculating multicast source;According to the multicast The duration that source needs the total data sent that need to occupy needs described the total data sent to be divided into k number according to packet, sends every The duration that a data packet occupies is identical, wherein the k is integer and k > 1, by the k number according to packet number, for the multicast group Main multicast queue is established, the k number is sequentially written in the main multicast queue according to transmission according to packet number, in the multicast group Middle sequence sends data packet corresponding to 1 package number to k in the main multicast queue;
Queue module is reissued, for being completed in the main multicast queue and sending n number when the multicast group is added in the UE According to data packet corresponding to packet number, the n is integer and 1 < n < k;Queue is reissued for UE foundation;It obtains when the UE adds When entering the multicast group, all UE's reissues the number of queues for not completing and sending in queue in the multicast group;According to described group Broadcast the data packet reissued in queue of all UE in group reissued the number of queues for not completing and sending in queue, determine in the UE Number, according to the package number of the UE reissued in queue, sends data packet in the multicast group.
9. a kind of storage medium, which is characterized in that instruction is stored in the storage medium, when computer reads described instruction When, so that the computer is executed the data transmission method based on multicast as described in any one of claims 1 to 7.
CN201910245620.4A 2019-03-28 2019-03-28 Data transmission method and device based on multicast Active CN110022534B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910245620.4A CN110022534B (en) 2019-03-28 2019-03-28 Data transmission method and device based on multicast

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910245620.4A CN110022534B (en) 2019-03-28 2019-03-28 Data transmission method and device based on multicast

Publications (2)

Publication Number Publication Date
CN110022534A true CN110022534A (en) 2019-07-16
CN110022534B CN110022534B (en) 2021-06-08

Family

ID=67190172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910245620.4A Active CN110022534B (en) 2019-03-28 2019-03-28 Data transmission method and device based on multicast

Country Status (1)

Country Link
CN (1) CN110022534B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278158A (en) * 2019-08-09 2019-09-24 京信通信系统(中国)有限公司 Multicast data packet sending method, computer device and storage medium
CN110740045A (en) * 2019-10-28 2020-01-31 支付宝(杭州)信息技术有限公司 Instruction multicast method and system
WO2022151248A1 (en) * 2021-01-14 2022-07-21 华为技术有限公司 Data transmission method and apparatus

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103650418A (en) * 2011-06-09 2014-03-19 美国博通公司 Method and apparatus for facilitating multicast service
CN104093070A (en) * 2014-07-22 2014-10-08 中国科学院软件研究所 A method for accelerating channel switching in a video multicast network system and a channel group identification method
CN105491414A (en) * 2015-11-19 2016-04-13 深圳市时尚德源文化传播有限公司 Synchronous display method and device of images
CN107566855A (en) * 2016-06-30 2018-01-09 华为技术有限公司 Method, server and the set top box that channel is switched fast
CN108111531A (en) * 2018-01-02 2018-06-01 青岛海信网络科技股份有限公司 A kind of method and device for enhancing net cast quality

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103650418A (en) * 2011-06-09 2014-03-19 美国博通公司 Method and apparatus for facilitating multicast service
CN104093070A (en) * 2014-07-22 2014-10-08 中国科学院软件研究所 A method for accelerating channel switching in a video multicast network system and a channel group identification method
CN105491414A (en) * 2015-11-19 2016-04-13 深圳市时尚德源文化传播有限公司 Synchronous display method and device of images
CN107566855A (en) * 2016-06-30 2018-01-09 华为技术有限公司 Method, server and the set top box that channel is switched fast
CN108111531A (en) * 2018-01-02 2018-06-01 青岛海信网络科技股份有限公司 A kind of method and device for enhancing net cast quality

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110278158A (en) * 2019-08-09 2019-09-24 京信通信系统(中国)有限公司 Multicast data packet sending method, computer device and storage medium
CN110278158B (en) * 2019-08-09 2024-01-30 京信网络系统股份有限公司 Multicast data packet transmission method, computer equipment and storage medium
CN110740045A (en) * 2019-10-28 2020-01-31 支付宝(杭州)信息技术有限公司 Instruction multicast method and system
WO2022151248A1 (en) * 2021-01-14 2022-07-21 华为技术有限公司 Data transmission method and apparatus

Also Published As

Publication number Publication date
CN110022534B (en) 2021-06-08

Similar Documents

Publication Publication Date Title
US8040836B2 (en) Local network coding for wireless networks
US9661476B2 (en) Method and apparatus for facilitating multicast service
US20190312938A1 (en) Data Transmission Method And Apparatus
CN1330162C (en) Method for data segment cascade and recombination
CN110022534A (en) A kind of data transmission method and device based on multicast
CN103684707B (en) Server-side and user-side message transmission processing method, message transmission method and message transmission system
CN108282277A (en) A kind of packet loss repeating method, apparatus and system
CN108270687A (en) A kind of load balance process method and device
US11502778B2 (en) Method and apparatus for efficient delivery of source and forward error correction streams in systems supporting mixed unicast multicast transmission
CN109391522B (en) RDMA-based network traffic determination method, forwarding device, analysis server and storage medium
US9948473B2 (en) Seamless connection handshake for a reliable multicast session
CN110719228B (en) Big data packet transmission method and device based on real-time data distribution service
JP2015056691A (en) Communication device and communication method
WO2020007278A1 (en) Data transmitting method and device, and data receiving method and device
CN106850153B (en) Data retransmission method and system
CN115801691B (en) Method and device for processing data packet loss and storage medium
CN114584262B (en) Data transmission method and related equipment
CN110062339A (en) A kind of method and apparatus of shareable data transmission
CN112567801B (en) Device, method and computer program
CN105227451B (en) A message processing method and device
CN111954083A (en) Image transmission method, device and system
CN101350836A (en) Linkage method and device for information transmission in code division multiple access system
CN110166185A (en) Audio data processing method and device, storage medium and processor
CN113972966B (en) Business processing methods, devices and related equipment
CN115174500B (en) PISA-based transmitting node and switch for intra-network combined transmission

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载