CN109586931B - Multicast method and terminal equipment - Google Patents

Multicast method and terminal equipment Download PDF

Info

Publication number
CN109586931B
CN109586931B CN201811216508.XA CN201811216508A CN109586931B CN 109586931 B CN109586931 B CN 109586931B CN 201811216508 A CN201811216508 A CN 201811216508A CN 109586931 B CN109586931 B CN 109586931B
Authority
CN
China
Prior art keywords
instruction
target data
sent
receiver
receiving
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.)
Active
Application number
CN201811216508.XA
Other languages
Chinese (zh)
Other versions
CN109586931A (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.)
China Merchants Securities Co ltd
Original Assignee
China Merchants Securities Co ltd
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 China Merchants Securities Co ltd filed Critical China Merchants Securities Co ltd
Priority to CN201811216508.XA priority Critical patent/CN109586931B/en
Publication of CN109586931A publication Critical patent/CN109586931A/en
Application granted granted Critical
Publication of CN109586931B publication Critical patent/CN109586931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports
    • H04L12/1868Measures taken after transmission, e.g. acknowledgments
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

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

Abstract

The invention is suitable for the technical field of communication, and provides a multicast method and terminal equipment, wherein a sender sends target data to a receiver; receiving a first instruction sent by the receiver, updating the number of target data which can be sent, counting the number of control instructions sent by the receiver, stopping sending the target data when the number of the control instructions sent by the receiver reaches a second preset number, and generating a second instruction to send to the receiver; and receiving a third instruction sent by the receiver, resetting the quantity of the control instructions which can be received to the second preset quantity according to the third instruction, and continuously sending target data.

Description

Multicast method and terminal equipment
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a multicast method and terminal equipment.
Background
Multicast transmission: a point-to-multipoint network connection is implemented between the sender and each recipient. If a sender transmits the same data to multiple receivers simultaneously, only one copy of the same data packet is needed. It improves data transfer efficiency. The probability of congestion in the backbone network is reduced.
RDMA (Remote Direct Memory Access) is generated to solve the delay of server-side data processing in network transmission. RDMA transfers material directly into the memory area of a computer over a network to move data quickly from one system to a remote system memory without any impact on the operating system, thus eliminating the need for as many computer processing functions as are needed. It eliminates the overhead of external memory copy and context switch, thus freeing up memory bandwidth and CPU cycles for improved application system performance.
The RDMA technology is introduced into a multicast scheme to realize rapid multicast in a local area network, but the method has the problem of unstable data transmission.
Disclosure of Invention
In view of this, embodiments of the present invention provide a multicast method and a terminal device, so as to solve the problems of data loss and unreliable transmission in multicast transmission in the prior art.
To solve the foregoing technical problem, a first aspect of an embodiment of the present invention provides a multicast method, including:
sending target data to the receiver;
receiving a first instruction sent by the receiver, updating the number of the target data which can be sent, counting the number of the control instructions sent by the receiver, stopping sending the target data when the number of the control instructions sent by the receiver reaches a second preset number, generating a second instruction and sending the second instruction to the receiver, wherein when the number of the target data received by the receiver reaches the first preset number, the number of the target data which can be received is reset to the first preset number, and generating the first instruction;
receiving a third instruction sent by the receiver, resetting the number of the control instructions which can be received to the second preset number according to the third instruction, and continuing to send target data, wherein the receiver receives the second instruction, updates the number of the control instructions which can be sent according to the second instruction, and generates the third instruction.
Further, still include:
and receiving a fourth instruction sent by the receiver at regular time, and updating the quantity of the target data which can be sent according to the fourth instruction, wherein the fourth instruction is sent by the receiver at regular time.
Further, the control instructions include the first instructions and third instructions.
Further, before sending the first preset number of target data to the receiving party, the method further includes:
and the receiving side establishes a UD link for transmitting target data and an RC link for transmitting control information, wherein the control information comprises the first instruction, the second instruction and the third instruction.
Further, still include:
and receiving a retransmission instruction sent by the receiver, and resending the specified target data to the receiver according to the retransmission instruction.
A second aspect of the embodiments of the present invention provides a multicast apparatus, including a receiving module, a control module, and a sending module;
the control module sends target data to the receiver through the sending module;
the receiving module receives a first instruction sent by the receiving party and sends the first instruction to the control module, the control module updates the number of the target data which can be sent according to the first instruction, counts the received control instruction sent by the receiving party, when the number of the received control instruction sent by the receiving party reaches a second preset number, the control module stops sending the target data, generates a second instruction and sends the second instruction to the receiving party through the sending module, wherein when the number of the target data received by the receiving party reaches the first preset number, the number of the target data which can be received is reset to the first preset number, and a first instruction is generated;
the receiving module receives a third instruction sent by the receiving party and transmits the third instruction to the control module, the control module resets the quantity of the control instructions which can be received to the second preset quantity according to the third instruction and continues to send target data, wherein the receiving party receives the second instruction and updates the quantity of the control instructions which can be sent according to the second instruction to generate the third instruction.
Further, the receiving module is further configured to receive a fourth instruction sent by the receiving party at a fixed time, and send the fourth instruction to the control module, and the control module updates the quantity of the transmittable target data according to the fourth instruction, where the fourth instruction is sent by the receiving party at a fixed time.
Further, the receiving module is further configured to receive a retransmission instruction sent by the receiving party, and send the retransmission instruction to the control module, and the control module controls the sending module to resend the specified target data to the receiving party according to the retransmission instruction.
A third aspect of the embodiments of the present invention provides a multicast terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method when executing the computer program.
A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of the method described above.
Adopt the produced beneficial effect of above-mentioned technical scheme to lie in: the sending party sends the target data to the receiving party; receiving a first instruction sent by the receiver, updating the number of the target data which can be sent, counting the number of the control instructions sent by the receiver, stopping sending the target data when the number of the control instructions sent by the receiver reaches a second preset number, generating a second instruction and sending the second instruction to the receiver, wherein when the number of the target data received by the receiver reaches the first preset number, the number of the target data which can be received is reset to the first preset number, and generating the first instruction; receiving a third instruction sent by the receiver, resetting the number of the control instructions which can be received to the second preset number according to the third instruction, and continuing to send target data, wherein the receiver receives the second instruction, updates the number of the control instructions which can be sent according to the second instruction, and generates the third instruction. By the method, the data sender and the data receiver count the number of the data in real time, and can find the data in time when the data are lost, so that the problem of unstable transmission caused by data loss is solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
Fig. 1 is a logic flow diagram of a multicast method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a multicast apparatus according to an embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
As shown in fig. 1, the present application discloses a multicast method, comprising:
step S101, sending target data to the receiving party;
step S102, receiving a first instruction sent by the receiver, updating the number of target data which can be sent, counting the control instructions sent by the receiver, stopping sending the target data when the number of the control instructions sent by the receiver reaches a second preset number, generating a second instruction and sending the second instruction to the receiver, wherein when the number of the target data received by the receiver reaches the first preset number, the number of the target data which can be received is reset to the first preset number, and generating the first instruction;
step S103, receiving a third instruction sent by the receiver, resetting the number of the control instructions which can be received to the second preset number according to the third instruction, and continuing to send target data, wherein the receiver receives the second instruction, updates the number of the control instructions which can be sent according to the second instruction, and generates the third instruction.
The method comprises the steps that a sender sends target data to a receiver, the sender counts the number of the sent target data in the data transmission process, the receiver counts the number of the received target data, and the receiver and the sender send instructions to inform the counter to count information.
In one embodiment of the invention, a fourth instruction sent by the receiver at regular time is received, and the quantity of the transmittable target data is updated according to the fourth instruction, wherein the fourth instruction is sent by the receiver at regular time.
Although the sender sends the target data with the number exceeding the first preset number, the receiver does not receive the target data with the first preset number due to the possibility of packet loss of the target data, so that the receiver does not send a first instruction to the sender, and the sender does not reset the number of the target data which can be sent to the first preset number, so that the receiver can receive the target data although the receiver has space, but the sender does not know and does not continue to send the target data. The receiver sends a fourth instruction to the sender at regular time, wherein the fourth instruction comprises information of the number of the target data received by the receiver, and the sender updates the number of the target data which can be sent after receiving the fourth instruction.
In one embodiment of the invention, the control instructions include a first instruction and a third instruction. In addition, the control command includes commands sent by all receiving parties to the sending party.
In an embodiment of the present invention, before sending the first preset number of target data to the receiving side, the method further includes: and the receiving party establishes a UD link for transmitting the target data and an RC link for transmitting control information, wherein the control information comprises a first instruction, a second instruction and a third instruction.
In one embodiment of the present invention, the method further comprises: and receiving a retransmission instruction sent by the receiver, and resending the specified target data to the receiver according to the retransmission instruction.
When data transmission is wrong, the receiver can send a retransmission instruction to the sender, and the sender resends the specified target data according to the retransmission instruction, so that the final transmission accuracy of the data is ensured.
As shown in fig. 2, the present invention discloses a multicast device, which comprises a receiving module, a control module and a sending module, wherein the working relationship among the modules is as follows:
the control module sends target data to the receiver through the sending module; the receiving module receives a first instruction sent by the receiving party and sends the first instruction to the control module, the control module updates the number of the target data which can be sent according to the first instruction, counts the received control instruction sent by the receiving party, when the number of the received control instruction sent by the receiving party reaches a second preset number, the control module stops sending the target data, generates a second instruction and sends the second instruction to the receiving party through the sending module, wherein when the number of the target data received by the receiving party reaches the first preset number, the number of the target data which can be received is reset to the first preset number, and a first instruction is generated; the receiving module receives a third instruction sent by the receiving party and transmits the third instruction to the control module, the control module resets the quantity of the control instructions which can be received to the second preset quantity according to the third instruction and continues to send target data, wherein the receiving party receives the second instruction and updates the quantity of the control instructions which can be sent according to the second instruction to generate the third instruction.
The multicast device can ensure that data cannot be lost in the multicast data transmission process, thereby improving the transmission stability.
In an embodiment of the present invention, the receiving module is further configured to receive a fourth instruction sent by the receiving party at a fixed time, and send the fourth instruction to the control module, and the control module updates the quantity of the transmittable target data according to the fourth instruction, where the fourth instruction is sent by the receiving party at a fixed time.
Although the sender sends the target data with the number exceeding the first preset number, the receiver does not receive the target data with the first preset number due to the possibility of packet loss of the target data, so that the receiver does not send a first instruction to the sender, and the sender does not reset the number of the target data which can be sent to the first preset number, so that the receiver can receive the target data although the receiver has space, but the sender does not know and does not continue to send the target data. The receiver sends a fourth instruction to the sender at regular time, wherein the fourth instruction comprises information of the number of the target data received by the receiver, and the sender updates the number of the target data which can be sent after receiving the fourth instruction.
In an embodiment of the present invention, the receiving module is further configured to receive a retransmission instruction sent by the receiving party, and send the retransmission instruction to the control module, and the control module controls the sending module to resend the specified target data to the receiving party according to the retransmission instruction.
The invention discloses multicast terminal equipment, which comprises a memory, a processor and a computer program which is stored in the memory and can run on the processor, wherein the steps of the method are realized when the processor executes the computer program.
The multicast terminal device may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The multicast terminal device may include, but is not limited to, a receiving module, a control module, and a transmitting module. It will be understood by those skilled in the art that fig. 2 is only an example of the multicast terminal device, and does not constitute a limitation to the multicast terminal device, and may include more or less components than those shown, or combine some components, or different components, for example, the multicast terminal device may further include an input/output device, a network access device, a bus, etc.
The invention discloses a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out the steps of the above-mentioned method.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method of multicasting, comprising:
sending the target data to a receiver;
receiving a first instruction sent by the receiver, updating the number of the target data which can be sent, counting the number of the control instructions sent by the receiver, stopping sending the target data when the number of the control instructions sent by the receiver reaches a second preset number, generating a second instruction and sending the second instruction to the receiver, wherein when the number of the target data received by the receiver reaches the first preset number, the number of the target data which can be received is reset to the first preset number, and generating the first instruction;
receiving a third instruction sent by the receiver, resetting the number of the control instructions which can be received to the second preset number according to the third instruction, and continuing to send target data, wherein the receiver receives the second instruction, updates the number of the control instructions which can be sent according to the second instruction, and generates the third instruction.
2. The multicast method according to claim 1, further comprising:
and receiving a fourth instruction sent by the receiver at regular time, and updating the quantity of the target data which can be sent according to the fourth instruction, wherein the fourth instruction is sent by the receiver at regular time.
3. The multicast method according to claim 1, wherein the control instruction includes the first instruction and a third instruction.
4. The multicast method according to claim 1, further comprising, before transmitting the first preset number of target data to the receiver:
and the receiving side establishes a UD link for transmitting target data and an RC link for transmitting control information, wherein the control information comprises the first instruction, the second instruction and the third instruction.
5. The multicast method according to claim 1, further comprising:
and receiving a retransmission instruction sent by the receiver, and resending the specified target data to the receiver according to the retransmission instruction.
6. A multicast device is characterized by comprising a receiving module, a control module and a sending module;
the control module sends target data to a receiver through the sending module;
the receiving module receives a first instruction sent by the receiving party and sends the first instruction to the control module, the control module updates the number of the target data which can be sent according to the first instruction, counts the received control instruction sent by the receiving party, when the number of the received control instruction sent by the receiving party reaches a second preset number, the control module stops sending the target data, generates a second instruction and sends the second instruction to the receiving party through the sending module, wherein when the number of the target data received by the receiving party reaches the first preset number, the number of the target data which can be received is reset to the first preset number, and a first instruction is generated;
the receiving module receives a third instruction sent by the receiving party and transmits the third instruction to the control module, the control module resets the quantity of the control instructions which can be received to the second preset quantity according to the third instruction and continues to send target data, wherein the receiving party receives the second instruction and updates the quantity of the control instructions which can be sent according to the second instruction to generate the third instruction.
7. The multicast apparatus according to claim 6, wherein the receiving module is further configured to receive a fourth instruction sent by the receiving party at regular time, and send the fourth instruction to the control module, and the control module updates the amount of the target data that can be sent according to the fourth instruction, where the fourth instruction is sent by the receiving party at regular time.
8. The multicast apparatus according to claim 6, wherein the receiving module is further configured to receive a retransmission instruction sent by the receiving party, and send the retransmission instruction to the control module, and the control module controls the sending module to resend the specified target data to the receiving party according to the retransmission instruction.
9. Multicast terminal device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, characterized in that said processor realizes the steps of the method according to any of the claims 1 to 5 when executing said computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201811216508.XA 2018-10-18 2018-10-18 Multicast method and terminal equipment Active CN109586931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811216508.XA CN109586931B (en) 2018-10-18 2018-10-18 Multicast method and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811216508.XA CN109586931B (en) 2018-10-18 2018-10-18 Multicast method and terminal equipment

Publications (2)

Publication Number Publication Date
CN109586931A CN109586931A (en) 2019-04-05
CN109586931B true CN109586931B (en) 2021-01-15

Family

ID=65920681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811216508.XA Active CN109586931B (en) 2018-10-18 2018-10-18 Multicast method and terminal equipment

Country Status (1)

Country Link
CN (1) CN109586931B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113328954B (en) * 2021-05-25 2023-09-19 深圳证券通信有限公司 Method for blocking and limiting transmission of service data packet by source terminal
CN114944966B (en) * 2022-04-20 2024-04-19 南方电网数字平台科技(广东)有限公司 RDMA multicast-based data transmission method and system

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1401180A (en) * 2000-02-14 2003-03-05 诺基亚有限公司 Data packet numbering in packet-switched data transmission
CN1520104A (en) * 2003-09-02 2004-08-11 中国科学院计算技术研究所 Method for raising transmission performance of TCP in isomerous networks
CN101197682A (en) * 2006-12-08 2008-06-11 中兴通讯股份有限公司 Transmission mode selection and switching device used for multimedia broadcast multicast service
CN101681282A (en) * 2006-12-06 2010-03-24 弗森多系统公司(dba弗森-艾奥) Be used to share, front end, the device of distributed raid, system and method
US7729245B1 (en) * 2005-12-13 2010-06-01 At&T Intellectual Property Ii, L.P. Method and system of monitoring the receipt of multicast traffic
CN102546081A (en) * 2010-12-21 2012-07-04 中兴通讯股份有限公司 Packet loss detection method, system and media client
CN103488596A (en) * 2013-09-03 2014-01-01 中国电子科技集团公司第四十一研究所 Data transmission device and data transmission method with self-adapting link
CN107566291A (en) * 2017-09-26 2018-01-09 恒生电子股份有限公司 Multicast transmission method, device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1401180A (en) * 2000-02-14 2003-03-05 诺基亚有限公司 Data packet numbering in packet-switched data transmission
CN1520104A (en) * 2003-09-02 2004-08-11 中国科学院计算技术研究所 Method for raising transmission performance of TCP in isomerous networks
US7729245B1 (en) * 2005-12-13 2010-06-01 At&T Intellectual Property Ii, L.P. Method and system of monitoring the receipt of multicast traffic
CN101681282A (en) * 2006-12-06 2010-03-24 弗森多系统公司(dba弗森-艾奥) Be used to share, front end, the device of distributed raid, system and method
CN101197682A (en) * 2006-12-08 2008-06-11 中兴通讯股份有限公司 Transmission mode selection and switching device used for multimedia broadcast multicast service
CN102546081A (en) * 2010-12-21 2012-07-04 中兴通讯股份有限公司 Packet loss detection method, system and media client
CN103488596A (en) * 2013-09-03 2014-01-01 中国电子科技集团公司第四十一研究所 Data transmission device and data transmission method with self-adapting link
CN107566291A (en) * 2017-09-26 2018-01-09 恒生电子股份有限公司 Multicast transmission method, device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN109586931A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
US8953631B2 (en) Interruption, at least in part, of frame transmission
CN108833293B (en) Data center congestion control method and device based on Software Defined Network (SDN)
US20150222556A1 (en) Flow control for reliable message passing
CN110677221B (en) Retransmission control method, communication interface and electronic equipment
CN110445722B (en) Congestion control method, device, equipment and storage medium
CN105162706B (en) Multicast transmission method, apparatus and system
WO2017097201A1 (en) Data transmission method, transmission device and receiving device
CN103957169A (en) Reliable UDP achievement method based on reserve request
WO2020078448A1 (en) Message processing method and apparatus
WO2023093879A1 (en) Data transmission method and apparatus, device, and storage medium
CN111131179B (en) Service processing method, device, network equipment and storage medium
CN109586931B (en) Multicast method and terminal equipment
WO2019128649A1 (en) Data stream sending method, device and system
CN109586932B (en) Multicast method and terminal equipment
CN113852445B (en) Method, system, equipment and storage medium for improving data transmission reliability
CN114401208B (en) Data transmission method and device, electronic equipment and storage medium
KR20190105061A (en) Method of transmitting data, data transmission device, and customer premises device
WO2015085849A1 (en) Method for network device congestion avoidance and network device
JP2017092692A (en) Data transmission control system and method, and data transmission control program
CN107566291B (en) Multicast transmission method, device, electronic equipment and storage medium
CN107820218A (en) The establishing method and equipment of message transmissions mode
CN110750486A (en) RDMA data stream control method, system, electronic device and readable storage medium
CN117676695A (en) TCP transmission method, device and system
CN117014379A (en) Code rate control method, device, electronic equipment and storage medium
CN115632748A (en) Data processing method and device, electronic equipment and storage medium

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