CN109257138A - A kind of data transfer control method and relevant device - Google Patents

A kind of data transfer control method and relevant device Download PDF

Info

Publication number
CN109257138A
CN109257138A CN201710570007.0A CN201710570007A CN109257138A CN 109257138 A CN109257138 A CN 109257138A CN 201710570007 A CN201710570007 A CN 201710570007A CN 109257138 A CN109257138 A CN 109257138A
Authority
CN
China
Prior art keywords
data
packet loss
data frame
sending device
packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710570007.0A
Other languages
Chinese (zh)
Other versions
CN109257138B (en
Inventor
***
李峰
周兴旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710570007.0A priority Critical patent/CN109257138B/en
Publication of CN109257138A publication Critical patent/CN109257138A/en
Application granted granted Critical
Publication of CN109257138B publication Critical patent/CN109257138B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/004Arrangements for detecting or preventing errors in the information received by using forward error control
    • H04L1/0056Systems characterized by the type of code used
    • H04L1/0061Error detection codes
    • 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/1607Details of the supervisory signal
    • 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
    • H04L1/1809Selective-repeat protocols

Landscapes

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

Abstract

The embodiment of the present application discloses a kind of data transfer control method and relevant device, the flexibility for improve data transfer control.The embodiment of the present application method includes: that calibration equipment receives the data frame that sending device is sent;The calibration equipment carries out the first verification to the data frame;When first verification is obstructed out-of-date, the calibration equipment carries out the second verification to the partial data in the data frame;When second verification passes through, the calibration equipment obtains identification information from the partial data of the data frame;The calibration equipment sends packet loss information to the sending device, and the packet loss information includes the identification information, and the identification information is used to indicate data packet corresponding with the identification information and packet loss has occurred.

Description

A kind of data transfer control method and relevant device
Technical field
This application involves field of communication technology more particularly to a kind of data transfer control methods and relevant device.
Background technique
In a communications system, during data are transmitted, when sending device is sent by the network equipment to receiving device When data frame, the network equipment needs to verify to whether data frame damages.Obstructed out-of-date when verifying, which will be judged to Fixed to be damaged during transmission, the data frame finally damaged is abandoned by the network equipment, and transmission control protocol (full name in English: transmission control protocol, english abbreviation: TCP) is determined as caused by network congestion Packet loss event.
Since when data frame is damaged, the network equipment directly abandons the impaired data frame, at this time sending device It can not know because packet loss event has occurred in data frame damage, and defaulting is the packet loss event as caused by network congestion, because The processing that this causes the network equipment to transmit data is more mechanical, inflexible.
Summary of the invention
In order to solve in the prior art to the processing of data transmission using default behavior not flexible enough technical problem, this Application embodiment provides a kind of data transfer control method, and calibration equipment is carrying out the first verification not to the data frame received When passing through, and passing through to the second verification of the partial data of data frame progress, mark letter is obtained from the partial data of the data frame Breath, and the packet loss information for carrying the identification information is sent to sending device, so that sending device is according to the packet loss information Packet loss event has occurred for timely learning, and knows that packet loss has occurred in corresponding data packet according to the identification information, thus to this The corresponding data packet of identification information is retransmitted, and the flexibility to Data Transmission Controlling is improved.The embodiment of the present application also provides The relevant devices such as data transfer controller, sending device, calibration equipment and computer storage medium.
The embodiment of the present application first aspect provides a kind of data transfer control method, it may include: calibration equipment receives hair The data frame for sending equipment to send, the calibration equipment can be the network equipment, be also possible to receiving device, i.e. the damage of data frame can To find on network devices, it is also possible to find on the receiving device, for example, the network equipment receives sending device hair The data frame or receiving device sent receives the data frame that network equipment forwarding sending device is sent.Then, calibration equipment pair The data frame received carries out the first verification, which can be cyclic redundancy check (cyclic redundancy Check, CRC) or frame check (frame check sequence, FCS) etc..When the first verification is obstructed out-of-date, calibration equipment is true Determine data frame to be damaged.At this point, calibration equipment carries out the second verification to the partial data of data frame, for example, the data frame Partial data may include the packet header IP or the packet header TCP etc., i.e., carrying out the second verification to the partial data of data frame can be to IP Packet header verifies and is verified, and can also verify etc. to the packet header TCP.When the partial data to data frame carries out the second verification By when, calibration equipment determines that the partial data of data frame is not damaged.When the second verification passes through, calibration equipment is from data Identification information is obtained in the partial data of frame, which may include source address and destination address etc., which can Packet loss has occurred to be used to indicate data packet corresponding with the identification information.Since the partial data of data frame is not damaged, this When from the identification information that the partial data is got be correct.After obtaining correct identification information, calibration equipment can be to Sending device sends packet loss information, which includes the identification information.So that sending device is true according to the packet loss information Determine data frame to have lost, and know that packet loss has occurred in corresponding data packet according to the identification information, thus to identification information pair The data packet answered executes retransmission operation, improves the flexibility to Data Transmission Controlling.
In conjunction with the embodiment of the present application in a first aspect, in the first embodiment of the embodiment of the present application first aspect, when When data frame is not due to packet loss event caused by network congestion, which may include non-congested packet loss information, that is, verify Non-congested packet loss information can be generated in equipment, and the non-congested packet loss information is for indicating the packet loss as caused by non-network congestion cause Event.For example, the reasons such as hardware fault, signal interference cause the damage of data frame, and using wireless WIFI network, non-screen When covering the transmission of the relatively poor medium progress data frame of the link-qualities such as twisted pair or wireless cellular network, data frame will also result in The case where damage, these abandon data frame after causing data frame to damage, belongs to the packet loss thing as caused by non-network congestion cause Part.At this point, calibration equipment can send non-congested packet loss information to sending device, so that sending device non-congested is lost according to this Package informatin determination is the packet loss event as caused by non-network congestion cause, so that sending device maintains current congestion control machine System, and retransmission operation is executed to the corresponding data packet of identification information under congestion control mechanism, which can be TCP layer Data packet or UDP layer data packet.Sending device is avoided to carry out the multiplying property reduction of speed behavior of mistake, it is logical relative to blindness Diminution congestion window is crossed to reduce transmission rate to mitigate network congestion degree, improves the utilization rate of network link, Yi Jiti The high handling capacity of network.
In conjunction with the embodiment of the present application first aspect or in the first embodiment of the embodiment of the present application first aspect, at this In second of embodiment for applying for embodiment first aspect, in order to determine the corresponding sending device of data frame, calibration equipment is obtained The identification information got may include source IP address, and the partial data of data frame includes the packet header IP, which can be from IP packet It is got in head.Calibration equipment can be sent according to the source IP address to sending device after obtaining source IP address in the packet header IP Packet loss information.The packet header IP is verified since the second verification of partial data progress to data frame can be, when to IP When packet header verification passes through, calibration equipment determines that the packet header IP is not damaged, can obtain correct source IP address from the packet header IP at this time, Facilitate calibration equipment that packet loss information is correctly transmitted to corresponding sending device, improves calibration equipment and packet loss information is sent out The accuracy sent.
In conjunction with second of embodiment of the embodiment of the present application first aspect, in the third of the embodiment of the present application first aspect In kind embodiment, in order to determine that the corresponding receiving device of data frame, the identification information that calibration equipment is got may include purpose IP address, the purpose IP address can be got from the packet header IP.Calibration equipment, can after obtaining purpose IP address in the packet header IP To send the purpose IP address to sending device according to source IP address.Since the second verification of partial data progress to data frame can Being verified to the packet header IP, therefore, when passing through to the verification of the packet header IP, calibration equipment determines that the packet header IP is not damaged, this Shi Kecong IP obtains correct purpose IP address in packet header, improves the standard that calibration equipment sends purpose IP address to sending device True property.
In conjunction with the third embodiment of the embodiment of the present application first aspect, the 4th of the embodiment of the present application first aspect the In kind embodiment, the identification information that calibration equipment is got further includes sequence number, and the partial data of data frame may include IP packet Head or the packet header TCP, the sequence number can be got from the packet header TCP or the packet header IP.Due in the same data flow there may be When multiple data frames, the corresponding multiple data packets of the identification information, therefore be which data to allow sending device accurately to know There is packet loss event in packet, and calibration equipment obtains the corresponding sequence number of impaired data packet at this time, which is sent The data packet is accurately weighed so that sending device determines the data packet damaged according to the sequence number to sending device It passes, avoid all being retransmitted all data packets and wastes Internet resources.
In conjunction with the 4th kind of embodiment of the embodiment of the present application first aspect, the 5th of the embodiment of the present application first aspect the In kind embodiment, the identification information that calibration equipment is got further includes port information, which may include source port With destination port etc..When data frame is at least two data streams that the sending device that calibration equipment receives is sent to receiving device On data frame when, in order to enable sending device knows that the data frame on which data stream has damaged, calibration equipment can be from Port information is obtained in the packet header TCP, and the port information is then sent to sending device according to source IP address.Since sending device can Can send a plurality of data flow to receiving device, therefore be data frame on any data stream to allow sending device accurately to know There is damage, calibration equipment obtains port information and is sent to sending device at this time, so that sending device is according to port information Determine the data flow where the data frame damaged.
In conjunction with the embodiment of the present application first aspect, the first embodiment of the embodiment of the present application first aspect to the 5th kind Any one in embodiment, in the 6th kind of embodiment of the embodiment of the present application first aspect, calibration equipment is to data frame The first verification of progress, which can be, verifies data frame in data link layer, for example, carrying out in data link layer to data frame CRC check or FCS verification etc., by taking cyclic redundancy check as an example, calibration equipment can be calculated according to the content of data frame and follow Ring redundancy check code, and the cyclic redundancy check code check code preset with tail portion in data frame is compared.Work as cyclic redundancy When check code and the check code are inconsistent, calibration equipment determination does not pass through the verification of data frame.Allow calibration equipment side Just data frame is verified, improves the convenience that calibration equipment verifies data frame.
In conjunction with the embodiment of the present application first aspect, the first embodiment of the embodiment of the present application first aspect to the 6th kind Any one in embodiment, in the 7th kind of embodiment of the embodiment of the present application first aspect, calibration equipment is to data frame In partial data carry out second verification can be, IP layer in data frame partial data progress the verification of the packet header IP.For example, The content that calibration equipment obtains in the packet header IP at IP layers, is calculated verification and check code according to the content in the packet header IP.Then Calibration equipment will verify and check code is compared with check code preset in the packet header IP, when the verification and check code and the verification When code is consistent, calibration equipment determines that the verification of the packet header IP and verification pass through.So that calibration equipment can be convenient to the portion of data frame Divided data is verified, and the convenience that calibration equipment verifies the partial data of data frame is improved.
In conjunction with the embodiment of the present application first aspect, the first embodiment of the embodiment of the present application first aspect to the 7th kind Any one in embodiment, in the 8th kind of embodiment of the embodiment of the present application first aspect, when calibration equipment is network When the receiving device of equipment or corresponding data frame, before calibration equipment sends packet loss information to sending device, calibration equipment can be with Preset Internet Control Message Protocol (full name in English: internet control message protocol, english abbreviation: ICMP packet loss type option is extended in Option Field), and packet loss information is added to the packet loss type option.Calibration equipment to When sending device sends packet loss information, calibration equipment sends the ICMP for carrying packet loss information to sending device.So that when verification When equipment is the network equipment or receiving device, convenient packet loss information can be fed back to sending device.
In conjunction with the embodiment of the present application first aspect, the first embodiment of the embodiment of the present application first aspect to the 7th kind Any one in embodiment, in the 9th kind of embodiment of the embodiment of the present application first aspect, when calibration equipment is to correspond to When the receiving device of data frame, before calibration equipment sends packet loss information to sending device, calibration equipment can be preset The choosing of packet loss type is extended in the Option Field of response message agreement (full name in English: acknowledgement, english abbreviation: ACK) , packet loss information is added to the packet loss type option.When calibration equipment sends packet loss information to sending device, calibration equipment The ACK for carrying packet loss information is sent to sending device.Since ACK is to generate in TCP layer, and the network equipment can not be seen TCP layer, thus only calibration equipment be receiving device when, can generate and carry packet loss information ACK, improve receiving device Flexibility to sending device feedback packet loss information.
The embodiment of the present application second aspect provides a kind of data transfer control method, it may include: sending device is to verification Equipment sends data frame, which can be the network equipment, be also possible to receiving device.For example, sending device is to network Equipment sends data frame, and either, sending device sends data frame to receiving device by the network equipment.Sending device is detected The no packet loss information for receiving calibration equipment transmission, the packet loss information are obstructed to the first verification of data frame progress by calibration equipment It crosses, and transmission when the second verification passes through is carried out to the partial data of data frame, which includes calibration equipment from data frame Partial data in the identification information that gets, which is used to indicate corresponding data packet and packet loss has occurred.If Sending device detecting receives the packet loss information of calibration equipment transmission, then sending device determines data frame according to the packet loss information It loses, and knows that packet loss has occurred in corresponding data packet according to the identification information, thus to the corresponding data packet of identification information Retransmission operation is executed, the flexibility to Data Transmission Controlling is improved.
In conjunction with the embodiment of the present application second aspect, in the first embodiment of the embodiment of the present application second aspect, when When data frame is not due to packet loss event caused by network congestion, which may include non-congested packet loss information, and transmission is set During the standby execution retransmission operation to identification information corresponding data packet, sending device first determines whether wrap in packet loss information Containing non-congested packet loss information, the non-congested packet loss information is for indicating the packet loss event as caused by non-network congestion cause.For example, The reasons such as hardware fault, signal interference cause the damage of data frame, and using wireless WIFI network, unshielded twisted pair or When the relatively poor medium of the link-qualities such as wireless cellular network carries out the transmission of data frame, data frame damage will also result in, these The case where abandoning data frame after causing data frame to damage belongs to the packet loss event as caused by non-network congestion cause.If packet loss It include non-congested packet loss information in information, then sending device is by non-network congestion cause according to the non-congested packet loss information determination Caused packet loss event, so that sending device maintains current congestion control mechanism, and to mark under congestion control mechanism The corresponding data packet of information executes retransmission operation.For example, being sent out if the congestion control mechanism of sending device is in slow start stage Send equipment that the congestion control mechanism of current slow turn-on is maintained to execute retransmission operation to the corresponding data packet of identification information;If transmission is set Standby congestion control mechanism is in the Fast retransmission stage, then sending device maintains the congestion control mechanism of current Fast retransmission to mark Know the corresponding data packet of information and executes retransmission operation, etc..Sending device is avoided to carry out the multiplying property reduction of speed behavior of mistake, relative to Transmission rate blindly is reduced to mitigate network congestion degree by reducing congestion window, improves the utilization rate of network link, And improve the handling capacity of network.
The embodiment of the present application third aspect provides a kind of data transfer controller, it may include: receiving unit, the first school Verification certificate member, the second verification unit, first acquisition unit and the first transmission unit etc., wherein receiving unit is used for, and is received to send and is set The data frame that preparation is sent.First verification unit is used for, and carries out the first verification, first school to the data frame that receiving unit receives It tests and can be CRC check or FCS verification etc., determine that verification is obstructed out-of-date in the first verification unit, the second verification unit determines number It has been damaged according to frame.At this point, the second verification unit carries out the second verification to the partial data of data frame, for example, the portion of the data frame Divided data may include the packet header IP or the packet header TCP etc., i.e., carrying out the second verification to the partial data of data frame can be to IP packet Head is verified and is verified, and can also be verified etc. to the packet header TCP.Lead to when the partial data to data frame carries out the second verification Out-of-date, the second verification unit determines that the partial data of data frame is not damaged.Determine that the second verification is logical in the second verification unit Out-of-date, first acquisition unit obtains identification information from the partial data of data frame, the identification information may include source address and Destination address etc., the identification information can serve to indicate that packet loss has occurred in data packet corresponding with the identification information.Due to data The partial data of frame is not damaged, is at this time correct from the identification information that the partial data is got.In first acquisition unit After obtaining correct identification information, the first transmission unit can send the packet loss information for carrying identification information to sending device, So that sending device determines that data frame has been lost according to the packet loss information, and corresponding data are known according to the identification information Packet loss has occurred in packet, to execute retransmission operation to the corresponding data packet of identification information, improves the spirit to Data Transmission Controlling Activity.
In conjunction with the embodiment of the present application third aspect, in the first embodiment of the embodiment of the present application third aspect, when When data frame is not due to packet loss event caused by network congestion, which may include non-congested packet loss information, this is non-to gather around Packet loss information is filled in for indicating the packet loss event as caused by non-network congestion cause.For example, the reasons such as hardware fault, signal interference The damage of data frame is caused, and is using the link-qualities phases such as wireless WIFI network, unshielded twisted pair or wireless cellular network When carrying out the transmission of data frame to poor medium, will also result in data frame damage, these cause data frame to damage after by data The case where frame abandons belongs to the packet loss event as caused by non-network congestion cause.At this point, the first transmission unit can be to transmission Equipment sends non-congested packet loss information, so that sending device is former by non-network congestion according to the non-congested packet loss information determination The packet loss event because caused by, so that sending device maintains current congestion control mechanism, and to mark under congestion control mechanism Know the corresponding data packet of information and executes retransmission operation.Sending device is avoided to carry out the multiplying property reduction of speed behavior of mistake, relative to blindly Transmission rate is reduced to mitigate network congestion degree by reducing congestion window, improves the utilization rate of network link, and Improve the handling capacity of network.
In conjunction with the embodiment of the present application third aspect or in the first embodiment of the embodiment of the present application third aspect, at this In second of embodiment for applying for the embodiment third aspect, in order to determine the corresponding sending device of data frame, first obtains list The identification information that member is got may include source IP address, and the partial data of data frame includes the packet header IP, which can be by First acquisition unit is got from the packet header IP.For first acquisition unit after obtaining source IP address in the packet header IP, first sends list The source IP address that member can be got according to first acquisition unit sends packet loss information to sending device.Since the second verification is single Member can be the second verification of partial data progress of data frame and verify to the packet header IP, therefore, logical when verifying to the packet header IP Out-of-date, the second verification unit determines that the packet header IP is not damaged, and first acquisition unit can obtain correct source from the packet header IP at this time IP address facilitates the first transmission unit that packet loss information is correctly transmitted to corresponding sending device, improves the first transmission unit The accuracy that packet loss information is sent.
In conjunction with second of embodiment of the embodiment of the present application third aspect, in the third of the embodiment of the present application third aspect In kind of embodiment, in order to determine that the corresponding receiving device of data frame, the identification information that first acquisition unit is got may include Purpose IP address, the purpose IP address can be got from the packet header IP by first acquisition unit.First acquisition unit is from IP packet After obtaining purpose IP address in head, the source IP address that the first transmission unit can be got according to first acquisition unit is set to transmission The purpose IP address that preparation send first acquisition unit to get.Since partial data of second verification unit to data frame carries out Second verification, which can be, verifies the packet header IP, and therefore, when passing through to the verification of the packet header IP, the second verification unit determines IP packet Head is not damaged, and first acquisition unit can obtain correct purpose IP address from the packet header IP at this time, improve the first transmission list Member sends the accuracy for the purpose IP address that first acquisition unit is got to sending device.
In conjunction with the third embodiment of the embodiment of the present application third aspect, the 4th of the embodiment of the present application third aspect the In kind embodiment, the identification information that first acquisition unit is got further includes sequence number, and the partial data of data frame may include The packet header IP or the packet header TCP, the sequence number can be got from the packet header TCP or the packet header IP by first acquisition unit.Due to same There may be multiple data packets corresponding with the identification information in data flow, therefore in order to allow sending device accurately to know which are There is packet loss event in data packet, and first acquisition unit obtains the corresponding sequence number of impaired data packet at this time, by first The source IP address that transmission unit is got according to first acquisition unit sends the sequence number to sending device, so that sending device The data packet damaged is determined according to the sequence number, which is accurately retransmitted, avoids all carrying out all data packets It retransmits and wastes Internet resources.
In conjunction with the 4th kind of embodiment of the embodiment of the present application third aspect, the 5th of the embodiment of the present application third aspect the In kind embodiment, the identification information that first acquisition unit is got further includes port information, which may include source Port and destination port etc..When data frame is at least two numbers that the sending device that receiving unit receives is sent to receiving device When according to data frame on stream, in order to enable sending device knows that the data frame on which data stream has damaged, first obtain it is single Member can obtain port information, the source IP then got by the first transmission unit according to first acquisition unit from the packet header TCP Address sends the port information that first acquisition unit is got to sending device.Since sending device may be to receiving device A plurality of data flow is sent, therefore in order to allow sending device accurately to know that damage occurs in the data frame on which data stream, this When first acquisition unit obtain port information after sending device is sent to by the first transmission unit so that sending device is according to end Message breath determines the data flow where the data frame damaged.
In conjunction with the embodiment of the present application third aspect, the first embodiment of the embodiment of the present application third aspect to the 5th kind Any one in embodiment, in the 6th kind of embodiment of the embodiment of the present application third aspect, the first verification unit logarithm It can be according to the first verification of frame progress and data frame verified in data link layer, for example, in data link layer to data frame CRC check or FCS verification etc. are carried out, by taking cyclic redundancy check as an example, the first verification unit can be according to the content meter of data frame Calculation obtains cyclic redundancy check code, and the cyclic redundancy check code check code preset with tail portion in data frame is compared.When following When ring redundancy check code and the check code are inconsistent, the determination of the first verification unit does not pass through the verification of data frame.So that first Verification unit verifies data frame with can be convenient, improve the first verification unit data frame is verified it is convenient Property.
In conjunction with the embodiment of the present application third aspect, the first embodiment of the embodiment of the present application third aspect to the 6th kind Any one in embodiment, in the 7th kind of embodiment of the embodiment of the present application third aspect, the second verification unit logarithm Carrying out the second verification according to the partial data in frame can be, and carry out the verification of the packet header IP to the partial data in data frame at IP layers. For example, the content that the second verification unit obtains in the packet header IP at IP layers, is calculated verification and school according to the content in the packet header IP Test code.Then the second verification unit will verify and check code is compared with check code preset in the packet header IP, when the verification with When check code is consistent with the check code, the second verification unit determines that the verification of the packet header IP and verification pass through.So that the second verification unit The partial data of data frame is verified with can be convenient, improves the second verification unit and the partial data of data frame is carried out The convenience of verification.
In conjunction with the embodiment of the present application third aspect, the first embodiment of the embodiment of the present application third aspect to the 7th kind Any one in embodiment, in the 8th kind of embodiment of the embodiment of the present application third aspect, data transfer controller It further include the first adding unit, which can extend in the Option Field of preset Internet Control Message Protocol ICMP Packet loss information is added to the packet loss type option by packet loss type option.Packet loss is sent to sending device in the first transmission unit When information, the first transmission unit can send the ICMP for carrying packet loss information that the first adding unit obtains to sending device. Facilitate the first adding unit by packet loss information carry out it is convenient be packed into ICMP, and fed back from the first transmission unit to sending device ICMP, so that caused by sending device knows that the damage of data frame is non-network congestion according to the packet loss information carried in ICMP.
In conjunction with the embodiment of the present application third aspect, the first embodiment of the embodiment of the present application third aspect to the 7th kind Any one in embodiment, in the 9th kind of embodiment of the embodiment of the present application third aspect, data transfer controller It further include the second adding unit, which can extend in the Option Field of preset response message agreement ACK Packet loss information is added to the packet loss type option by packet loss type option.Packet loss is sent to sending device in the first transmission unit When information, the first transmission unit can send the ACK for carrying packet loss information that the first adding unit obtains to sending device.It mentions High flexibility of first transmission unit to sending device feedback packet loss information.
The embodiment of the present application fourth aspect provides a kind of sending device, it may include transmission unit, detecting unit and execution Unit etc., wherein transmission unit sends data frame to calibration equipment, which can be the network equipment, be also possible to connect Receiving unit.For example, transmission unit sends data frame to the network equipment, either, transmission unit is set by the network equipment to reception Preparation send data frame.Whether detecting unit detecting at this time receives the packet loss information of calibration equipment transmission, and the packet loss information is by school It tests equipment not pass through the first verification of data frame progress, and transmission when the second verification passes through is carried out to the partial data of data frame, The packet loss information includes the identification information that calibration equipment is got from the partial data of data frame, which is used to indicate Packet loss has occurred in corresponding data packet.If detecting unit detecting receives the packet loss information of calibration equipment transmission, execute Unit determines that data frame has been lost according to the packet loss information, and knows that corresponding data packet is lost according to the identification information Packet improves the flexibility to Data Transmission Controlling to execute retransmission operation to the corresponding data packet of identification information.
It is held in the first embodiment of the embodiment of the present application fourth aspect in conjunction with the embodiment of the present application fourth aspect Row unit may include judgment sub-unit and execution subelement, wherein the packet loss thing caused by data frame is not due to network congestion When part, which may include non-congested packet loss information, and execution unit executes the corresponding data packet of identification information and retransmits behaviour During work, whether judged in packet loss information by judgment sub-unit comprising non-congested packet loss information, the non-congested packet loss first Information is for indicating the packet loss event as caused by non-network congestion cause.For example, the reasons such as hardware fault, signal interference cause to count According to the damage of frame, and relatively poor using link-qualities such as wireless WIFI network, unshielded twisted pair or wireless cellular networks Medium carry out data frame transmission when, will also result in data frame damage, these cause data frame damage after data frame is abandoned The case where belong to the packet loss event as caused by non-network congestion cause.If in packet loss information including non-congested packet loss information, Execution unit is the packet loss event as caused by non-network congestion cause according to the non-congested packet loss information determination, thereby executing unit Current congestion control mechanism is maintained, and the corresponding data packet of identification information is executed under congestion control mechanism and retransmits behaviour Make.For example, execution unit maintains the congestion of current slow turn-on if the congestion control mechanism of sending device is in slow start stage Controlling mechanism executes retransmission operation to the corresponding data packet of identification information;If the congestion control mechanism of sending device is in quickly weight The biography stage, then execution unit maintains the congestion control mechanism of current Fast retransmission to execute re-transmission to the corresponding data packet of identification information Operation, etc..It avoids sending device from carrying out the multiplying property reduction of speed behavior of mistake, is reduced relative to blindness by reducing congestion window Transmission rate improves the utilization rate of network link to mitigate network congestion degree, and improves the handling capacity of network.
The 5th aspect of the embodiment of the present application provides a kind of calibration equipment, it may include: processor, memory, bus, input Device and output device;Wherein, program code is stored in the memory, when processor calls the program code in memory It executes such as aforementioned the embodiment of the present application first aspect, the first embodiment of the embodiment of the present application first aspect to the application reality Apply data transfer control method described in any embodiment in the 9th kind of embodiment of first aspect.
The 6th aspect of the embodiment of the present application provides a kind of calibration equipment, it may include: processor, memory, bus, input Device and output device;Wherein, program code is stored in the memory, when processor calls the program code in memory Execute the number as described in the first embodiment of aforementioned the embodiment of the present application second aspect or the embodiment of the present application second aspect According to transfer control method.
The aspect of the embodiment of the present application the 7th provides a kind of computer program product comprising instruction, when its on computers When operation, so that computer executes the first of such as aforementioned the embodiment of the present application first aspect, the embodiment of the present application first aspect Data described in any embodiment of the embodiment into the 9th kind of embodiment of the embodiment of the present application first aspect pass Transmission control method.
The embodiment of the present application eighth aspect provides a kind of computer program product comprising instruction, when its on computers When operation, so that computer executes such as the first of aforementioned the embodiment of the present application second aspect or the embodiment of the present application second aspect Data transfer control method described in embodiment.
The 9th aspect of the embodiment of the present application provides a kind of computer readable storage medium, deposits in the computer storage medium Contain instruction, when run on a computer so that computer execute when execute as aforementioned the embodiment of the present application first aspect, The first embodiment of the embodiment of the present application first aspect is into the 9th kind of embodiment of the embodiment of the present application first aspect Any embodiment described in data transfer control method.
The tenth aspect of the embodiment of the present application provides a kind of computer readable storage medium, deposits in the computer storage medium Instruction is contained, when run on a computer, so that computer executes such as aforementioned the embodiment of the present application second aspect or this Shen It please data transfer control method described in the first embodiment of embodiment second aspect.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
Calibration equipment does not pass through to the first verification of data frame progress received, and carries out to the partial data of data frame When second verification passes through, illustrate that the data frame has damaged, but the identification information for including in the partial data of the data frame is not damaged It is bad, at this point, calibration equipment can obtain identification information from the partial data of the data frame.Then, calibration equipment is set to transmission Preparation send the packet loss information for carrying the identification information, so that sending device has been lost according to the packet loss information timely learning Packet event, and know that packet loss has occurred in corresponding data packet according to the identification information, thus to the corresponding number of the identification information It is retransmitted according to packet, improves the flexibility to Data Transmission Controlling.
Detailed description of the invention
Fig. 1 is the architecture diagram of communication system in the embodiment of the present application;
Fig. 2 is data transfer control method one embodiment schematic diagram in the embodiment of the present application;
Fig. 3 is another embodiment schematic diagram of data transfer control method in the embodiment of the present application;
Fig. 4 is another embodiment schematic diagram of data transfer control method in the embodiment of the present application;
Fig. 5 is another embodiment schematic diagram of data transfer control method in the embodiment of the present application;
Fig. 6 is data transfer controller one embodiment schematic diagram in the embodiment of the present application;
Fig. 7 is sending device one embodiment schematic diagram in the embodiment of the present application;
Fig. 8 is calibration equipment one embodiment schematic diagram in the embodiment of the present application;
Fig. 9 is terminal one embodiment schematic diagram in the embodiment of the present application.
Specific embodiment
In order to solve in the prior art to the processing of data transmission using default behavior not flexible enough technical problem, this Application embodiment provides a kind of data transfer control method, and calibration equipment is carrying out the first verification not to the data frame received When passing through, and passing through to the second verification of the partial data of data frame progress, mark letter is obtained from the partial data of the data frame Breath, and the packet loss information for carrying the identification information is sent to sending device, so that sending device is according to the packet loss information Packet loss event has occurred for timely learning, and knows that packet loss has occurred in corresponding data packet according to the identification information, thus to this The corresponding data packet of identification information is retransmitted, and the flexibility to Data Transmission Controlling is improved.The embodiment of the present application also provides The correlations such as data transfer controller, sending device, calibration equipment, computer program product and computer storage medium are set It is standby.
As shown in Figure 1, in a communications system, under normal circumstances, sending device is needed through the network equipment to receiving device Data frame is sent, which includes the terminals such as mobile phone or computer, which includes router, computer, hub Or interchanger etc., the receiving device include the terminals such as mobile phone or computer.It is understood that in practical applications, sending device, The type of the network equipment and receiving device can also be other kinds of equipment, and this is not limited here.Sending device to Receiving device sends data frame, data frame during network is transmitted, can verification Jing Guo a variety of verification schemes, school The data frame for testing failure is determined the data frame and is damaged in transmission process.
Sending device can be when data frame is sent to the network equipment to the verification of data frame, docked by the network equipment The data frame received is verified.For example, its verification scheme can include: in data frame from physical layer to data-link layer transfer When, it is verified in content of the data link layer to data frame, for example, CRC check or FCS verification etc., to check that data frame exists Whether it is damaged in transmission process.In data frame from data link layer to when IP layers of transmission, data are removed to data frame at IP layers Link layer headers obtain IP data packet, verify at IP layers to obtained data packet, for example, the head IP to data packet carries out Verification and verification, check whether the head IP of data packet is damaged in transmission process.Collator of the network equipment to data packet System can also include other verifications, and this is not limited here.
Sending device when data frame is sent to the network equipment, is pressed by the network equipment can also be to the verification of data frame After the verification of its verification scheme, determines that data frame is not damaged, data frame is sent to receiving device, is docked by receiving device The data frame received is verified.For example, its verification scheme can include: in data frame from physical layer to data-link layer transfer When, it is verified in content of the data link layer to data frame, for example, CRC check or FCS verification etc., to check that data frame exists Whether it is damaged in transmission process.In data frame from data link layer to when IP layers of transmission, data are removed to data frame at IP layers Link layer headers obtain IP data packet, verify at IP layers to obtained data packet, for example, the head IP to data packet carries out Verification and verification, check whether the head IP of data packet is damaged in transmission process.It is transmitted in data packet from IP layers to TCP layer When, it is verified in TCP header of the TCP layer to data packet, checks whether data packet corresponding portion is damaged in transmission process. It is understood that in practical applications, when data packet is transmitted from IP layers to TCP layer, receiving device is in TCP layer in addition to can be with Except being verified to TCP header, it can also be and other heads are verified, for example, in TCP layer to the IP puppet head of data packet Portion, data load are verified, and check whether data packet corresponding portion is damaged in transmission process, are not limited herein specifically It is fixed.
After data frame being sent to receiving device by the network equipment with sending device to the verification of data frame, directly The data frame received is verified by receiving device.
It should be noted that the architecture diagram of communication system shown in FIG. 1 is only an example, the embodiment of the present application description System architecture and business scenario be technical solution in order to more clearly illustrate the embodiment of the present application, do not constitute for The restriction of technical solution provided by the embodiments of the present application, those of ordinary skill in the art it is found that with the network architecture differentiation and The appearance of new business scene, technical solution provided by the embodiments of the present application are equally applicable for similar technical problem.
For ease of understanding, the detailed process in the embodiment of the present application is described below, referring to Fig. 2, the application is real The one embodiment for applying data transfer control method in example includes:
201, calibration equipment receives the data frame that sending device is sent;
In the present embodiment, sending device sends data frame to calibration equipment, and calibration equipment receives being somebody's turn to do for sending device transmission Data frame.The calibration equipment can be the network equipment, be also possible to receiving device, for example, the network equipment receives sending device hair The data frame or receiving device sent receives the data frame that network equipment forwarding sending device is sent.
It should be noted that in practical applications, which can be referred to as data, i.e. calibration equipment is received to send and be set The data that preparation is sent, for the data when from physical layer to data-link layer transfer, in data link layer, the data are referred to as data Frame, the data frame are referred to as data packet at IP layers from data link layer to when IP layers of transmission.Name of the data in transmission process Title can carry out flexible setting according to actual needs, and this is not limited here.The embodiment of the present application description title be in order to More clearly illustrate the technical solution of the embodiment of the present application, does not constitute for technical solution provided by the embodiments of the present application It limits.
202, calibration equipment carries out the first verification to data frame;
Calibration equipment needs to carry out the data frame received the first verification, since calibration equipment can be the network equipment, It is also possible to receiving device, therefore, sending device can be to the first of data frame the verification and set data frame is sent to network When standby, the first verification is carried out to the data frame received by the network equipment.It is also possible to sending device to the verification of data frame to exist When data frame is sent to the network equipment, after carrying out the first verification to data frame by the network equipment, determine that data frame is not damaged It is bad, data frame is sent to receiving device, the first verification is carried out to the data frame received by receiving device.To the of data frame After one verification can also be that data frame is sent to receiving device by the network equipment by sending device, directly docked by receiving device The data frame received carries out the first verification.
First verification can be CRC check or FCS verification etc., for example, in ethernet networks, first is verified as CRC check, In token-ring network, first is verified as FCS verification.By taking cyclic redundancy check as an example, calibration equipment recycle to data frame superfluous When remaining verification, firstly, calibration equipment is when data frame is from physical layer to data-link layer transfer, in data link layer to data frame Carry out cyclic redundancy check.For example, the mechanism of cyclic redundancy check includes: the content in calibration equipment acquisition data frame, according to Cyclic redundancy check code, and the check code that tail portion in cyclic redundancy check code and data frame is preset is calculated in data frame content It is compared.When cyclic redundancy check code and the check code are inconsistent, calibration equipment determines the cyclic redundancy school to data frame Failure is tested, i.e., the cyclic redundancy check of data frame is not passed through;When cyclic redundancy check code is consistent with the check code, verification is set Standby determination passes through the cyclic redundancy check of data frame.It is understood that in practical applications, the mechanism of cyclic redundancy check It can also be other verification schemes such as CRC32 or CRC64, this is not limited here.
203, when the first verification is obstructed out-of-date, calibration equipment carries out the second verification to the partial data in data frame;
When first verification of the calibration equipment to data frame is obstructed out-of-date, calibration equipment determines that data frame has been damaged.Due to Calibration equipment can be the network equipment, be also possible to receiving device, therefore the damage of data frame can be and send out on network devices It is existing, it is also possible to find on the receiving device.In the first verification failure to data frame, calibration equipment directly should not Data frame abandons, but data frame is transmitted from data link layer to IP layers, carries out the second verification to the partial data of data frame.
When calibration equipment determines data frame damage, in order to guarantee that the identification information got is correctly, to verify at this time Equipment further carries out the second verification to the partial data of data frame, which is contained in the partial data of data frame, The partial data of the data frame may include the packet header IP or the packet header TCP etc..In the present embodiment, the is carried out to the partial data of data frame Two verifications can be in data frame from data link layer to when IP layers of transmission, and the packet header IP is verified and verified at IP layers, can With understanding, in practical applications, other than it can be verified to the packet header IP, it can also be and school is carried out to other packet header It tests, for example, carrying out school to IP puppet head, TCP header and data load in TCP layer when data frame is transmitted from IP layers to TCP layer It tests, checks whether data frame corresponding portion is damaged in transmission process, this is not limited here.
To be verified at IP layers to the packet header IP and for verifying, in data frame from data link layer to when IP layers of transmission, The content that calibration equipment obtains in the packet header IP at IP layers, is calculated verification and check code according to the content in the packet header IP.Then school Test that equipment will verify and check code is compared with check code preset in the packet header IP, when the verification and check code and the check code When consistent, calibration equipment determines the verification of the packet header IP and verifies successfully, that is, determines that the verification of the packet header IP and verification pass through;When the verification and When check code and the check code are inconsistent, calibration equipment determines that the verification of the packet header IP and verification do not pass through.
204, when the second verification passes through, calibration equipment obtains identification information from the partial data of data frame;
When the second verification to data frame passes through, calibration equipment determines that the partial data of data frame is not damaged, and counts The field of other data frames is occurred from according to the damage of frame, calibration equipment stores mark letter from the partial data of data frame at this time The identification information is extracted in the field of breath, which may include source address and destination address etc., when the identification information is When source address, it can serve to indicate that and send the corresponding sending device of the data frame;It, can when the identification information is purpose IP address The corresponding receiving device of the data frame is received to be used to indicate.The identification information may be used to indicate that corresponding with the identification information Data packet packet loss has occurred, for example, the identification information may include sequence number, port information etc..Due to the packet header of data frame It is not damaged, the identification information got at this time is correct.
205, calibration equipment sends packet loss information to sending device.
In the present embodiment, for packet loss information for indicating that data frame has been lost, packet loss information includes identification information, identification information It is used to indicate data packet corresponding with identification information and packet loss has occurred.
It should be noted that sending a data frame since sending device can be to receiving device, it is also possible to connecing After receiving unit sends multiple data frames, therefore calibration equipment can be one data frame of every verification completion, determination is the data When frame loss, calibration equipment generates the packet loss information of the data frame, and the packet loss information is sent to sending device.Calibration equipment It is also possible in preset period of time after being verified to one or more data frames, determines that the one or more data frame is lost When mistake, calibration equipment generates the packet loss information of the one or more data frame, and the packet loss information is sent to sending device.
After obtaining correct identification information and generating packet loss information, calibration equipment can be sent out calibration equipment to sending device Send the packet loss information for carrying the identification information.So that sending device determines that data frame has been lost according to the packet loss information, and And know that packet loss has occurred in corresponding data packet according to the identification information, to execute re-transmission to the corresponding data packet of identification information Operation.
Calibration equipment does not pass through to the first verification of data frame progress received in the embodiment of the present application, and to data frame Partial data carry out the second verification when passing through, illustrate that the data frame has damaged, but include in the partial data of the data frame Identification information is not damaged, at this point, calibration equipment can obtain identification information from the partial data of the data frame.Then, school Test equipment and sent to sending device and carry the packet loss information of the identification information so that sending device according to the packet loss information and When know the packet loss event that occurred, and know that packet loss has occurred in corresponding data packet according to the identification information, thus to the mark Know the corresponding data packet of information to be retransmitted, improves the flexibility to Data Transmission Controlling.
In addition, since after the data frame damaged is abandoned by the network equipment, TCP, which usually passes through, to be received in the prior art Duplicate acknowledgment message (for example, ACK) quantity, then the quantity of the confirmation message is compared with the threshold value of setting, come Judge packet loss event whether occurs in network, and then determines the congestion of network according to Network Packet Loss event.In packet loss After event occurs, TCP congestion control mechanism is by adjusting congestion window (full name in English: congestion window, English contracting Write: CWND) size control the total amount of the data frame of transmission, and then adjust the transmission rate of data frame.Sending device passes through CWND adjusted retransmits data packet, to guarantee reliability that data frame is transmitted by the network equipment.For example, TCP is logical TCP congestion control mechanism is crossed when receiving duplicate confirmation message three times for same data frame, decides that the data in network Packet loss event has occurred in frame, and then adjusts CWND and retransmit to data packet.Therefore, sending device by the network equipment to connecing During receiving unit sends data frame, when data frame is damaged, the network equipment directly abandons the impaired data frame, And data packet can be just retransmitted when repeatedly receiving confirmation message, and to receive multiple confirmation messages and need to wait the long period, Therefore, sending device can not know the opportunity of the packet loss event of data frame, and the confirmation message until receiving is needed to meet centainly After number, sending device just knows admission control, then retransmits to data packet.Sending device is being unable to learn in time number In the case where according to frame loss, the re-transmission to data packet is delayed, reduces the efficiency to data packet retransmission.And the embodiment of the present application In, calibration equipment sends the packet loss information for carrying the identification information to sending device, can sending device be lost according to this Packet loss event has occurred for package informatin timely learning, avoid sending device wait always receive multiple confirmation messages after just to data Packet is retransmitted, and the retransmission efficiency to the corresponding data packet of identification information is improved.
It whether is the packet loss event as caused by network congestion to distinguish the loss of data frame in the embodiment of the present application, Caused by data frame is not due to network congestion when packet loss event, which may include non-congested packet loss information, this is non- Congestion packet loss information is for indicating the packet loss event as caused by non-network congestion cause.For example, the originals such as hardware fault, signal interference The damage of data frame because caused by, and using the link-qualities such as wireless WIFI network, unshielded twisted pair or wireless cellular network When relatively poor medium carries out the transmission of data frame, data frame damage will also result in, these will be counted after causing data frame to damage The case where abandoning according to frame belongs to the packet loss event as caused by non-network congestion cause.At this point, calibration equipment can be set to transmission Preparation send non-congested packet loss information.Calibration equipment can be after every verification completes a data frame, determination be the data frame by Caused by non-network congestion cause when packet loss event, calibration equipment generates the non-congested packet loss information of the data frame, and this is non- Congestion packet loss information is sent to sending device.Calibration equipment is also possible in preset period of time to one or more data frames After being verified, the one or more data frame is determined as caused by non-network congestion cause when packet loss event, calibration equipment is raw Sending device is sent at the non-congested packet loss information of the one or more data frame, and by the non-congested packet loss information.
After the non-congested packet loss information for receiving calibration equipment transmission, sending device non-can gather around sending device according to this Filling in the determination of packet loss information is the packet loss event as caused by non-network congestion cause, so that sending device maintains current congestion control Mechanism, and retransmission operation is executed to the corresponding data packet of identification information under congestion control mechanism, which can be TCP The data packet of layer or the data packet of UDP layer.After solving the generation that sending device in the prior art determines packet loss event, It is determined as caused by network congestion, it will the current CWND value of reduction at double, so that multiplying property reduces data frame in proportion Transmission rate (referred to as multiplying property reduction of speed) to mitigate network congestion degree, and during data packet retransmission, be slowly increased The transmission rate of data packet, until the technical issues of packet loss event occurs again, avoids sending device for verification and do not pass through production Raw packet loss event mis it is judged to blindly carrying out the operation of multiplying property reduction of speed since network congestion causes, relative to blindly passing through Congestion window is reduced to reduce transmission rate to mitigate network congestion degree, improves the utilization rate of network link, and improve The handling capacity of network.
In addition, being counted in the scenes such as WIFI network or Cellular Networks due to the characteristic of transmission medium, sending device RTT value often changes frequently and acutely, if therefore sending device by comparing current RTT value and pre-set time threshold, To judge whether the damage of current data frame is caused by network congestion, then the accuracy rate of its judgement is very low.And the application is real The first verification can carried out to data frame and carry out the second verification to the partial data of data frame by applying calibration equipment in example, be realized Accurate verification to data frame, improves the congestion control mechanism that sending device remains current, and in current congestion control The reliability of retransmission operation is executed under making mechanism to the corresponding data packet of identification information.
It is understood that TCP guarantees the reliable transmission of data in a network by congestion control mechanism, due to congestion Controlling mechanism is mainly to control the total amount for the data frame that sending device can be sent by changing the size of congestion window CWND, And then adjust data frame transmission rate.In addition, congestion control mechanism is also by the re-transmission of the data frame to loss, to guarantee data The reliable transmission of frame.Congestion control mechanism includes multiple stages such as slow turn-on, Congestion Avoidance, Fast retransmission and fast quick-recovery.Cause This, sending device maintains current congestion control mechanism, and under current congestion control mechanism it is corresponding to identification information Data packet executes retransmission operation and may is that when sending device receives the non-congested packet loss information of calibration equipment transmission, if hair The congestion control mechanism of equipment is sent to be in slow start stage, then sending device maintains the congestion control mechanism of current slow turn-on to mark Know the corresponding data packet of information and executes retransmission operation;If the congestion control mechanism of sending device is in congestion avoidance phase, send out The congestion control mechanism for sending equipment that current congestion is maintained to avoid executes retransmission operation to the corresponding data packet of identification information;If sending The congestion control mechanism of equipment is in the Fast retransmission stage, then sending device maintains the congestion control mechanism pair of current Fast retransmission The corresponding data packet of identification information executes retransmission operation;Etc., it is no longer enumerated one by one herein.
In the embodiment of the present application, it includes: calibration equipment to hair that calibration equipment, which sends the mode of packet loss information to sending device, It send equipment to send the ICMP for carrying packet loss information or calibration equipment and sends the ACK for carrying packet loss information to sending device Deng will be described in detail respectively below.
One, calibration equipment sends the ICMP for carrying packet loss information to sending device.
(1) when calibration equipment is the network equipment, data frame is verified by the network equipment, referring to Fig. 3, this Shen Please another embodiment of data transfer control method include: in embodiment
301, sending device sends data frame to the network equipment;
When sending device sends data frame to receiving device, need through the network equipment as transfer, i.e., first by data Frame is sent to the network equipment.
302, the network equipment carries out the first verification to data frame;
The network equipment is after receiving data frame, when data frame is from physical layer to data-link layer transfer, in data-link Road floor carries out the first verification to data frame, for example, CRC check or FCS verification etc. are carried out to data frame in data link layer, to follow For ring redundancy check, the network equipment unpacks data frame, obtains the content of data frame, and the network equipment can be according to data The content of frame is calculated cyclic redundancy check code, and by the preset check code in tail portion in cyclic redundancy check code and data frame into Row compares.When cyclic redundancy check code and the check code are inconsistent, network equipment determination does not pass through the verification of data frame, i.e., First verification does not pass through;When cyclic redundancy check code is consistent with the check code, network equipment determination is superfluous to the circulation of data frame Remaining verification passes through, i.e., the first verification passes through.It is understood that in practical applications, the mechanism of cyclic redundancy check can be with It is verified according to other verification modes, this is not limited here.
It should be noted that the network equipment is after receiving data frame, it can be first in physical layer to the lead code of data frame It is verified, checks whether the signal of data frame is damaged in transmission process, if not being damaged, by data frame from physical layer The first verification is carried out to data frame to data-link layer transfer, and in data link layer.
When the first verification passes through, illustrating that data frame is not damaged, the network equipment obtains purpose IP address at this time, according to Purpose IP address sends the data frame to corresponding receiving device.
303, when the first verification is obstructed out-of-date, the network equipment carries out the second verification to the partial data of data frame;
When first verification of the network equipment to data frame is obstructed out-of-date, the network equipment determines that data frame damages, in order to lose Package informatin is sent to sending device, and the network equipment needs to obtain correct identification information.Since the verification to data frame is unsuccessfully anticipated Taste the arbitrary fields of data frame all there may be error code mistakes, and packet loss information is being fed back to sending device by the network equipment When, it is also necessary to guarantee that the identification information obtained from the data frame that error code occurs is correctly, that is, to store the field of identification information It is not damaged.Therefore, the network equipment does not directly abandon the data frame, but need further to branch's data of data frame into Row second verifies, and the partial data of the data frame is stored with identification information, the partial data of the data frame may include the packet header IP or Packet header TCP etc..
In the present embodiment, to the partial data of data frame carry out the second verification can be data frame from data link layer to When IP layers of transmission, the packet header IP is verified and verified at IP layers, it is to be understood that in practical applications, in addition to can be right Except the packet header IP is verified, it can also be and other packet header are verified, for example, being transmitted in data frame from IP layers to TCP layer When, IP puppet head, TCP header and data load are verified in TCP layer, check data frame corresponding portion in transmission process Whether it is damaged, this is not limited here.
The network equipment can be passed in data frame from data link layer to IP layers when the packet header IP to data frame is verified When defeated, verification and check code is calculated according to the content in the packet header IP in the content that the network equipment obtains in the packet header IP at IP layers.So The network equipment will verify afterwards and check code is compared with check code preset in the packet header IP, when the verification and check code and the school Test code it is consistent when, the network equipment determine the packet header IP verification and verification pass through, i.e., second verification pass through;When the verification and check code with When the check code is inconsistent, the network equipment determines that the verification of the packet header IP and verification do not pass through, i.e., the second verification does not pass through.
304, when the second verification passes through, the network equipment generates the Internet Control Message Protocol ICMP for carrying packet loss information;
When the partial data to data frame, which carries out the second verification, to be passed through, the network equipment determines that the packet header of data frame is not damaged Bad, the network equipment generates packet loss information at this time, and packet loss type option is extended in the Option Field of ICMP, and packet loss information is added Add to the packet loss type option.For example, the network equipment customized type field value in ICMP is 36, the type field value Type option for 36 corresponding ICMP is packet loss type option, and the corresponding storage of the packet loss type option is packet loss information.
It should be noted that the packet loss information can wrap caused by data frame is not due to network congestion when packet loss event Include non-congested packet loss information, i.e. non-congested packet loss information can be generated in the network equipment, the non-congested packet loss information for indicate by Packet loss event caused by non-network congestion cause.The network equipment can extend non-congested packet loss type in the Option Field of ICMP Non-congested packet loss information is added to the non-congested packet loss type option by option.
305, the network equipment sends the ICMP for carrying packet loss information to sending device;
The network equipment is before being sent to sending device for the ICMP for carrying packet loss information, and the network equipment first is from data Obtain identification information in the partial data of frame, which may include source address and destination address etc., the identification information with lose Package informatin can send jointly to sending device with ICMP.It should be noted that in the IP agreement of Ethernet, the identification information May include source IP address and purpose IP address etc., in the non-ip protocols such as M2CNP the identification information may include corresponding source address and Destination address etc..
In order to determine the corresponding sending device of data frame, the identification information that the network equipment is got may include source IP address, The source IP address, which is used to indicate, sends the corresponding sending device of data frame.Since the partial data of data frame includes the packet header IP, because This source IP address can be got from the packet header IP.The network equipment, can be according to this after obtaining source IP address in the packet header IP Source IP address sends the ICMP for carrying packet loss information to sending device.Since the partial data to data frame carries out the second verification It can be and the packet header IP is verified, therefore, when passing through to the verification of the packet header IP, the network equipment determines that the packet header IP is not damaged, Correct source IP address can be obtained from the packet header IP at this time, the network equipment is improved and the ICMP for carrying packet loss information is sent out The accuracy sent.
In order to determine the corresponding receiving device of data frame, the identification information that the network equipment is got may include destination IP Location, which, which is used to indicate, receives the corresponding receiving device of data frame.Since the partial data of data frame includes the packet header IP, Therefore the purpose IP address can be got from the packet header IP.The network equipment, can be with after obtaining purpose IP address in the packet header IP The ICMP for carrying the purpose IP address is sent to sending device according to source IP address.Since the partial data to data frame carries out Second verification, which can be, verifies the packet header IP, and therefore, when passing through to the verification of the packet header IP, the network equipment determines the packet header IP not It is damaged, correct purpose IP address can be obtained from the packet header IP at this time, improve the network equipment to sending device and send purpose The accuracy of IP address.
It should be noted that TCP is a kind of transport layer communication protocol towards connection and based on byte stream, TCP is by gathering around Controlling mechanism is filled in guarantee the reliable transmission of data frame in a network.TCP just gives each data frame to guarantee that packet loss does not occur Set a sequence number, at the same the sequence number also ensure data frame from sending device be transferred to receiving device data frame by Sequence receives.Since sending device may be to send multiple data frames to receiving device, when data frame is network equipment reception To sending device be sent to multiple data frames of receiving device when, which corresponds to multiple data packets, in order to allow send Equipment accurately knows that packet loss event occurs in which data packet, and the identification information that the network equipment is got at this time further includes sequence Number, the ICMP for carrying the sequence number is sent to sending device according to source IP address.For example, the network equipment can add sequence number The content part of ICMP is added, is sent to sending device with ICMP.
Since the partial data of data frame may include the packet header IP or the packet header TCP, the sequence number can from the packet header TCP or IP is got in packet header.In the present embodiment, due to when in same data flow there may be when multiple data frames, the identification information pair Multiple data packets answered, therefore in order to allow sending device accurately to know that packet loss event occurs in which data packet, at this time network Equipment obtains the corresponding sequence number of impaired data packet, which is sent to sending device, so that sending device The data packet damaged is determined according to the sequence number, which is accurately retransmitted, avoids all carrying out all data packets It retransmits and wastes Internet resources.
Since sending device may be to send a plurality of data flow to receiving device, when data frame is network equipment reception To sending device be sent at least two receiving devices at least two data streams on data frame when, in order to allow sending device Accurately know that damage occurs in the data frame on which data stream, the identification information that the network equipment is got at this time further includes end Message breath, which may include source port and destination port etc..Since the partial data of data frame may include TCP packet Head, therefore the network equipment can obtain port information from the packet header TCP, then sent and carried to sending device according to source IP address There is the ICMP of the port information, so that sending device determines the data flow where the data frame damaged according to port information.
It should be noted that the packet header such as the unspoiled packet header IP or the packet header TCP can also be directly sent to by the network equipment Sending device obtains the identification informations such as purpose IP address, sequence number and port information by sending device from packet header, then to data Packet is retransmitted.For example, the unspoiled packet header IP and the packet header TCP are added into the content part of ICMP by the network equipment, and with ICMP is sent to sending device.Sending device can obtain the packet header IP from the content part of the ICMP received, then from the packet header IP Middle extraction purpose IP address, and the packet header TCP is obtained from the content part of the ICMP received, then extract sequence from the packet header TCP Row number.
In the present embodiment, since source IP address, source can also be written in the network equipment in multiple fields that ICMP is reserved The five-tuples such as mouth, purpose IP address, destination port and transport layer protocol type, therefore sending device is improved according to the five-tuple It is convenient know data frame stream to convenience.
It is understood that the network equipment is sent with carrying packet loss information, source IP address, destination IP to sending device When the ICMP of the information such as location, sequence number and port information, can be in preset period of time to one or more data frames into Row verification after, determine that there are packet loss events in the one or more data frame, and the partial data of the data frame damaged not by When damage, the network equipment will carry the information such as packet loss information, source IP address, purpose IP address, sequence number and port information ICMP is sent to sending device.If be damaged in the time cycle there are multiple data frames, the network equipment is by each data The information such as the corresponding packet loss information of frame, source IP address, purpose IP address, sequence number and port information, which are associated, to be added to ICMP sends jointly to sending device with ICMP.
For example, the network equipment has determined the data frame of Serial No. 3 to 6 in same data flow within some time cycle Damage, then the ICMP of the corresponding packet loss information of the data frame for carrying Serial No. 3 to 6 is sent to transmission by this network equipment Equipment.Either, within some time cycle, the network equipment determines on data flow A sequence number in Serial No. 1 and data stream B It has been damaged for 6 data frame, then this time network equipment will carry on data flow A Serial No. in Serial No. 1 and data stream B The ICMP of the packet loss information of 6 data frame is sent to sending device.
It is understood that in practical applications, the network equipment according to preset period of time to sending device in addition to sending Except ICMP, it can also be other sending methods, for example, the network equipment one data frame of every verification, when determination causes packet loss Event, and when the partial data of data frame is not damaged, the network equipment just once carries packet loss information, source to sending device hair The ICMP of the information such as IP address, purpose IP address, sequence number and port information, this is not limited here.
When to data frame partial data carry out second verification it is obstructed out-of-date, illustrate that the partial data of data frame is damaged Bad, the network equipment can not obtain correct identification information from the partial data of data frame at this time, and the network equipment loses data frame It abandons, or executes other operations, this is not limited here.
306, sending device needs to retransmit mark letter according to carrying packet loss information in ICMP and determining after receiving ICMP Cease corresponding data packet;
In the present embodiment, sending device needs to retransmit data according to the determination of packet loss information is carried in the ICMP received Packet, after receiving packet loss information, sending device can also further detect whether packet loss information carries non-congested packet loss letter Breath.If carrying non-congested packet loss information, sending device determines retransmission mechanism according to non-congested packet loss information, the retransmission mechanism For the current congestion control mechanism of maintenance, and the execution re-transmission data packet under current congestion control mechanism.
307, sending device retransmits data packet;
Sending device retransmits data packet after receiving packet loss information, if receiving non-congested packet loss information, transmission is set For after receiving ICMP, lost as caused by non-network congestion cause according to parsing non-congested packet loss information from ICMP and determining Packet event, sending device maintains current congestion control mechanism at this time, and executes under current congestion control mechanism and retransmit number According to packet.For example, sending device maintains gathering around for current slow turn-on if the congestion control mechanism of sending device is in slow start stage It fills in controlling mechanism and retransmission operation is executed to the corresponding data packet of identification information;If the congestion control mechanism of sending device is in congestion The stage is avoided, then the congestion control mechanism that sending device maintains current congestion to avoid executes weight to the corresponding data packet of identification information Pass operation;If the congestion control mechanism of sending device is in the Fast retransmission stage, sending device maintains current Fast retransmission Congestion control mechanism executes retransmission operation to the corresponding data packet of identification information.
308, the network equipment verifies the data packet received;
When the data packet that sending device is retransmitted by the network equipment to receiving device, the network equipment is to the number for receiving re-transmission Verified according to packet, verification scheme with it is aforementioned similar to the verification mode of data frame, details are not described herein again.
309, when the data packet verification to re-transmission passes through, the network equipment delivers a packet to receiving device;
When carrying out verification to the data packet of re-transmission and passing through, illustrate that data packet is not damaged, the network equipment is by data at this time Packet is sent to receiving device.
310, receiving device sends confirmation report to sending device by the network equipment in the data packet for receiving re-transmission Text.
Receiving device sends confirmation message to sending device in the data packet for receiving re-transmission, through the network equipment, should Confirmation message is used to indicate the data packet that re-transmission has been received in receiving device, which can be ACK, which carries There is receiving device to have received the confirmation message of data frame.
When in order to guarantee that receiving device sends confirmation message to sending device, the data frame that receiving device receives is not damage Bad, and since the network equipment is during by unspoiled data frame transfer to receiving device, data frame may also can be Between the network equipment and receiving device transmit during be damaged, therefore, receiving device in the data packet for receiving re-transmission, The data packet for receiving re-transmission is verified first, verification scheme and aforementioned network equipment carry out the first school to data frame The verification scheme tested and carry out the verifications such as the second verification to the partial data of data frame is similar, and specific details are not described herein again.
After the data packet that receiving device retransmits, if receiving device determines that the data packet retransmitted is not damaged, to transmission Equipment sends confirmation message.After the data packet that receiving device retransmits, if receiving device determines that the data packet retransmitted has been damaged, The packet loss information of the data packet of re-transmission is then generated, and sends the packet loss information to sending device.
(2) when calibration equipment is receiving device, data frame is verified by receiving device, referring to figure 4., this Shen Please another embodiment of data transfer control method include: in embodiment
401, sending device sends data frame to receiving device by the network equipment;
402, receiving device carries out the first verification to data frame;
403, when the first verification is obstructed out-of-date, receiving device carries out the second verification to the partial data of data frame;
404, when the second verification passes through, receiving device generates the Internet Control Message Protocol ICMP for carrying packet loss information;
405, receiving device sends the ICMP for carrying packet loss information by the network equipment to sending device;
406, sending device needs to retransmit mark letter according to carrying packet loss information in ICMP and determining after receiving ICMP Cease corresponding data packet;
407, sending device retransmits data packet;
408, receiving device verifies the data packet received;
409, when the data packet verification to re-transmission passes through, receiving device, which is sent by the network equipment to sending device, to be confirmed Message.
It should be noted that data frame is verified and generated except the processing such as ICMP can execute by the network equipment, It can also be executed by receiving device, it is real shown in the step 401 that receiving device executes in the present embodiment to step 409 and earlier figures 3 The step 306 for applying network equipment execution in example is similar to step 310, and details are not described herein again.
Two, calibration equipment sends the ACK for carrying packet loss information to sending device.
In the present embodiment, which is receiving device, is verified by receiving device to data frame, referring to figure 5., Another embodiment of data transfer control method includes: in the embodiment of the present application
501, sending device sends data frame to receiving device by the network equipment;
502, receiving device carries out the first verification to data frame;
503, when the first verification is obstructed out-of-date, receiving device carries out the second verification to the partial data of data frame;
It should be noted that step of the step 501 into step 503 and aforementioned embodiment illustrated in fig. 4 in the present embodiment 401 is similar to step 403, and specific details are not described herein again.
The data frame that receiving device receives can be the data frame verified by the network equipment, be also possible to not Data frame is sent to after the network equipment tests by the data frame verified through the network equipment, i.e. sending device, by the network equipment It is transmitted to receiving device, receiving device verifies again to data frame or data frame is directly passed through network by sending device Equipment is sent to receiving device, is verified by receiving device with data frame.
504, when the second verification passes through, receiving device generates the Internet Control Message Protocol ACK for carrying packet loss information;
When the partial data to data frame, which carries out the second verification, to be passed through, receiving device determines the partial data of data frame It is not damaged, receiving device generates packet loss information at this time, and packet loss type option is extended in the Option Field of ACK, will lose Package informatin is added to the packet loss type option, which can be TCP option field.
505, receiving device sends the ACK for carrying packet loss information by the network equipment to sending device;
506, sending device needs to retransmit identification information after receiving ACK according to the determination of packet loss information is carried in ACK Corresponding data packet;
507, sending device retransmits data packet;
508, receiving device verifies the data packet received;
509, when the data packet verification to re-transmission passes through, receiving device, which is sent by the network equipment to sending device, to be confirmed Message.
It should be noted that receiving device sends ACK in step 505 to step 509 in the present embodiment, and to data Receiving device sends ICMP and right in step 405 to step 409 in the retransmission operation of frame, with aforementioned embodiment illustrated in fig. 4 The retransmission operation of data frame is similar, and details are not described herein again.
The data transfer control method in the embodiment of the present application is described above, below in the embodiment of the present application Data transfer controller be described, referring to Fig. 6, data transfer controller one embodiment in the embodiment of the present application Include:
Receiving unit 601, for receiving the data frame of sending device transmission;
First verification unit 602, the data frame for receiving to receiving unit 601 carry out the first verification;
Second verification unit 603, for determining that the first verification is obstructed out-of-date when the first verification unit 602, to receiving unit The partial data of 601 data frames received carries out the second verification;
First acquisition unit 604, for when the second verification unit 603 determine second verification pass through when, from the portion of data frame Identification information is obtained in divided data;
First transmission unit 605, the identification information for being got according to first acquisition unit 604 are sent to sending device Packet loss information, the packet loss information include the identification information that first acquisition unit is got, and it is right with it which is used to indicate Packet loss has occurred in the data packet answered.
It should be noted that in the present embodiment, in data transfer controller process performed by each unit with it is aforementioned Method flow described in embodiment shown in Fig. 2 is similar, and details are not described herein again.
In some embodiments of the embodiment of the present application, packet loss information includes non-congested packet loss information, non-congested packet loss information For indicating the packet loss event as caused by non-network congestion cause.First transmission unit 605 is specifically used for, and calibration equipment is according to The identification information that one acquiring unit 604 is got sends non-congested packet loss information to sending device, and non-congested packet loss information is used for Instruction sending device maintains current congestion control mechanism, and to the corresponding data packet of identification information under congestion control mechanism Execute retransmission operation.
In some embodiments of the embodiment of the present application, identification information includes source IP address, and the partial data of data frame includes The packet header IP, first acquisition unit 604 are specifically used for, and obtain source IP address from the packet header IP.First transmission unit 605 is specifically used In the source IP address got according to first acquisition unit 604 sends packet loss information to sending device.
In some embodiments of the embodiment of the present application, identification information further includes purpose IP address, and first acquisition unit 604 has Body is used for, and obtains purpose IP address from the packet header IP.First transmission unit 605 is specifically used for, and is obtained according to first acquisition unit 604 The source IP address got sends purpose IP address to sending device.
In some embodiments of the embodiment of the present application, identification information further includes sequence number, and the partial data of data frame is also wrapped The packet header TCP is included, first acquisition unit 604 is specifically used for, and obtains sequence number from the packet header TCP or the packet header IP.First transmission unit 605 are specifically used for, and are transmitted Sequence Number according to the source IP address that first acquisition unit 604 is got to sending device.
In some embodiments of the embodiment of the present application, identification information further includes port information, and first acquisition unit 604 is specific For obtaining port information from the packet header TCP;First transmission unit 605 is specifically used for, and is obtained according to first acquisition unit 604 The source IP address arrived is to sending device sending port information.
In some embodiments of the embodiment of the present application, the first verification unit 602 is specifically used for, in data link layer to reception The data frame that unit 601 receives is verified.
In some embodiments of the embodiment of the present application, the second verification unit 603 is specifically used for, at IP layers to receiving unit Partial data in 601 data frames received carries out the verification of the packet header IP.
In some embodiments of the embodiment of the present application, data transfer controller further include: the first adding unit, being used for will Packet loss information is added to the packet loss type option of preset Internet Control Message Protocol ICMP.First transmission unit 605 is specifically used for, to Sending device sends the ICMP for carrying packet loss information that the first adding unit obtains.
In some embodiments of the embodiment of the present application, data transfer controller further include: the second adding unit, being used for will Packet loss information is added to the packet loss type option of preset response message agreement ACK.First transmission unit 605 is specifically used for, to Sending device sends the ACK for carrying packet loss information that the second adding unit obtains.
It should be noted that in some embodiments of the embodiment of the present application, each unit in data transfer controller Performed process is similar with method flow described in aforementioned embodiment shown in Fig. 2 to Fig. 5, and details are not described herein again.
The data transfer controller in the embodiment of the present application is described above, below in the embodiment of the present application Sending device be described, referring to Fig. 7, sending device one embodiment includes: in the embodiment of the present application
Transmission unit 701, for sending data frame to calibration equipment;
Detecting unit 702, for detecting the packet loss information for whether receiving calibration equipment transmission, packet loss information is set by verifying The standby data frame sent to transmission unit 701 carries out the first verification and does not pass through, and carries out the second school to the partial data of data frame Test by when transmission, which includes the identification information that calibration equipment is got from the partial data of data frame;
Execution unit 703, if the packet loss information for receiving calibration equipment transmission is determined for detecting unit 702, to mark Know the corresponding data packet of information and executes retransmission operation.
In some embodiments of the embodiment of the present application, execution unit 703 includes: judgment sub-unit, for judging that packet loss is believed It whether include non-congested packet loss information in breath, non-congested packet loss information is for indicating the packet loss thing as caused by non-network congestion cause Part.Subelement is executed, if determining in packet loss information for judgment sub-unit comprising non-congested packet loss information, remains current and gathers around Controlling mechanism is filled in, and retransmission operation is executed to the corresponding data packet of identification information under congestion control mechanism.
It should be noted that in the embodiment of the embodiment of the present application, process performed by each unit in sending device Similar with method flow described in aforementioned embodiment shown in Fig. 2 to Fig. 5, details are not described herein again.
Above from the angle of modular functionality entity in the embodiment of the present application data transfer controller and transmission set It is standby to be described, the calibration equipment in the embodiment of the present application is described from the angle of hardware handles below, the application is implemented Example in calibration equipment one embodiment include:
Input unit 801, output device 802, processor 803 and (the wherein processor in the network equipment of memory 804 801 quantity can be one or more, in Fig. 8 by taking a processor 801 as an example).In some embodiments of the invention, it inputs Device 801, output device 802, processor 803 and memory 804 can be connected by bus or other means, wherein in Fig. 8 with For being connected by bus.
Wherein, it is stored with program code in memory 804, passes through the program code for calling memory 804 to store, processor 803 for executing the method such as earlier figures 2 to embodiment illustrated in fig. 5.
Sending device one embodiment in the embodiment of the present application includes: input unit, output device, processor and storage Device (wherein the quantity of the processor in the network equipment can be one or more).In some embodiments of the invention, input dress It sets, output device, processor and memory can be connected by bus or other means.Wherein, program generation is stored in memory Code, by calling the program code of memory storage, processor is used to execute the method such as earlier figures 2 to embodiment illustrated in fig. 5.
In the embodiment of the present application, sending device and receiving device may each be terminal, present embodiments provide a kind of terminal, For ease of description, part relevant to the embodiment of the present application is illustrated only, it is disclosed by specific technical details, please refer to this Shen It please embodiment method part.The terminal can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, Taking the terminal as an example:
As shown in figure 9, Fig. 9 shows the frame of the part-structure of mobile phone relevant to terminal provided by the embodiments of the present application Figure.With reference to Fig. 9, mobile phone include: radio frequency (Radio Frequency, RF) circuit 1110, memory 1120, input unit 1130, Display unit 1140, sensor 1150, voicefrequency circuit 1160, Wireless Fidelity (wireless fidelity, WiFi) module 1170, the components such as processor 1180 and power supply 1190.It will be understood by those skilled in the art that handset structure shown in Fig. 9 The restriction to mobile phone is not constituted, may include perhaps combining certain components or difference than illustrating more or fewer components Component layout.
It is specifically introduced below with reference to each component parts of the Fig. 9 to mobile phone:
RF circuit 1110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, handled to processor 1180;In addition, the data for designing uplink are sent to base station.In general, RF circuit 1110 include but is not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (LowNoise Amplifier, LNA), duplexer etc..In addition, RF circuit 1110 can also be logical with network and other equipment by wireless communication Letter.Any communication standard or agreement, including but not limited to global system for mobile communications (Global can be used in above-mentioned wireless communication System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service (Short Messaging Service, SMS) etc..
Memory 1120 can be used for storing software program and module, and processor 1180 is stored in memory by operation 1120 software program and module, thereby executing the various function application and data processing of mobile phone.Memory 1120 can be led It to include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program (such as sound-playing function, image player function etc.) etc.;Storage data area, which can be stored, uses institute according to mobile phone Data (such as audio data, phone directory etc.) of creation etc..In addition, memory 1120 may include high random access storage Device, can also include nonvolatile memory, and a for example, at least disk memory, flush memory device or other volatibility are solid State memory device.
Input unit 1130 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 1130 may include touch panel 1131 and other inputs Equipment 1132.Touch panel 1131, also referred to as touch screen collect touch operation (such as the user of user on it or nearby Use the behaviour of any suitable object or attachment such as finger, stylus on touch panel 1131 or near touch panel 1131 Make), and corresponding attachment device is driven according to preset formula.Optionally, touch panel 1131 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 1180, and order that processor 1180 is sent can be received and executed.In addition, Touch panel 1131 can be realized using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch surface Plate 1131, input unit 1130 can also include other input equipments 1132.Specifically, other input equipments 1132 may include But in being not limited to physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc. It is one or more.
Display unit 1140 can be used for showing information input by user or be supplied to user information and mobile phone it is each Kind menu.Display unit 1140 may include display panel 1141, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 1141.Further, touch panel 1131 can cover display panel 1141, when touch panel 1131 detects After arriving touch operation on it or nearby, processor 1180 is sent to determine the type of touch event, is followed by subsequent processing device 1180 provide corresponding visual output according to the type of touch event on display panel 1141.Although in Fig. 9, touch panel 1131 and display panel 1141 are the input and input function for realizing mobile phone as two independent components, but in certain realities Apply in example, can be integrated by touch panel 1131 and display panel 1141 and that realizes mobile phone output and input function.
Mobile phone may also include at least one sensor 1150, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 1141, proximity sensor can close display panel when mobile phone is moved in one's ear 1141 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (generally three axis) and add The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;Also as mobile phone The other sensors such as configurable gyroscope, barometer, hygrometer, thermometer, infrared sensor, details are not described herein.
Voicefrequency circuit 1160, loudspeaker 1161, microphone 1162 can provide the audio interface between user and mobile phone.Audio Electric signal after the audio data received conversion can be transferred to loudspeaker 1161, be converted by loudspeaker 1161 by circuit 1160 For voice signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 1162, by voicefrequency circuit 1160 Audio data is converted to after reception, then by after the processing of audio data output processor 1180, through RF circuit 1110 to be sent to ratio Such as another mobile phone, or audio data is exported to memory 1120 to be further processed.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 1170 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 1170, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need do not changing completely Become in the range of the essence of invention and omits.
Processor 1180 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, By running or execute the software program and/or module that are stored in memory 1120, and calls and be stored in memory 1120 Interior data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.Optionally, processor 1180 may include one or more processing units;Preferably, processor 1180 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1180.
Mobile phone further includes the power supply 1190 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply Management system and processor 1180 are logically contiguous, to realize management charging, electric discharge and power consumption pipe by power-supply management system The functions such as reason.
Although being not shown, mobile phone can also include camera, bluetooth module etc., and details are not described herein.
In the embodiment of the present application, processor 1180 included by the terminal is also with the following functions: processor calling is deposited The data transfer control method such as earlier figures 2 to embodiment illustrated in fig. 5 is executed when program code in reservoir.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, the technical solution of the application is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the application Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
The above, above embodiments are only to illustrate the technical solution of the application, rather than its limitations;Although referring to before Embodiment is stated the application is described in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the spirit and scope of each embodiment technical solution of the application that it does not separate the essence of the corresponding technical solution.

Claims (28)

1. a kind of data transfer control method characterized by comprising
Calibration equipment receives the data frame that sending device is sent;
The calibration equipment carries out the first verification to the data frame;
When first verification is obstructed out-of-date, the calibration equipment carries out the second verification to the partial data in the data frame;
When second verification passes through, the calibration equipment obtains mark letter from the partial data of the data frame Breath;
The calibration equipment sends packet loss information to the sending device, and the packet loss information includes the identification information, described Identification information is used to indicate data packet corresponding with the identification information and packet loss has occurred.
2. described the method according to claim 1, wherein the packet loss information includes non-congested packet loss information Calibration equipment sends packet loss information to the sending device
The calibration equipment sends non-congested packet loss information to the sending device, the non-congested packet loss information for indicate by Packet loss event caused by non-network congestion cause, the non-congested packet loss information are used to indicate the sending device and maintain currently Congestion control mechanism, and retransmission operation is executed to the data packet under the congestion control mechanism.
3. the method according to claim 1, wherein the identification information includes source IP address, the data frame The partial data include the packet header IP, the calibration equipment obtains identification information from the partial data of the data frame Include:
The calibration equipment obtains the source IP address from the packet header IP;
The calibration equipment sends packet loss information to the sending device
The calibration equipment sends the packet loss information to the sending device according to the source IP address.
4. according to the method described in claim 3, it is characterized in that, the identification information further includes purpose IP address, the school It tests equipment and obtains identification information from the partial data of the data frame further include:
The calibration equipment obtains the destination IP address from the packet header IP;
The calibration equipment sends packet loss information to the sending device further include:
The calibration equipment sends the destination IP address to the sending device according to the source IP address.
5. according to the method described in claim 4, it is characterized in that, the identification information further includes sequence number, the data frame The partial data further include the packet header TCP, the calibration equipment obtains mark from the partial data of the data frame Information further include:
The calibration equipment obtains the sequence number from the packet header TCP or the packet header IP;
The calibration equipment sends packet loss information to the sending device further include:
The calibration equipment sends the sequence number to the sending device according to the source IP address.
6. according to the method described in claim 5, it is characterized in that, the identification information further includes port information, the verification Equipment obtains identification information from the partial data of the data frame further include:
The calibration equipment obtains the port information from the packet header TCP;
The calibration equipment sends packet loss information to the sending device further include:
The calibration equipment sends the port information to the sending device according to the source IP address.
7. method according to any one of claim 1 to 6, which is characterized in that the calibration equipment is to the data frame Carrying out the first verification includes:
The calibration equipment verifies the data frame in data link layer.
8. method according to any one of claim 1 to 6, which is characterized in that the calibration equipment is to the data frame In partial data carry out second verification include:
The calibration equipment carries out the verification of the packet header IP to the partial data in the data frame at IP layers.
9. method according to any one of claim 1 to 6, which is characterized in that the calibration equipment is set to the transmission Before preparation send packet loss information, the method also includes:
The packet loss information is added to the packet loss type option of preset Internet Control Message Protocol ICMP by the calibration equipment;
The calibration equipment sends packet loss information to the sending device
The calibration equipment sends the ICMP for carrying the packet loss information to the sending device.
10. method according to any one of claim 1 to 6, which is characterized in that when the calibration equipment is described in correspondence When the receiving device of data frame, before the calibration equipment sends packet loss information to the sending device, the method also includes:
The packet loss information is added to the packet loss type option of preset response message agreement ACK by the calibration equipment;
The calibration equipment sends packet loss information to the sending device
The calibration equipment sends the ACK for carrying the packet loss information to the sending device.
11. a kind of data transfer control method characterized by comprising
Sending device sends data frame to calibration equipment;
Whether the sending device detecting receives the packet loss information that the calibration equipment is sent, and the packet loss information is by the school It tests equipment not pass through the first verification of data frame progress, and the second verification is carried out to the partial data of the data frame and is passed through When send, the packet loss information include the calibration equipment got from the partial data of the data frame mark letter Breath;
If so, the sending device executes retransmission operation to the corresponding data packet of the identification information.
12. according to the method for claim 11, which is characterized in that sending device institute corresponding to the identification information Stating data packet execution retransmission operation includes:
The sending device judges that the non-congested packet loss information is used whether comprising non-congested packet loss information in the packet loss information In the packet loss event as caused by non-network congestion cause of expression;
If so, the sending device maintains current congestion control mechanism, and to described under the congestion control mechanism Data packet executes retransmission operation.
13. a kind of data transfer controller characterized by comprising
Receiving unit, for receiving the data frame of sending device transmission;
First verification unit, the data frame for receiving to the receiving unit carry out the first verification;
Second verification unit, it is single to the reception for determining that first verification is obstructed out-of-date when first verification unit The partial data for the data frame that member receives carries out the second verification;
First acquisition unit, for when second verification unit determine it is described second verification pass through when, from the data frame Identification information is obtained in the partial data;
First transmission unit, for sending packet loss information to the sending device, the packet loss information includes first acquisition The identification information that unit is got, the identification information are used to indicate data packet corresponding with the identification information and have occurred Packet loss.
14. data transfer controller according to claim 13, which is characterized in that the packet loss information includes non-congested Packet loss information, first transmission unit are specifically used for, and send the non-congested packet loss information to the sending device, described non- Congestion packet loss information is for indicating that the packet loss event as caused by non-network congestion cause, the non-congested packet loss information are used to indicate The sending device maintains current congestion control mechanism, and executes weight to the data packet under the congestion control mechanism Pass operation.
15. data transfer controller according to claim 13, which is characterized in that the identification information includes source IP Location, the partial data of the data frame include the packet header IP, and the first acquisition unit is specifically used for, from the packet header IP Obtain the source IP address;
First transmission unit is specifically used for, and the source IP address got according to the first acquisition unit is to the hair Equipment is sent to send the packet loss information.
16. data transfer controller according to claim 15, which is characterized in that the identification information further includes purpose IP address, the first acquisition unit are specifically used for, and the destination IP address is obtained from the packet header IP;
First transmission unit is specifically used for, and the source IP address got according to the first acquisition unit is to the hair Equipment is sent to send the destination IP address.
17. data transfer controller according to claim 16, which is characterized in that the identification information further includes sequence Number, the partial data of the data frame further includes the packet header TCP, and the first acquisition unit is specifically used for, from the TCP packet The sequence number is obtained in head or the packet header IP;
First transmission unit is specifically used for, and the source IP address got according to the first acquisition unit is to the hair Equipment is sent to send the sequence number.
18. data transfer controller according to claim 17, which is characterized in that the identification information further includes port Information, the first acquisition unit are specifically used for, and obtain the port information from the packet header TCP;
First transmission unit is specifically used for, and the source IP address got according to the first acquisition unit is to the hair Equipment is sent to send the port information.
19. data transfer controller described in any one of 3 to 18 according to claim 1, which is characterized in that first school Verification certificate member is specifically used for, and verifies in data link layer to the data frame that the receiving unit receives.
20. data transfer controller described in any one of 3 to 18 according to claim 1, which is characterized in that second school Verification certificate member is specifically used for, and the partial data in the data frame that IP layers receive the receiving unit carries out the packet header IP school It tests.
21. data transfer controller described in any one of 3 to 18 according to claim 1, which is characterized in that the data pass Defeated control device further include:
First adding unit, the packet loss type for the packet loss information to be added to preset Internet Control Message Protocol ICMP are selected ?;
First transmission unit is specifically used for, and has sent carrying that first adding unit obtains to the sending device State the ICMP of packet loss information.
22. data transfer controller described in any one of 3 to 18 according to claim 1, which is characterized in that the data pass Defeated control device further include:
Second adding unit, for the packet loss information to be added to the packet loss type option of preset response message agreement ACK;
First transmission unit is specifically used for, and has sent carrying that second adding unit obtains to the sending device State the ACK of packet loss information.
23. a kind of sending device characterized by comprising
Transmission unit, for sending data frame to calibration equipment;
Detecting unit, for detecting the packet loss information for whether receiving the calibration equipment and sending, the packet loss information is by described Calibration equipment carries out the first verification to the data frame that the transmission unit is sent and does not pass through, and to the part of the data frame Data carry out transmission when the second verification passes through, and the packet loss information includes the part of the calibration equipment from the data frame The identification information got in data;
Execution unit, if the packet loss information for receiving the calibration equipment and sending is determined for the detecting unit, to described The corresponding data packet of identification information executes retransmission operation.
24. sending device according to claim 23, which is characterized in that the execution unit includes:
Judgment sub-unit, for whether judging in the packet loss information comprising non-congested packet loss information, the non-congested packet loss letter Breath is for indicating the packet loss event as caused by non-network congestion cause;
Subelement is executed, if determining in the packet loss information for the judgment sub-unit comprising non-congested packet loss information, is tieed up Current congestion control mechanism is held, and retransmission operation is executed to the data packet under the congestion control mechanism.
25. a kind of calibration equipment characterized by comprising
Processor, memory, bus, input unit and output device;
Program code is stored in the memory;
The processor executes the number as described in any one of claims 1 to 10 when calling the program code in the memory According to transfer control method.
26. a kind of sending device characterized by comprising
Processor, memory, bus, input unit and output device;
Program code is stored in the memory;
The processor executes the data transmission as described in claim 11 or 12 when calling the program code in the memory Control method.
27. a kind of computer readable storage medium, which is characterized in that instruction is stored in the computer readable storage medium, When run on a computer, so that computer executes any Data Transmission Controlling in the claims 1 to 10 Method.
28. a kind of computer readable storage medium, which is characterized in that instruction is stored in the computer readable storage medium, When run on a computer, so that computer executes data transfer control method described in the claims 11 or 12.
CN201710570007.0A 2017-07-13 2017-07-13 Data transmission control method and related equipment Active CN109257138B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710570007.0A CN109257138B (en) 2017-07-13 2017-07-13 Data transmission control method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710570007.0A CN109257138B (en) 2017-07-13 2017-07-13 Data transmission control method and related equipment

Publications (2)

Publication Number Publication Date
CN109257138A true CN109257138A (en) 2019-01-22
CN109257138B CN109257138B (en) 2020-11-17

Family

ID=65051619

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710570007.0A Active CN109257138B (en) 2017-07-13 2017-07-13 Data transmission control method and related equipment

Country Status (1)

Country Link
CN (1) CN109257138B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246312A (en) * 2020-01-15 2020-06-05 安徽文香信息技术有限公司 Packet loss processing method and device
CN111741013A (en) * 2020-07-21 2020-10-02 炬芯(珠海)科技有限公司 Data transmission method and device
CN113133031A (en) * 2021-03-22 2021-07-16 厦门亿联网络技术股份有限公司 Signal diagnosis method, system, equipment and storage medium
CN113329429A (en) * 2021-06-08 2021-08-31 安科讯(福建)科技有限公司 Rate scheduling method and terminal
CN115238830A (en) * 2022-09-21 2022-10-25 广东柯内特环境科技有限公司 Method for setting operation threshold of equipment, monitoring method and monitoring system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8724449B2 (en) * 2009-06-10 2014-05-13 Cisco Technology, Inc. Failure protection for access ring topology
CN104518853A (en) * 2013-09-27 2015-04-15 北京新媒传信科技有限公司 Data retransmission method, receiving end and system
CN105871512A (en) * 2016-05-13 2016-08-17 华为技术有限公司 Data transmission method and device
CN106878191A (en) * 2015-12-14 2017-06-20 华为技术有限公司 A kind of data transferring method, sending node, receiving node and data communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8724449B2 (en) * 2009-06-10 2014-05-13 Cisco Technology, Inc. Failure protection for access ring topology
CN104518853A (en) * 2013-09-27 2015-04-15 北京新媒传信科技有限公司 Data retransmission method, receiving end and system
CN106878191A (en) * 2015-12-14 2017-06-20 华为技术有限公司 A kind of data transferring method, sending node, receiving node and data communication system
CN105871512A (en) * 2016-05-13 2016-08-17 华为技术有限公司 Data transmission method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王雪飞: "《MANET网络TCP非拥塞控制识别序列与恢复》", 《计算机工程》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246312A (en) * 2020-01-15 2020-06-05 安徽文香信息技术有限公司 Packet loss processing method and device
CN111741013A (en) * 2020-07-21 2020-10-02 炬芯(珠海)科技有限公司 Data transmission method and device
CN111741013B (en) * 2020-07-21 2021-02-26 炬芯科技股份有限公司 Data transmission method and device
CN113133031A (en) * 2021-03-22 2021-07-16 厦门亿联网络技术股份有限公司 Signal diagnosis method, system, equipment and storage medium
CN113329429A (en) * 2021-06-08 2021-08-31 安科讯(福建)科技有限公司 Rate scheduling method and terminal
CN113329429B (en) * 2021-06-08 2022-06-21 安科讯(福建)科技有限公司 Rate scheduling method and terminal
CN115238830A (en) * 2022-09-21 2022-10-25 广东柯内特环境科技有限公司 Method for setting operation threshold of equipment, monitoring method and monitoring system

Also Published As

Publication number Publication date
CN109257138B (en) 2020-11-17

Similar Documents

Publication Publication Date Title
CN109257138A (en) A kind of data transfer control method and relevant device
US20200358886A1 (en) Data Transmission Method, Apparatus, And System
CN109729544B (en) Packet loss rate calculation method, network device and terminal
CN109906631B (en) Adaptive transmission method and device
KR102046792B1 (en) Method of transporting data from sending node to destination node
CN111010262A (en) Radio link control transmission method and related product
US11012724B2 (en) Video transmission method, apparatus, and system, and computer readable storage medium
CN110505076A (en) Measurement method, acquisition methods, terminal and the network equipment of bursts dropping ratio
US10602401B2 (en) Apparatus and method aggregation at one or more layers
CN110234124B (en) Information transmission method and terminal equipment
CN104780401B (en) The sending method and device of video data
CN107580233A (en) A kind of method, apparatus and computer equipment for transmitting data
US7986714B2 (en) Apparatus and method for transmitting packets in wireless network
CN108809502A (en) The feedback information generating method and Related product of mixed automatic retransfer
CN109560900A (en) Data transmission method for uplink and device
US11470509B2 (en) Ad hoc communication protocol method and apparatus
US10958329B2 (en) Data transmission method, terminal device, and network device
CN107257265A (en) Real-time transmission data stream forward error correction, equipment and storage medium
CN107104760A (en) A kind of method of transmission packet, client and server
CN114337942B (en) Message retransmission method and device and electronic equipment
CN114039702B (en) Data transmission method, device, equipment and medium
CN106341348B (en) A kind of flow control methods and access network elements towards TCP traffic
CN109495931A (en) The data transmission method and relevant apparatus of link aggregation
WO2020024107A1 (en) Status report sending method and device
CN113595697B (en) DAI counting method, DAI counting control method, terminal and network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant