CN109586932A - Method of multicasting and terminal device - Google Patents
Method of multicasting and terminal device Download PDFInfo
- Publication number
- CN109586932A CN109586932A CN201811216509.4A CN201811216509A CN109586932A CN 109586932 A CN109586932 A CN 109586932A CN 201811216509 A CN201811216509 A CN 201811216509A CN 109586932 A CN109586932 A CN 109586932A
- Authority
- CN
- China
- Prior art keywords
- data
- loss
- preset time
- data packet
- control module
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/16—Arrangements for providing special services to substations
- H04L12/18—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
- H04L12/1863—Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/12—Arrangements for detecting or preventing errors in the information received by using return channel
- H04L1/16—Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
- H04L1/1607—Details of the supervisory signal
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Detection And Prevention Of Errors In Transmission (AREA)
Abstract
The present invention is suitable for field of communication technology, provide a kind of method of multicasting and terminal device, all recipients are subjected to subregion using consistency hash algorithm, the sender of the same area belongs to the same sub- multicast group, when data-bag lost occurs for recipient's received data packet, other recipients of the meeting into the same sub- multicast group send the instruction of the first data re-transmitting, request data retransmission;When loss of data occurs for all recipients in same sub- multicast group, recipient sends the second data re-transmitting and instructs to sender's request data retransmission.The reliability transmission for guaranteeing multicast packet in this manner, improves the efficiency of transmission of data.
Description
Technical field
The invention belongs to field of communication technology more particularly to a kind of method of multicasting and terminal device.
Background technique
Multicast transmission: point-to-point configuration connection is realized between sender and each recipient.If a sender
Identical data are transmitted to multiple recipients simultaneously, also need to only replicate a identical data packet.It improves data transmission
Efficiency.Reduce backbone network and a possibility that congestion occurs.
RDMA (Remote Direct Memory Access, remote direct data access) is to solve network transmission
The delay of middle servers' data processing and generate.RDMA is directly passed to data the memory block of computer by network, will
Data move quickly into remote system stored device from a system, without having any impact to operating system, thus not
Need to use the processing function of how many computer.It eliminates the expense of external memory duplication and context switching, thus energy
Liberation memory bandwidth and cpu cycle are for improving application system performance.
RDMA technology is introduced into multicast scheme, very fast reliable multicast is realized in local area network, but there are numbers for such method
According to the unstable problem of transmission.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of method of multicasting and terminal device, to solve to count in the prior art
According to the unstable problem of transmission.
In order to solve the above technical problems, the first aspect of the embodiment of the present invention provides a kind of method of multicasting, comprising:
Several data packets that sender sends are received, and judge whether that data-bag lost occurs;
When data-bag lost occurs, the first data re-transmitting instruction to be sent such as inhibition in the first preset time, and sentence
The disconnected data packet for whether receiving loss;
It is other into the same sub- multicast group if not receiving the data packet of loss in the first preset time range
Recipient send first data re-transmitting instruction, and judge whether in the second preset time to receive the data of loss
Packet, wherein all recipients are carried out by subregion using consistency hash algorithm, the sender of the same area belongs to the same subgroup
Broadcast group;
If not receiving the data packet of loss in the second preset time, inhibition etc. is to be sent in third preset time
The instruction of second data re-transmitting, and judge whether to receive the data packet of loss;
If not receiving the data packet of loss in third preset time, second data are sent to described sender
Reissue commands.
Further, judge the method for data-bag lost are as follows:
The difference of the number of the two adjacent data packets received exceeds threshold range, then assert data-bag lost.
Further, if receiving the data packet of loss in the first preset time range, first number is not sent
According to reissue commands.
Further, if receiving the data packet of loss in the second preset time range, second number is not generated
According to reissue commands.
Further, if receiving the data packet of loss in third preset time range, second number is not sent
According to reissue commands.
The second aspect of the embodiment of the present invention provides a kind of multicast apparatus, including receiving module, control module and transmission
Module;
The receiving module receives several data packets that sender sends, and several data packets received are transmitted
To the control module, the control module simultaneously judges whether that data-bag lost occurs;
When data-bag lost occurs, the first data weights to be sent such as the control module inhibits in the first preset time
Send instructions, and judges whether to receive the data packet of loss;
If the control module does not receive the data packet of loss in the first preset time range, the control module is logical
It crosses other recipients of the sending module into the same sub- multicast group and sends the first data re-transmitting instruction, and the
Judge whether to receive the data packet of loss in two preset times, wherein using consistency hash algorithm by all recipients into
Row subregion, the sender of the same area belong to the same sub- multicast group;
If the control module does not receive the data packet of loss in the second preset time, the control module is in third
The second data re-transmitting instruction to be sent such as inhibition in preset time, and judge whether to receive the data packet of loss;
If the control module does not receive the data packet of loss in third preset time, the control module passes through institute
It states sending module and sends the second data re-transmitting instruction to described sender.
Further, the control module judges the method for data-bag lost are as follows:
The difference of the number of the two adjacent data packets received exceeds threshold range, then assert data-bag lost.
Further, it after described sender receives the second data re-transmitting instruction, is broadcast to the subgroup where recipient
All recipients in group retransmit specified data.
The third aspect of the embodiment of the present invention provides a kind of multi-cast terminal equipment, including memory, processor and deposits
The computer program that can be run in the memory and on the processor is stored up, the processor executes the computer journey
The step of method described above is realized when sequence.
The third aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Media storage has the step of computer program, the computer program realizes method described above when being executed by processor.
The beneficial effects of adopting the technical scheme are that the present invention is connect using consistency hash algorithm by all
Debit carries out subregion, and the sender of the same area belongs to the same sub- multicast group, when data packet occurs for recipient's received data packet
When loss, other recipients of the meeting into the same sub- multicast group send the instruction of the first data re-transmitting, request data retransmission;When same
When loss of data occurs for all recipients in one sub- multicast group, recipient's the second data re-transmitting of transmission, which is instructed to sender, is asked
Data are asked to retransmit.The reliability transmission for guaranteeing multicast packet in this manner, improves the efficiency of transmission of data.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art
Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some
Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these
Attached drawing obtains other attached drawings.
Fig. 1 is the logical flow chart of method of multicasting provided in an embodiment of the present invention;
Fig. 2 is the functional block diagram of multicast apparatus provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
As shown in Figure 1, being the logical flow chart of method of multicasting provided in an embodiment of the present invention, comprising:
Step S100 receives several data packets that sender sends.
In one embodiment of the present of invention, the method for data-bag lost is judged are as follows: the two adjacent data packets received
Number difference exceed threshold range, then assert data-bag lost.
Step S101 judges whether that data-bag lost occurs.
Step S102, when data-bag lost occurs, first data re-transmitting to be sent such as inhibition in the first preset time
Instruction.
Step S103 judges whether the data packet for receiving loss.
Step S104 is broadcast if not receiving the data packet of loss in the first preset time range to the same subgroup
Other recipients in group send the instruction of the first data re-transmitting.
In one embodiment of the present of invention, if receiving the data packet of loss in the first preset time range, do not send out
The first data re-transmitting is sent to instruct.
Wherein, all recipients are carried out by subregion using consistency hash algorithm, the sender of the same area belongs to same
A sub- multicast group;
Step S105 judges whether the data packet for receiving loss in the second preset time.
Step S106 presses down in third preset time if not receiving the data packet of loss in the second preset time
The second data re-transmitting instruction to be sent such as system.
In one embodiment of the present of invention, if receiving the data packet of loss in the second preset time range, do not give birth to
It is instructed at the second data re-transmitting.
Step S107 judges whether the data packet for receiving loss in third preset time.
Step S108 sends the second number to sender if not receiving the data packet of loss in third preset time
According to reissue commands.
In one embodiment of the present of invention, if receiving the data packet of loss in third preset time range, do not send out
The second data re-transmitting is sent to instruct.
All recipients are carried out subregion using consistency hash algorithm by the present invention, and the sender of the same area belongs to same
A sub- multicast group, when data-bag lost occurs for recipient's received data packet, other receptions of the meeting into the same sub- multicast group
Side sends the instruction of the first data re-transmitting, request data retransmission;It is lost when data occur for all recipients in same sub- multicast group
When mistake, recipient sends the second data re-transmitting and instructs to sender's request data retransmission.Guarantee multicast packet in this manner
Reliability transmission, improve the efficiency of transmission of data.
As shown in Fig. 2, the invention discloses a kind of multicast apparatus, including receiving module, control module and sending module.
Receiving module receives several data packets that sender sends, and several data packets received are sent to control
Molding block, control module simultaneously judge whether that data-bag lost occurs;When data-bag lost occurs, control module is default first
The first data re-transmitting instruction to be sent such as inhibition in time, and judge whether to receive the data packet of loss;If default first
Control module does not receive the data packet of loss in time range, and control module is by sending module into the same sub- multicast group
Other recipients send the instruction of the first data re-transmitting, and judge whether in the second preset time to receive the data of loss
Packet, wherein all recipients are carried out by subregion using consistency hash algorithm, the sender of the same area belongs to the same subgroup
Broadcast group;If control module does not receive the data packet of loss in the second preset time, control module is in third preset time
The second data re-transmitting instruction to be sent such as inhibition, and judge whether to receive the data packet of loss;If in third preset time
Control module does not receive the data packet of loss, and control module sends the second data re-transmitting to sender by sending module and refers to
It enables.
Control module controls and receives module and receives the data packet that sender sends, and when data-bag lost occurs, controls mould
Block by sending module can other recipients into the same sub- multicast group send the instruction of the first data re-transmitting, request data weight
It passes;When loss of data occurs for all recipients in same sub- multicast group, control module sends second by sending module
Data re-transmitting is instructed to sender's request data retransmission.In this manner in the premise for guaranteeing multicast packet reliability transmission
Under, improve the efficiency of transmission of data.
In one embodiment of the present of invention, method that control module judges data-bag lost are as follows: two received are adjacent
Data packet number difference exceed threshold range, then assert data-bag lost.
In one embodiment of the present of invention, after sender receives the instruction of the second data re-transmitting, to the son where recipient
All recipients in multicast group retransmit specified data.
A kind of multi-cast terminal equipment, including memory, processor and storage are disclosed in one embodiment of the present of invention
In memory and the computer program that can run on a processor, processor realize the above method when executing computer program
Step.
A kind of computer readable storage medium is disclosed in one embodiment of the present of invention, computer readable storage medium is deposited
The step of containing computer program, the above method realized when computer program is executed by processor.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality
Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each
Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified
Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all
It is included within protection scope of the present invention.
Claims (10)
1. a kind of method of multicasting characterized by comprising
Several data packets that sender sends are received, and judge whether that data-bag lost occurs;
When data-bag lost occurs, the first data re-transmitting instruction to be sent such as inhibition in the first preset time, and judgement is
The no data packet for receiving loss;
If not receiving the data packet of loss in the first preset time range, the others into the same sub- multicast group are connect
Debit sends first data re-transmitting instruction, and judges whether in the second preset time to receive the data packet of loss,
In, all recipients are carried out by subregion using consistency hash algorithm, the sender of the same area belongs to the same sub- multicast group;
If not receiving the data packet of loss in the second preset time, inhibition etc. to be sent second in third preset time
Data re-transmitting instruction, and judge whether to receive the data packet of loss;
If not receiving the data packet of loss in third preset time, second data re-transmitting is sent to described sender
Instruction.
2. method of multicasting according to claim 1, which is characterized in that judge the method for data-bag lost are as follows:
The difference of the number of the two adjacent data packets received exceeds threshold range, then assert data-bag lost.
3. method of multicasting according to claim 1, which is characterized in that if receiving loss in the first preset time range
Data packet, then do not send first data re-transmitting instruction.
4. method of multicasting according to claim 1, which is characterized in that if receiving loss in the second preset time range
Data packet, then do not generate second data re-transmitting instruction.
5. method of multicasting according to claim 1, which is characterized in that if receiving loss in third preset time range
Data packet, then do not send second data re-transmitting instruction.
6. a kind of multicast apparatus, which is characterized in that including receiving module, control module and sending module;
The receiving module receives several data packets that sender sends, and several data packets received are sent to institute
Control module is stated, the control module simultaneously judges whether that data-bag lost occurs;
When data-bag lost occurs, first data re-transmittings to be sent such as the control module inhibits in the first preset time refer to
It enables, and judges whether to receive the data packet of loss;
If the control module does not receive the data packet of loss in the first preset time range, the control module passes through institute
It states other recipients of the sending module into the same sub- multicast group and sends the first data re-transmitting instruction, and is pre- second
If judging whether to receive the data packet of loss in the time, wherein divided all recipients using consistency hash algorithm
Area, the sender of the same area belong to the same sub- multicast group;
If the control module does not receive the data packet of loss in the second preset time, the control module is default in third
The second data re-transmitting instruction to be sent such as inhibition in time, and judge whether to receive the data packet of loss;
If the control module does not receive the data packet of loss in third preset time, the control module passes through the hair
Module is sent to send the second data re-transmitting instruction to described sender.
7. multicast apparatus according to claim 6, which is characterized in that the method that the control module judges data-bag lost
Are as follows:
The difference of the number of the two adjacent data packets received exceeds threshold range, then assert data-bag lost.
8. multicast apparatus according to claim 6, which is characterized in that described sender receives second data re-transmitting
After instruction, all recipients into the sub- multicast group where recipient retransmit specified data.
9. a kind of multi-cast terminal equipment, including memory, processor and storage are in the memory and can be in the processing
The computer program run on device, which is characterized in that the processor realizes such as claim 1 when executing the computer program
The step of to any one of 5 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811216509.4A CN109586932B (en) | 2018-10-18 | 2018-10-18 | Multicast method and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811216509.4A CN109586932B (en) | 2018-10-18 | 2018-10-18 | Multicast method and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109586932A true CN109586932A (en) | 2019-04-05 |
CN109586932B CN109586932B (en) | 2021-03-19 |
Family
ID=65920646
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811216509.4A Active CN109586932B (en) | 2018-10-18 | 2018-10-18 | Multicast method and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109586932B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740045A (en) * | 2019-10-28 | 2020-01-31 | 支付宝(杭州)信息技术有限公司 | Instruction multicast method and system |
CN114422484A (en) * | 2021-12-16 | 2022-04-29 | 广东电网有限责任公司 | Multicast method, device, mobile terminal and storage medium |
CN114584262A (en) * | 2020-11-30 | 2022-06-03 | 华为技术有限公司 | Data transmission method and related equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547386A (en) * | 2012-01-12 | 2012-07-04 | 华为技术有限公司 | Data retransmission method, system, multicast server and user terminal |
CN106130746A (en) * | 2016-07-06 | 2016-11-16 | 浙江宇视科技有限公司 | A kind of data transmission method and device |
US20180198747A1 (en) * | 2017-01-10 | 2018-07-12 | International Business Machines Corporation | Ensuring that all users of a group message receive a response to the group message |
CN108282277A (en) * | 2018-01-22 | 2018-07-13 | 西安万像电子科技有限公司 | A kind of packet loss repeating method, apparatus and system |
-
2018
- 2018-10-18 CN CN201811216509.4A patent/CN109586932B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102547386A (en) * | 2012-01-12 | 2012-07-04 | 华为技术有限公司 | Data retransmission method, system, multicast server and user terminal |
CN106130746A (en) * | 2016-07-06 | 2016-11-16 | 浙江宇视科技有限公司 | A kind of data transmission method and device |
US20180198747A1 (en) * | 2017-01-10 | 2018-07-12 | International Business Machines Corporation | Ensuring that all users of a group message receive a response to the group message |
CN108282277A (en) * | 2018-01-22 | 2018-07-13 | 西安万像电子科技有限公司 | A kind of packet loss repeating method, apparatus and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110740045A (en) * | 2019-10-28 | 2020-01-31 | 支付宝(杭州)信息技术有限公司 | Instruction multicast method and system |
CN114584262A (en) * | 2020-11-30 | 2022-06-03 | 华为技术有限公司 | Data transmission method and related equipment |
CN114584262B (en) * | 2020-11-30 | 2024-04-16 | 华为技术有限公司 | Data transmission method and related equipment |
CN114422484A (en) * | 2021-12-16 | 2022-04-29 | 广东电网有限责任公司 | Multicast method, device, mobile terminal and storage medium |
CN114422484B (en) * | 2021-12-16 | 2024-01-30 | 广东电网有限责任公司 | Multicast method, device, mobile terminal and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109586932B (en) | 2021-03-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6106718B2 (en) | Physical unidirectional communication apparatus and method | |
CN101141406B (en) | Distributed flow control method, system and device | |
CN109586932A (en) | Method of multicasting and terminal device | |
CN107483349A (en) | The method and apparatus of transmitting data stream | |
Escudero-Sahuquillo et al. | Combining congested-flow isolation and injection throttling in hpc interconnection networks | |
JP6598771B2 (en) | Distributed data transmission in data networks | |
CN105812287A (en) | Effective circuits in packet-switched networks | |
CN106330742B (en) | Flow control method and network controller | |
WO2003053009A1 (en) | A method of controlling flow of the ethernet data in a synchronous data hierarchy transmission network | |
CN106576108A (en) | Communication method and device, and system in communication system | |
US6151299A (en) | Method and apparatus for enhanced partial packet discard | |
EP1139602A1 (en) | Method and device for multicasting | |
CN109995664A (en) | A kind of method, apparatus and system sending data flow | |
CN104160735A (en) | Packet processing method, forwarder, packet processing device and packet processing system | |
CN102223311A (en) | Queue scheduling method and device | |
CN115766605A (en) | Network congestion control method, device and system | |
Baek et al. | A reliable overlay video transport protocol for multicast agents in wireless mesh networks | |
CN107820218A (en) | The establishing method and equipment of message transmissions mode | |
CN109586931B (en) | Multicast method and terminal equipment | |
CN108900439A (en) | A kind of PON OLT system and its method for realizing masterslave switchover | |
CN102546199B (en) | A kind of guard method of aggregated links and Packet Switching Node | |
CN107623645A (en) | A kind of power system Real Data Exchangs system based on forwarding data flow | |
Tykhomyrov et al. | Performance evaluation of the IEEE 802.16 ARQ mechanism | |
CN103780444A (en) | Loop automatic detection device and method in EoC network | |
Khurshid et al. | Comparative study of congestion notification techniques for hop‐by‐hop‐based flow control in data centre Ethernet |
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 |