CN102724112A - Transmission method, receiving terminal equipment and system based on TCP (transmission control protocol) - Google Patents

Transmission method, receiving terminal equipment and system based on TCP (transmission control protocol) Download PDF

Info

Publication number
CN102724112A
CN102724112A CN2012101762944A CN201210176294A CN102724112A CN 102724112 A CN102724112 A CN 102724112A CN 2012101762944 A CN2012101762944 A CN 2012101762944A CN 201210176294 A CN201210176294 A CN 201210176294A CN 102724112 A CN102724112 A CN 102724112A
Authority
CN
China
Prior art keywords
free space
space size
receiving device
buffering area
threshold value
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
CN2012101762944A
Other languages
Chinese (zh)
Other versions
CN102724112B (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 CN201210176294.4A priority Critical patent/CN102724112B/en
Publication of CN102724112A publication Critical patent/CN102724112A/en
Application granted granted Critical
Publication of CN102724112B publication Critical patent/CN102724112B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention discloses a transmission method, receiving terminal equipment and a system based on a TCP (transmission control protocol). The method comprises the following steps: acquiring the size of an available space in the current buffer zone of the receiving terminal equipment; judging whether the size of the available space meets a preset announce condition or not; if the size of the available space meets the preset announce condition, then sending an update message carrying the size of the available space to sending terminal equipment so that after the sending terminal equipment receives the update message, sending data messages with the amount matched with the size of the available space based on the size of the available space carried in the update message. According to the invention, the receiving terminal equipment automatically starts an informing process according to the size of the available space so that the sending terminal equipment is capable of acquiring the data processing capability of the receiving terminal equipment in time and recovering data communication with the receiving terminal equipment in time, so that the utilization rate of network bandwidth is improved, the utilization rate of a buffer space is improved, and waste of network resources caused in a waiting process is also avoided.

Description

A kind of transmission method, receiving device and system based on Transmission Control Protocol
Technical field
The present invention relates to communication technical field, relate in particular to a kind of transmission method, receiving device and system based on Transmission Control Protocol.
Background technology
TCP (Transfer Control Protocol, transmission control protocol) be a kind of connection-oriented, reliable, based on the communication protocol of byte stream.Transmission Control Protocol comprises the Transmission Control Protocol head, comprises window field in this Transmission Control Protocol head, and sending ending equipment can be known the Data Receiving ability of receiving terminal through this window field, thereby reaches the purpose of flow control.
In traditional transmission method based on Transmission Control Protocol; The window field of sending ending equipment from the Transmission Control Protocol head reads window size; If window less (for example window size is 0) and can't receive a complete data message time; The free space of the data buffer zone of expression receiving terminal is less, and receiving terminal can't be handled new data again, and sending ending equipment then suspends the transmission data.According to the TCP communication standard; After sending ending equipment suspends the transmission data; Need be to receiving terminal timed sending probe messages, receiving terminal returns the renewal message based on this probe messages to sending ending equipment, and sending ending equipment reads the window size in this renewal message; To survey the Data Receiving ability of receiving terminal, confirm whether receiving terminal can receive new data once more.
The inventor states on the implementation in the process of scheme and finds; The probe messages that receiving terminal sends based on sending ending equipment is carried out tcp window and is informed flow process; Return the renewal message to sending ending equipment; Its issuable problem is: in the time period of the probe messages of waiting for sending ending equipment, receiving terminal is through the processing to data in the buffering area, and the buffer release district obtains bigger free space; Owing to do not receive probe messages as yet, make the free space of buffering area be in idle condition, reduced the utilance of resource.
Summary of the invention
The embodiment of the invention provides a kind of transmission method based on Transmission Control Protocol, receiving device and system, can in time inform the data-handling capacity of receiving terminal to sending ending equipment, avoids the waste of resource, improves resource utilization.
In order to solve the problems of the technologies described above, on the one hand, the embodiment of the invention provides a kind of transmission method based on Transmission Control Protocol, comprising:
Obtain the free space size of the current buffering area of receiving device;
Judge whether said free space size satisfies preset announcement condition;
If said free space size satisfies preset announcement condition; Then send the renewal message that carries said free space size to sending ending equipment; After making that said sending ending equipment receives said renewal message, send the quantity data message that matees with said free space size based on the free space size of carrying in the said renewal message.
On the other hand, the embodiment of the invention also provides a kind of receiving device, and said receiving device is to receive data based on Transmission Control Protocol, comprising:
Acquisition module is used to obtain the free space size of the current buffering area of receiving device;
Judge module is used to judge whether the free space size that said acquisition module obtains satisfies preset announcement condition;
Announcement module; Be used for when said judge module judges that said free space size satisfies preset announcement condition; Send the renewal message that carries said free space size to sending ending equipment; After making that said sending ending equipment receives said renewal message, send the quantity data message that matees with said free space size based on the said free space size of carrying in the said renewal message.
On the one hand, the embodiment of the invention also provides a kind of communication system, comprising again: sending ending equipment and receiving device, wherein,
Said receiving device; Be used to receive the also data message of the said sending ending equipment transmission of buffer memory; And the free space that obtains the current buffering area of receiving device is big or small; And when said free space size satisfies preset announcement condition, send the renewal message that carries said free space size to said sending ending equipment;
Said sending ending equipment is used for after receiving said renewal message, sends the quantity data message that matees with said free space size to said receiving device based on the free space size of carrying in the said renewal message.
Embodiment of the present invention embodiment has following beneficial effect:
The embodiment of the invention is obtained the free space size of receiving device buffering area by the receiving terminal based on the Transmission Control Protocol transmission; Whether the conditional decision according to the free space size satisfies sends the renewal message to sending ending equipment; Need not to wait for the probe messages of sending ending equipment, avoid the wasting of resources that causes in the wait process; Start window by receiving terminal voluntarily according to the big or small physical condition that is satisfied of free space and in time inform flow process; Make sending ending equipment can in time know the data-handling capacity of receiving terminal; In time communicate by letter, improve utilization of network bandwidth, improve the utilance of cushion space with the receiving terminal restore data.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below; Obviously, the accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of an embodiment of the transmission method based on Transmission Control Protocol provided by the invention;
Fig. 2 is the flow chart of an embodiment of the transmission method based on Transmission Control Protocol provided by the invention;
Fig. 3 is that the structure of a kind of communication system provided by the invention is formed sketch map;
Fig. 4 is the structural representation of an embodiment of receiving device provided by the invention;
Fig. 5 is the structural representation of another embodiment of receiving device provided by the invention;
Fig. 6 is the structural representation of an embodiment of judge module provided by the invention;
Fig. 7 is the structural representation of another embodiment of judge module provided by the invention.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
The embodiment of the invention provides transmission method, receiving device and the system based on Transmission Control Protocol, and the embodiment of the invention can be applied to know that when sending ending equipment receiving device can't receive data again, suspend the transmission of data.Wherein, this receiving device can be the receiving device based on the Transmission Control Protocol transmission, should can be carried out by this receiving device based on the transmission method of Transmission Control Protocol.Except that specifying, in the subsequent implementation example of the present invention, receiving device is that sending ending equipment is for to carry out the sending ending equipment that TCP communicates by letter with this receiving device based on the receiving device of Transmission Control Protocol transmission.
Below combination is attached Fig. 1 and 2, the transmission method based on Transmission Control Protocol provided by the invention is described in detail.
See also Fig. 1, be the flow chart of an embodiment of the transmission method based on Transmission Control Protocol provided by the invention; This method comprises:
S101, the free space that obtains the current buffering area of receiving device is big or small.
The concrete formula that obtains can be the buffer values of: maximum spendable buffer values-used.Concrete obtain and be calculated as prior art, do not give unnecessary details at this.
S102 judges whether said free space size satisfies preset announcement condition; If judged result is for being to change S103 over to; Otherwise, change S101 over to.
In this step, preset announcement condition can be carried out the condition that tcp window is in time informed flow process for predefined, receiving device, and in concrete the realization, this preset announcement condition can be a preset threshold value scope.
S103; If said free space size satisfies preset announcement condition; Then send the renewal message that carries said free space size to sending ending equipment; After making that said sending ending equipment receives said renewal message, send the quantity data message that matees with said free space size based on the free space size of carrying in the said renewal message.
Concrete; Receiving device is according to the free space size of the buffering area that gets access to; Generate one and upgrade message; The window field that can comprise 16 bits in the Transmission Control Protocol head of this renewal message, the value (window value) that this window field is described are the free space size of said receiving device buffering area, and the form of concrete Transmission Control Protocol head can be existing form.Sending ending equipment can read window value from the window field upgrading message; Can know the free space size of the buffering area of receiving device; Confirm the data-handling capacity of receiving device, thereby send the quantity data message that matees with the free space size of said buffering area to said receiving device.
In the embodiment of the invention, receiving device is according to free space size and preset announcement condition, and what start the local terminal buffer size voluntarily in time informs flow process; Make sending ending equipment need not to wait for, can in time know the data-handling capacity of receiving device, in time communicate by letter with the receiving device restore data; Improve utilization of network bandwidth, improve the utilance of cushion space, thereby avoided in the prior art; After the TCP iSCSI receiving end window is 0; Receiving device has been handled all or part buffer data in 200ms, and sending ending equipment causes transmitting data conditions in this 200ms and do not know that the window of receiving device has upgraded.
See also Fig. 2, be the flow chart of an embodiment of the transmission method based on Transmission Control Protocol provided by the invention; This method comprises:
S201, the free space that obtains the current buffering area of receiving device is big or small.
This step can not given unnecessary details at this with reference to step S101 embodiment illustrated in fig. 1.
S202 judges that whether said free space size is less than first threshold; If judged result is for being to change S203 over to; Otherwise, change S204 over to.
In this step, said first threshold can be MSS (Maximum Segment Size, maximum segment size), and MSS is in the process based on the Transmission Control Protocol transmits data packets, the maximum data segmentation that at every turn can transmit.It is understandable that said first threshold also can be for according to other set numerical value of the buffering area of receiving device, this numerical value can be set according to actual conditions, and the embodiment of the invention and this limit.Need to prove, execute after this step, will flag bit be set for buffering area, concrete setting up procedure can be with reference to following step S203 and step S204.
S203, if said free space size less than first threshold, the flag bit of said buffering area is set to 1; Change S205 over to.
S204, if said free space size more than or equal to first threshold, the flag bit of said buffering area is set to 0; Change S205 over to.When the free space size of detected buffering area during more than or equal to first threshold, sending ending equipment and receiving device are generally carrying out normal data message transmission, need not carry out the flow process of informing of buffer size.
Need to prove that the flag bit of buffering area is used to trigger tcp window and in time informs flow process, promptly trigger this step flow afterwards.If flag bit is 1, then starts tcp window and in time inform flow process; If flag bit is 0, does not then start tcp window and in time inform flow process.In the practical application; The embodiment of the invention can also perhaps can also adopt other modes to carry out the triggering that tcp window is in time informed flow process for other preset values to the setting of flag bit, for example: trigger sign for buffering area is provided with; Or the like, the present invention does not limit this.
S205, whether the flag bit that detects said buffering area is 1; If testing result is for being to change S206 over to; Otherwise, change S201 over to.
In this step, the process of detection can for: the value of the flag bit that read step S203 or S204 are set is 1 if read the flag bit of said buffering area, then changes S206 over to; If reading the flag bit of said buffering area is 0, then change S201 over to.Need to prove that in the practical application, the embodiment of the invention also can not carried out this step, directly execution in step S206.
S206 judges that whether said free space size is greater than second threshold value; If judged result is for being to change S207 over to; Otherwise, change S201 over to.
Said second threshold value can be the set numerical value of real space size according to the buffering area of receiving device; This numerical value can be set according to actual conditions; Less than said second threshold value time; The size that shows the receiving device buffering area is too little, is not enough to continue the data message that the buffer memory sending ending equipment sends, and also can not send the renewal message that carries the advertised window value accordingly; Need carry out above-mentioned steps again until satisfying the announcement condition, the embodiment of the invention does not limit said second threshold value.Need to prove that second threshold value is smaller or equal to first threshold.
In the present embodiment, above-mentioned steps S202-S207 can be the concrete refinement step of S102 embodiment illustrated in fig. 1, and wherein, the number range that second threshold value and the first threshold limited can be the preset condition that is limited among the S102.
S207 is if said free space size greater than second threshold value, is sent the renewal message to sending ending equipment.
This step can not given unnecessary details at this with reference to step S103 embodiment illustrated in fig. 1.
S208, the flag bit of said buffering area is set to 0.
S209, according to real-time read operation to buffer data, the free space of the said buffering area of real-time update size; Change S201 over to.
For the data in the buffering area, receiving device can read according to the application program of receiving device operation in real time, thereby the free space size of buffering area is changed.In this step, according to real-time read operation to buffer data, the free space of real-time update buffering area size.This step can make sending ending equipment know the data-handling capacity of receiving device more accurately so that the window size that receiving device is described in the renewal message that sending ending equipment returns is more accurate to the real-time update of the free space size of buffering area.
The announcement condition that the embodiment of the invention is obtained the free space size of receiving device buffering area by the receiving device based on Transmission Control Protocol transmission and the two-stage threshold value that is provided with constitutes; Send to sending ending equipment on one's own initiative and upgrade message; Need not to wait for the probe messages of sending ending equipment, avoid the wasting of resources that causes in the wait process; Start window by receiving device voluntarily according to the big or small physical condition that is satisfied of free space and in time inform flow process; Make sending ending equipment can in time know the data-handling capacity of receiving device, in time communicate by letter, improve utilization of network bandwidth with the receiving device restore data; Improve the utilance of cushion space; Thereby avoided in the prior art, after the TCP iSCSI receiving end window was 0, receiving device had been handled all or part buffer data in 200ms; And sending ending equipment causes transmitting data conditions in this 200ms and do not know that the window of receiving device has upgraded.
Corresponding to any transmission method that above-mentioned Fig. 1-2 describes based on Transmission Control Protocol, to face communication system provided by the invention and receiving device down and describe in detail, the receiving device of following embodiment can be applied in the said method.
Seeing also Fig. 3, is that the structure of a kind of communication system provided by the invention is formed sketch map, and in the embodiment of a kind of communication system provided by the invention, said communication system comprises: receiving device 1 and sending ending equipment 2, wherein,
Said receiving device 1; Be used to receive the also data message of said sending ending equipment 2 transmissions of buffer memory; And the free space that obtains receiving device 1 current buffering area is big or small; And when said free space size satisfies preset announcement condition, send the renewal message that carries said free space size to said sending ending equipment 2;
Said sending ending equipment 2 is used for after receiving said renewal message, sends the quantity data message that matees with said free space size to said receiving device 1 based on the free space size of carrying in the said renewal message.
Send in the process of data to said receiving device 1 at said sending ending equipment 2, when said sending ending equipment 2 knows that said receiving device 1 can't receive data again, as the buffering area of knowing said receiving device 1 hour, can suspend the transmission of data.Said receiving device 1 just needs in time according to the size of detected local terminal buffering area and the announcement condition of presetting; Determine whether and to send the renewal message that carries the advertised window value to said sending ending equipment 2, continue to send data to this receiving device 1 with proactive notification sending ending equipment 2.
Concrete, said receiving device 1 specifically is to be used to judge that whether said free space size is less than first threshold; If said free space size is during less than first threshold; Further judge that whether said free space size is greater than second threshold value; If the free space size is greater than second threshold value; Confirm that then said free space size is positioned at the preset threshold value scope, confirm that then said free space size satisfies preset announcement condition; Wherein, said first threshold is more than or equal to said second threshold value.
Need to prove that sending ending equipment 2 in the communication system that the embodiment of the invention provides and the role positioning between the receiving device 1 can exchange, promptly here sending ending equipment 2 another the time inscribe, also can be receiving device 1.
In the system of the embodiment of the invention, receiving device 1 is according to free space size and preset announcement condition, and what start the local terminal buffer size voluntarily in time informs flow process; Make sending ending equipment 2 need not to wait for; Can in time know the data-handling capacity of receiving device 1, in time communicate by letter, improve utilization of network bandwidth with receiving device 1 restore data; Improve the utilance of cushion space; Thereby avoided in the prior art, after the TCP iSCSI receiving end window was 0, receiving device 1 had been handled all or part buffer data in 200ms; And sending ending equipment 2 causes transmitting data conditions in this 200ms and do not know that the window of receiving device 1 has upgraded.
Further concrete, see also Fig. 4, be the structural representation of an embodiment of receiving device 1 provided by the invention; Said receiving device 1 is the receiving device 1 in the said system, and said receiving device 1 comprises:
Acquisition module 10 is used to obtain the free space size of receiving device 1 current buffering area.
The acquisition process of the free space size of 10 pairs of buffering areas of said acquisition module can not given unnecessary details at this with reference to prior art.
Judge module 20 is used to judge whether the free space size that said acquisition module 10 obtains satisfies preset announcement condition.
Preset announcement condition can be carried out the condition that tcp window is in time informed flow process for predefined, receiving device 1, and in concrete the realization, this preset announcement condition can be a preset threshold value scope.Said judge module 20 is used to specifically judge whether the free space size that said acquisition module 10 obtains is positioned at the preset threshold value scope; If said free space size is positioned at the preset threshold value scope, confirm that then said free space size satisfies preset announcement condition.
Announcement module 30; Be used for when said judge module 20 judges that said free space size satisfies preset announcement condition; Send the renewal message that carries said free space size to sending ending equipment 2; After making that said sending ending equipment 2 receives said renewal message, send the quantity data message that matees with said free space size based on the said free space size of carrying in the said renewal message.
Said announcement module 30 is according to the free space size that gets access to; Generate and upgrade message; The window field that can comprise 16 bits in the Transmission Control Protocol head of this renewal message, the value (window value) that this window field is described are the free space size of receiving device 1 buffering area.Particularly, the position of this window field in the Transmission Control Protocol head can be referring to Fig. 2.Receiving device 1 need not to continue to wait for after receiving this renewal message, directly according to the quantity data message of said window value to receiving device 1 transmission and coupling.
See also Fig. 5, be the structural representation of another embodiment of receiving device 1 provided by the invention; Said receiving device 1 is the receiving device 1 in the said system, and it comprises acquisition module 10, judge module 20 and announcement module 30 among above-mentioned receiving device 1 embodiment, and in the present embodiment, said receiving device 1 further comprises:
Read module 40 is used for the data executive real-time read operation in the said buffering area.
In concrete the realization; For the data in the buffering area; Said read module 40 can read according to the application program of receiving device 1 operation in real time, offers each application program and handles, and this real-time read operation possibly make the free space size of buffering area change.
Update module 50 is used for the real-time read operation according to data in 40 pairs of said buffering areas of said read module, the free space size of the said buffering area of real-time update.
Said update module 50 is according to the real-time read operation of 40 pairs of buffer datas of said read module; The free space size of real-time update buffering area; This renewal operation can make sending ending equipment 2 know the data-handling capacity of receiving device 1 more accurately so that the window size that receiving device 1 is described in the renewal message that sending ending equipment 2 returns is more accurate.
See also Fig. 6, be the structural representation of an embodiment of judge module provided by the invention; Said judge module 20 comprises:
First judging unit 201 is used to judge that whether said free space size is less than first threshold.
Said first threshold can be MSS (Maximum Segment Size, maximum segment size), and MSS is in the process based on the Transmission Control Protocol transmits data packets, the maximum data segmentation that at every turn can transmit.It is understandable that said first threshold also can be for according to other set numerical value of the buffering area of receiving device 1, this numerical value can be set according to actual conditions, and the embodiment of the invention does not limit this.
Unit 202 is set, is used to be provided with flag bit.
If the said unit 202 that is provided with specifically is used for said free space size less than first threshold, the flag bit of said buffering area is set to 1, if said free space size more than or equal to first threshold, the flag bit of said buffering area is set to 0.
Second judging unit 203; Be used for when said first judging unit 201 is judged said free space size less than first threshold; Judge that whether said free space size is greater than second threshold value; If the free space size, confirms then that said free space size is positioned at the preset threshold value scope greater than second threshold value;
Wherein, said second threshold value can be the set numerical value of real space size according to the buffering area of receiving device 1, and this numerical value can be set according to actual conditions, and the embodiment of the invention and this limit.In the embodiment of the invention, said first threshold is more than or equal to said second threshold value.
See also Fig. 7, be the structural representation of another embodiment of judge module provided by the invention; Said judge module 20 comprises: first judging unit 201, the unit 202 and second judging unit 203 are set, further comprise:
Detecting unit 204 is used to detect the flag bit of said buffering area, if the flag bit of said buffering area is 1, then notifies said second judging unit 203 to carry out decision operation.
Need to prove that the flag bit of buffering area is used to trigger tcp window and in time informs flow process, is 1 if said detecting unit 204 detects flag bit, then starts tcp window and in time informs flow process; If it is 0 that said detecting unit 204 detects flag bit, does not then start tcp window and in time inform flow process.In the practical application; The embodiment of the invention can also perhaps can also adopt other modes to carry out the triggering that tcp window is in time informed flow process for other preset values to the setting of flag bit, for example: trigger sign for buffering area is provided with; Or the like, the present invention does not limit this.Correspondingly, the said unit 202 that is provided with also is used in said announcement module 30 after sending ending equipment 2 sends the renewal message, and the flag bit of said buffering area is set to 0.
The embodiment of the invention is obtained the free space size of receiving device 1 buffering area by the receiving device 1 based on the Transmission Control Protocol transmission; Whether the conditional decision according to the free space size satisfies sends the renewal message to sending ending equipment 2; Need not to wait for the probe messages of sending ending equipment 2, avoid the wasting of resources that causes in the wait process; Start window by receiving device 1 voluntarily according to the big or small physical condition that is satisfied of free space and in time inform flow process; Make sending ending equipment 2 can in time know the data-handling capacity of receiving device 1; In time communicate by letter with receiving device 1 restore data; Improve utilization of network bandwidth, improve the utilance of cushion space.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that the present invention is contained.

Claims (16)

1. the transmission method based on Transmission Control Protocol is characterized in that, comprising:
Obtain the free space size of the current buffering area of receiving device;
Judge whether said free space size satisfies preset announcement condition;
If said free space size satisfies preset announcement condition; Then send the renewal message that carries said free space size to sending ending equipment; After making that said sending ending equipment receives said renewal message, send the quantity data message that matees with said free space size based on the free space size of carrying in the said renewal message.
2. the method for claim 1 is characterized in that, saidly judges that whether said free space size satisfies preset announcement condition, comprising:
Whether the free space size of judging the current buffering area of receiving device is positioned at the preset threshold value scope;
If said free space size is positioned at the preset threshold value scope, confirm that then said free space size satisfies preset announcement condition.
3. method as claimed in claim 2 is characterized in that, saidly judges that whether the free space size of the current buffering area of receiving device is positioned at the preset threshold value scope, comprising:
Whether judge said free space size less than first threshold, and flag bit is set according to the result of said judgement;
If said free space size less than first threshold, then further judges that whether said free space size is greater than second threshold value;
If said free space size, confirms then that said free space size is positioned at the preset threshold value scope greater than second threshold value;
Wherein, said first threshold is more than or equal to said second threshold value.
4. method as claimed in claim 3 is characterized in that, said result according to said judgement is provided with flag bit and comprises:
If said free space size is less than first threshold, the flag bit of said buffering area is set to 1;
If said free space size is more than or equal to first threshold, the flag bit of said buffering area is set to 0.
5. method as claimed in claim 4 is characterized in that, saidly judges that said free space size whether greater than before second threshold value, also comprises:
Detect the flag bit of said buffering area,, then carry out and judge that said free space size is whether greater than the step of second threshold value if the flag bit of said buffering area is 1.
6. method as claimed in claim 5 is characterized in that, and is said after sending ending equipment sends the renewal message that carries said free space size, also comprises:
The flag bit of said buffering area is set to 0.
7. method as claimed in claim 3 is characterized in that, said first threshold is maximum segment size MSS.
8. like each described method of claim 1-7, it is characterized in that, also comprise:
According to real-time read operation to data in the said buffering area, the free space of the said buffering area of real-time update size.
9. receiving device, said receiving device receives data based on Transmission Control Protocol, it is characterized in that, comprising:
Acquisition module is used to obtain the free space size of the current buffering area of receiving device;
Judge module is used to judge whether the free space size that said acquisition module obtains satisfies preset announcement condition;
Announcement module; Be used for when said judge module judges that said free space size satisfies preset announcement condition; Send the renewal message that carries said free space size to sending ending equipment; After making that said sending ending equipment receives said renewal message, send the quantity data message that matees with said free space size based on the said free space size of carrying in the said renewal message.
10. receiving device as claimed in claim 9 is characterized in that:
Said judge module is used to specifically judge whether the free space size that said acquisition module obtains is positioned at the preset threshold value scope; If said free space size is positioned at the preset threshold value scope, confirm that then said free space size satisfies preset announcement condition.
11. receiving device as claimed in claim 10 is characterized in that, said judge module comprises:
First judging unit is used to judge that whether said free space size is less than first threshold;
The unit is set, is used to be provided with flag bit;
Second judging unit; Be used in the said free space size of said first judgment unit judges during less than first threshold; Judge that whether said free space size is greater than second threshold value; If the free space size, confirms then that said free space size is positioned at the preset threshold value scope greater than second threshold value;
Wherein, said first threshold is more than or equal to said second threshold value.
12. receiving device as claimed in claim 11 is characterized in that:
If the said unit that is provided with specifically is used for said free space size less than first threshold, the flag bit of said buffering area is set to 1, if said free space size more than or equal to first threshold, the flag bit of said buffering area is set to 0.
13. receiving device as claimed in claim 12 is characterized in that, said judge module also comprises:
Detecting unit is used to detect the flag bit of said buffering area, if the flag bit of said buffering area is 1, then notifies said second judging unit to carry out decision operation;
The said unit that is provided with also is used in said announcement module after sending ending equipment sends the renewal message, and the flag bit of said buffering area is set to 0.
14. like each described receiving device of claim 9-13, it is characterized in that, also comprise:
Read module is used for the data executive real-time read operation in the said buffering area;
Update module is used for according to the real-time read operation of said read module to data in the said buffering area, the free space of the said buffering area of real-time update size.
15. a communication system is characterized in that, comprising: sending ending equipment and receiving device, wherein,
Said receiving device; Be used to receive the also data message of the said sending ending equipment transmission of buffer memory; And the free space that obtains the current buffering area of receiving device is big or small; And when said free space size satisfies preset announcement condition, send the renewal message that carries said free space size to said sending ending equipment;
Said sending ending equipment is used for after receiving said renewal message, sends the quantity data message that matees with said free space size to said receiving device based on the free space size of carrying in the said renewal message.
16. communication system as claimed in claim 15 is characterized in that,
Said receiving device specifically is to be used to judge that whether said free space size is less than first threshold; If said free space size is during less than first threshold; Further judge that whether said free space size is greater than second threshold value; If the free space size is greater than second threshold value; Confirm that then said free space size is positioned at the preset threshold value scope, confirm that then said free space size satisfies preset announcement condition;
Wherein, said first threshold is more than or equal to said second threshold value.
CN201210176294.4A 2012-05-31 2012-05-31 Transmission method, receiving terminal equipment and system based on TCP (transmission control protocol) Active CN102724112B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210176294.4A CN102724112B (en) 2012-05-31 2012-05-31 Transmission method, receiving terminal equipment and system based on TCP (transmission control protocol)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210176294.4A CN102724112B (en) 2012-05-31 2012-05-31 Transmission method, receiving terminal equipment and system based on TCP (transmission control protocol)

Publications (2)

Publication Number Publication Date
CN102724112A true CN102724112A (en) 2012-10-10
CN102724112B CN102724112B (en) 2015-03-25

Family

ID=46949776

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210176294.4A Active CN102724112B (en) 2012-05-31 2012-05-31 Transmission method, receiving terminal equipment and system based on TCP (transmission control protocol)

Country Status (1)

Country Link
CN (1) CN102724112B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363200A (en) * 2014-10-10 2015-02-18 福建联迪商用设备有限公司 Bluetooth transmission control method and device
CN104917593A (en) * 2015-04-13 2015-09-16 惠州Tcl移动通信有限公司 Network terminal and sending method for data packets of network terminal
WO2015139364A1 (en) * 2014-03-20 2015-09-24 中兴通讯股份有限公司 Resource notification management method and common service entity
WO2016197917A1 (en) * 2015-06-12 2016-12-15 华为技术有限公司 Flow entry issuing method, flow entry storage method, relevant apparatus and system
CN106302201A (en) * 2015-05-14 2017-01-04 华为技术有限公司 Flow control methods, equipment and system
CN106330752A (en) * 2015-06-26 2017-01-11 华为技术有限公司 Determination method and device of reception window in transmission control protocol (TCP) flow control
CN113535610A (en) * 2021-07-13 2021-10-22 珠海格力电器股份有限公司 Single-wire communication equipment and control method and storage medium thereof

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108595351B (en) * 2018-05-11 2021-04-09 湖南华芯通网络科技有限公司 DMA (direct memory access) sending control method oriented to network forwarding processing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188560A (en) * 2007-12-18 2008-05-28 杭州华三通信技术有限公司 Method and device for dynamically detecting forward capability
CN102147786A (en) * 2010-12-29 2011-08-10 中国航空工业集团公司第六三一研究所 Method for dual-port virtual FIFO (first in first out) data exchange

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101188560A (en) * 2007-12-18 2008-05-28 杭州华三通信技术有限公司 Method and device for dynamically detecting forward capability
CN102147786A (en) * 2010-12-29 2011-08-10 中国航空工业集团公司第六三一研究所 Method for dual-port virtual FIFO (first in first out) data exchange

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015139364A1 (en) * 2014-03-20 2015-09-24 中兴通讯股份有限公司 Resource notification management method and common service entity
CN104363200A (en) * 2014-10-10 2015-02-18 福建联迪商用设备有限公司 Bluetooth transmission control method and device
CN104363200B (en) * 2014-10-10 2018-08-28 福建联迪商用设备有限公司 A kind of control method and device of Bluetooth transmission
CN104917593A (en) * 2015-04-13 2015-09-16 惠州Tcl移动通信有限公司 Network terminal and sending method for data packets of network terminal
CN104917593B (en) * 2015-04-13 2018-05-11 惠州Tcl移动通信有限公司 The sending method of the network terminal and its data packet
CN106302201A (en) * 2015-05-14 2017-01-04 华为技术有限公司 Flow control methods, equipment and system
WO2016197917A1 (en) * 2015-06-12 2016-12-15 华为技术有限公司 Flow entry issuing method, flow entry storage method, relevant apparatus and system
US10469388B2 (en) 2015-06-12 2019-11-05 Huawei Technologies Co., Ltd. Flow entry delivering method, flow entry storage method, related apparatus, and related system
CN106330752A (en) * 2015-06-26 2017-01-11 华为技术有限公司 Determination method and device of reception window in transmission control protocol (TCP) flow control
CN113535610A (en) * 2021-07-13 2021-10-22 珠海格力电器股份有限公司 Single-wire communication equipment and control method and storage medium thereof
CN113535610B (en) * 2021-07-13 2024-03-22 珠海格力电器股份有限公司 Single-wire communication equipment, control method thereof and storage medium

Also Published As

Publication number Publication date
CN102724112B (en) 2015-03-25

Similar Documents

Publication Publication Date Title
CN102724112A (en) Transmission method, receiving terminal equipment and system based on TCP (transmission control protocol)
CN103209439B (en) The method of a kind of data traffic monitoring, device and equipment
CN102045772A (en) Data transmission method and device
EP3095293B1 (en) Method and apparatus for bluetooth low energy suspend and resume
CN109062847B (en) System on chip, IP core for RS485 serial port communication and control method thereof
CN102769842A (en) Low-data volume service optimization method for long term evolution (LTE) network and network side equipment
JP2023503701A (en) POSITIONING INFORMATION PROCESSING METHOD, DEVICE AND STORAGE MEDIUM
CN103096271A (en) Information pushing system and information pushing method
CN102143563A (en) Control method, equipment and systems of short message center cluster
CN110297722B (en) Thread task communication method and related product
CN103746938A (en) Method and device for transmitting data packet
CN104580721A (en) Alarm clock implementation method for terminal
CN110457251A (en) Data communications method and device between a kind of multiprocessor
WO2019019285A1 (en) Resource control method and apparatus
WO2019015051A1 (en) Method and apparatus for switching operating modes
CN112367409B (en) Internet of things node data transmission control method and device
CN103227794A (en) Data transmission control method, device and system
CN104753761A (en) Method, server and system for processing messages
CN109714833A (en) A kind of data communications method, apparatus and system
CN101448022B (en) Control method of system interface iSCSI receiving end window of internet small computer and device
CN103781025A (en) Instant message state update system, instant message state update system and instant message server
CN102232309B (en) Method, device and system for optimizing network based on intelligent terminal
CN102984138A (en) Method, device and system for obtaining object
CN103078905A (en) Communication management method of GPS (Global Position System) terminal
CN101610289A (en) The methods, devices and systems of data download and node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant