WO2017097201A1 - Data transmission method, transmission device and receiving device - Google Patents

Data transmission method, transmission device and receiving device Download PDF

Info

Publication number
WO2017097201A1
WO2017097201A1 PCT/CN2016/108902 CN2016108902W WO2017097201A1 WO 2017097201 A1 WO2017097201 A1 WO 2017097201A1 CN 2016108902 W CN2016108902 W CN 2016108902W WO 2017097201 A1 WO2017097201 A1 WO 2017097201A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
identifier
packets
data stream
receiving end
Prior art date
Application number
PCT/CN2016/108902
Other languages
French (fr)
Chinese (zh)
Inventor
林俊如
何健飞
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2017097201A1 publication Critical patent/WO2017097201A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements 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/18Automatic repetition systems, e.g. Van Duuren systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/19Flow control; Congestion control at layers above the network layer
    • H04L47/193Flow control; Congestion control at layers above the network layer at the transport layer, e.g. TCP related
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/23Bit dropping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2466Traffic characterised by specific attributes, e.g. priority or QoS using signalling traffic

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a data transmission method, a transmitting device, and a receiving device.
  • the Transmission Control Protocol is a connection-oriented, reliable, byte stream-based transport layer communication protocol.
  • TCP Transmission Control Protocol
  • the subsequent packet transmission can trigger fast retransmission, so that the sender can retransmit the lost packet in time.
  • RTO Retransmission Timeout
  • the embodiment of the invention provides a data transmission method, a sending device and a receiving device, which help to reduce the delay caused by timeout retransmission and the completion time of the task.
  • a first aspect of the embodiments of the present invention provides a data transmission method, including:
  • the sending end obtains the first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N.
  • the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets of the data stream; the sending end sends the first packet to the receiving end.
  • the first packet is obtained by adding the first identifier to the second packet, and the first identifier is used to identify the first packet.
  • the N packets before the transmission are completed for the data stream, and the first packet is sent to the receiving end. Therefore, when the data stream is sent, the transmitting end can identify the N packets before the data stream is transmitted.
  • the obtaining, by the sending end, the first packet in the data stream includes:
  • the sending end determines, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, and the second identifier is used to identify the second packet in the data. a location in the stream; the sender adds the first identifier to the second packet, and obtains the first packet.
  • the first identifier is carried in the DCP of the first packet. a field; or the first identifier is carried in an option number field of the first packet.
  • the first identifier may be an identifier on the 5th bit of the DSCP field.
  • the first identifier may be a predetermined number in an option number field.
  • a second aspect of the embodiments of the present invention provides a data transmission method, including:
  • the receiving end receives the first packet from the sending end, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N
  • the message in the message, the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets in the data stream;
  • the first packet is processed according to the packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
  • the receiving end after receiving the first packet with the first identifier from the sending end, processes the first packet according to the processing manner adopted by the first packet in the packet transmission policy. Process it. It can be seen that the receiving end processes the processing mode of the packet carrying the first identifier, and does not carry The processing of the packet with the first identifier is different. Therefore, the processing mode is more flexible, and the requirement for reducing the packet loss rate of the N packets before the data stream is completed is reduced, thereby reducing the transmission of the data stream. The timeout retransmission caused by the loss of the first N packets shortens the task completion time.
  • the receiving by the receiving end, processing the first packet according to a packet transmission policy
  • the receiving end preferentially discards the received packet that does not carry the first identifier after the received packet queue corresponding to the data stream exceeds the first threshold.
  • the packet queue corresponding to the received data stream exceeds the first threshold, for example, when the network device needs to discard the packet due to congestion or traffic restriction, the device does not carry the packet.
  • the packet of the first identifier is used to reduce the packet loss rate of the N packets before the data stream carrying the first identifier is completed.
  • the receiving end preferentially discarding the received packet that does not carry the first identifier includes:
  • the receiving end obtains a first parameter according to the first identifier and the corresponding relationship, where the corresponding relationship includes the first identifier and the first parameter, where the first parameter includes a second threshold and a discarding probability, where The drop probability is used to indicate the percentage of the operation of discarding the message; the receiving end receives the carried port according to the discard probability after the received message queue corresponding to the data stream exceeds the second threshold.
  • the packet with the first identifier is discarded.
  • the first packet carrying the first identifier has a higher second threshold and a lower discarding probability than the packet that does not carry the first identifier, thereby reducing the first packet. Packet loss rate.
  • the receiving, by the receiving end, processing the first packet according to the packet transmission policy includes:
  • the receiving end copies the first packet, and obtains the M first packets, where the M is an integer greater than or equal to 2; the receiving end sends the M first packets Send to the wireless terminal.
  • the M packets are sent to the wireless terminal, the packet loss rate of the first packet is reduced, and the packet transmitted before the first packet in the data stream is used. If the M message is successfully transmitted, the receiving end receives the confirmation message returned by the wireless terminal. After that, the receiving end can trigger the retransmission of the lost packet by fast retransmission to avoid the occurrence of timeout retransmission.
  • the M is a value determined according to a default value of the number of copies of the message; or the M is The number of accesses is the number of wireless terminals that have accessed the receiving end according to the number of accesses and/or the value determined by the link quality between the receiving end and the wireless terminal.
  • the N is greater than 1, the method further includes:
  • the receiving end receives the third packet from the sending end, where the third packet is a packet with a first identifier added to the fourth packet, where the first identifier is used to identify the fourth packet.
  • the message is a message in the N packets, where the N packets are N packets before the data stream to which the second packet belongs, and the receiving end sends the message to the wireless terminal.
  • Three messages In the embodiment of the present invention, after receiving the first received packet carrying the first identifier, the receiving end does not copy the subsequently received packet carrying the first identifier, thereby reducing the receiving end and the wireless terminal. The link between the burden.
  • the first identifier is carried in the a differentiated service code point DSCP field of the first packet; or the first identifier is carried in an option number field of the first packet.
  • the first identifier may be an identifier on the 5th bit of the DSCP field.
  • the first identifier may be a predetermined number in an option number field.
  • a third aspect of the embodiments of the present invention provides a sending apparatus, including:
  • An obtaining unit configured to obtain a first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet
  • the message is a message in the N packets, where the N packets are N packets before the data stream is transmitted, and N is greater than 0 and less than The number of packets of the data stream;
  • a sending unit configured to send the first packet to the receiving device.
  • the obtaining unit is specifically configured to:
  • a fourth aspect of the embodiments of the present invention provides a receiving apparatus, including:
  • a first receiving unit configured to receive a first packet from the sending end, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet
  • the message is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the packet of the data stream.
  • the processing unit is configured to process the first packet according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
  • the processing unit is specifically configured to:
  • the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
  • the processing unit is specifically configured to:
  • the discard probability Indicates the percentage of operations that perform packet discarding
  • the received packet queue corresponding to the data stream exceeds the second threshold, the received packet that does not carry the first identifier is discarded according to the discarding probability.
  • the processing unit is specifically configured to:
  • the M is a value determined according to a default value of the number of copies of the message.
  • the M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
  • the device is greater than 1, the device further includes:
  • a second receiving unit configured to receive a third packet from the sending end, where the third packet is a packet that adds a first identifier to the fourth packet, where the first identifier is used to identify the
  • the fourth packet is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs.
  • a sending unit configured to send the third packet to the wireless terminal.
  • a fifth aspect of the embodiments of the present invention provides a transmitting end, including: a processor, a transmitter, and a communication bus; wherein the processor and the transmitter complete communication with each other through the communication bus;
  • the processor is used to:
  • the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N packets.
  • the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets in the data stream;
  • the transmitter is used to:
  • the processor is specifically configured to:
  • the second identifier is used to identify a location of the second packet in the data stream
  • a sixth aspect of the embodiments of the present invention provides a receiving end, including: a processor, a receiver, a transmitter, and a communication bus; wherein the receiver, the transmitter, and the processor are completed by using the communication bus Communication with each other;
  • the receiver is used to:
  • the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets in the data stream; :
  • the first packet is processed according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
  • the processor is specifically configured to:
  • the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
  • the processor is specifically configured to:
  • the discard probability Indicates the percentage of operations that perform packet discarding
  • the received packet queue corresponding to the data stream exceeds the second threshold, the received packet that does not carry the first identifier is discarded according to the discarding probability.
  • the processor is specifically configured to:
  • the transmitter is used to:
  • the M is a value determined according to a default value of the number of copies of the message.
  • the M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
  • the receiver is specifically configured to:
  • the third packet is configured to receive the third packet from the sending end, where the third packet is a packet that is added with the first identifier in the fourth packet, where the first identifier is used to identify that the fourth packet is a message in the N packets, where the N packets are N packets before the data stream to which the second packet belongs;
  • the transmitter is specifically configured to:
  • the sending end obtains the first packet in the data stream, and the first packet is the first packet, and the first packet is sent to the receiving end.
  • the first packet is one of the N packets before the data stream is transmitted.
  • the receiving end processes the first packet according to the packet transmission policy. Processing the first packet to make the processing mode more flexible, and satisfying the requirement that the receiving end reduces the packet loss rate of the N packets before the data stream is completed, thereby reducing the data stream before the transmission is completed.
  • the loss of N packets that is, the timeout retransmission caused by the loss of the last packet of the data stream, shortens the task completion time.
  • Figure 1 is a schematic diagram of a data center
  • FIG. 2 is a schematic diagram of a metropolitan area network
  • FIG. 3 is a flowchart of a method for transmitting data by a transmitting device according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of timeout retransmission due to packet loss in an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of a first implementation manner of setting a first identifier according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of a second implementation manner of setting a first identifier according to an embodiment of the present disclosure
  • FIG. 7 is a flowchart of a method for transmitting data by a receiving device according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a transmission process of a packet carrying a first identifier in a data center according to an embodiment of the present disclosure
  • FIG. 9 is a flowchart of a method for a receiving device to perform a second processing manner on a packet carrying a first identifier according to an embodiment of the present disclosure
  • FIG. 10 is a schematic diagram of a transmission process of a packet carrying a first identifier in a metropolitan area network according to an embodiment of the present invention
  • FIG. 11 is a schematic diagram of functional modules of a sending apparatus according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of hardware of a transmitting end according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of functional modules of a receiving apparatus according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of hardware of a receiving end according to an embodiment of the present invention.
  • the embodiment of the present invention provides a data transmission method, a sending device, and a receiving device, which are used to solve the problem in the prior art.
  • a lost packet occurs at the end of the TCP stream, a timeout retransmission may occur, which may result in Technical issues with extended mission completion time.
  • FIG. 1 is a schematic diagram of a data center.
  • the data center includes multiple servers, top of Rack (Tor) switches.
  • the data center also includes core switches and aggregation switches.
  • the Tor switch causes TCP incast due to many-to-one communication. problem.
  • the TCP incast problem refers to the data center network.
  • packet loss occurs at the Tor switch, and the policy used for packet loss is random discard. That is, N packets before the data stream is transmitted may be discarded by the Tor switch, resulting in timeout retransmission. .
  • the core ports of the data center, the uplink ports of the aggregation switch and the Tor switch, such as the ports that the Tor switch communicates with the aggregation switch, do not cause congestion. If the congestion occurs, the solution provided in the embodiment of the present invention may also be used.
  • FIG. 2 is a schematic diagram of a metropolitan area network.
  • some network devices limit traffic according to users, resulting in packet loss, such as Broadband Network Gateway (BNG).
  • BNG Broadband Network Gateway
  • the BNG will limit traffic according to the user, if the rate of receiving packets is far greater than the available bandwidth of the user, packet loss will occur at the BNG, and the policy used for packet loss is random discard, that is, the data stream is completed. N packets before transmission may be discarded by the BNG, resulting in timeout retransmission.
  • WIFI AP Wireless Fidelity Access Point
  • HGW home gateway
  • ONT optical network terminal
  • CM cable modem
  • the destination of the WIFI AP is the wireless terminal that accesses the network through the WIFI.
  • the radio link feature may also cause more packet loss, which may result in the loss of N packets before the data stream is transmitted.
  • the generation of the biography The data transmission method provided by the embodiment of the present invention is described in detail below.
  • the transmitting end may be the server 1 in FIG. 1; the receiving end may be the Tor switch in FIG. 1 or the BNG in FIG. 2 .
  • the method includes the following:
  • the sending end obtains the first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet.
  • the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets in the data stream.
  • the sending end sends the first packet to a receiving end.
  • the sending end may determine, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, and the second identifier is used to identify the second packet.
  • the sender can determine, according to the value of the field number carried in the packet in the data stream, that the second packet belongs to the N packets before the data stream is transmitted. Then, the sending end adds a first identifier to the second packet to obtain the first packet.
  • the sending end inserts the received second packet into the queue to which it belongs according to the sequence of the received packets, and determines that the second packet belongs to the N according to the ranking of the queue. Messages. In this way, the transmitting end does not need to identify the second identifier of each received message and determine whether it is N packets, which helps to further reduce overhead and save time.
  • the specific value of N may be a preset value, and the value of N may be set to be any value greater than 0 and smaller than the number of packets of the data stream.
  • the specific value of N is set according to the number of triggering timeout retransmission confirmation characters (Acknowledgement, ack). For example, as shown in FIG.
  • the following describes how the sender adds the first identifier to the second packet.
  • a possible implementation manner is: carrying the first identifier in a Differentiated Services Code Point (DSCP) field of the packet.
  • DSCP Differentiated Services Code Point
  • IPv4 Internet Protocol version 4
  • the sender will be in the DSCP field. If the fifth bit is set to the identifier 1, the fifth bit of the DSCP field of the packet is the identifier 1, indicating that the packet is one of the N packets before the data stream is transmitted.
  • the fifth bit of the Assured Forwarding (AF) hop-by-hop behavior (PHB) packet and the Expedited Forwarding (EF) PHB packet are all 0, as the code recommended by AF is shown in Table 1.
  • Table 1 shows the three drop priorities for each class in the AF, along with the recommended DSCP associated with each priority.
  • Each DSCP is represented by its AF value, decimal value, and binary value, respectively.
  • the fifth bit in the DSCP field sets the identifier 1 to indicate that the packet is one of the N packets before the data stream is completed.
  • Another possible implementation manner is: carrying the first identifier in an option number field of the first packet.
  • the sender can set the option number field in the option of the packet header of the packet to a predetermined number. If the number of the message in the option number field is a predetermined number, it indicates that the message data stream completes one of the N messages before the transmission.
  • the IPV4Options field is represented by one byte and contains three fields: a 1-bit copied flag, a 2-bit option class, and a 5-bit option number. .
  • a 1-bit copied flag In order to identify the first message, one of the possible extensions is shown in FIG. 6.
  • the predetermined number of the option number field is expressed as 27 in decimal notation and 11011 in binary.
  • the predetermined number used as the first identifier should be different from other currently defined numbers.
  • the number 27 is a number that is not defined, and the predetermined number can be defined as 27.
  • the method includes:
  • the receiving end receives the first packet from the sending end, where the first packet is a packet that adds the first identifier to the second packet, where the first identifier is used to identify that the second packet is A packet of the N packets, the N packets being N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets of the data stream.
  • the transmitting end sends the first packet with the first identifier added to the data stream to the receiving end by performing the method shown in FIG. Therefore, the receiving end can receive the first packet in the data stream sent by the sending end.
  • the receiving end processes the first packet according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
  • the packet transmission policy includes a processing manner adopted by the first packet.
  • the receiving end In the first processing mode, the receiving end generates congestion or limits the flow of the user.
  • the packet needs to be discarded the first identifier in the packet is identified, and the packet carrying the first identifier is preferentially discarded.
  • the first packet carrying the first identifier is copied and the plurality of the first packet is sent by identifying the first identifier in the WIFI AP in the home network.
  • the receiving end may be the Tor switch in FIG. 1 or the BNG in FIG. 2.
  • the method includes: after receiving the received packet queue of the data stream, the receiving end preferentially discards the received packet that does not carry the first identifier.
  • the first threshold is the number of packets in the packet queue before the receiver is ready to discard the packet.
  • the first threshold may be a length of a preset message queue.
  • a possible implementation manner is as follows: the receiving end determines whether the packet is a packet to be discarded according to the discarding probability; wherein the discarding probability is a percentage of the operation of discarding the packet.
  • the size of the discard probability is proportional to the length of the packet queue; if the packet to be discarded is the first packet carrying the first identifier, the first packet is not discarded; If the packet to be discarded is not If the first identifier is carried, the packet is discarded.
  • the random early drop (RED) algorithm can be used to determine whether the packet is a packet to be discarded, or other algorithms can be used.
  • the RED algorithm is used as an example.
  • the packet discarding probability is randomly determined by the discarding probability. As the queue length increases, the probability of packet discarding increases. .
  • the packet is determined to be a packet to be discarded by the RED algorithm, if the packet to be discarded does not carry the first identifier, the packet is discarded; if the packet to be discarded carries the first identifier, the packet is not discarded. The message.
  • the receiving end obtains a first parameter according to the first identifier and the corresponding relationship, where the corresponding relationship includes the first identifier and the first parameter, and the first parameter
  • the second threshold and the discarding probability are used, and the discarding probability is used to indicate the percentage of the operation of discarding the message; the receiving end, after the received packet queue corresponding to the data stream exceeds the second threshold, according to the The discarding probability discards the received packet carrying the first identifier.
  • the second threshold is a length of a preset queue, such as a minimum threshold of a queue length.
  • the second threshold may be the same as the first threshold or may be different from the first threshold.
  • the first identifier is an identifier of a DSCP field that is set in the first packet
  • the first parameter is a packet discarding parameter corresponding to the first identifier, where the first parameter includes a second threshold and a discard probability, and the second threshold The number of packets in the packet queue before the packet is discarded.
  • the discarding probability is used to indicate the percentage of the packet discarding operation.
  • the weighted random early detection (WRED) algorithm can be used to discard the packet carrying the first identifier.
  • the WRED algorithm is used according to the quality of service (Quality of Service, QoS) priority classifies messages into corresponding categories.
  • Each category corresponds to a discarding policy.
  • Each discarding policy has its own packet discarding parameters, including: a second threshold and a discarding probability.
  • the receiving end discards the packets of the class according to the packet discarding parameters corresponding to each category.
  • the DSCP field may be mapped to the QoS priority of the first packet by setting the identifier 1 in the fifth bit of the DSCP field of the first packet.
  • the QoS priority of the packet carrying the first identifier is lower than that of the non-portable packet.
  • the QoS priority of an identified message is one level higher. For example, in a data stream, the DSCP field of the packet carrying the first identifier is "001100", and the DSCP field of the packet carrying the first identifier is "001101", and the packet carrying the first identifier is carried.
  • the QoS priority is one level higher than the QoS priority of the message that does not carry the first identifier. Moreover, the packet with a higher priority corresponds to a higher second threshold and a lower discarding probability than the packet with a lower priority. Therefore, it is possible to preferentially discard packets that do not carry the first identifier.
  • the server 1 sets a first identifier in the N packets before the data stream sent to the Tor switch completes the transmission, and sends the N packets to the Tor switch.
  • the Tor switch After receiving the packet in the data stream, the Tor switch identifies the packet carrying the first identifier, and discards the packet that does not carry the first identifier when the packet is discarded by the Tor switch.
  • the Tor switch sends the packet carrying the first identifier to the server 2.
  • the second processing method includes:
  • the receiving end copies the first packet, and obtains the M first packets, where the M is an integer greater than or equal to 2.
  • the receiving end sends the M first messages to a wireless terminal.
  • the receiving end is a WIFI AP, such as the home gateway HGW in FIG. 2, the optical network terminal ONT, and the cable modem CM.
  • the receiving end may also be another network device with a built-in WIFI AP.
  • the packet loss rate of the first packet is reduced in the transmission of the WIF interface. Rate, after the WIFI AP identifies the first packet carrying the first identifier, the first packet is copied, and the first packet is lost by sending the M first packet. rate.
  • a possible implementation manner is: if a data stream includes multiple packets carrying the first identifier, the receiving end may copy each packet carrying the first identifier to reduce Packet loss rate.
  • the M may be a value determined according to a default value of the number of copies of the message.
  • the M may also be a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, where the number of accesses is the number of wireless terminals that have accessed the receiving end.
  • the M value may be inversely proportional to the link quality, and is proportional to the number of wireless terminals, that is, the better the link quality, the smaller the M value, the larger the number of wireless terminals, and the larger the M value.
  • the M value may also be other functional relationships related to multiple factors such as link quality and number of wireless terminals.
  • the receiving end can copy the first packet carrying the first identifier in the received one of the data streams, and carries the carried in the subsequently received data stream.
  • the first identified packet is not copied to reduce the number of packets that need to be sent by the receiving end, thereby reducing the link load between the receiving end and the wireless terminal.
  • the method further includes: receiving, by the receiving end, a third packet from the sending end, where the third packet is a packet that adds a first identifier to the fourth packet, where the An identifier is used to identify that the fourth packet is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs, and the receiving is performed; Sending, by the terminal, the third packet to the wireless terminal. That is, after the receiving end copies the first packet carrying the first identifier, the receiving end does not copy the subsequently received third packet carrying the first identifier.
  • the receiving end when the receiving end receives three acks sent by the wireless terminal, the receiving end will trigger the receiving end to resend the lost message by fast retransmission. If there is a lost packet before the first packet, the M is successfully sent the first packet and the M first packet obtained by the replication to the M.
  • the wireless terminal receives the ack corresponding to the first packet and the M acks corresponding to the M first messages, and triggers the receiving end to resend the lost packet by fast retransmission, thereby avoiding The generation of timeout retransmissions, at the same time, reduces the link load between the receiving end and the wireless terminal.
  • the receiving end WIFI AP when receiving the first message, may send the copied M first message after sending the first message, or may pass the timing according to a certain algorithm.
  • the device delays transmitting the M first messages in a certain time.
  • the destination of the packet sent by the WIFI AP in the embodiment of the present invention is The wireless terminal transmitted through the WIF interface can improve the transmission reliability of the first packet, reduce the packet loss rate, and not consume the bandwidth of other network devices by transmitting the M first packets.
  • the following is an example to illustrate the transmission process of a packet carrying the first identifier in the metropolitan area network. Please refer to FIG. 10, including the following contents:
  • the server 1 sets a first identifier in each of the N packets before the data stream sent to the wireless terminal completes transmission, and sends the N packets to the BNG.
  • the BNG After receiving the packet in the data stream, the BNG identifies the packet carrying the first identifier. When the BNG needs to discard the packet, the BNG preferentially discards the packet that does not carry the first identifier.
  • the BNG sends the packet carrying the first identifier to the WIFI AP.
  • the WIFI AP After receiving the packet in the data stream, the WIFI AP identifies the packet carrying the first identifier and copies the packet carrying the first identifier.
  • the WIFI AP sends the packet and the copy message of the packet to the wireless terminal.
  • an embodiment of the present invention further provides a sending apparatus, as shown in FIG.
  • the obtaining unit 111 is configured to obtain a first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet.
  • the message is a packet of the N packets, where the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets of the data stream;
  • the sending unit 112 is configured to send the first packet to the receiving device.
  • the obtaining unit 111 is specifically configured to:
  • an embodiment of the present invention further provides a receiving end, as shown in FIG. 12, including: a processor 602, a transmitter 601, and a communication bus 600; wherein the processor 602 and the transmitter 601 pass The communication bus 600 completes communication with each other;
  • the processor 602 is configured to:
  • the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N packets.
  • the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets in the data stream;
  • the transmitter 601 is configured to:
  • the processor 602 is specifically configured to:
  • communication bus 600 can include any number of interconnected buses and bridges, and communication bus 600 connects various circuits including one or more processors represented by processor 602 and memory represented by memory 604. together. Communication bus 600 may also couple various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
  • Bus interface 605 provides an interface between communication bus 600 and transmitter 601.
  • Transmitter 601 can be a transceiver that provides means for communicating with various other devices on a transmission medium.
  • Processor 602 is responsible for managing communication bus 600 and general processing, while memory 604 can be used to store data used by processor 602 in performing operations.
  • an embodiment of the present invention further provides a receiving device, as shown in FIG. 13, including:
  • the first receiving unit 131 is configured to receive a first packet from the sending end, where the first packet is a packet that adds a first identifier to the second packet, where the first identifier is used to identify the first packet.
  • the second packet is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the data stream. Number of texts;
  • the processing unit 132 is configured to process the first packet according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
  • processing unit 132 is specifically configured to:
  • the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
  • processing unit 132 is specifically configured to:
  • the discard probability Indicates the percentage of operations that perform packet discarding
  • the received packet queue corresponding to the data stream exceeds the second threshold, the received packet that does not carry the first identifier is discarded according to the discarding probability.
  • processing unit 132 is specifically configured to:
  • the M is a value determined according to a default value of the number of copies of the message.
  • the M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
  • the N is greater than 1, and the device further includes:
  • a second receiving unit configured to receive a third packet from the sending end, where the third packet is a packet that adds a first identifier to the fourth packet, where the first identifier is used to identify the Fourth message
  • the N packets are N packets before the data stream to which the second packet belongs.
  • a sending unit configured to send the third packet to the wireless terminal.
  • an embodiment of the present invention further provides a receiving end, as shown in FIG. 14, comprising: a processor 702, a receiver 701, a transmitter 703, and a communication bus 700; wherein the receiver 701, the The transmitter 703 and the processor 702 complete communication with each other through the communication bus 700;
  • the receiver 701 is configured to:
  • the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N packets.
  • the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets in the data stream;
  • the processor 702 is configured to:
  • the first packet is processed according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
  • processor 702 is specifically configured to:
  • the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
  • processor 702 is specifically configured to:
  • the discard probability Indicates the percentage of operations that perform packet discarding
  • the discarding probability discards the received packet that does not carry the first identifier.
  • processor 702 is specifically configured to:
  • the transmitter 703 is configured to:
  • the M is a value determined according to a default value of the number of copies of the message.
  • the M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
  • the N is greater than 1, and the receiver 701 is specifically configured to:
  • the third packet is configured to receive the third packet from the sending end, where the third packet is a packet that is added with the first identifier in the fourth packet, where the first identifier is used to identify that the fourth packet is a message in the N packets, where the N packets are N packets before the data stream to which the second packet belongs;
  • the transmitter 703 is specifically configured to:
  • communication bus 700 can include any number of interconnected buses and bridges, and communication bus 700 connects various circuits including one or more processors represented by processor 702 and memory represented by memory 704. together. Communication bus 700 may also couple various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein.
  • Bus interface 705 provides an interface between communication bus 700 and transmitter 703. Receiver 701 and transmitter 703 may be the same component, i.e., a transceiver, providing means for communicating with various other devices on a transmission medium.
  • Processor 702 is responsible for managing communication bus 700 and general processing, while memory 704 can be used to store data used by processor 702 in performing operations.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

Provided in the present application are a data transmission method, transmission device and receiving device, facilitating reduction of delay caused by timeout retransmission and task completion duration. The method comprises: a transmitting end acquires a first packet in a data stream, said first packet being a packet in which a first identifier is added to a second packet, the first identifier being used to identify the second packet as one of N packets, said N packets being a number N of packets before completion of transmission of the data stream, and N being greater than 0 and less than the number of packets of the data stream; the transmitting end transmits the first packet to a receiving end. The receiving end receives the first packet from the transmitting end and processes the first packet according to a packet transmission policy, and the packet transmission policy comprises a processing method to be performed on the first packet.

Description

一种数据传输方法、发送装置及接收装置Data transmission method, transmitting device and receiving device
本申请要求于2015年12月9日提交中国专利局、申请号为CN201510906934.6、发明名称为“一种数据传输方法、发送装置及接收装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese Patent Application filed on Dec. 9, 2015, the Chinese Patent Application No. CN201510906934.6, entitled "A Data Transmission Method, Transmission Device, and Receiving Device", the entire contents of which are hereby incorporated by reference. The citations are incorporated herein by reference.
技术领域Technical field
本发明涉及通信技术领域,尤其涉及一种数据传输方法、发送装置及接收装置。The present invention relates to the field of communications technologies, and in particular, to a data transmission method, a transmitting device, and a receiving device.
背景技术Background technique
传输控制协议(Transmission Control Protocol,TCP)是一种面向连接的、可靠的、基于字节流的传输层通信协议。在TCP传输过程中,当TCP流中间的报文丢失时,后续报文的传输能够触发快速重传,使发送端能够及时重传丢失的报文。The Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte stream-based transport layer communication protocol. During the TCP transmission process, when the packet in the middle of the TCP stream is lost, the subsequent packet transmission can trigger fast retransmission, so that the sender can retransmit the lost packet in time.
若丢失的报文位于TCP流的最后,由于没有后续的报文触发快速重传,只能等待超时定时器(Retransmission Timeout,RTO)触发重传。RTO是TCP操作定时器的一种,为了防止报文丢失,当TCP发送一个报文时,就启动重传定时器。但定时器超时时间依赖于往返时延(round trip time,RTT),这会导致超时重传产生较大延迟,延长了任务的完成时间,降低了用户体验。If the lost packet is located at the end of the TCP stream, no subsequent packets trigger fast retransmission. Only the Retransmission Timeout (RTO) triggers the retransmission. RTO is a type of TCP operation timer. To prevent packet loss, when TCP sends a message, it starts the retransmission timer. However, the timer timeout period depends on the round trip time (RTT), which causes a large delay in the timeout retransmission, which prolongs the completion time of the task and reduces the user experience.
发明内容Summary of the invention
本发明实施例提供一种数据传输方法、发送装置及接收装置,有助于降低超时重传产生的延时和任务的完成时间。The embodiment of the invention provides a data transmission method, a sending device and a receiving device, which help to reduce the delay caused by timeout retransmission and the completion time of the task.
本发明实施例第一方面提供了一种数据传输方法,包括:A first aspect of the embodiments of the present invention provides a data transmission method, including:
发送端获得数据流中的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文, 所述N个报文为所述数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;所述发送端将所述第一报文发送至接收端。The sending end obtains the first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N. Messages in the message, The N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets of the data stream; the sending end sends the first packet to the receiving end.
本发明实施例中,通过获取数据流中的第一报文,第一报文为第二报文中添加了第一标识的报文,所述第一标识用于标识所述第一报文为数据流完成传输前的N个报文,并将所述第一报文发送至接收端,因此,发送端在发送数据流时,能够对数据流完成传输前的N个报文进行标识。In the embodiment of the present invention, the first packet is obtained by adding the first identifier to the second packet, and the first identifier is used to identify the first packet. The N packets before the transmission are completed for the data stream, and the first packet is sent to the receiving end. Therefore, when the data stream is sent, the transmitting end can identify the N packets before the data stream is transmitted.
结合第一方面,在第一方面的第一种可能的实现方式中,所述发送端获得数据流中的第一报文包括:With reference to the first aspect, in a first possible implementation manner of the first aspect, the obtaining, by the sending end, the first packet in the data stream includes:
所述发送端根据所述第二报文携带的第二标识,确定所述第二报文属于所述N个报文,所述第二标识用于标识所述第二报文在所述数据流中的位置;所述发送端在所述第二报文中添加所述第一标识,获得所述第一报文。The sending end determines, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, and the second identifier is used to identify the second packet in the data. a location in the stream; the sender adds the first identifier to the second packet, and obtains the first packet.
结合第一方面或者第一方面的第一种可能的实现方式,在第一方面的第二种可能的实现方式中,所述第一标识携带于所述第一报文的区分服务代码点DSCP字段;或所述第一标识携带于所述第一报文的选项编号字段。With reference to the first aspect, or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, the first identifier is carried in the DCP of the first packet. a field; or the first identifier is carried in an option number field of the first packet.
结合第一方面的第二种可能的实现方式中,在第一方面的第三种可能的实现方式中,所述第一标识可以是DSCP字段的第5位上的标识。In conjunction with the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the first identifier may be an identifier on the 5th bit of the DSCP field.
结合第一方面的第二种可能的实现方式中,在第一方面的第四种可能的实现方式中,所述第一标识可以是选项编号字段内的预定编号。In conjunction with the second possible implementation of the first aspect, in a fourth possible implementation of the first aspect, the first identifier may be a predetermined number in an option number field.
本发明实施例第二方面提供了一种数据传输方法,包括:A second aspect of the embodiments of the present invention provides a data transmission method, including:
接收端接收来自发送端的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;所述接收端根据报文传输策略,对所述第一报文进行处理,所述报文传输策略包括对所述第一报文采用的处理方式。The receiving end receives the first packet from the sending end, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N The message in the message, the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets in the data stream; The first packet is processed according to the packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
本发明实施例中,接收端在接收来自发送端的添加有第一标识的第一报文后,根据报文传输策略中对所述第一报文采用的处理方式,对所述第一报文进行处理。可见,接收端处理携带有第一标识的报文的处理方式,与未携 带第一标识的报文的处理方式不同,所以,这样的处理方式更加灵活,能够满足接收端降低数据流完成传输前的N个报文的丢包率的要求,进而减少由于数据流完成传输前的N个报文的丢失导致的超时重传的产生,缩短任务完成时间。In the embodiment of the present invention, after receiving the first packet with the first identifier from the sending end, the receiving end processes the first packet according to the processing manner adopted by the first packet in the packet transmission policy. Process it. It can be seen that the receiving end processes the processing mode of the packet carrying the first identifier, and does not carry The processing of the packet with the first identifier is different. Therefore, the processing mode is more flexible, and the requirement for reducing the packet loss rate of the N packets before the data stream is completed is reduced, thereby reducing the transmission of the data stream. The timeout retransmission caused by the loss of the first N packets shortens the task completion time.
结合第二方面,在第二方面的第一种可能的实现方式中,所述接收端根据报文传输策略,对所述第一报文进行处理包括:With reference to the second aspect, in a first possible implementation manner of the second aspect, the receiving, by the receiving end, processing the first packet according to a packet transmission policy,
所述接收端在接收到的所述数据流对应的报文队列超过第一阈值后,优先丢弃接收到的未携带所述第一标识的报文。本发明实施例中,接收端在接收到的数据流对应的报文队列超过第一阈值时,如:当网络设备由于拥塞或者对用户进行限流,需要丢弃报文时,优先丢弃未携带所述第一标识的报文,以降低携带所述第一标识的数据流完成传输前的N个报文的丢包率。The receiving end preferentially discards the received packet that does not carry the first identifier after the received packet queue corresponding to the data stream exceeds the first threshold. In the embodiment of the present invention, when the packet queue corresponding to the received data stream exceeds the first threshold, for example, when the network device needs to discard the packet due to congestion or traffic restriction, the device does not carry the packet. The packet of the first identifier is used to reduce the packet loss rate of the N packets before the data stream carrying the first identifier is completed.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,所述接收端优先丢弃接收到的未携带所述第一标识的报文包括:With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the receiving end preferentially discarding the received packet that does not carry the first identifier includes:
所述接收端根据所述第一标识和对应关系,获得第一参数,所述对应关系包括所述第一标识和所述第一参数,所述第一参数包括第二阈值和丢弃概率,所述丢弃概率用于表示执行丢弃报文操作的百分比;所述接收端在接收到的所述数据流对应的报文队列超过所述第二阈值后,根据所述丢弃概率对接收到的携带所述第一标识的报文进行丢弃。本发明实施例中,相较于未携带第一标识的报文,携带有第一标识的第一报文,具有更高的第二阈值和更低的丢弃概率,从而降低第一报文的丢包率。The receiving end obtains a first parameter according to the first identifier and the corresponding relationship, where the corresponding relationship includes the first identifier and the first parameter, where the first parameter includes a second threshold and a discarding probability, where The drop probability is used to indicate the percentage of the operation of discarding the message; the receiving end receives the carried port according to the discard probability after the received message queue corresponding to the data stream exceeds the second threshold. The packet with the first identifier is discarded. In the embodiment of the present invention, the first packet carrying the first identifier has a higher second threshold and a lower discarding probability than the packet that does not carry the first identifier, thereby reducing the first packet. Packet loss rate.
结合第二方面,在第二方面的第三种可能的实现方式中,所述接收端根据报文传输策略,对所述第一报文进行处理包括:With reference to the second aspect, in a third possible implementation manner of the second aspect, the receiving, by the receiving end, processing the first packet according to the packet transmission policy includes:
所述接收端对所述第一报文进行复制,获得M个所述第一报文,所述M为大于或等于2的整数;所述接收端将所述M个所述第一报文发送至无线终端。本发明实施例中,通过将M个所述第一报文发送至无线终端,降低了第一报文的丢包率,且,在数据流中的在所述第一报文之前传输的报文发生丢失时,如果M个所述第一报文传输成功,在接收端接收到无线终端返回的确认信息 后,能够触发接收端通过快速重传重新发送丢失的报文,避免超时重传的产生。The receiving end copies the first packet, and obtains the M first packets, where the M is an integer greater than or equal to 2; the receiving end sends the M first packets Send to the wireless terminal. In the embodiment of the present invention, the M packets are sent to the wireless terminal, the packet loss rate of the first packet is reduced, and the packet transmitted before the first packet in the data stream is used. If the M message is successfully transmitted, the receiving end receives the confirmation message returned by the wireless terminal. After that, the receiving end can trigger the retransmission of the lost packet by fast retransmission to avoid the occurrence of timeout retransmission.
结合第二方面的第三种可能的实现方式,在第二方面的第四种可能的实现方式中,所述M为根据报文复制份数的缺省值确定的数值;或所述M为根据接入数量和/或所述接收端与所述无线终端间的链路质量确定的数值,所述接入数量为已经接入到所述接收端的无线终端数量。With reference to the third possible implementation of the second aspect, in a fourth possible implementation manner of the second aspect, the M is a value determined according to a default value of the number of copies of the message; or the M is The number of accesses is the number of wireless terminals that have accessed the receiving end according to the number of accesses and/or the value determined by the link quality between the receiving end and the wireless terminal.
结合第二方面的第三种可能的实现方式,在第二方面的第五种可能的实现方式中,所述N大于1,所述方法还包括:With reference to the third possible implementation of the second aspect, in a fifth possible implementation manner of the second aspect, the N is greater than 1, the method further includes:
所述接收端接收来自所述发送端的第三报文,所述第三报文是在第四报文中添加了第一标识的报文,所述第一标识用于标识所述第四报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文;所述接收端向所述无线终端发送所述第三报文。本发明实施例中,接收端在对第一次接收到的携带第一标识的报文进行复制后,并不对后续接收到的携带第一标识的报文进行复制,进而减轻接收端与无线终端之间的链路负担。The receiving end receives the third packet from the sending end, where the third packet is a packet with a first identifier added to the fourth packet, where the first identifier is used to identify the fourth packet. The message is a message in the N packets, where the N packets are N packets before the data stream to which the second packet belongs, and the receiving end sends the message to the wireless terminal. Three messages. In the embodiment of the present invention, after receiving the first received packet carrying the first identifier, the receiving end does not copy the subsequently received packet carrying the first identifier, thereby reducing the receiving end and the wireless terminal. The link between the burden.
结合第二方面至第二方面的第五种可能的实现方式中的任一种可能的实现方式,在第二方面的第流六种可能的实现方式中,所述第一标识携带于所述第一报文的区分服务代码点DSCP字段;或所述第一标识携带于所述第一报文的选项编号字段。With reference to any one of the possible implementations of the second aspect to the fifth possible implementation of the second aspect, in the sixth possible implementation manner of the second aspect, the first identifier is carried in the a differentiated service code point DSCP field of the first packet; or the first identifier is carried in an option number field of the first packet.
结合第二方面的第六种可能的实现方式中,在第二方面的第七种可能的实现方式中,所述第一标识可以是DSCP字段的第5位上的标识。In conjunction with the sixth possible implementation of the second aspect, in a seventh possible implementation of the second aspect, the first identifier may be an identifier on the 5th bit of the DSCP field.
结合第二方面的第六种可能的实现方式中,在第二方面的第七种可能的实现方式中,所述第一标识可以是选项编号字段内的预定编号。In conjunction with the sixth possible implementation of the second aspect, in a seventh possible implementation of the second aspect, the first identifier may be a predetermined number in an option number field.
本发明实施例第三方面提供了一种发送装置,包括:A third aspect of the embodiments of the present invention provides a sending apparatus, including:
获得单元,用于获得数据流中的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述数据流完成传输前的N个报文,N大于0且小于所 述数据流的报文数量;An obtaining unit, configured to obtain a first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet The message is a message in the N packets, where the N packets are N packets before the data stream is transmitted, and N is greater than 0 and less than The number of packets of the data stream;
发送单元,用于将所述第一报文发送至接收装置。And a sending unit, configured to send the first packet to the receiving device.
结合第三方面,在第三方面的第一种可能的实现方式中,所述获得单元具体用于:In conjunction with the third aspect, in a first possible implementation manner of the third aspect, the obtaining unit is specifically configured to:
根据所述第二报文携带的第二标识,确定所述第二报文属于所述N个报文,所述第二标识用于标识所述第二报文在所述数据流中的位置;Determining, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, where the second identifier is used to identify a location of the second packet in the data stream. ;
在所述第二报文中添加所述第一标识,获得所述第一报文。Adding the first identifier to the second packet to obtain the first packet.
本发明实施例第四方面提供了一种接收装置,包括:A fourth aspect of the embodiments of the present invention provides a receiving apparatus, including:
第一接收单元,用于接收来自发送端的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;a first receiving unit, configured to receive a first packet from the sending end, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet The message is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the packet of the data stream. Quantity
处理单元,用于根据报文传输策略,对所述第一报文进行处理,所述报文传输策略包括对所述第一报文采用的处理方式。The processing unit is configured to process the first packet according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
结合第四方面,在第四方面的第一种可能的实现方式中,所述处理单元具体用于:In conjunction with the fourth aspect, in a first possible implementation manner of the fourth aspect, the processing unit is specifically configured to:
在接收到的所述数据流对应的报文队列超过第一阈值后,优先丢弃接收到的未携带所述第一标识的报文。After the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
结合第四方面的第一种可能的实现方式,在第四方面的第二种可能的实现方式中,所述处理单元具体用于:With reference to the first possible implementation of the fourth aspect, in a second possible implementation manner of the fourth aspect, the processing unit is specifically configured to:
根据所述第一标识和对应关系,获得第一参数,所述对应关系包括所述第一标识和所述第一参数,所述第一参数包括第二阈值和丢弃概率,所述丢弃概率用于表示执行丢弃报文操作的百分比;And obtaining, according to the first identifier and the corresponding relationship, the first parameter, where the correspondence includes the first identifier and the first parameter, where the first parameter includes a second threshold and a discard probability, and the discard probability Indicates the percentage of operations that perform packet discarding;
在接收到的所述数据流对应的报文队列超过所述第二阈值后,根据所述丢弃概率对接收到的未携带所述第一标识的报文进行丢弃。After the received packet queue corresponding to the data stream exceeds the second threshold, the received packet that does not carry the first identifier is discarded according to the discarding probability.
结合第四方面,在第四方面的第三种可能的实现方式中,所述处理单元具体用于: In conjunction with the fourth aspect, in a third possible implementation manner of the fourth aspect, the processing unit is specifically configured to:
对所述第一报文进行复制,获得M个所述第一报文,所述M为大于或等于2的整数;Copying the first packet to obtain M first messages, where M is an integer greater than or equal to 2;
将所述M个所述第一报文发送至无线终端。And transmitting the M first messages to a wireless terminal.
结合第四方面的第三种可能的实现方式,在第四方面的第四种可能的实现方式中,所述M为根据报文复制份数的缺省值确定的数值;或With reference to the third possible implementation manner of the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the M is a value determined according to a default value of the number of copies of the message; or
所述M为根据接入数量和/或所述接收端与所述无线终端间的链路质量确定的数值,所述接入数量为已经接入到所述接收端的无线终端数量。The M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
结合第四方面的第三种可能的实现方式,在第四方面的第五种可能的实现方式中,所述N大于1,所述装置还包括:In conjunction with the third possible implementation of the fourth aspect, in a fifth possible implementation manner of the fourth aspect, the device is greater than 1, the device further includes:
第二接收单元,用于接收来自所述发送端的第三报文,所述第三报文是在第四报文中添加了第一标识的报文,所述第一标识用于标识所述第四报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文;a second receiving unit, configured to receive a third packet from the sending end, where the third packet is a packet that adds a first identifier to the fourth packet, where the first identifier is used to identify the The fourth packet is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs.
发送单元,用于向所述无线终端发送所述第三报文。And a sending unit, configured to send the third packet to the wireless terminal.
本发明实施例第五方面提供了一种发送端,包括:处理器,发送器和通信总线;其中,所述处理器和所述发送器通过所述通信总线完成相互间的通信;A fifth aspect of the embodiments of the present invention provides a transmitting end, including: a processor, a transmitter, and a communication bus; wherein the processor and the transmitter complete communication with each other through the communication bus;
所述处理器用于:The processor is used to:
获得数据流中的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;Obtaining a first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N packets. In the message in the text, the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets in the data stream;
所述发送器用于:The transmitter is used to:
将所述第一报文发送至接收端。Sending the first packet to the receiving end.
结合第五方面,在第五方面的第一种可能的实施方式中,所述处理器具体用于:With reference to the fifth aspect, in a first possible implementation manner of the fifth aspect, the processor is specifically configured to:
根据所述第二报文携带的第二标识,确定所述第二报文属于所述N个报 文,所述第二标识用于标识所述第二报文在所述数据流中的位置;Determining, according to the second identifier carried in the second packet, that the second packet belongs to the N packets The second identifier is used to identify a location of the second packet in the data stream;
在所述第二报文中添加所述第一标识,获得所述第一报文。Adding the first identifier to the second packet to obtain the first packet.
本发明实施例第六方面提供了一种接收端,包括:处理器,接收器,发送器和通信总线;其中,所述接收器,所述发送器和所述处理器通过所述通信总线完成相互间的通信;A sixth aspect of the embodiments of the present invention provides a receiving end, including: a processor, a receiver, a transmitter, and a communication bus; wherein the receiver, the transmitter, and the processor are completed by using the communication bus Communication with each other;
所述接收器用于:The receiver is used to:
接收来自发送端的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;所述处理器用于:Receiving a first packet from the sender, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N packets. In the message, the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets in the data stream; :
根据报文传输策略,对所述第一报文进行处理,所述报文传输策略包括对所述第一报文采用的处理方式。The first packet is processed according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
结合第六方面,在第六方面的第一种可能的实施方式中,所述处理器具体用于:In conjunction with the sixth aspect, in a first possible implementation manner of the sixth aspect, the processor is specifically configured to:
在接收到的所述数据流对应的报文队列超过第一阈值后,优先丢弃接收到的未携带所述第一标识的报文。After the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
结合第六方面的第一种可能的实施方式,在第六方面的第二种可能的实施方式中,所述处理器具体用于:With reference to the first possible implementation manner of the sixth aspect, in a second possible implementation manner of the sixth aspect, the processor is specifically configured to:
根据所述第一标识和对应关系,获得第一参数,所述对应关系包括所述第一标识和所述第一参数,所述第一参数包括第二阈值和丢弃概率,所述丢弃概率用于表示执行丢弃报文操作的百分比;And obtaining, according to the first identifier and the corresponding relationship, the first parameter, where the correspondence includes the first identifier and the first parameter, where the first parameter includes a second threshold and a discard probability, and the discard probability Indicates the percentage of operations that perform packet discarding;
在接收到的所述数据流对应的报文队列超过所述第二阈值后,根据所述丢弃概率对接收到的未携带所述第一标识的报文进行丢弃。After the received packet queue corresponding to the data stream exceeds the second threshold, the received packet that does not carry the first identifier is discarded according to the discarding probability.
结合第六方面,在第六方面的第三种可能的实施方式中,所述处理器具体用于:In conjunction with the sixth aspect, in a third possible implementation manner of the sixth aspect, the processor is specifically configured to:
对所述第一报文进行复制,获得M个所述第一报文,所述M为大于或等于2的整数; Copying the first packet to obtain M first messages, where M is an integer greater than or equal to 2;
所述发送器用于:The transmitter is used to:
将所述M个所述第一报文发送至无线终端。And transmitting the M first messages to a wireless terminal.
结合第六方面的第三种可能的实施方式,在第六方面的第四种可能的实施方式中,所述M为根据报文复制份数的缺省值确定的数值;或With reference to the third possible implementation manner of the sixth aspect, in a fourth possible implementation manner of the sixth aspect, the M is a value determined according to a default value of the number of copies of the message; or
所述M为根据接入数量和/或所述接收端与所述无线终端间的链路质量确定的数值,所述接入数量为已经接入到所述接收端的无线终端数量。The M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
结合第六方面的第三种可能的实施方式,在第六方面的第五种可能的实施方式中,所述N大于1,所述接收器具体用于:With reference to the third possible implementation manner of the sixth aspect, in a fifth possible implementation manner of the sixth aspect, the N is greater than 1, the receiver is specifically configured to:
用于接收来自所述发送端的第三报文,所述第三报文是在第四报文中添加了第一标识的报文,所述第一标识用于标识所述第四报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文;And the third packet is configured to receive the third packet from the sending end, where the third packet is a packet that is added with the first identifier in the fourth packet, where the first identifier is used to identify that the fourth packet is a message in the N packets, where the N packets are N packets before the data stream to which the second packet belongs;
所述发送器具体用于:The transmitter is specifically configured to:
向所述无线终端发送所述第三报文。Sending the third message to the wireless terminal.
本发明实施例中提供的一个或多个技术方案,至少具有如下技术效果或优点:One or more technical solutions provided in the embodiments of the present invention have at least the following technical effects or advantages:
本发明实施例中,发送端通过获取数据流中的第一报文,第一报文为第二报文中添加了第一标识的报文,并将所述第一报文发送至接收端,第一报文为数据流完成传输前的N个报文中的一个;接收端在接收到第一报文后,根据报文传输策略中包括的对所述第一报文采用的处理方式,对所述第一报文进行处理,使得这样的处理方式更加灵活,能够满足接收端降低数据流完成传输前的N个报文的丢包率的要求,进而减少由于数据流完成传输前的N个报文的丢失,即数据流最后的报文丢失导致的超时重传的产生,缩短任务完成时间。In the embodiment of the present invention, the sending end obtains the first packet in the data stream, and the first packet is the first packet, and the first packet is sent to the receiving end. The first packet is one of the N packets before the data stream is transmitted. After receiving the first packet, the receiving end processes the first packet according to the packet transmission policy. Processing the first packet to make the processing mode more flexible, and satisfying the requirement that the receiving end reduces the packet loss rate of the N packets before the data stream is completed, thereby reducing the data stream before the transmission is completed. The loss of N packets, that is, the timeout retransmission caused by the loss of the last packet of the data stream, shortens the task completion time.
附图说明DRAWINGS
图1为一种数据中心的示意图;Figure 1 is a schematic diagram of a data center;
图2为一种城域网的示意图; 2 is a schematic diagram of a metropolitan area network;
图3为本发明实施例中发送装置传输数据的方法流程图;3 is a flowchart of a method for transmitting data by a transmitting device according to an embodiment of the present invention;
图4为本发明实施例中由于报文丢失导致超时重传产生的示意图;4 is a schematic diagram of timeout retransmission due to packet loss in an embodiment of the present invention;
图5为本发明实施例中设置第一标识的第一种实现方式的示意图;FIG. 5 is a schematic diagram of a first implementation manner of setting a first identifier according to an embodiment of the present disclosure;
图6为本发明实施例中设置第一标识的第二种实现方式的示意图;FIG. 6 is a schematic diagram of a second implementation manner of setting a first identifier according to an embodiment of the present disclosure;
图7为本发明实施例中接收装置传输数据的方法流程图;7 is a flowchart of a method for transmitting data by a receiving device according to an embodiment of the present invention;
图8为本发明实施例中携带有第一标识的报文在数据中心内的传输流程示意图;FIG. 8 is a schematic diagram of a transmission process of a packet carrying a first identifier in a data center according to an embodiment of the present disclosure;
图9为本发明实施例中接收装置对携带有第一标识的报文的第二种处理方式的方法流程图;FIG. 9 is a flowchart of a method for a receiving device to perform a second processing manner on a packet carrying a first identifier according to an embodiment of the present disclosure;
图10为本发明实施例中携带有第一标识的报文在城域网内的传输流程示意图;10 is a schematic diagram of a transmission process of a packet carrying a first identifier in a metropolitan area network according to an embodiment of the present invention;
图11为本发明实施例中发送装置的功能模块示意图;FIG. 11 is a schematic diagram of functional modules of a sending apparatus according to an embodiment of the present invention; FIG.
图12为本发明实施例中发送端的硬件结构示意图;12 is a schematic structural diagram of hardware of a transmitting end according to an embodiment of the present invention;
图13为本发明实施例中接收装置的功能模块示意图;FIG. 13 is a schematic diagram of functional modules of a receiving apparatus according to an embodiment of the present invention; FIG.
图14为本发明实施例中接收端的硬件结构示意图。FIG. 14 is a schematic structural diagram of hardware of a receiving end according to an embodiment of the present invention.
具体实施方式detailed description
本发明实施例提供一种数据传输方法、发送装置及接收装置,用以解决现有技术中存在的,当丢失的报文发生在TCP流的最后时,会导致超时重传的产生,进而导致任务完成时间延长的技术问题。The embodiment of the present invention provides a data transmission method, a sending device, and a receiving device, which are used to solve the problem in the prior art. When a lost packet occurs at the end of the TCP stream, a timeout retransmission may occur, which may result in Technical issues with extended mission completion time.
本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may indicate that A exists separately, and both A and B exist, respectively. B these three situations. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
请参考图1,图1为一种数据中心的示意图。该数据中心包括多个服务器,机架式(top of Rack,Tor)交换机。该数据中心还包括核心交换机和汇聚交换机。在数据中心网络中,Tor交换机由于多对一通信造成TCP聚播(incast) 问题。TCP incast问题是指数据中心网络中,随着参与数据传输的服务器的数目增加,产生的数据流量会使Tor交换机的缓冲区溢出。因此,在Tor交换机处会产生丢包,且丢包时采用的策略是随机丢弃,也就是说,数据流完成传输前的N个报文有可能被Tor交换机丢弃,从而导致超时重传的产生。Please refer to FIG. 1. FIG. 1 is a schematic diagram of a data center. The data center includes multiple servers, top of Rack (Tor) switches. The data center also includes core switches and aggregation switches. In a data center network, the Tor switch causes TCP incast due to many-to-one communication. problem. The TCP incast problem refers to the data center network. As the number of servers participating in data transmission increases, the generated data traffic will overflow the buffer of the Tor switch. Therefore, packet loss occurs at the Tor switch, and the policy used for packet loss is random discard. That is, N packets before the data stream is transmitted may be discarded by the Tor switch, resulting in timeout retransmission. .
一般来讲,数据中心的核心交换机,汇聚交换机及Tor交换机的上行端口,比如Tor交换机与汇聚交换机通信的端口,不会产生拥塞。如果产生拥塞,也可采用本发明实施例中提供的技术方案来解决。Generally speaking, the core ports of the data center, the uplink ports of the aggregation switch and the Tor switch, such as the ports that the Tor switch communicates with the aggregation switch, do not cause congestion. If the congestion occurs, the solution provided in the embodiment of the present invention may also be used.
请参考图2,图2为一种城域网的示意图。在网络中,部分网络设备会根据用户进行限流,导致报文丢失,如宽带网络网关控制设备(Broadband Network Gateway,BNG)。由于BNG会根据用户进行限流,如果接收报文的速率远远大于用户的可用带宽,则在BNG处会产生丢包,且丢包时采用的策略是随机丢弃,也就是说,数据流完成传输前的N个报文有可能被BNG丢弃,从而导致超时重传的产生。另外,对于家庭网络中的无线访问节点(Wireless Fidelity Access Point,WIFI AP),如图2中的家庭网关(home gateway,HGW),光网络终端(Optical network terminal,ONT),电缆调制解调器(Cable Modem,CM)。由于WIFI AP发送报文的目的地为通过WIFI接入网络的无线终端,而无线链路特征也有可能导致较多丢包,进而导致数据流完成传输前的N个报文丢失,并导致超时重传的产生。下面对本发明实施例提供的数据传输方法进行详细说明。Please refer to FIG. 2, which is a schematic diagram of a metropolitan area network. In the network, some network devices limit traffic according to users, resulting in packet loss, such as Broadband Network Gateway (BNG). As the BNG will limit traffic according to the user, if the rate of receiving packets is far greater than the available bandwidth of the user, packet loss will occur at the BNG, and the policy used for packet loss is random discard, that is, the data stream is completed. N packets before transmission may be discarded by the BNG, resulting in timeout retransmission. In addition, for a Wireless Fidelity Access Point (WIFI AP) in a home network, such as a home gateway (HGW), an optical network terminal (ONT), and a cable modem (Cable Modem) , CM). The destination of the WIFI AP is the wireless terminal that accesses the network through the WIFI. The radio link feature may also cause more packet loss, which may result in the loss of N packets before the data stream is transmitted. The generation of the biography. The data transmission method provided by the embodiment of the present invention is described in detail below.
首先说明发送端进行数据传输的方法。本发明实施例中,发送端可以为图1中的服务器1;接收端可以为图1中的Tor交换机,也可以为图2中的BNG。如图3所示,该方法包括以下内容:First, the method of transmitting data at the transmitting end will be described. In the embodiment of the present invention, the transmitting end may be the server 1 in FIG. 1; the receiving end may be the Tor switch in FIG. 1 or the BNG in FIG. 2 . As shown in Figure 3, the method includes the following:
31,发送端获得数据流中的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量。The sending end obtains the first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet. For the packets in the N packets, the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets in the data stream.
32,所述发送端将所述第一报文发送至接收端。 32. The sending end sends the first packet to a receiving end.
其中,在31中,发送端可以根据所述第二报文携带的第二标识,确定所述第二报文属于所述N个报文,所述第二标识用于标识所述第二报文在所述数据流中的位置。本发明实施例中,第二标识可以为报文携带的字段序号,字段序号用于标识第二报文在数据流中的位置。举例来讲,如果报文中携带的字段序号seq=92,表示该报文中数据部分的第一个字节的编号为92。则发送端可以根据数据流中的报文携带的字段序号的数值,确定第二报文属于数据流完成传输前的N个报文。然后,发送端在第二报文中添加第一标识,获得所述第一报文。In the above, the sending end may determine, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, and the second identifier is used to identify the second packet. The location of the text in the data stream. In the embodiment of the present invention, the second identifier may be a field serial number carried in the packet, and the field serial number is used to identify the location of the second packet in the data stream. For example, if the field number seq=92 carried in the message indicates that the first byte of the data part in the message is 92. The sender can determine, according to the value of the field number carried in the packet in the data stream, that the second packet belongs to the N packets before the data stream is transmitted. Then, the sending end adds a first identifier to the second packet to obtain the first packet.
其中,在31中,发送端可以根据接收到的报文的先后顺序,将接收到的所述第二报文插入其所属的队列中,根据队列的排序确定所属第二报文属于所述N个报文。这样,发送端无需对接收到的每个报文进行第二标识的识别和是否为N个报文的判断,有助于进一步减小开销和节省时间。In the above, the sending end inserts the received second packet into the queue to which it belongs according to the sequence of the received packets, and determines that the second packet belongs to the N according to the ranking of the queue. Messages. In this way, the transmitting end does not need to identify the second identifier of each received message and determine whether it is N packets, which helps to further reduce overhead and save time.
关于N的取值,一种可能的情况为:N的具体取值可以是预设值,可以设置N的值为大于0且小于所述数据流的报文数量的任意值。另一种可能的情况为:N的具体取值根据触发超时重传确认字符(Acknowledgement,ack)个数进行设置。举例来讲,如图4所示,在发送端向接收端发送数据流时,当数据流中间的报文的字段序号seq=100丢失时,后续报文seq=120,seq=135和seq=141传输后,发送端收到接收端发送的3个ack信息为ack=100,则可以触发发送端通过快速重传,重新发送报文seq=100。也就是说,发送端收到接收端发送的3个ack信息时,才会触发快速重传,则在一个数据流中,当数据流的倒数第4个报文丢弃时,如果后续3个报文传输成功,就能够触发快速重传,而数据流完成传输前的最后3个报文丢失时,没有后续报文能够触发快速重传,因此,N的取值可以为3。For a value of N, a possible case is that the specific value of N may be a preset value, and the value of N may be set to be any value greater than 0 and smaller than the number of packets of the data stream. Another possible case is that the specific value of N is set according to the number of triggering timeout retransmission confirmation characters (Acknowledgement, ack). For example, as shown in FIG. 4, when the data stream is sent to the receiving end by the transmitting end, when the field number seq=100 of the message in the middle of the data stream is lost, the subsequent message seq=120, seq=135 and seq= After the 141 transmission, the sender receives the three acks sent by the receiver as ack=100, and then triggers the sender to resend the message seq=100 by fast retransmission. That is to say, when the sender receives the three acks sent by the receiver, it will trigger the fast retransmission. In the case of the data stream, when the fourth packet of the last stream of the data stream is discarded, if the next three packets are discarded. If the transmission succeeds, the fast retransmission can be triggered. When the last three packets before the data stream is lost, no subsequent packets can trigger fast retransmission. Therefore, the value of N can be 3.
下面对发送端如何在第二报文中添加第一标识进行说明。The following describes how the sender adds the first identifier to the second packet.
一种可能的实现方式为:将第一标识携带于报文的区分服务代码点(Differentiated Services Code point,DSCP)字段。如图5所示,以互联网协议版本4(Internet Protocol version 4,IPv4)报文为例,发送端将DSCP字段中的 第5位设置为标识1,则报文的DSCP字段的第5位为标识1时,指示该报文为数据流完成传输前的N个报文中的一个报文。A possible implementation manner is: carrying the first identifier in a Differentiated Services Code Point (DSCP) field of the packet. As shown in Figure 5, the Internet Protocol version 4 (IPv4) packet is used as an example. The sender will be in the DSCP field. If the fifth bit is set to the identifier 1, the fifth bit of the DSCP field of the packet is the identifier 1, indicating that the packet is one of the N packets before the data stream is transmitted.
具体来讲,DSCP字段中已定义的分组中,保证转发(Assured Forwarding,AF)逐跳行为(per-hop behavior,PHB)分组和加速转发(Expedited Forwarding,EF)PHB分组的第5位均为0,如AF推荐的编码如表1所示。表1显示了AF中每个类的三个丢弃优先级,以及与每个优先级关联的推荐DSCP。其中,每个DSCP都分别用其AF值、十进制值和二进制值表示。本发明实施例提供的方法中,DSCP字段中的第5位设置标识1,以用于指示报文为一数据流完成传输前的N个报文中的一个报文。Specifically, in the defined packet in the DSCP field, the fifth bit of the Assured Forwarding (AF) hop-by-hop behavior (PHB) packet and the Expedited Forwarding (EF) PHB packet are all 0, as the code recommended by AF is shown in Table 1. Table 1 shows the three drop priorities for each class in the AF, along with the recommended DSCP associated with each priority. Each DSCP is represented by its AF value, decimal value, and binary value, respectively. In the method provided by the embodiment of the present invention, the fifth bit in the DSCP field sets the identifier 1 to indicate that the packet is one of the N packets before the data stream is completed.
Figure PCTCN2016108902-appb-000001
Figure PCTCN2016108902-appb-000001
表1Table 1
另一种可能的实现方式为:将所述第一标识携带于所述第一报文的选项编号字段。以IPv4报文为例,发送端可以将报文的报文头的可选项中的选项编号字段设置为预定编号。则报文的选项编号字段内为预定编号时,指示该报文数据流完成传输前的N个报文中的一个报文。Another possible implementation manner is: carrying the first identifier in an option number field of the first packet. Taking an IPv4 packet as an example, the sender can set the option number field in the option of the packet header of the packet to a predetermined number. If the number of the message in the option number field is a predetermined number, it indicates that the message data stream completes one of the N messages before the transmission.
具体来讲,如图6所示,IPV4Options字段用一个字节来表示,包含三个域:1位copied flag(复制标志),2位option class(选项类别)和5位option number(选项编号)。则为了标识第一报文,其中一种可能的扩展如图6所示,选项编号字段的预定编号十进制表示为27,二进制表示为11011。Specifically, as shown in Figure 6, the IPV4Options field is represented by one byte and contains three fields: a 1-bit copied flag, a 2-bit option class, and a 5-bit option number. . In order to identify the first message, one of the possible extensions is shown in FIG. 6. The predetermined number of the option number field is expressed as 27 in decimal notation and 11011 in binary.
需要说明的是,用作第一标识的预定编号应当区别于目前其他已经被定义的数字,例如:数字27为没有被定义的数字,可以定义预定编号为27。 It should be noted that the predetermined number used as the first identifier should be different from other currently defined numbers. For example, the number 27 is a number that is not defined, and the predetermined number can be defined as 27.
接下来,对接收装置的数据传输方法进行说明,如图7所示,所述方法包括:Next, a data transmission method of the receiving device is described. As shown in FIG. 7, the method includes:
71,接收端接收来自发送端的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量。71. The receiving end receives the first packet from the sending end, where the first packet is a packet that adds the first identifier to the second packet, where the first identifier is used to identify that the second packet is A packet of the N packets, the N packets being N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets of the data stream.
本发明实施例中,发送端通过执行图3所示的方法,将一数据流中添加了第一标识的第一报文发送至接收端。因此,接收端可以接收到发送端发送的数据流中的第一报文。In the embodiment of the present invention, the transmitting end sends the first packet with the first identifier added to the data stream to the receiving end by performing the method shown in FIG. Therefore, the receiving end can receive the first packet in the data stream sent by the sending end.
72,所述接收端根据报文传输策略,对所述第一报文进行处理,所述报文传输策略包括对所述第一报文采用的处理方式。本发明实施例中,对报文传输策略中以下两种可能的处理方式进行说明。72. The receiving end processes the first packet according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet. In the embodiment of the present invention, the following two possible processing manners in the message transmission policy are described.
第一种处理方式,接收端产生拥塞或者对用户进行限流,需要丢弃报文时,通过识别报文中的第一标识,优先丢弃未携带所述第一标识的报文。In the first processing mode, the receiving end generates congestion or limits the flow of the user. When the packet needs to be discarded, the first identifier in the packet is identified, and the packet carrying the first identifier is preferentially discarded.
第二种处理方式,在家庭网络中WIFI AP处,通过识别第一标识,对携带第一标识的第一报文进行复制,并发送多个所述第一报文。In the second processing mode, the first packet carrying the first identifier is copied and the plurality of the first packet is sent by identifying the first identifier in the WIFI AP in the home network.
首先,说明第一种处理方式。在第一种处理方式中,接收端可以为图1中的Tor交换机,也可以为图2中的BNG。71包括:所述接收端在接收到的所述数据流对应的报文队列超过第一阈值后,优先丢弃接收到的未携带所述第一标识的报文。First, the first processing method will be explained. In the first processing mode, the receiving end may be the Tor switch in FIG. 1 or the BNG in FIG. 2. The method includes: after receiving the received packet queue of the data stream, the receiving end preferentially discards the received packet that does not carry the first identifier.
其中,第一阈值是指接收端在准备丢弃报文前的报文队列中的报文数量。当接收端中缓存的与数据流对应的报文队列的长度到达第一阈值时,接收端就开始丢弃报文。所述第一阈值可以是预设的报文队列的长度。The first threshold is the number of packets in the packet queue before the receiver is ready to discard the packet. When the length of the packet queue corresponding to the data stream that is buffered in the receiving end reaches the first threshold, the receiving end starts discarding the packet. The first threshold may be a length of a preset message queue.
一种可能的实现方式为:所述接收端根据丢弃概率确定报文是否为待丢弃报文;其中,所述丢弃概率是指执行丢弃报文操作的百分比。本发明实施例中,丢弃概率的大小与所述报文队列的长度成正比;若所述待丢弃报文为携带有第一标识的第一报文,则不丢弃所述第一报文;若所述待丢弃报文未 携带有第一标识,则丢弃该报文。A possible implementation manner is as follows: the receiving end determines whether the packet is a packet to be discarded according to the discarding probability; wherein the discarding probability is a percentage of the operation of discarding the packet. In the embodiment of the present invention, the size of the discard probability is proportional to the length of the packet queue; if the packet to be discarded is the first packet carrying the first identifier, the first packet is not discarded; If the packet to be discarded is not If the first identifier is carried, the packet is discarded.
在实际应用中,可以采用随机早丢弃(random early drop,RED)算法确定报文是否为待丢弃报文,也可以采用其他算法。以RED算法为例,在接收端中缓存的报文队列到达第一阈值时,就开始以丢弃概率随机的确定待丢弃报文,随着队列长度的增加,报文丢弃的概率也随之增加。并且,当报文经RED算法确定为待丢弃报文时,若该待丢弃报文未携带有第一标识,则丢弃该报文;若该待丢弃报文携带有第一标识,则不丢弃该报文。In the actual application, the random early drop (RED) algorithm can be used to determine whether the packet is a packet to be discarded, or other algorithms can be used. The RED algorithm is used as an example. When the packet queue buffered at the receiving end reaches the first threshold, the packet discarding probability is randomly determined by the discarding probability. As the queue length increases, the probability of packet discarding increases. . And, when the packet is determined to be a packet to be discarded by the RED algorithm, if the packet to be discarded does not carry the first identifier, the packet is discarded; if the packet to be discarded carries the first identifier, the packet is not discarded. The message.
另一种可能的实现方式为:所述接收端根据所述第一标识和对应关系,获得第一参数,所述对应关系包括所述第一标识和所述第一参数,所述第一参数包括第二阈值和丢弃概率,所述丢弃概率用于表示执行丢弃报文操作的百分比;所述接收端在接收到的所述数据流对应的报文队列超过所述第二阈值后,根据所述丢弃概率对接收到的携带所述第一标识的报文进行丢弃。所述第二阈值为预设的队列的长度,比如队列长度的最小门限值。所述第二阈值可以与所述第一阈值相同,也可与所述第一阈值不同。Another possible implementation manner is: the receiving end obtains a first parameter according to the first identifier and the corresponding relationship, where the corresponding relationship includes the first identifier and the first parameter, and the first parameter The second threshold and the discarding probability are used, and the discarding probability is used to indicate the percentage of the operation of discarding the message; the receiving end, after the received packet queue corresponding to the data stream exceeds the second threshold, according to the The discarding probability discards the received packet carrying the first identifier. The second threshold is a length of a preset queue, such as a minimum threshold of a queue length. The second threshold may be the same as the first threshold or may be different from the first threshold.
其中,第一标识是指设置在第一报文的DSCP字段的标识,第一参数是指第一标识对应的报文丢弃参数,所述第一参数包括第二阈值和丢弃概率,第二阈值为接收端准备对携带有第一标识的报文进行丢弃前的报文队列中的报文数量,丢弃概率用于表示执行丢弃报文操作的百分比。The first identifier is an identifier of a DSCP field that is set in the first packet, and the first parameter is a packet discarding parameter corresponding to the first identifier, where the first parameter includes a second threshold and a discard probability, and the second threshold The number of packets in the packet queue before the packet is discarded. The discarding probability is used to indicate the percentage of the packet discarding operation.
在实际应用中,可以采用加权随机先期检测(Weighted Random Early Detection,WRED)算法对携带有第一标识的报文进行丢弃,当需要丢弃报文时,通过WRED算法根据服务质量(Quality of Service,QoS)优先级将报文分入相应的类别。每一类别和一种丢弃策略对应,每个丢弃策略有各自的报文丢弃参数,包括:第二阈值和丢弃概率。接收端根据每个类别对应的报文丢弃参数对该类别的报文进行丢弃。In the actual application, the weighted random early detection (WRED) algorithm can be used to discard the packet carrying the first identifier. When the packet needs to be discarded, the WRED algorithm is used according to the quality of service (Quality of Service, QoS) priority classifies messages into corresponding categories. Each category corresponds to a discarding policy. Each discarding policy has its own packet discarding parameters, including: a second threshold and a discarding probability. The receiving end discards the packets of the class according to the packet discarding parameters corresponding to each category.
本发明实施例中,通过WRED算法对报文进行分类时,由于第一报文的DSCP字段的第5位上设置标识1,则可以将DSCP字段映射成第一报文的QoS优先级,则在一个数据流中,携带有第一标识的报文的QoS优先级比未携带第 一标识的报文的QoS优先级高一个等级。举例来讲,一个数据流中,未携带第一标识的报文的DSCP字段为“001100”,携带有第一标识的报文的DSCP字段为“001101”,则携带有第一标识的报文的QoS优先级,比未携带第一标识的报文的QoS优先级高一个等级。且,相较于优先级低的报文,优先级高的报文对应更高的第二阈值和更低的丢弃概率。因此,可以实现优先丢弃未携带所述第一标识的报文。In the embodiment of the present invention, when the WRED algorithm is used to classify the packet, the DSCP field may be mapped to the QoS priority of the first packet by setting the identifier 1 in the fifth bit of the DSCP field of the first packet. In a data stream, the QoS priority of the packet carrying the first identifier is lower than that of the non-portable packet. The QoS priority of an identified message is one level higher. For example, in a data stream, the DSCP field of the packet carrying the first identifier is "001100", and the DSCP field of the packet carrying the first identifier is "001101", and the packet carrying the first identifier is carried. The QoS priority is one level higher than the QoS priority of the message that does not carry the first identifier. Moreover, the packet with a higher priority corresponds to a higher second threshold and a lower discarding probability than the packet with a lower priority. Therefore, it is possible to preferentially discard packets that do not carry the first identifier.
下面举一个例子说明携带有第一标识的报文在数据中心内的传输过程,请参考图8,包括以下内容:The following is an example to illustrate the transmission process of the message carrying the first identifier in the data center. Please refer to Figure 8, including the following:
81,服务器1在发送给Tor交换机的数据流完成传输前的N个报文内分别设置第一标识,并将所述N个报文发送至Tor交换机。81. The server 1 sets a first identifier in the N packets before the data stream sent to the Tor switch completes the transmission, and sends the N packets to the Tor switch.
82,Tor交换机在接收到该数据流中的报文后,识别出携带有第一标识的报文,在Tor交换机丢弃报文时,优先丢弃未携带第一标识的报文。After receiving the packet in the data stream, the Tor switch identifies the packet carrying the first identifier, and discards the packet that does not carry the first identifier when the packet is discarded by the Tor switch.
83,Tor交换机将携带有第一标识的报文发送至服务器2。83. The Tor switch sends the packet carrying the first identifier to the server 2.
接下来,说明第二种处理方式。如图9所示,第二种处理方式包括:Next, the second processing method will be described. As shown in Figure 9, the second processing method includes:
91,所述接收端对所述第一报文进行复制,获得M个所述第一报文,所述M为大于或等于2的整数。91. The receiving end copies the first packet, and obtains the M first packets, where the M is an integer greater than or equal to 2.
92,所述接收端将所述M个所述第一报文发送至无线终端。92. The receiving end sends the M first messages to a wireless terminal.
在第二种处理方式中,接收端为WIFI AP,如图2中的家庭网关HGW,光网络终端ONT,电缆调制解调器CM,在实际应用中,接收端还可以为其他内置WIFI AP的网络设备。In the second processing mode, the receiving end is a WIFI AP, such as the home gateway HGW in FIG. 2, the optical network terminal ONT, and the cable modem CM. In practical applications, the receiving end may also be another network device with a built-in WIFI AP.
在第二种处理方式中,当无线终端采用WIFI接入网络时,由于无线链路特征可能导致较高的丢包率,因此,为了降低通过WIF接口传输时所述第一报文的丢包率,在WIFI AP识别出携带有第一标识的第一报文后,对第一报文进行复制,并通过发送M个所述第一报文的方式降低所述第一报文的丢包率。In the second processing mode, when the wireless terminal accesses the network by using the WIFI interface, the packet loss rate of the first packet is reduced in the transmission of the WIF interface. Rate, after the WIFI AP identifies the first packet carrying the first identifier, the first packet is copied, and the first packet is lost by sending the M first packet. rate.
本申请实施例中,一种可能的实施方式为:如果一个数据流中包括多个携带有第一标识的报文,则接收端可以对每个携带第一标识的报文进行复制,以降低丢包率。 In the embodiment of the present application, a possible implementation manner is: if a data stream includes multiple packets carrying the first identifier, the receiving end may copy each packet carrying the first identifier to reduce Packet loss rate.
本申请实施例中,所述M可以为根据报文复制份数的缺省值确定的数值。所述M也可以为根据接入数量和/或所述接收端与所述无线终端间的链路质量确定的数值,所述接入数量为已经接入到所述接收端的无线终端数量。In the embodiment of the present application, the M may be a value determined according to a default value of the number of copies of the message. The M may also be a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, where the number of accesses is the number of wireless terminals that have accessed the receiving end.
具体的,M值可以与链路质量成反比,与无线终端数量成正比,即链路质量越好,M值越小,无线终端数量越大,M值越大。在实际应用中,M值也可以为与链路质量和无线终端数量等多个因子相关的其他函数关系。Specifically, the M value may be inversely proportional to the link quality, and is proportional to the number of wireless terminals, that is, the better the link quality, the smaller the M value, the larger the number of wireless terminals, and the larger the M value. In practical applications, the M value may also be other functional relationships related to multiple factors such as link quality and number of wireless terminals.
另一种可能的实施方式为,接收端可以对接收到的一个数据流中的第一个携带有第一标识的第一报文进行复制,对后续接收到的所述数据流中的携带有第一标识的报文不进行复制,以减少接收端需要发送的报文的数量,进而减轻接收端与无线终端之间的链路负担。Another possible implementation manner is that the receiving end can copy the first packet carrying the first identifier in the received one of the data streams, and carries the carried in the subsequently received data stream. The first identified packet is not copied to reduce the number of packets that need to be sent by the receiving end, thereby reducing the link load between the receiving end and the wireless terminal.
则在92之后,该方法还包括:所述接收端接收来自所述发送端的第三报文,所述第三报文是在第四报文中添加了第一标识的报文,所述第一标识用于标识所述第四报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文;所述接收端向所述无线终端发送所述第三报文。也就是说,接收端对携带有第一标识的第一报文进行复制之后,不会对后续接收到的携带有第一标识的第三报文进行复制。Then, after the method, the method further includes: receiving, by the receiving end, a third packet from the sending end, where the third packet is a packet that adds a first identifier to the fourth packet, where the An identifier is used to identify that the fourth packet is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs, and the receiving is performed; Sending, by the terminal, the third packet to the wireless terminal. That is, after the receiving end copies the first packet carrying the first identifier, the receiving end does not copy the subsequently received third packet carrying the first identifier.
根据TCP协议中规定,接收端端收到无线终端发送的3个ack时,会触发接收端通过快速重传重新发送丢失的报文。如果在第一报文之前存在丢失的报文,由于所述M为大于或等于2的整数,接收端通过成功将所述第一报文和复制获得的M个所述第一报文发送至无线终端,并接收无线终端返回第一报文对应的一个ack,以及M个所述第一报文对应的M个ack,就可以触发接收端通过快速重传重新发送丢失的报文,进而避免超时重传的产生,同时,减轻接收端与无线终端之间的链路负担。According to the TCP protocol, when the receiving end receives three acks sent by the wireless terminal, the receiving end will trigger the receiving end to resend the lost message by fast retransmission. If there is a lost packet before the first packet, the M is successfully sent the first packet and the M first packet obtained by the replication to the M. The wireless terminal receives the ack corresponding to the first packet and the M acks corresponding to the M first messages, and triggers the receiving end to resend the lost packet by fast retransmission, thereby avoiding The generation of timeout retransmissions, at the same time, reduces the link load between the receiving end and the wireless terminal.
本发明实施例中,接收端WIFI AP在发送M个所述第一报文时,可以在发送第一报文之后发送复制的M个所述第一报文,也可以根据一定的算法通过定时器延迟一定的时间发送M个所述第一报文。In the embodiment of the present invention, when receiving the first message, the receiving end WIFI AP may send the copied M first message after sending the first message, or may pass the timing according to a certain algorithm. The device delays transmitting the M first messages in a certain time.
需要说明的是,由于本发明实施例中的WIFI AP发送的报文的目的地为通 过WIF接口传输的无线终端,因此,可以通过发送M个所述第一报文的方式,提高第一报文的传输可靠性,降低丢包率,且不消耗其它网络设备的带宽。It should be noted that the destination of the packet sent by the WIFI AP in the embodiment of the present invention is The wireless terminal transmitted through the WIF interface can improve the transmission reliability of the first packet, reduce the packet loss rate, and not consume the bandwidth of other network devices by transmitting the M first packets.
下面举一个例子说明携带有第一标识的报文在城域网内的传输过程,请参考图10,包括以下内容:The following is an example to illustrate the transmission process of a packet carrying the first identifier in the metropolitan area network. Please refer to FIG. 10, including the following contents:
101,服务器1在发送给无线终端的数据流完成传输前的N个报文内分别设置第一标识,并将所述N个报文发送至BNG。101. The server 1 sets a first identifier in each of the N packets before the data stream sent to the wireless terminal completes transmission, and sends the N packets to the BNG.
102,BNG在接收到该数据流中的报文后,识别出携带有第一标识的报文,在BNG需要丢弃报文时,优先丢弃未携带第一标识的报文。102. After receiving the packet in the data stream, the BNG identifies the packet carrying the first identifier. When the BNG needs to discard the packet, the BNG preferentially discards the packet that does not carry the first identifier.
103,BNG将携带有第一标识的报文发送至WIFI AP。103. The BNG sends the packet carrying the first identifier to the WIFI AP.
104,WIFI AP在接收到该数据流中的报文后,识别出携带有第一标识的报文,并对携带有第一标识的报文进行复制。After receiving the packet in the data stream, the WIFI AP identifies the packet carrying the first identifier and copies the packet carrying the first identifier.
105,WIFI AP将该报文和该报文的复制报文发送至无线终端。105. The WIFI AP sends the packet and the copy message of the packet to the wireless terminal.
基于同一发明构思,本发明实施例还提供一种发送装置,如图11所示,包括:Based on the same inventive concept, an embodiment of the present invention further provides a sending apparatus, as shown in FIG.
获得单元111,用于获得数据流中的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;The obtaining unit 111 is configured to obtain a first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet. The message is a packet of the N packets, where the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets of the data stream;
发送单元112,用于将所述第一报文发送至接收装置。The sending unit 112 is configured to send the first packet to the receiving device.
可选的,所述获得单元111具体用于:Optionally, the obtaining unit 111 is specifically configured to:
根据所述第二报文携带的第二标识,确定所述第二报文属于所述N个报文,所述第二标识用于标识所述第二报文在所述数据流中的位置;Determining, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, where the second identifier is used to identify a location of the second packet in the data stream. ;
在所述第二报文中添加所述第一标识,获得所述第一报文。Adding the first identifier to the second packet to obtain the first packet.
前述图3实施例中的传输数据的方法中的各种变化方式和具体实例同样适用于本实施例的发送装置,通过前述对数据传输的方法的详细描述,本领域技术人员可以清楚的知道本实施例中发送装置的实施方法,所以为了说明书的简洁,在此不再详述。 The various changes and specific examples in the method for transmitting data in the foregoing embodiment of FIG. 3 are also applicable to the transmitting apparatus of this embodiment. Through the foregoing detailed description of the method for data transmission, those skilled in the art can clearly know this. The implementation method of the transmitting device in the embodiment is not detailed here for the sake of brevity of the description.
基于同一发明构思,本发明实施例还提供一种接收端,如图12所示,包括:处理器602,发送器601和通信总线600;其中,所述处理器602和所述发送器601通过所述通信总线600完成相互间的通信;Based on the same inventive concept, an embodiment of the present invention further provides a receiving end, as shown in FIG. 12, including: a processor 602, a transmitter 601, and a communication bus 600; wherein the processor 602 and the transmitter 601 pass The communication bus 600 completes communication with each other;
所述处理器602用于:The processor 602 is configured to:
获得数据流中的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;Obtaining a first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N packets. In the message in the text, the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets in the data stream;
所述发送器601用于:The transmitter 601 is configured to:
将所述第一报文发送至接收端。Sending the first packet to the receiving end.
可选的,所述处理器602具体用于:Optionally, the processor 602 is specifically configured to:
根据所述第二报文携带的第二标识,确定所述第二报文属于所述N个报文,所述第二标识用于标识所述第二报文在所述数据流中的位置;Determining, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, where the second identifier is used to identify a location of the second packet in the data stream. ;
在所述第二报文中添加所述第一标识,获得所述第一报文。Adding the first identifier to the second packet to obtain the first packet.
进一步,在图12中,通信总线600可以包括任意数量的互联的总线和桥,通信总线600将包括由处理器602代表的一个或多个处理器和存储器604代表的存储器的各种电路连接在一起。通信总线600还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口605在通信总线600和发送器601之间提供接口。发送器601可以是收发机,提供用于在传输介质上与各种其他装置通信的单元。Further, in FIG. 12, communication bus 600 can include any number of interconnected buses and bridges, and communication bus 600 connects various circuits including one or more processors represented by processor 602 and memory represented by memory 604. together. Communication bus 600 may also couple various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein. Bus interface 605 provides an interface between communication bus 600 and transmitter 601. Transmitter 601 can be a transceiver that provides means for communicating with various other devices on a transmission medium.
处理器602负责管理通信总线600和通常的处理,而存储器604可以被用于存储处理器602在执行操作时所使用的数据。 Processor 602 is responsible for managing communication bus 600 and general processing, while memory 604 can be used to store data used by processor 602 in performing operations.
前述图3实施例中的传输数据的方法中的各种变化方式和具体实例同样适用于本实施例的发送端,通过前述对数据传输的方法的详细描述,本领域技术人员可以清楚的知道本实施例中发送端的实施方法,所以为了说明书的简洁,在此不再详述。 The various changes and specific examples in the foregoing method for transmitting data in the embodiment of FIG. 3 are also applicable to the transmitting end of the present embodiment. Those skilled in the art can clearly know the present disclosure through the foregoing detailed description of the method for data transmission. The implementation method of the transmitting end in the embodiment, so for the sake of brevity of the description, it will not be described in detail herein.
基于同一发明构思,本发明实施例还提供一种接收装置,如图13所示,包括:Based on the same inventive concept, an embodiment of the present invention further provides a receiving device, as shown in FIG. 13, including:
第一接收单元131,用于接收来自发送端的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;The first receiving unit 131 is configured to receive a first packet from the sending end, where the first packet is a packet that adds a first identifier to the second packet, where the first identifier is used to identify the first packet. The second packet is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the data stream. Number of texts;
处理单元132,用于根据报文传输策略,对所述第一报文进行处理,所述报文传输策略包括对所述第一报文采用的处理方式。The processing unit 132 is configured to process the first packet according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
可选的,所述处理单元132具体用于:Optionally, the processing unit 132 is specifically configured to:
在接收到的所述数据流对应的报文队列超过第一阈值后,优先丢弃接收到的未携带所述第一标识的报文。After the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
可选的,所述处理单元132具体用于:Optionally, the processing unit 132 is specifically configured to:
根据所述第一标识和对应关系,获得第一参数,所述对应关系包括所述第一标识和所述第一参数,所述第一参数包括第二阈值和丢弃概率,所述丢弃概率用于表示执行丢弃报文操作的百分比;And obtaining, according to the first identifier and the corresponding relationship, the first parameter, where the correspondence includes the first identifier and the first parameter, where the first parameter includes a second threshold and a discard probability, and the discard probability Indicates the percentage of operations that perform packet discarding;
在接收到的所述数据流对应的报文队列超过所述第二阈值后,根据所述丢弃概率对接收到的未携带所述第一标识的报文进行丢弃。After the received packet queue corresponding to the data stream exceeds the second threshold, the received packet that does not carry the first identifier is discarded according to the discarding probability.
可选的,所述处理单元132具体用于:Optionally, the processing unit 132 is specifically configured to:
对所述第一报文进行复制,获得M个所述第一报文,所述M为大于或等于2的整数;Copying the first packet to obtain M first messages, where M is an integer greater than or equal to 2;
将所述M个所述第一报文发送至无线终端。And transmitting the M first messages to a wireless terminal.
可选的,所述M为根据报文复制份数的缺省值确定的数值;或Optionally, the M is a value determined according to a default value of the number of copies of the message; or
所述M为根据接入数量和/或所述接收端与所述无线终端间的链路质量确定的数值,所述接入数量为已经接入到所述接收端的无线终端数量。The M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
可选的,所述N大于1,所述装置还包括:Optionally, the N is greater than 1, and the device further includes:
第二接收单元,用于接收来自所述发送端的第三报文,所述第三报文是在第四报文中添加了第一标识的报文,所述第一标识用于标识所述第四报文 为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文;a second receiving unit, configured to receive a third packet from the sending end, where the third packet is a packet that adds a first identifier to the fourth packet, where the first identifier is used to identify the Fourth message For the packets in the N packets, the N packets are N packets before the data stream to which the second packet belongs.
发送单元,用于向所述无线终端发送所述第三报文。And a sending unit, configured to send the third packet to the wireless terminal.
前述图7实施例中的传输数据的方法中的各种变化方式和具体实例同样适用于本实施例的接收装置,通过前述对数据传输的方法的详细描述,本领域技术人员可以清楚的知道本实施例中接收装置的实施方法,所以为了说明书的简洁,在此不再详述。The various changes and specific examples in the method for transmitting data in the foregoing embodiment of FIG. 7 are also applicable to the receiving apparatus of the present embodiment. Those skilled in the art can clearly know the present by the foregoing detailed description of the method for data transmission. The implementation method of the receiving device in the embodiment is not detailed here for the sake of brevity of the description.
基于同一发明构思,本发明实施例还提供一种接收端,如图14所示,包括:处理器702,接收器701,发送器703和通信总线700;其中,所述接收器701,所述发送器703和所述处理器702通过所述通信总线700完成相互间的通信;Based on the same inventive concept, an embodiment of the present invention further provides a receiving end, as shown in FIG. 14, comprising: a processor 702, a receiver 701, a transmitter 703, and a communication bus 700; wherein the receiver 701, the The transmitter 703 and the processor 702 complete communication with each other through the communication bus 700;
所述接收器701用于:The receiver 701 is configured to:
接收来自发送端的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;Receiving a first packet from the sender, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N packets. In the message, the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets in the data stream;
所述处理器702用于:The processor 702 is configured to:
根据报文传输策略,对所述第一报文进行处理,所述报文传输策略包括对所述第一报文采用的处理方式。The first packet is processed according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
可选的,所述处理器702具体用于:Optionally, the processor 702 is specifically configured to:
在接收到的所述数据流对应的报文队列超过第一阈值后,优先丢弃接收到的未携带所述第一标识的报文。After the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
可选的,所述处理器702具体用于:Optionally, the processor 702 is specifically configured to:
根据所述第一标识和对应关系,获得第一参数,所述对应关系包括所述第一标识和所述第一参数,所述第一参数包括第二阈值和丢弃概率,所述丢弃概率用于表示执行丢弃报文操作的百分比;And obtaining, according to the first identifier and the corresponding relationship, the first parameter, where the correspondence includes the first identifier and the first parameter, where the first parameter includes a second threshold and a discard probability, and the discard probability Indicates the percentage of operations that perform packet discarding;
在接收到的所述数据流对应的报文队列超过所述第二阈值后,根据所述 丢弃概率对接收到的未携带所述第一标识的报文进行丢弃。After the received message queue corresponding to the data flow exceeds the second threshold, according to the The discarding probability discards the received packet that does not carry the first identifier.
可选的,所述处理器702具体用于:Optionally, the processor 702 is specifically configured to:
对所述第一报文进行复制,获得M个所述第一报文,所述M为大于或等于2的整数;Copying the first packet to obtain M first messages, where M is an integer greater than or equal to 2;
所述发送器703用于:The transmitter 703 is configured to:
将所述M个所述第一报文发送至无线终端。And transmitting the M first messages to a wireless terminal.
可选的,所述M为根据报文复制份数的缺省值确定的数值;或Optionally, the M is a value determined according to a default value of the number of copies of the message; or
所述M为根据接入数量和/或所述接收端与所述无线终端间的链路质量确定的数值,所述接入数量为已经接入到所述接收端的无线终端数量。The M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
可选的,所述N大于1,所述接收器701具体用于:Optionally, the N is greater than 1, and the receiver 701 is specifically configured to:
用于接收来自所述发送端的第三报文,所述第三报文是在第四报文中添加了第一标识的报文,所述第一标识用于标识所述第四报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文;And the third packet is configured to receive the third packet from the sending end, where the third packet is a packet that is added with the first identifier in the fourth packet, where the first identifier is used to identify that the fourth packet is a message in the N packets, where the N packets are N packets before the data stream to which the second packet belongs;
所述发送器703具体用于:The transmitter 703 is specifically configured to:
向所述无线终端发送所述第三报文。Sending the third message to the wireless terminal.
进一步,在图14中,通信总线700可以包括任意数量的互联的总线和桥,通信总线700将包括由处理器702代表的一个或多个处理器和存储器704代表的存储器的各种电路连接在一起。通信总线700还可以将诸如外围设备、稳压器和功率管理电路等之类的各种其他电路连接在一起,这些都是本领域所公知的,因此,本文不再对其进行进一步描述。总线接口705在通信总线700和发送器703之间提供接口。接收器701和发送器703可以是同一个元件,即收发机,提供用于在传输介质上与各种其他装置通信的单元。Further, in FIG. 14, communication bus 700 can include any number of interconnected buses and bridges, and communication bus 700 connects various circuits including one or more processors represented by processor 702 and memory represented by memory 704. together. Communication bus 700 may also couple various other circuits, such as peripherals, voltage regulators, and power management circuits, as is known in the art and, therefore, will not be further described herein. Bus interface 705 provides an interface between communication bus 700 and transmitter 703. Receiver 701 and transmitter 703 may be the same component, i.e., a transceiver, providing means for communicating with various other devices on a transmission medium.
处理器702负责管理通信总线700和通常的处理,而存储器704可以被用于存储处理器702在执行操作时所使用的数据。 Processor 702 is responsible for managing communication bus 700 and general processing, while memory 704 can be used to store data used by processor 702 in performing operations.
前述图7实施例中的传输数据的方法中的各种变化方式和具体实例同样适用于本实施例的接收端,通过前述对数据传输的方法的详细描述,本领域技术人员可以清楚的知道本实施例中接收端的实施方法,所以为了说明书的 简洁,在此不再详述。The various changes and specific examples in the foregoing method for transmitting data in the embodiment of FIG. 7 are also applicable to the receiving end of the embodiment. The foregoing detailed description of the method for data transmission can be clearly known to those skilled in the art. The implementation method of the receiving end in the embodiment, so for the specification Concise, no longer detailed here.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
最后应说明的是:以上实施例仅用以示例性说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明及本发明带来的有益效果进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明权利要求的范围。 Finally, it should be noted that the above embodiments are only used to exemplify the technical solutions of the present invention, and are not limited thereto; although the beneficial effects brought by the present invention and the present invention are described in detail with reference to the foregoing embodiments, the field It should be understood by those skilled in the art that the technical solutions described in the foregoing embodiments may be modified or equivalently replaced with some of the technical features; and such modifications or substitutions do not deviate from the essence of the corresponding technical solutions. The scope of the claims.

Claims (18)

  1. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method comprises:
    发送端获得数据流中的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;The sending end obtains the first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N. The message in the packet, the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets in the data stream;
    所述发送端将所述第一报文发送至接收端。The sending end sends the first packet to the receiving end.
  2. 如权利要求1所述的方法,其特征在于,所述发送端获得数据流中的第一报文包括:The method according to claim 1, wherein the obtaining, by the transmitting end, the first message in the data stream comprises:
    所述发送端根据所述第二报文携带的第二标识,确定所述第二报文属于所述N个报文,所述第二标识用于标识所述第二报文在所述数据流中的位置;The sending end determines, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, and the second identifier is used to identify the second packet in the data. The position in the stream;
    所述发送端在所述第二报文中添加所述第一标识,获得所述第一报文。The sending end adds the first identifier to the second packet, and obtains the first packet.
  3. 如权利要求1或2所述的方法,其特征在于,所述第一标识携带于所述第一报文的区分服务代码点DSCP字段;或The method according to claim 1 or 2, wherein the first identifier is carried in a differentiated service code point DSCP field of the first packet; or
    所述第一标识携带于所述第一报文的选项编号字段。The first identifier is carried in an option number field of the first packet.
  4. 一种数据传输方法,其特征在于,所述方法包括:A data transmission method, characterized in that the method comprises:
    接收端接收来自发送端的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;The receiving end receives the first packet from the sending end, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify that the second packet is N a packet in the packet, where the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the number of packets in the data stream;
    所述接收端根据报文传输策略,对所述第一报文进行处理,所述报文传输策略包括对所述第一报文采用的处理方式。The receiving end processes the first packet according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
  5. 如权利要求4所述的方法,其特征在于,所述接收端根据报文传输策略,对所述第一报文进行处理包括:The method according to claim 4, wherein the processing of the first packet by the receiving end according to the packet transmission policy comprises:
    所述接收端在接收到的所述数据流对应的报文队列超过第一阈值后,优先丢弃接收到的未携带所述第一标识的报文。 The receiving end preferentially discards the received packet that does not carry the first identifier after the received packet queue corresponding to the data stream exceeds the first threshold.
  6. 如权利要求5所述的方法,其特征在于,所述接收端优先丢弃接收到的未携带所述第一标识的报文包括:The method of claim 5, wherein the receiving end preferentially discarding the received message that does not carry the first identifier comprises:
    所述接收端根据所述第一标识和对应关系,获得第一参数,所述对应关系包括所述第一标识和所述第一参数,所述第一参数包括第二阈值和丢弃概率,所述丢弃概率用于表示执行丢弃报文操作的百分比;The receiving end obtains a first parameter according to the first identifier and the corresponding relationship, where the corresponding relationship includes the first identifier and the first parameter, where the first parameter includes a second threshold and a discarding probability, where The drop probability is used to indicate the percentage of operations that perform packet discarding;
    所述接收端在接收到的所述数据流对应的报文队列超过所述第二阈值后,根据所述丢弃概率对接收到的携带所述第一标识的报文进行丢弃。The receiving end discards the received packet carrying the first identifier according to the discarding probability, after the received packet queue corresponding to the data stream exceeds the second threshold.
  7. 如权利要求4所述的方法,其特征在于,所述接收端根据报文传输策略,对所述第一报文进行处理包括:The method according to claim 4, wherein the processing of the first packet by the receiving end according to the packet transmission policy comprises:
    所述接收端对所述第一报文进行复制,获得M个所述第一报文,所述M为大于或等于2的整数;The receiving end copies the first packet, and obtains the M first packets, where the M is an integer greater than or equal to 2;
    所述接收端将所述M个所述第一报文发送至无线终端。The receiving end sends the M first messages to a wireless terminal.
  8. 如权利要求7所述的方法,其特征在于,所述M为根据报文复制份数的缺省值确定的数值;或The method of claim 7 wherein said M is a value determined based on a default value of the number of copies of the message; or
    所述M为根据接入数量和/或所述接收端与所述无线终端间的链路质量确定的数值,所述接入数量为已经接入到所述接收端的无线终端数量。The M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
  9. 如权利要求7所述的方法,其特征在于,所述N大于1,所述方法还包括:The method of claim 7, wherein the N is greater than 1, the method further comprising:
    所述接收端接收来自所述发送端的第三报文,所述第三报文是在第四报文中添加了第一标识的报文,所述第一标识用于标识所述第四报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文;The receiving end receives the third packet from the sending end, where the third packet is a packet with a first identifier added to the fourth packet, where the first identifier is used to identify the fourth packet. The message is a message in the N packets, and the N packets are N packets before the data stream to which the second packet belongs.
    所述接收端向所述无线终端发送所述第三报文。The receiving end sends the third packet to the wireless terminal.
  10. 如权利要求4至9任一项所述的方法,其特征在于,所述第一标识携带于所述第一报文的区分服务代码点DSCP字段;或The method according to any one of claims 4 to 9, wherein the first identifier is carried in a differentiated service code point DSCP field of the first packet; or
    所述第一标识携带于所述第一报文的选项编号字段。The first identifier is carried in an option number field of the first packet.
  11. 一种发送装置,其特征在于,所述发送装置包括: A transmitting device, characterized in that the transmitting device comprises:
    获得单元,用于获得数据流中的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;An obtaining unit, configured to obtain a first packet in the data stream, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet The message is a message in the N packets, where the N packets are N packets before the data stream is transmitted, and N is greater than 0 and smaller than the number of packets in the data stream;
    发送单元,用于将所述第一报文发送至接收装置。And a sending unit, configured to send the first packet to the receiving device.
  12. 如权利要求11所述的发送装置,其特征在于,所述获得单元具体用于:The transmitting device according to claim 11, wherein the obtaining unit is specifically configured to:
    根据所述第二报文携带的第二标识,确定所述第二报文属于所述N个报文,所述第二标识用于标识所述第二报文在所述数据流中的位置;Determining, according to the second identifier carried in the second packet, that the second packet belongs to the N packets, where the second identifier is used to identify a location of the second packet in the data stream. ;
    在所述第二报文中添加所述第一标识,获得所述第一报文。Adding the first identifier to the second packet to obtain the first packet.
  13. 一种接收装置,其特征在于,所述接收装置包括:A receiving device, characterized in that the receiving device comprises:
    第一接收单元,用于接收来自发送端的第一报文,所述第一报文是在第二报文中添加了第一标识的报文,所述第一标识用于标识所述第二报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文,N大于0且小于所述数据流的报文数量;a first receiving unit, configured to receive a first packet from the sending end, where the first packet is a packet with a first identifier added to the second packet, and the first identifier is used to identify the second packet The message is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs, and N is greater than 0 and smaller than the packet of the data stream. Quantity
    处理单元,用于根据报文传输策略,对所述第一报文进行处理,所述报文传输策略包括对所述第一报文采用的处理方式。The processing unit is configured to process the first packet according to a packet transmission policy, where the packet transmission policy includes a processing manner adopted by the first packet.
  14. 如权利要求13所述的接收装置,其特征在于,所述处理单元具体用于:The receiving device according to claim 13, wherein the processing unit is specifically configured to:
    在接收到的所述数据流对应的报文队列超过第一阈值后,优先丢弃接收到的未携带所述第一标识的报文。After the received packet queue corresponding to the data flow exceeds the first threshold, the received packet that does not carry the first identifier is preferentially discarded.
  15. 如权利要求14所述的接收装置,其特征在于,所述处理单元具体用于:The receiving device according to claim 14, wherein the processing unit is specifically configured to:
    根据所述第一标识和对应关系,获得第一参数,所述对应关系包括所述第一标识和所述第一参数,所述第一参数包括第二阈值和丢弃概率,所述丢弃概率用于表示执行丢弃报文操作的百分比;And obtaining, according to the first identifier and the corresponding relationship, the first parameter, where the correspondence includes the first identifier and the first parameter, where the first parameter includes a second threshold and a discard probability, and the discard probability Indicates the percentage of operations that perform packet discarding;
    在接收到的所述数据流对应的报文队列超过所述第二阈值后,根据所述 丢弃概率对接收到的未携带所述第一标识的报文进行丢弃。After the received message queue corresponding to the data flow exceeds the second threshold, according to the The discarding probability discards the received packet that does not carry the first identifier.
  16. 如权利要求13所述的接收装置,其特征在于,所述处理单元具体用于:The receiving device according to claim 13, wherein the processing unit is specifically configured to:
    对所述第一报文进行复制,获得M个所述第一报文,所述M为大于或等于2的整数;Copying the first packet to obtain M first messages, where M is an integer greater than or equal to 2;
    将所述M个所述第一报文发送至无线终端。And transmitting the M first messages to a wireless terminal.
  17. 如权利要求16所述的接收装置,其特征在于,所述M为根据报文复制份数的缺省值确定的数值;或The receiving apparatus according to claim 16, wherein said M is a value determined based on a default value of the number of copies of the message; or
    所述M为根据接入数量和/或所述接收端与所述无线终端间的链路质量确定的数值,所述接入数量为已经接入到所述接收端的无线终端数量。The M is a value determined according to the number of accesses and/or the quality of the link between the receiving end and the wireless terminal, and the number of accesses is the number of wireless terminals that have accessed the receiving end.
  18. 如权利要求16所述的接收装置,其特征在于,所述N大于1,所述装置还包括:The receiving device according to claim 16, wherein the N is greater than 1, the device further comprising:
    第二接收单元,用于接收来自所述发送端的第三报文,所述第三报文是在第四报文中添加了第一标识的报文,所述第一标识用于标识所述第四报文为N个报文中的报文,所述N个报文为所述第二报文所属的数据流完成传输前的N个报文;a second receiving unit, configured to receive a third packet from the sending end, where the third packet is a packet that adds a first identifier to the fourth packet, where the first identifier is used to identify the The fourth packet is a packet of the N packets, and the N packets are N packets before the data stream to which the second packet belongs.
    发送单元,用于向所述无线终端发送所述第三报文。 And a sending unit, configured to send the third packet to the wireless terminal.
PCT/CN2016/108902 2015-12-09 2016-12-07 Data transmission method, transmission device and receiving device WO2017097201A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510906934.6A CN106856457B (en) 2015-12-09 2015-12-09 A kind of data transmission method, sending device and reception device
CN201510906934.6 2015-12-09

Publications (1)

Publication Number Publication Date
WO2017097201A1 true WO2017097201A1 (en) 2017-06-15

Family

ID=59012686

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108902 WO2017097201A1 (en) 2015-12-09 2016-12-07 Data transmission method, transmission device and receiving device

Country Status (2)

Country Link
CN (1) CN106856457B (en)
WO (1) WO2017097201A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826974A (en) * 2022-04-29 2022-07-29 东风电驱动系统有限公司 CAN message timeout calculation method, device, equipment and readable storage medium
CN114978986A (en) * 2022-05-13 2022-08-30 中国联合网络通信集团有限公司 Data transmission method, device and storage medium

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535567B (en) * 2019-09-20 2022-06-10 浙江科睿微电子技术有限公司 Method and system for WLAN system aggregation retransmission
CN112003816B (en) * 2020-06-22 2023-04-18 武汉光迅科技股份有限公司 Data transmission method, device, equipment and storage medium
CN112865931B (en) * 2020-12-30 2022-12-06 京信网络系统股份有限公司 Data retransmission processing method, device, equipment and readable storage medium
CN113992607B (en) * 2021-09-09 2023-11-03 新华三信息安全技术有限公司 Message processing method and device
CN116633911A (en) * 2022-02-08 2023-08-22 华为技术有限公司 Data processing method, device and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132352A (en) * 2006-08-21 2008-02-27 中兴通讯股份有限公司 Method and system for implementing high-speed ascending grouping access characteristic
EP2068486A1 (en) * 2006-08-23 2009-06-10 Alcatel Lucent A method for controling data retransmission in wireless network at the last retransmission time
CN101816154A (en) * 2007-10-01 2010-08-25 摩托罗拉公司 Status report in the wireless communication system triggers
CN103986548A (en) * 2013-02-07 2014-08-13 华为技术有限公司 Method for determining packet loss reasons and terminal
US8964543B1 (en) * 2010-02-16 2015-02-24 Google Inc. System and method of reducing latency by transmitting duplicate packets over a network

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996821B (en) * 2006-01-05 2010-12-08 上海原动力通信科技有限公司 A data transfer method based on the data re-transfer mechanism
CN102377650B (en) * 2010-08-12 2015-01-07 华为技术有限公司 Data transmission processing method, device and system
US8885496B2 (en) * 2010-10-08 2014-11-11 Sharp Kabushiki Kaisha Uplink control information transmission on backward compatible PUCCH formats with carrier aggregation
CN102638879A (en) * 2011-02-12 2012-08-15 北京三星通信技术研究有限公司 Method for allocating acknowledgement (ACK)/negative acknowledgement (NACK) channel resource
WO2011100911A2 (en) * 2011-04-12 2011-08-25 华为技术有限公司 Detection processing method, data transmitter, data receiver and communication system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101132352A (en) * 2006-08-21 2008-02-27 中兴通讯股份有限公司 Method and system for implementing high-speed ascending grouping access characteristic
EP2068486A1 (en) * 2006-08-23 2009-06-10 Alcatel Lucent A method for controling data retransmission in wireless network at the last retransmission time
CN101816154A (en) * 2007-10-01 2010-08-25 摩托罗拉公司 Status report in the wireless communication system triggers
US8964543B1 (en) * 2010-02-16 2015-02-24 Google Inc. System and method of reducing latency by transmitting duplicate packets over a network
CN103986548A (en) * 2013-02-07 2014-08-13 华为技术有限公司 Method for determining packet loss reasons and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114826974A (en) * 2022-04-29 2022-07-29 东风电驱动系统有限公司 CAN message timeout calculation method, device, equipment and readable storage medium
CN114978986A (en) * 2022-05-13 2022-08-30 中国联合网络通信集团有限公司 Data transmission method, device and storage medium
CN114978986B (en) * 2022-05-13 2024-05-14 中国联合网络通信集团有限公司 Data transmission method, device and storage medium

Also Published As

Publication number Publication date
CN106856457A (en) 2017-06-16
CN106856457B (en) 2019-09-20

Similar Documents

Publication Publication Date Title
WO2017097201A1 (en) Data transmission method, transmission device and receiving device
WO2018210117A1 (en) Congestion control method, network device, and network interface controller thereof
US10630749B2 (en) Timely delivery of real-time media problem when TCP must be used
US8717900B2 (en) Mechanisms to improve the transmission control protocol performance in wireless networks
US11012367B2 (en) Technologies for managing TCP/IP packet delivery
WO2017101503A1 (en) Data transfer method, sending node, receiving node and data transfer system
WO2017050216A1 (en) Packet transmission method and user equipment
CN108432194B (en) Congestion processing method, host and system
WO2018113373A1 (en) Data transmission method and device
US9577791B2 (en) Notification by network element of packet drops
JP2014524092A (en) System and method for reliable virtual bidirectional data stream communication with single socket point-to-multipoint performance
CN107852371B (en) Data packet network
WO2018121742A1 (en) Method and device for transmitting stream data
JP4128198B2 (en) Bandwidth control device
WO2012129922A1 (en) Packet handling method, forwarding device and system
US20230246973A1 (en) System and method for reducing bandwidth usage of a network
US11252099B2 (en) Data stream sending method and system, and device
WO2017114231A1 (en) Packet sending method, tcp proxy, and tcp client
WO2019144802A1 (en) Data transmission method and related device
CN107852372B (en) Data packet network
US20180167168A1 (en) Low latency communications
CN109586931B (en) Multicast method and terminal equipment
US20220368765A1 (en) Universal Transport Framework For Heterogeneous Data Streams
CN111274195B (en) RDMA network flow control method, device and computer readable storage medium
CN113424578B (en) Acceleration method and device for transmission control protocol

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16872392

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16872392

Country of ref document: EP

Kind code of ref document: A1