WO2010022653A1 - 一种传输文件的检测方法及终端 - Google Patents

一种传输文件的检测方法及终端 Download PDF

Info

Publication number
WO2010022653A1
WO2010022653A1 PCT/CN2009/073524 CN2009073524W WO2010022653A1 WO 2010022653 A1 WO2010022653 A1 WO 2010022653A1 CN 2009073524 W CN2009073524 W CN 2009073524W WO 2010022653 A1 WO2010022653 A1 WO 2010022653A1
Authority
WO
WIPO (PCT)
Prior art keywords
sequence number
packet
negotiation
file
file fragment
Prior art date
Application number
PCT/CN2009/073524
Other languages
English (en)
French (fr)
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 WO2010022653A1 publication Critical patent/WO2010022653A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Definitions

  • the present invention relates to the field of the Internet, and in particular, to a method and a terminal for detecting a transmission file. Background technique
  • Internet computing model system is taking place from the client / server (client / server) mode to peer computing (p eer -to-peer, also called barrel P2P) paradigm shift.
  • client / server client / server
  • peer computing peer computing
  • the sequence number of the fragment file data packet is generally used for out-of-order reordering and packet loss detection.
  • each slice is divided into several data packets for transmission, if a fragmented start packet Or if the termination packet is lost, it cannot be detected whether the fragment is lost.
  • each file has multiple fragments. If each fragment cannot detect whether packets are lost or not, the QoS of packet transmission cannot be guaranteed.
  • Embodiments of the present invention provide a method and a terminal for detecting a transmission file, which are used for performing out-of-order reordering and packet loss detection on a data packet transmission, and ensuring QoS of data packet transmission.
  • a method for detecting a transmission file comprising:
  • Sending a first negotiation packet where the first negotiation packet carries a start data packet sequence number and a termination data packet sequence number of the file fragment, so that the receiving end is configured according to the file carried in the first negotiation packet.
  • the starting packet sequence number and the ending packet sequence number of the fragment perform out-of-order rearrangement and packet loss detection on the plurality of data packets.
  • An embodiment of the present invention further provides another method for detecting a transmission file, including:
  • the first negotiation packet carries a start data packet sequence number and a termination data packet sequence number of the file fragment; Performing out-of-order rearrangement and packet loss detection on the plurality of data packets of the file fragment according to the start data packet sequence number and the termination data packet sequence number.
  • the embodiment of the invention further provides a method for detecting a transmission file, including:
  • the first negotiation packet carries a sequence number of a start data packet of the file fragment and a number of data packets of the file fragment, so that the receiving end carries the packet according to the first negotiation packet.
  • the starting data packet sequence number of the file fragment and the number of data packets of the file fragment performing out-of-order rearrangement and packet loss detection on the plurality of data packets.
  • the embodiment of the invention further provides a method for detecting a transmission file, including:
  • the first negotiation packet carries a starting packet sequence number of the file fragment and a number of data packets of the file fragment;
  • a plurality of data packets of the file fragment are subjected to out-of-order rearrangement and packet loss detection.
  • the embodiment of the invention further provides a method for detecting a transmission file, including:
  • the plurality of data packets are encapsulated with an identifier; and the data packet type is differentiated according to the identifier of the data packet, and the data packets of the file fragment are randomly rearranged and lost.
  • Package detection
  • An embodiment of the present invention provides a terminal, including:
  • a package module configured to package a file into a plurality of data packets
  • a first sending module configured to send a first negotiation packet, where the first negotiation packet carries a start data packet sequence number and a termination data packet sequence number of the file fragment encapsulated by the encapsulating module, so that the receiving end is configured according to the The start data packet sequence number and the end data packet sequence number of the file fragment carried in the first negotiation packet perform out-of-order rearrangement and packet loss detection on the file fragment.
  • the embodiment of the invention further provides another terminal, including:
  • a second receiving module configured to receive a first negotiation packet, where the first negotiation packet carries a start data packet sequence number and a termination data packet sequence number of the file fragment;
  • a detecting module configured to perform file fragmentation according to the first negotiation packet received by the second receiving module
  • the start packet sequence number and the end packet sequence number perform out-of-order rearrangement and packet loss detection on the file fragments.
  • the embodiment of the invention further includes a terminal, including:
  • a package module configured to package a file into a plurality of data packets
  • a first sending module configured to send a first negotiation packet, where the first negotiation packet carries a starting data packet sequence number of the file fragment encapsulated by the encapsulating module and a number of data packets of the fragment, so that the receiving The device performs out-of-order reordering and packet loss detection on the plurality of data packets according to the start data packet sequence number of the file fragment and the number of data packets of the file fragment carried in the first negotiation packet.
  • the embodiment of the invention further provides a terminal, including:
  • a second receiving module configured to receive a first negotiation packet, where the first negotiation packet carries a start packet sequence number of the file fragment and a number of data packets of the file fragment;
  • a second calculating module configured to obtain, according to the starting data packet sequence number of the file fragment received by the second receiving module and the number of data packets of the file fragment, to obtain a sequence of the terminated data packet of the file fragment.
  • the detecting module is configured to perform out-of-order rearrangement and packet loss detection on the data packets of the file fragment according to the start data packet sequence number and the termination data packet sequence number calculated by the second computing module.
  • the embodiment of the invention further provides a terminal, including:
  • a receiving module configured to receive a plurality of data packets of the file fragment, where the plurality of data packets are encapsulated with an identifier
  • the detecting module is configured to distinguish the data packet type according to the identifier of the data packet received by the receiving module, and perform out-of-order rearrangement and packet loss detection on the plurality of data packets of the file fragment.
  • the first negotiation packet sent by the embodiment of the present invention carries the start data packet sequence number and the termination data packet sequence number of the fragment, according to the start data packet sequence number and the termination data packet sequence number carried in the first negotiation packet. Fragmentation performs out-of-order reordering and packet loss detection. Compared with the prior art, the receiving end does not know the starting packet sequence number and the ending packet sequence number of the fragment, and cannot perform out-of-order rearrangement and packet loss detection. In the embodiment of the present invention, the receiving end learns the starting data packet sequence number and the ending data packet sequence number of the sent file fragment by using the first negotiation packet, and performs out-of-order reordering and packet loss detection on the file fragment according to the data packet serial number.
  • DRAWINGS 1 is a first embodiment of a method for detecting a transmission file according to an embodiment of the present invention
  • FIG. 2 is a format diagram of a negotiation packet according to an embodiment of the present invention
  • FIG. 3 is a second embodiment of a method for detecting a transmission file according to an embodiment of the present invention.
  • FIG. 4 is a third embodiment of a method for detecting a transmission file according to an embodiment of the present invention.
  • FIG. 5 is a diagram of a first embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 6 is a second embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 7 is a third embodiment of a terminal according to an embodiment of the present invention.
  • FIG. 8 is a diagram of a fourth embodiment of a terminal according to an embodiment of the present invention.
  • the embodiment of the present invention uses the packet detection of the P2P network as an example to describe the specific implementation process of the method for detecting a transmission file and the terminal using the method, but the embodiment of the present invention is not limited to the out-of-order reordering and packet loss of the data packet of the P2P network. Detection can be used for out-of-order reordering and packet loss detection of data packets with the same or similar packet transmission process as the P2P network.
  • FIG. 1 is a diagram showing a first embodiment of a method for detecting a transmission file according to an embodiment of the present invention.
  • Step 101 The sender encapsulates the file into a plurality of data packets.
  • File sharding (hereinafter referred to as sharding) is to divide a file into fixed-size segments. For example, a fixed size of 256 KB is used as a shard. A file is divided into shards every 256 KB. If the remaining part of the file is less than 256 KB, Then the rest is treated as a shard. It is also possible to slice according to the length of time. For example, a video file with a playback time of 1 hour can be divided into 4 segments according to the playback time, and finally the video file is divided into 900 segments.
  • the file fragment is encapsulated into several data packets for convenient transmission.
  • a fragmented data packet has a start data packet, a middle packet, and a termination data packet.
  • Step 102 The receiving end sends a second negotiation packet to the sending end.
  • the second negotiation packet carries the start packet sequence number field of the fragment, and the receiving end fills in the start packet sequence number as needed.
  • the step is an optional step, and the sending end can also set the starting packet sequence number of the fragment.
  • the receiving end sends the second negotiation packet to determine the starting packet sequence number, which is set according to the needs of the receiving end.
  • the starting packet sequence number is convenient for the receiving end to perform out-of-order reordering and packet loss detection on the fragmented data packets. Measurement.
  • FIG. 2 shows a format of a negotiation packet provided by an embodiment of the present invention
  • the packet type (type) is, for example, a negotiation packet sent by the sending end to the receiving end or a negotiation packet sent by the receiving end to the sending end, which is usually 8 bits, and the packet length (Length) is usually 16 bits;
  • MTU maximum transmission unit
  • IPV4 address IPV4 Address I
  • MTU maximum transmission unit
  • the transmission port usually 16 bits
  • IPV4 address IPV4 Address I
  • first negotiation packet and the second negotiation packet respectively use the format of the negotiation packet shown in FIG. 2 as the packet format carrying the data, and the difference is the first negotiation packet and the second negotiation packet.
  • the data fields carried are different.
  • Step 103 The sending end determines the ending data packet sequence number according to the starting data packet sequence number; the sending end receives the starting data packet sequence number of the fragment sent by the receiving end, or the sending end sets the starting data packet of the fragment according to the requirement.
  • the transmitting end determines the sequence number of the terminated data packet of the fragment according to the starting data packet sequence number of the fragment and the number of data packets of the fragment; specifically: first calculating the number of fragmented data packets, starting the data packet sequence Number of packets added to the slice, and the added value is subtracted to obtain the sequence number of the terminated packet.
  • Step 104 The sending end sends a first negotiation packet to the receiving end.
  • the first negotiation packet carries the start packet sequence number and the termination packet sequence number of the fragment, and the first negotiation packet can adopt the format of the negotiation packet shown in FIG.
  • Step 105 The receiving end performs out-of-order reordering and packet loss detection on the plurality of data packets of the fragment according to the starting data packet sequence number and the ending data packet sequence number of the fragment;
  • the receiving end sorts the received data packets by a serial number in a smaller window to achieve out-of-order rearrangement. From the start packet sequence number, if the packet sequence number is continuous, until the termination packet sequence number is viewed, there is no packet loss; if there is a data from the start packet sequence number to the termination packet sequence number If the packet serial number does not appear in the window, it is considered to be a packet loss.
  • negotiation packet provided by the embodiment of the present invention is not limited to the format shown in FIG. 2, and may also be used in other formats, as long as the start packet sequence number field and the termination packet sequence number field can be included. can.
  • Embodiment 2
  • the first negotiation packet sent by the sending end to the receiving end carries the initial packet sequence number and the number of data packets of the fragment.
  • the receiving end After receiving the first negotiation packet, the receiving end The starting packet sequence number and the number of fragments of the fragment calculate the sequence number of the terminated packet of the fragment, and the packets of the fragment are out of order according to the starting packet sequence number and the ending packet sequence number of the fragment. Rearrangement and packet loss detection.
  • FIG. 3 shows a second embodiment of a method for detecting a transmission file according to an embodiment of the present invention.
  • Step 301 Encapsulate the file into a plurality of data packets.
  • Fragmentation divides a file into fixed-size segments. For example, a fixed size of 256KB is used as a slice. A file is divided into a slice every 256KB. If the remaining part of the file is less than 256KB, the remaining part is used as a slice. It can also be sliced according to the length of time. For example, a video file with a playing time of 1 hour can be divided into 4 segments according to the playing time, and finally the video file is divided into 900 segments.
  • the file fragment is encapsulated into several data packets for convenient transmission.
  • a fragmented data packet has a start data packet, a middle packet, and a termination data packet.
  • Step 302 The receiving end sends a second negotiation packet to the sending end.
  • the first negotiation message includes a start packet sequence number and a terminating packet sequence number, and the receiving end fills in the start packet sequence number as needed.
  • the step is an optional step, and the sending end can also set the starting packet sequence number of the fragment.
  • the receiving end sends the second negotiation packet to determine the starting packet sequence number, which is set according to the needs of the receiving end.
  • the starting packet sequence number is convenient for the receiving end to perform out-of-order reordering and packet loss detection on the fragmented data packets.
  • the first negotiation packet provided by the embodiment of the present invention may be in the format of the negotiation packet shown in FIG. 2, but the format of the negotiation packet provided by the embodiment of the present invention is not limited to the negotiation packet shown in FIG. Formatted negotiation message.
  • the start packet sequence number field and the termination packet sequence number field are included.
  • Step 303 The sending end sends the first negotiation packet to the receiving end.
  • the first negotiation packet carries the starting packet sequence number of the file fragment and the number of packets of the fragment. Determine the number of packets in the fragment.
  • the sender uses the fragment size value divided by the size of the transmitted packet to obtain the number of fragments. If the fragment size is divided by the size of the transport packet, the remainder is 0, then the number of packets
  • the destination is the integer divided by the size of the transmitted data packet; if the fragment size is divided by the size of the transport packet, the number of packets is the integer of the fragment size divided by the size of the transport packet.
  • One mouth In one method, those skilled in the art may use other methods to determine the number of data packets of the fragment according to a specific situation, and details are not described herein.
  • Step 304 The receiving end obtains the sequence number of the terminated data packet of the fragment according to the starting data packet sequence number of the fragment and the number of data packets of the fragment;
  • the sequence number of the data packet of the fragment is incremented in order, and the receiving end obtains the sequence number of the terminated data packet according to the starting data packet sequence number of the fragment and the number of the fragmented data packet; specifically: the starting data packet sequence
  • the number is added to the number of packets, and the added value is subtracted by one to obtain the sequence number of the terminated packet.
  • Step 305 The receiving end performs out-of-order reordering and packet loss detection on the data packets of the fragment according to the start data packet sequence number and the termination data packet sequence number.
  • the receiving end sorts the fragmented data packets by a serial number in a smaller window to achieve out-of-order rearrangement. From the start packet sequence number, always look at the termination packet sequence number. If the packet sequence number is continuous, there is no packet loss; if there is a packet sequence number from the start packet sequence number to the termination packet sequence number If it does not appear in the window, it is considered to be a packet loss.
  • the data packet of the file fragment of this embodiment is encapsulated with an identifier, and the receiving end performs out-of-order reordering and packet loss detection on several data packets of the fragment of the file according to the data packet identifier and the data packet sequence number.
  • FIG. 4 is a diagram showing a third embodiment of a method for detecting a transmission file according to an embodiment of the present invention.
  • Step 401 The sending end is a data packet encapsulation identifier of the file fragmentation;
  • the embodiment of the present invention provides that the identifier of the start data packet is defined as 0x0001, and the identifier of the termination data packet is defined as 0x0010, and the identifier of the start data packet and the termination data packet is 0x0100, and the identifier of the intermediate data packet is 0x1000.
  • the identifier is both the start packet identifier and the termination packet, indicating that there is only one packet in the fragment.
  • the data packet encapsulating the flag will still carry the serial number, and the serial number carried by the data packet is sequentially arranged.
  • the identifiers are used to distinguish different types of data packets in the fragment, and may be identified by other methods. Those skilled in the art may set the information according to specific situations, and details are not described herein.
  • Step 402 The sending end sends, to the receiving end, a plurality of data packets of the fragment that encapsulates the identifier.
  • Step 403 The receiving end distinguishes the data packet type according to the data packet identifier, and performs out-of-order reordering and packet loss detection on the data packets of the fragment.
  • the receiving end After receiving the data packets of the fragment, the receiving end distinguishes the data packet type according to the identifier of the data packet, and performs out-of-order reordering and packet loss detection on several data packets of the fragment.
  • the receiving end distinguishes the starting data packet, the terminating data packet and the intermediate data packet by using the identifier, and then performs out-of-order rearrangement of the plurality of data packets of the fragment according to the sequence numbers of the starting data packet, the terminating data packet and the intermediate data packet.
  • Packet loss detection The receiving end sorts the data packets by a serial number in a small window to achieve out-of-order rearrangement. From the start packet serial number view, until the end of the packet sequence number, if the packet sequence number is continuous, there is no packet loss; if there is a data from the start packet sequence number to the termination packet sequence number If the packet serial number does not appear in the window, it is considered to be a packet loss.
  • the receiving end distinguishes the type of the data packet by the identifier, and the identifier is the starting data packet and the terminating data packet type, indicating that the fragment has only one data packet, and it is not necessary to perform out-of-order reordering and packet loss detection.
  • the embodiment of the present invention further provides a terminal, which will be described in detail below.
  • FIG. 5 is a diagram showing a first embodiment of a terminal according to an embodiment of the present invention.
  • the terminal provided by the embodiment of the present invention may be used as a sending end of the first embodiment of the method for detecting a transmission file, where the terminal includes:
  • the encapsulating module 110 is configured to package the file into a plurality of data packets.
  • the first sending module 120 is configured to send a first negotiation packet, where the first negotiation packet carries a start data packet sequence number and a termination data packet sequence number of the fragment encapsulated by the encapsulating module 110, so that the receiving end is based on The start data packet sequence number and the end data packet sequence number of the fragment carried in the first negotiation packet perform out-of-order rearrangement and packet loss detection on the fragment.
  • the terminal further includes:
  • the first receiving module 130 is configured to receive a second negotiation packet, where the second negotiation packet carries a start data packet sequence number of the fragment.
  • the first calculating module 140 is configured to calculate, according to the initial adding module 150 of the fragment received by the first receiving module 130, the starting data packet sequence number of the fragment and the first calculating module 140.
  • the terminated sequence number of the outgoing packet is added to the first negotiation packet;
  • the first sending module 120 is further configured to send the first after the adding module 150 adds the start data packet sequence number and the terminating data packet sequence number of the fragment to the first negotiation packet.
  • the negotiation packet is a negotiation packet; that is, the start data packet sequence number of the first negotiation packet that is sent by the first sending module 120 is the start data of the fragment carried by the second negotiation packet. Package serial number.
  • FIG. 6 is a diagram showing a second embodiment of a terminal according to an embodiment of the present invention.
  • the terminal can be used as a receiving end of the first embodiment of the method for detecting a transmission file provided by the embodiment of the present invention, where the terminal includes:
  • the second receiving module 160 is configured to receive a first negotiation packet, where the first negotiation packet carries a start data packet sequence number and a termination data packet sequence number of the fragment;
  • the detecting module 170 is configured to perform out-of-order reordering of the fragments according to the starting data packet sequence number and the ending data packet sequence number of the fragment in the first negotiation packet received by the second receiving module 160. Packet loss detection.
  • the terminal further includes:
  • the second sending module 180 sends a second negotiation packet, where the second negotiation packet carries the starting data packet sequence number of the fragment, and the starting data packet sequence number of the fragment is the second receiving module 160.
  • the start packet sequence number of the fragment carried in the received first negotiation packet.
  • FIG. 7 is a diagram showing a third embodiment of a terminal according to an embodiment of the present invention.
  • the terminal provided by the embodiment of the present invention may be used as a sending end of the second embodiment of the method for detecting a transmission file, where the terminal includes:
  • the encapsulating module 210 is configured to package the file into a plurality of data packets.
  • the first sending module 220 is configured to send a first negotiation packet, where the first negotiation packet carries a starting data packet sequence number of the file fragment encapsulated by the encapsulating module 210 and a number of data packets of the fragment; And causing the receiving end to perform out-of-order reordering and packet loss on the plurality of data packets according to the start data packet sequence number of the file fragment and the number of data packets of the fragment carried in the first negotiation packet. Detection.
  • the terminal further includes:
  • the first receiving module 230 is configured to receive a second negotiation packet, where the second negotiation packet carries a start packet sequence number of the fragment.
  • the first negotiation packet sent by the first sending module 220 carries a sequence of starting data packets of the fragment
  • the number is the start packet sequence number of the fragment carried by the second negotiation packet received by the first receiving module 230.
  • FIG. 8 is a diagram showing a fourth embodiment of a terminal according to an embodiment of the present invention.
  • the terminal can be used as a receiving end of the second embodiment of the method for detecting a transmission file provided by the embodiment of the present invention, where the terminal includes:
  • the second receiving module 260 is configured to receive the first negotiation packet, where the first negotiation packet carries a sequence number of the starting data packet of the fragment and a number of data packets of the fragment;
  • the second calculating module 290 is configured to obtain, according to the starting data packet sequence number of the fragment received by the second receiving module 260 and the number of data packets of the fragment, the sequence number of the ending data packet of the fragment.
  • the detecting module 270 is configured to perform out-of-order reordering and packet loss detection on the plurality of data packets of the fragment according to the start data packet sequence number and the termination data packet sequence number calculated by the second calculating module 290. .
  • the embodiment of the present invention further provides a terminal for implementing the third embodiment of the method for detecting a transmission file provided by the embodiment of the present invention, where the terminal includes:
  • a receiving module configured to receive a plurality of data packets of the fragment, where the plurality of data packets are encapsulated with an identifier; and a detecting module, configured to distinguish the data packet type according to the identifier of the data packet received by the receiving module, Several packets of the slice are subjected to out-of-order reordering and packet loss detection.

Landscapes

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

Description

一种传输文件的检测方法及终端
本申请要求于 2008 年 8 月 26 日提交中国专利局、 申请号为 200810147298.3、 发明名称为 "一种传输文件的检测方法及终端" 的中国专利 申请的优先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及互联网领域, 具体涉及一种传输文件的检测方法及终端。 背景技术
互联网系统的计算模式正在发生从客户机 /服务器(client/server )模式到 对等计算( peer-to-peer, 亦筒称 P2P )模式的转变。 在现有 P2P模式下, 将文 件先分片, 再将分片后的文件打包传输。 为了保证数据包传输的服务质量 ( QoS, Quality of Service ), 在客户机 /服务器 (client/server)模式下, 一般采用 分片文件数据包的序列号来进行乱序重排和丢包检测。
在对现有技术的研究和实践过程中,本发明的发明人发现, 由于现有技术 将文件进行分片,每个分片打成数个数据包进行传输,如果一个分片的起始包 或者终止包丢掉, 则无法检测到该分片是否丢包。 尤其对于视频文件, 每个文 件有多个分片,如果每个分片都无法检测到是否丢包,无法保证数据包传输的 QoS。
发明内容
本发明实施例提供一种传输文件的检测方法及终端,用于对数据包传输进 行乱序重排和丢包检测, 保证数据包传输的 QoS。
一种传输文件的检测方法, 包括:
将文件分片封装成若干个数据包;
发送第一协商报文,所述第一协商报文中携带所述文件分片的起始数据包 序列号和终止数据包序列号,使得接收端依据所述第一协商报文中携带的文件 分片的起始数据包序列号和终止数据包序列号对所述若干个数据包进行乱序 重排和丢包检测。
本发明实施例还提供另外一种传输文件的检测方法, 包括:
接收第一协商报文,所述第一协商报文中携带文件分片的起始数据包序列 号和终止数据包序列号; 依据所述起始数据包序列号和终止数据包序列号对所述文件分片的若干 个数据包进行乱序重排和丢包检测。
本发明实施例还提供一种传输文件的检测方法, 包括:
将文件分片封装成若干个数据包;
发送第一协商报文,所述第一协商报文携带所述文件分片的起始数据包序 列号和所述文件分片的数据包数目;使得接收端依据所述第一协商报文携带的 所述文件分片的起始数据包序列号和所述文件分片的数据包数目,对所述若干 个数据包进行乱序重排和丢包检测。
本发明实施例还提供一种传输文件的检测方法, 包括:
接收第一协商报文,所述第一协商报文携带文件分片的起始数据包序列号 和文件分片的数据包数目;
依据所述文件分片的起始数据包序列号与所述文件分片的数据包数目,得 出所述文件分片的终止数据包序列号;
依据所述起始数据包序列号和终止数据包序列号,对所述文件分片的若干 个数据包进行乱序重排和丢包检测。
本发明实施例还提供一种传输文件检测方法, 包括:
接收文件分片的若干个数据包, 所述若干个数据包封装有标识; 依据所述数据包的标识区分数据包类型,对所述文件分片的若干个数据包 进行乱序重排和丢包检测。
本发明实施例提供一种终端, 包括:
封装模块, 用于将文件分片封装成若干个数据包;
第一发送模块, 用于发送第一协商报文, 所述第一协商报文携带所述封装 模块封装的文件分片的起始数据包序列号和终止数据包序列号,使得接收端依 据所述第一协商报文中携带的文件分片的起始数据包序列号和终止数据包序 列号对所述文件分片进行乱序重排和丢包检测。
本发明实施例还提供另外一种终端, 包括:
第二接收模块, 用于接收第一协商报文, 所述第一协商报文携带文件分片 的起始数据包序列号和终止数据包序列号;
检测模块,用于依据第二接收模块接收到的第一协商报文中的文件分片的 起始数据包序列号和终止数据包序列号对所述文件分片进行乱序重排和丢包 检测。
本发明实施例还包括一种终端, 包括:
封装模块, 用于将文件分片封装成若干个数据包;
第一发送模块, 用于发送第一协商报文, 所述第一协商报文携带所述封装 模块封装的文件分片的起始数据包序列号和所述分片的数据包数目,使得接收 端依据所述第一协商报文携带的所述文件分片的起始数据包序列号和所述文 件分片的数据包数目, 对所述若干个数据包进行乱序重排和丢包检测。
本发明实施例还提供一种终端, 包括:
第二接收模块, 用于接收第一协商报文, 所述第一协商报文携带文件分片 的起始数据包序列号和文件分片的数据包数目;
第二计算模块,用于依据所述第二接收模块接收到的文件分片的起始数据 包序列号与所述文件分片的数据包数目,得出所述文件分片的终止数据包序列 检测模块,用于依据所述起始数据包序列号和第二计算模块计算出的终止 数据包序列号, 对所述文件分片的若干个数据包进行乱序重排和丢包检测。
本发明实施例还提供一种终端, 包括:
接收模块, 用于接收文件分片的若干个数据包, 所述若干个数据包封装有 标识;
检测模块, 用于依据所述接收模块接收到的数据包的标识区分数据包类 型, 对所述文件分片的若干个数据包进行乱序重排和丢包检测。
本发明实施例发送的第一协商报文携带分片的起始数据包序列号和终止 数据包序列号,依据第一协商报文中携带的起始数据包序列号和终止数据包序 列号对分片进行乱序重排和丢包检测;相对于现有技术里接收端不知道分片的 起始包序列号和终止包序列号, 而无法进行乱序重排和丢包检测来说, 本发明 实施例接收端通过第一协商报文获知发送的文件分片的起始数据包序列号和 终止数据包序列号, 根据数据包序列号对文件分片进行乱序重排和丢包检测, 保证文件每个分片的数据包的乱序重排和丢包检测, 保证数据传输的 QoS。 附图说明 图 1是本发明实施例提供的传输文件检测方法第一实施例图; 图 2是本发明实施例提供的协商报文格式图;
图 3是本发明实施例提供的传输文件检测方法第二实施例图;
图 4是本发明实施例提供的传输文件检测方法第三实施例图;
图 5是本发明实施例提供的终端第一实施例图;
图 6是本发明实施例提供的终端第二实施例图;
图 7是本发明实施例提供的终端第三实施例图;
图 8是本发明实施例提供的终端第四实施例图。
具体实施方式
本发明实施例以 P2P 网络的数据包检测为例说明传输文件检测方法的具 体实施过程以及使用该方法的终端,但本发明实施例不局限于 P2P网络的数据 包的乱序重排和丢包检测,可以用于与 P2P网络具有相同或类似数据包传输过 程的数据包的乱序重排和丢包检测。
实施例一、
图 1示出了本发明实施例提供的传输文件的检测方法第一实施例图。 步骤 101、 发送端将文件分片封装成若干个数据包;
文件分片 (以下筒称为分片)是将文件进行分割成固定大小的片段, 例如 以固定大小 256KB作为一个分片, 文件每 256KB就被分割成一个分片, 若文 件剩余部分不足 256KB , 则剩余部分作为一个分片。 也可以按照时间长度进 行分片, 例如播放时间是 1个小时的视频文件, 可以按照播放时间规定 4秒一 个分片, 最终将视频文件分割成 900个片段。
将文件分片封装成若干个数据包, 方便传输, 一个分片的数据包分别有起 始数据包、 中间包和终止数据包。
步骤 102、 接收端向发送端发送第二协商报文;
第二协商报文携带分片的起始数据包序列号字段,接收端按照需要填写起 始包序列号。
该步骤为可选步骤,发送端也可以自己设定分片的起始数据包序列号; 本 发明实施例接收端发送第二协商报文确定起始数据包序列号,按照接收端的需 要设定起始数据包序列号,方便接收端对分片的数据包进行乱序重排和丢包检 测。
图 2示出了本发明实施例提供的协商报文格式,
其中, 报文类型 (type ), 例如是发送端送往接收端的协商报文或者是接 收端送往发送端的协商报文, 通常是 8位,报文长度(Length ), 通常是 16位; 网络的最大传输单元(MTU ) , 通常是 16位; 传输端口 (Port ), 通常是 16 位; IPV4地址( IPV4 Address I )。一般是 32位;起始序列号字段( INITIAL SN ), 通常是 16位;终止序列号字段( LAST SN ),通常是 16位;保留字段( reserved ), 作为报文的保留字段, 用于根据用户需要存放相应的数据。
需要说明的是,第一协商报文和第二协商报文分别可以使用图二示出的协 商报文格式作为携带数据的报文格式,不同的是第一协商报文和第二协商报文 携带的数据字段不同。
步骤 103、 发送端依据起始数据包序列号确定终止数据包序列号; 发送端接收到接收端发送的分片的起始数据包序列号或者发送端根据需 要设定分片的起始数据包序列号后,发送端依据分片的起始数据包序列号和分 片的数据包数目确定该分片的终止数据包序列号; 具体是: 首先计算分片数据 包数目,起始数据包序列号加分片的数据包数目,相加值再减去一得出终止数 据包序列号。
步骤 104、 发送端向接收端发送第一协商报文;
第一协商报文中携带分片的起始数据包序列号和终止数据包序列号,该第 一协商报文可以采用图 2所示协商报文的格式。
步骤 105、接收端依据分片的起始数据包序列号和终止数据包序列号对分 片的若干个数据包进行乱序重排和丢包检测;
接收端将接收的数据包按序列号在一个较小的窗口内进行排序,实现乱序 重排。 从起始数据包序列号查看, 如果数据包序列号是连续的, 一直查看到终 止数据包序列号, 则没有丢包; 如果有一个从起始数据包序列号到终止数据包 序列号的数据包序列号在窗口内没有出现, 则认为是丢包。
需要说明的是, 本发明实施例提供的协商报文不局限于图 2所示的格式, 也可以采用其他格式的协商报文,只要能够包含起始包序列号字段和终止包序 列号字段即可。 实施例二、
本实施例相对于实施例一,发送端向接收端发送的第一协商报文中携带的 是起始包序列号和分片的数据包数目,接收端接收到第一协商报文后,依据起 始数据包序列号和分片的数据包数目计算分片的终止数据包序列号,依据分片 的起始数据包序列号和终止数据包序列号对分片的若干个数据包进行乱序重 排和丢包检测。
图 3示出了本发明实施例提供的传输文件的检测方法第二实施例。
步骤 301、 将文件分片封装成若干个数据包;
分片是将文件进行分割成固定大小的片段, 例如以固定大小 256KB作为 一个分片, 文件每 256KB就被分割成一个分片,若文件剩余部分不足 256KB , 则剩余部分作为一个分片。 也可以按照时间长度进行分片, 例如播放时间是 1 个小时的视频文件, 可以按照播放时间规定 4秒一个分片, 最终将视频文件分 割成 900个片段。
将文件分片封装成若干个数据包, 方便传输, 一个分片的数据包分别有起 始数据包、 中间包和终止数据包。
步骤 302、 接收端向发送端发送第二协商报文;
第一协商报文包含起始数据包序列号和终止数据包序列号,接收端按照需 要填写起始包序列号。
该步骤为可选步骤,发送端也可以自己设定分片的起始数据包序列号; 本 发明实施例接收端发送第二协商报文确定起始数据包序列号,按照接收端的需 要设定起始数据包序列号,方便接收端对分片的数据包进行乱序重排和丢包检 测。
本发明实施例提供的第一协商报文可以采用图 2示出的协商报文格式,但 本发明实施例提供的协商报文的格式不局限于图 2所示的协商报文,可以采用 其他格式的协商报文。 包含起始包序列号字段和终止包序列号字段即可。
步骤 303、 发送端向接收端发送第一协商报文;
第一协商报文携带文件分片的起始数据包序列号和分片的数据包数目。确 定分片的数据包数目,发送端使用分片大小值除以传输数据包的大小值,得出 分片的数据包数目。 若分片大小除以传输数据包的大小余数是 0, 则数据包数 目是分片大小除以传输数据包的大小所得的整数;若分片大小除以传输数据包 的大小有余数,则该数据包数目是分片大小除以传输数据包的大小所得的整数 再力口一。 中一种方法,本领域技术人员可以根据具体的情况使用其他方法确定分片的数 据包数目, 在此不赘述。
步骤 304、 接收端依据分片的起始数据包序列号与分片的数据包数目, 得 出分片的终止数据包序列号;
分片的数据包序列号按顺序递增,接收端依据分片的起始数据包序列号与 分片的数据包数目, 得出分片的终止数据包序列号; 具体为: 起始数据包序列 号加上数据包数目, 相加值再减去一得出终止数据包序列号。
步骤 305、接收端依据起始数据包序列号和终止数据包序列号对分片的若 干个数据包进行乱序重排和丢包检测;
接收端将分片的数据包按序列号在一个较小的窗口内进行排序,实现乱序 重排。 从起始数据包序列号查看, 一直查看到终止包序列号, 如果数据包序列 号是连续的, 则没有丢包; 如果有一个从起始包序列号到终止包序列号的数据 包序列号在窗口内没有出现, 则认为是丢包。
实施例三、
本实施例文件分片的数据包封装有标识,接收端依据数据包标识和数据包 序列号对文件的分片的若干个数据包进行乱序重排和丢包检测。
图 4示出了本发明实施例提供的传输文件检测的方法第三实施例图。 步骤 401、 发送端为文件分片的数据包封装标识;
本发明实施例提供将起始数据包的标识规定为 0x0001 , 终止数据包的标 识规定为 0x0010, 既是起始数据包又是终止数据包的标识为 0x0100, 中间数 据包的标识为 0x1000。 标识既是起始数据包标识又是终止数据包的, 表明该 分片中只有一个数据包。封装了标志的数据包依旧会携带序列号,且数据包携 带的序列号是顺序排列。标识是为了区分分片中不同类型的数据包,也可以采 用其他方式做标识, 本领域技术人员可以根据具体的情况进行设定,在此不赘 述。 步骤 402、 发送端向接收端发送封装标识的分片的若干数据包; 步骤 403、 接收端依据数据包标识区分数据包类型, 对分片的若干数据包 进行乱序重排和丢包检测。
接收端接收到分片的若干个数据包后, 依据数据包的标识区分数据包类 型, 对分片的若干个数据包进行乱序重排和丢包检测。
接收端通过标识区分出起始数据包、终止数据包和中间数据包, 然后按照 起始数据包、终止数据包和中间数据包的序列号对分片的若干个数据包进行乱 序重排和丢包检测。 接收端将数据包按序列号在一个较小的窗口内进行排序, 实现乱序重排。 从起始数据包序列号查看, 一直查看到终止数据包序列号, 如 果数据包序列号是连续的, 则没有丢包; 如果有一个从起始数据包序列号到终 止数据包序列号的数据包序列号在窗口内没有出现, 则认为是丢包。
接收端通过标识区分数据包类型,标识是即是起始数据包又是终止数据包 类型的, 表明该分片只有一个数据包, 不必进行乱序重排和丢包的检测。
为了更好地实施以上方法, 本发明实施例还相应地提供一种终端, 以下将 进行详细说明。
图 5示出了本发明实施例提供的终端第一实施例图。
本发明实施例提供的终端,该终端可以作为实施传输文件检测方法第一实 施例的发送端, 终端包括:
封装模块 110, 用于将文件分片封装成若干个数据包;
第一发送模块 120, 用于发送第一协商报文, 所述第一协商报文携带所述 封装模块 110封装的分片的起始数据包序列号和终止数据包序列号,使得接收 端依据所述第一协商报文中携带的分片的起始数据包序列号和终止数据包序 列号对所述分片进行乱序重排和丢包检测。
作为本发明的一个实施例, 所述终端还包括:
第一接收模块 130, 用于接收第二协商报文, 所述第二协商报文携带所述 分片的起始数据包序列号;
第一计算模块 140, 用于依据所述第一接收模块 130接收到的分片的起始 添加模块 150, 将所述分片的起始数据包序列号和第一计算模块 140计算 出的终止数据包序列号添加到所述第一协商报文中;
所述第一发送模块 120, 还用于在添加模块 150将所述分片的起始数据包 序列号和终止数据包序列号添加到所述第一协商报文中之后,发送所述第一协 商报文; 也就是说,所述第一发送模块 120发送的第一协商报文携带分片的起 始数据包序列号是所述第二协商报文携带的所述分片的起始数据包序列号。
图 6示出了本发明实施例提供的终端第二实施例图。
该终端可以作为实施本发明实施例提供的传输文件检测方法第一实施例 的接收端, 所述终端包括:
第二接收模块 160, 用于接收第一协商报文, 所述第一协商报文携带分片 的起始数据包序列号和终止数据包序列号;
检测模块 170, 用于依据所述第二接收模块 160接收到的第一协商报文中 的分片的起始数据包序列号和终止数据包序列号对所述分片进行乱序重排和 丢包检测。
作为本发明的一个实施例, 所述终端还包括:
第二发送模块 180, 发送第二协商报文, 所述第二协商报文携带所述分片 的起始数据包序列号,所述分片的起始数据包序列号为第二接收模块 160接收 到的第一协商报文中携带的分片的起始数据包序列号。
图 7示出了本发明实施例提供的终端第三实施例图。
本发明实施例提供的终端,该终端可以作为实施传输文件检测方法第二实 施例的发送端, 终端包括:
封装模块 210, 用于将文件分片封装成若干个数据包;
第一发送模块 220, 用于发送第一协商报文, 所述第一协商报文携带所述 封装模块 210封装的文件分片的起始数据包序列号和所述分片的数据包数目; 使得接收端依据所述第一协商报文携带的所述文件分片的起始数据包序列号 和所述分片的数据包数目, 对所述若干个数据包进行乱序重排和丢包检测。
作为本发明的一个实施例, 所述终端还包括:
第一接收模块 230, 用于接收第二协商报文, 所述第二协商报文携带所述 分片的起始数据包序列号;
所述第一发送模块 220发送的第一协商报文携带分片的起始数据包序列 号是所述第一接收模块 230接收到的第二协商报文携带的所述分片的起始数 据包序列号。
图 8示出了本发明实施例提供的终端第四实施例图。
该终端可以作为实施本发明实施例提供的传输文件检测方法第二实施例 的接收端, 所述终端包括:
第二接收模块 260, 用于接收第一协商报文, 所述第一协商报文携带分片 的起始数据包序列号和分片的数据包数目;
第二计算模块 290, 用于依据所述第二接收模块 260接收到的分片的起始 数据包序列号与所述分片的数据包数目, 得出所述分片的终止数据包序列号; 检测模块 270, 用于依据所述起始数据包序列号和第二计算模块 290计算 出的终止数据包序列号, 对所述分片的若干个数据包进行乱序重排和丢包检 测。
本发明实施例还提供,实施本发明实施例提供的传输文件检测方法第三实 施例的终端, 所述终端包括:
接收模块,用于接收分片的若干个数据包,所述若干个数据包封装有标识; 检测模块, 用于依据所述接收模块接收到的数据包的标识区分数据包类 型, 对所述分片的若干个数据包进行乱序重排和丢包检测。
明只是用于帮助理解本发明的方法及其核心思想; 同时,对于本领域的一般技 术人员, 依据本发明的思想, 在具体实施方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对本发明的限制。

Claims

权 利 要 求
1、 一种传输文件的检测方法, 其特征在于, 包括:
将文件分片封装成若干个数据包;
发送第一协商报文,所述第一协商报文中携带所述文件分片的起始数据包 序列号和终止数据包序列号,使得接收端依据所述第一协商报文携带的文件分 片的起始数据包序列号和终止数据包序列号对所述若干个数据包进行乱序重 排和丢包检测。
2、 根据权利要求 1所述的传输文件的检测方法, 其特征在于, 所述发送 第一协商报文前还包括:
接收第二协商报文,所述第二协商报文携带所述文件分片的起始数据包序 列号; 将所述文件分片的起始数据包序列号和终止数据包序列号添加到所述第 一协商报文中。
3、 根据权利要求 2所述的传输文件的检测方法, 其特征在于, 所述依据 所述起始数据包序列号加上所述文件分片的数据包数目,相加值再减去一 得出所述文件分片的终止数据包序列号。
4、 根据权利要求 1至 3中任一项所述的传输文件的检测方法, 其特征在 于, 所述起始数据包序列号到终止数据包序列号按顺序排列。
5、 一种传输文件的检测方法, 其特征在于, 包括:
接收第一协商报文,所述第一协商报文携带文件分片的起始数据包序列号 和终止数据包序列号;
依据所述起始数据包序列号和终止数据包序列号对所述文件分片的若干 个数据包进行乱序重排和丢包检测。
6、 根据权利要求 5所述的传输文件的检测方法, 其特征在于, 所述接收 第一协商报文前还包括:
发送第二协商报文,所述第二协商报文携带所述文件分片的起始数据包序 列号。
7、 一种传输文件的检测方法, 其特征在于, 包括:
将文件分片封装成若干个数据包;
发送第一协商报文,所述第一协商报文携带所述文件分片的起始数据包序 列号和所述文件分片的数据包数目,使得接收端依据所述第一协商报文携带的 所述文件分片的起始数据包序列号和所述文件分片的数据包数目,对所述若干 个数据包进行乱序重排和丢包检测。
8、 根据权利要求 7所述的传输文件的检测方法, 其特征在于, 所述发送 第一协商报文前还包括:
接收第二协商报文,所述第二协商报文携带所述文件分片的起始数据包序 列号;
所述第一协商报文携带的文件分片的起始数据包序列号是所述第二协商 报文携带的所述分片的起始数据包序列号。
9、 一种传输文件的检测方法, 其特征在于, 包括:
接收第一协商报文,所述第一协商报文携带文件分片的起始数据包序列号 和文件分片的数据包数目;
依据所述文件分片的起始数据包序列号与所述文件分片的数据包数目,得 出所述文件分片的终止数据包序列号;
依据所述起始数据包序列号和终止数据包序列号,对所述文件分片的若干 个数据包进行乱序重排和丢包检测。
10、 根据权利要求 9所述的传输文件的检测方法, 其特征在于, 所述接收 第一协商报文前还包括:
发送第二协商报文,所述第二协商报文携带所述文件分片的起始数据包序 列号。
11、 根据权利要求 9所述的传输文件的检测方法, 其特征在于, 所述依据 所述文件分片的起始数据包序列号与所述文件分片的数据包数目,得出所述文 件分片的终止数据包序列号包括:
所述文件分片的起始数据包序列号加上所述文件分片的数据包数目,相加 值再减去一得出所述文件分片的终止包序列号。
12、 根据权利要求 9至 11中任一项所述的传输文件的检测方法, 其特征 在于, 所述起始数据包序列号到终止数据包序列号按顺序排列。
13、 一种传输文件的检测方法, 其特征在于, 包括:
接收文件分片的若干个数据包, 所述若干个数据包封装有标识; 依据所述标识区分数据包类型,对所述文件分片的若干个数据包进行乱序 重排和丢包检测。
14、 根据权利要求 13所述的检测方法, 其特征在于, 所述若干个数据包 封装有标识具体是: 所述文件分片的起始数据包、终止数据包和中间数据包分 别封装有不同的标识。
15、 一种终端, 其特征在于, 包括:
封装模块, 用于将文件分片封装成若干个数据包;
第一发送模块, 用于发送第一协商报文, 所述第一协商报文携带所述封装 模块封装的文件分片的起始数据包序列号和终止数据包序列号,使得接收端依 据所述第一协商报文中携带的文件分片的起始数据包序列号和终止数据包序 列号对所述文件分片进行乱序重排和丢包检测。
16、 根据权利要求 15所述的终端, 其特征在于, 所述终端还包括: 第一接收模块, 用于接收第二协商报文, 所述第二协商报文携带所述文件 分片的起始数据包序列号;
第一计算模块,用于依据第一接收模块接收到的文件分片的起始数据包序 列号确定所述文件分片的终止数据包序列号;
添加模块,将所述文件分片的起始数据包序列号和第一计算模块计算出的 终止数据包序列号添加到所述第一协商报文中;
所述第一发送模块,还用于在添加模块将所述文件分片的起始数据包序列 号和终止数据包序列号添加到第一协商报文中之后, 发送所述第一协商报文。
17、 一种终端, 其特征在于, 包括:
第二接收模块, 用于接收第一协商报文, 所述第一协商报文携带文件分片 的起始数据包序列号和终止数据包序列号;
检测模块,用于依据第二接收模块接收到的第一协商报文中的文件分片的 起始数据包序列号和终止数据包序列号对所述文件分片进行乱序重排和丢包 检测。
18、 根据权利要求 17所述的终端, 其特征在于, 所述终端还包括: 第二发送模块,发送第二协商报文,所述第二协商报文携带所述文件分片 的起始数据包序列号,所述文件分片的起始数据包序列号为第二接收模块接收 到的第一协商报文中携带的文件分片的起始数据包序列号。
19、 一种终端, 其特征在于, 包括:
封装模块, 用于将文件分片封装成若干个数据包;
第一发送模块, 用于发送第一协商报文, 所述第一协商报文携带所述封装 模块封装的文件分片的起始数据包序列号和所述分片的数据包数目,使得接收 端依据所述第一协商报文携带的所述文件分片的起始数据包序列号和所述文 件分片的数据包数目, 对所述若干个数据包进行乱序重排和丢包检测。
20、 根据权利要求 19所述的终端, 其特征在于, 所述终端还包括: 第一接收模块, 用于接收第二协商报文, 所述第二协商报文携带所述分片 的起始数据包序列号;
所述第一发送模块发送的第一协商报文携带的文件分片的起始数据包序 列号是第一接收模块接收到的第二协商报文携带的文件分片的起始数据包序 列号。
21、 一种终端, 其特征在于, 包括:
第二接收模块, 用于接收第一协商报文, 所述第一协商报文携带文件分片 的起始数据包序列号和文件分片的数据包数目;
第二计算模块,用于依据第二接收模块接收到的文件分片的起始数据包序 列号与所述文件分片的数据包数目, 得出所述文件分片的终止数据包序列号; 检测模块,用于依据所述起始数据包序列号和第二计算模块计算出的终止 数据包序列号, 对所述文件分片的若干个数据包进行乱序重排和丢包检测。
22、 一种终端, 其特征在于, 包括:
接收模块, 用于接收文件分片的若干个数据包, 所述若干个数据包封装有 标识;
检测模块, 用于依据接收模块接收到的数据包的标识区分数据包类型,对 所述文件分片的若干个数据包进行乱序重排和丢包检测。
PCT/CN2009/073524 2008-08-26 2009-08-26 一种传输文件的检测方法及终端 WO2010022653A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810147298.3 2008-08-26
CN 200810147298 CN101662418B (zh) 2008-08-26 2008-08-26 一种传输文件的检测方法及终端

Publications (1)

Publication Number Publication Date
WO2010022653A1 true WO2010022653A1 (zh) 2010-03-04

Family

ID=41720836

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/073524 WO2010022653A1 (zh) 2008-08-26 2009-08-26 一种传输文件的检测方法及终端

Country Status (2)

Country Link
CN (1) CN101662418B (zh)
WO (1) WO2010022653A1 (zh)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581886A (zh) * 2015-01-16 2015-04-29 深圳市银河风云网络系统股份有限公司 数据传输、终端无线连接无线设备的方法及其系统
CN111343501A (zh) * 2020-03-06 2020-06-26 随锐科技集团股份有限公司 丢包检测方法及系统、计算机可读存储介质
CN112202885A (zh) * 2020-09-30 2021-01-08 富盛科技股份有限公司 一种支持高效补包的电影数字拷贝卫星分发系统及方法
CN113676413A (zh) * 2021-08-26 2021-11-19 锐捷网络股份有限公司 一种乱序报文的重排方法、装置及存储介质
WO2022156808A1 (zh) * 2021-01-25 2022-07-28 华为技术有限公司 一种报文处理方法以及相关装置

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102546081B (zh) * 2010-12-21 2015-09-16 中兴通讯股份有限公司 丢包检测方法、系统和媒体客户端
CN105515885B (zh) * 2014-09-30 2019-01-08 华为技术有限公司 统计丢包方法、控制设备、分片设备和重组设备
CN106411660A (zh) * 2016-11-30 2017-02-15 宇龙计算机通信科技(深圳)有限公司 一种通话质量检测方法及终端
CN108683555A (zh) * 2018-04-17 2018-10-19 上海电力学院 一种rtp丢包检测方法
CN109714558A (zh) * 2018-11-28 2019-05-03 视联动力信息技术股份有限公司 一种基于视联网的通信连接检测方法及系统
CN110401513B (zh) * 2019-08-02 2021-12-17 视联动力信息技术股份有限公司 一种数据传输方法和装置
CN111107398A (zh) * 2019-12-27 2020-05-05 深圳市小溪流科技有限公司 一种流媒体数据的传输方法及接收方法、电子设备
CN111262751B (zh) * 2020-01-09 2022-04-29 奇安信科技集团股份有限公司 一种检测报文丢失的方法、装置、系统及存储介质
CN112532477B (zh) * 2020-11-23 2022-08-02 苏州盛科通信股份有限公司 一种链路丢包检测方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274112A (ja) * 2006-03-30 2007-10-18 Nec Corp 通信装置,通信システムおよび障害検出プログラム
CN101087239A (zh) * 2007-07-17 2007-12-12 北京搜狗科技发展有限公司 一种对等网络中充分利用带宽资源的数据传输方法及装置
CN101114987A (zh) * 2006-07-25 2008-01-30 中兴通讯股份有限公司 语音前向纠错信息传输在cdma2000系统中的实现方法
CN101119319A (zh) * 2007-09-19 2008-02-06 腾讯科技(深圳)有限公司 一种在数据传输过程中抵抗丢包的方法、收发装置及系统
WO2008029793A1 (fr) * 2006-09-05 2008-03-13 Nec Corporation Procédé de récupération de paquets, système de communication, dispositif de traitement d'informations et programme

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127715B (zh) * 2002-11-20 2010-06-09 华为技术有限公司 简单网络管理协议中数据包传送的可靠性保证方法
CN1208968C (zh) * 2002-11-21 2005-06-29 北京中科大洋科技发展股份有限公司 制作和发送及接收广播式准视频点播节目的装置和方法
US8195470B2 (en) * 2005-10-31 2012-06-05 Sk Telecom Co., Ltd. Audio data packet format and decoding method thereof and method for correcting mobile communication terminal codec setup error and mobile communication terminal performance same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007274112A (ja) * 2006-03-30 2007-10-18 Nec Corp 通信装置,通信システムおよび障害検出プログラム
CN101114987A (zh) * 2006-07-25 2008-01-30 中兴通讯股份有限公司 语音前向纠错信息传输在cdma2000系统中的实现方法
WO2008029793A1 (fr) * 2006-09-05 2008-03-13 Nec Corporation Procédé de récupération de paquets, système de communication, dispositif de traitement d'informations et programme
CN101087239A (zh) * 2007-07-17 2007-12-12 北京搜狗科技发展有限公司 一种对等网络中充分利用带宽资源的数据传输方法及装置
CN101119319A (zh) * 2007-09-19 2008-02-06 腾讯科技(深圳)有限公司 一种在数据传输过程中抵抗丢包的方法、收发装置及系统

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581886A (zh) * 2015-01-16 2015-04-29 深圳市银河风云网络系统股份有限公司 数据传输、终端无线连接无线设备的方法及其系统
CN111343501A (zh) * 2020-03-06 2020-06-26 随锐科技集团股份有限公司 丢包检测方法及系统、计算机可读存储介质
CN112202885A (zh) * 2020-09-30 2021-01-08 富盛科技股份有限公司 一种支持高效补包的电影数字拷贝卫星分发系统及方法
WO2022156808A1 (zh) * 2021-01-25 2022-07-28 华为技术有限公司 一种报文处理方法以及相关装置
CN113676413A (zh) * 2021-08-26 2021-11-19 锐捷网络股份有限公司 一种乱序报文的重排方法、装置及存储介质
CN113676413B (zh) * 2021-08-26 2024-05-17 锐捷网络股份有限公司 一种乱序报文的重排方法、装置及存储介质

Also Published As

Publication number Publication date
CN101662418B (zh) 2012-12-12
CN101662418A (zh) 2010-03-03

Similar Documents

Publication Publication Date Title
WO2010022653A1 (zh) 一种传输文件的检测方法及终端
US8416788B2 (en) Compression of data packets while maintaining endpoint-to-endpoint authentication
US9008123B2 (en) Method and system for encoding and decoding length of medium access control protocol data unit
KR101298640B1 (ko) 전송 스트림 패킷을 전송하는 방법 및 장치
TW201208324A (en) Packet coalescing
US8494001B2 (en) Concatenated frame structure for data transmission
KR20100007970A (ko) 다수의 프로토콜들을 사용하여 무선 통신을 위한 시퀀스 번호 재사용
US20060271680A1 (en) Method For Transmitting Window Probe Packets
WO2009000295A1 (en) Technique for handling residual space in packet data transmissions
CN101827031A (zh) 一种用户数据包协议udp隧道中传输报文的方法及装置
KR101743779B1 (ko) 매체 접근 제어 프로토콜 데이터 유닛에 제어정보를 인코딩 및 디코딩하는 장치 및 방법
US20120002683A1 (en) Method and apparatus for compressing frame
US7738459B2 (en) Method, system and apparatus for reliably transmitting packets of an unreliable protocol
US8750332B2 (en) Method and system for encoding and decoding medium access control layer packet
KR100919216B1 (ko) 데이터 송신 방법, 수신 방법 및 그 장치
CN114979093A (zh) 一种基于rtp的数据传输方法、装置、设备和介质
CN114125080A (zh) 一种报文链终端协议栈构建方法和解析方法、装置及终端
WO2017008401A1 (zh) 一种协议帧传输方法、装置、节点设备以及系统
CN102469011B (zh) 一种数据发送方法和装置
JP2002176460A (ja) 送信装置及び通信システム
WO2023130741A1 (zh) 基于联合编码的数据传输方法及装置
CN115225313B (zh) 一种高可靠的云网络虚拟专用网络通信方法和装置
JP2010153944A (ja) 通信システム、受信装置、送信装置、および通信方法
TW200922215A (en) Data transmission and encapsulation
CN115348332A (zh) 一种信令分析场景中http数据流会话的重组方法

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: 09809238

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: 09809238

Country of ref document: EP

Kind code of ref document: A1