CN107819853B - A kind of data transmission method and device - Google Patents
A kind of data transmission method and device Download PDFInfo
- Publication number
- CN107819853B CN107819853B CN201711117150.0A CN201711117150A CN107819853B CN 107819853 B CN107819853 B CN 107819853B CN 201711117150 A CN201711117150 A CN 201711117150A CN 107819853 B CN107819853 B CN 107819853B
- Authority
- CN
- China
- Prior art keywords
- window value
- value
- equipment
- buffer memory
- window
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 230000005540 biological transmission Effects 0.000 title claims abstract description 58
- 238000000034 method Methods 0.000 title claims abstract description 36
- 238000004891 communication Methods 0.000 claims abstract description 26
- 238000011144 upstream manufacturing Methods 0.000 claims abstract description 23
- 230000001186 cumulative effect Effects 0.000 claims description 40
- 238000012545 processing Methods 0.000 claims description 16
- 238000005516 engineering process Methods 0.000 abstract description 3
- 230000009467 reduction Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 230000005291 magnetic effect Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000003139 buffering effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 239000002699 waste material Substances 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 230000003111 delayed effect Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/0001—Systems modifying transmission characteristics according to link quality, e.g. power backoff
- H04L1/0015—Systems modifying transmission characteristics according to link quality, e.g. power backoff characterised by the adaptation strategy
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5682—Policies or rules for updating, deleting or replacing the stored data
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Quality & Reliability (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a kind of data transmission method and device, it is related to field of communication technology, buffer area for solving the first equipment or the second equipment is filled, cause in the unit time the first equipment or the second equipment can received data greatly reduce, and then the problem of cause the data transmission efficiency between the first equipment and the second equipment to substantially reduce.This method comprises: receiving the upstream data and the first reception window value that the first equipment is sent, window value and forwarding device are received according to first, and window value is received to the buffer memory adjustment first of downlink data, obtain the second reception window value, upstream data and the second reception window value are sent to the second equipment, window value and buffer memory is received according to second and sends downlink data to the first equipment.The application is suitable for a kind of data transmission system.
Description
Technical field
This application involves field of communication technology more particularly to a kind of data transmission methods and device.
Background technique
Transmission control protocol (Transmission Control Protocol, TCP) is a kind of connection-oriented, reliable
, transport layer protocol that be based on network protocol (Internet Protocol, IP), be widely used in the service of various networks.For
The generation of congestion is avoided, Transmission Control Protocol introduces sliding window protocol (Sliding Window Protocol, SWP) and counted
Flow control when according to transmission.When using sliding window protocol, transmitting terminal and receiving end respectively define transmitting terminal window and connect
Receiving end window.Transmitting terminal is continuously numbered when sending data, to data grouping, and sliding window is arranged, and is slided at this point, being located at
Data grouping in dynamic window can issue the case where the confirmation (Acknowledgement, ACK) for not receiving receiving end is replied
It sees off.That is, sliding window protocol allows transmitting terminal to send multiple data groupings before stoping and waitting for ACK, without
Must one data grouping of every hair just stop, wait ACK to be received, therefore the sliding window protocol can speed up data in a network
Transmission, improve network throughput.
But during transmitting terminal sends data to receiving end, if rx-side buffering area is filled, in the unit time
Receiving end can received data just greatly reduce, thus the data transmission efficiency between transmitting terminal and receiving end substantially reduces.
For example, the value of sliding window is larger when initial, the data volume that transmitting terminal is sent is larger.But the receiving end application process unit time
The low volume data in buffer area is inside only consumed, then rx-side buffering area will soon be filled.In this way, receiving end receives data
Ability it is weaker, then receiving end reduce sliding window size.Later, transmitting terminal sends number according to the sliding window after reduction
According to.If the processing capacity of the application process of receiving end is weaker, the value that may cause the sliding window after reducing is smaller, in turn
Transmission low volume data is only capable of between transmitting terminal and receiving end every time, and then causes efficiency of transmission lower.
Summary of the invention
The application provides a kind of data transmission method and device, for solving the buffer area quilt of the first equipment or the second equipment
Fill up, cause in the unit time the first equipment or the second equipment can received data greatly reduce, and then lead to the first equipment
The problem of data transmission efficiency between the second equipment substantially reduces.
In order to achieve the above objectives, the application adopts the following technical scheme that
In a first aspect, providing a kind of data transmission method, which comprises forwarding device receives what the first equipment was sent
Upstream data and the first reception window value.Forwarding device receives window value and the forwarding device to downlink according to described first
The buffer memory adjustment described first of data receives window value, obtains the second reception window value.Forwarding device is sent to the second equipment
The upstream data and the second reception window value are sent out in order to which second equipment receives window value according to described second
Downlink data is sent, and receives window value and the buffer memory according to described second and sends downlink data to first equipment.
Wherein, the upstream data includes the data that first equipment is sent to second equipment;The downlink data includes institute
State the data that the second equipment is sent to first equipment.
Second aspect provides a kind of data transmission device, comprising: communication module, for receiving the transmission of the first equipment
Line number is accordingly and first receives window value.Processing module, for receiving window value and the forwarding device pair according to described first
The buffer memory adjustment described first of downlink data receives window value, obtains the second reception window value.The communication module, is also used to
The received upstream data of communication module and the processing module is sent to the second equipment to be obtained according to the communication module
First reception window value obtain second receive window value in order to according to it is described second receive window value send downlink data.
The communication module is also used to receive line number under window value and the buffer memory are sent to first equipment according to described second
According to.Wherein, the upstream data includes the data that first equipment is sent to second equipment;The downlink data includes
The data that second equipment is sent to first equipment.
The third aspect, the application provide a kind of forwarding device, which includes: processor, transceiver and memory.
Wherein, memory includes instruction for storing one or more programs, one or more programs, and processor is for executing the storage
The instruction of device storage, so that described in one of any in forwarding device execution first aspect and its various optional implementations
Data transmission method.
Fourth aspect, the application provide a kind of computer readable storage medium, are stored in computer readable storage medium
Computer executed instructions, when the forwarding device executes the computer executed instructions, which executes above-mentioned first aspect
And its in various optional implementations it is one of any described in data transmission method.
5th aspect, the application provides a kind of communication system, which includes the first equipment, the second equipment and the
In two aspects and its various optional implementations it is one of any described in forwarding device.
In data transmission method and device provided by the present application, forwarding device receives the first reception window that the first equipment is sent
Mouthful value, and according to the first reception window value and the first reception window value is adjusted to the buffer memory of downlink data obtain second and connect
Receive window value and to the second equipment send this second receive window value, and according to obtained after adjustment second receive window value and
Downlink data is sent to the first equipment to the buffer memory of downlink data.As it can be seen that compared with prior art, in the application, by turning
Hair equipment adjusts the (such as: increasing or reducing) first reception window value in time and obtains the second reception window value, and obtains according to after adjustment
The amount and the second equipment for the downlink data that the second reception window value control forwarding device arrived is sent to the first equipment single
The downlink data amount sent to the first equipment can be realized and reduce the first reception window value when the first equipment ability to accept is weaker
To avoid buffer cache, reception window value is improved when the first equipment reception ability is stronger and is set to improve the first equipment and second
Data volume between standby, and then improve data transfer efficiency.
Detailed description of the invention
Fig. 1 is a kind of structural schematic diagram of data transmission system provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of data transmission method provided by the embodiments of the present application;
Fig. 3 is the flow chart of another data transmission method provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of data transmission device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of forwarding device provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application is suitable for a kind of data transmission system, as shown in Figure 1, the data transmission system includes at least the
One equipment 11, the second equipment 13 and forwarding device 12.Wherein, data are transmitted between the first equipment 11, the second equipment 13, forwarding
For equipment 12 for forwarding the data transmitted between the first equipment 11 and the second equipment 13, each forwarding device 12 can be at least one
A first equipment 11 and/or the second equipment 13 carry out data transmission (with 12 and one the first equipment of each forwarding device in Fig. 1
11 and second equipment 13 carry out data transmission for, but not as the restriction to the application).Upstream data refer to the first equipment 11 to
The data that second equipment 13 is sent, downlink data refer to the data that the second equipment 13 is sent to the first equipment 11.
Illustratively, when the data transmission system is applied within a wireless communication network, in the embodiment of the present application, first is set
Standby 11 can be user equipment, and the second equipment 13 can be server, and forwarding device 12 can be base station.
Wherein, user equipment can be mobile phone, computer, can also be cellular phone, wireless phone, Session initiation Protocol
(session initiation protocol, SIP) phone, smart phone, wireless local loop (wireless local
Loop, WLL) it stands, personal digital assistant (personal digital assistant, PDA), laptop computer, hand-held
Communication equipment, Handheld computing device, satellite radio, wireless modem card, TV set-top box (set top box,
STB), customer premises equipment, CPE (customer premise equipment, CPE) and/or for being led on wireless system
Other equipment of letter.
When the data transmission system is applied to computer network, in the embodiment of the present application, the first equipment 11 can be the
One computer equipment (such as computer 1), the second equipment 13 can be second computer equipment (such as computer 2), and forwarding device 12 can be with
For router.
The embodiment of the present application provides a kind of data transmission method, can be applied to data transmission system shown in FIG. 1.Such as figure
Shown in 2, this approach includes the following steps 101 to step 104:
Step 101, forwarding device receive the upstream data that the first equipment is sent and the first reception window value.
Optionally, the first reception window value can be carried in upstream data by the first equipment, and upstream data is sent to
Forwarding device, for example, the first reception window value may be embodied in heading entrained by upstream data.Optionally, first
Equipment can send the upstream data and first respectively to forwarding device and receive window value.
First receives the practical reception window value that window value determines for the first equipment according to the ability for itself receiving data.
Step 102, forwarding device receive window value and forwarding device to the buffer memory adjustment of downlink data the according to first
One receives window value, obtains the second reception window value.
In order to improve the data transmission efficiency between the first equipment and the second equipment as much as possible, forwarding device is receiving
One equipment send first receive window value after, according to this first receive window value represented by the first equipment reception ability with
And forwarding device itself obtains the second reception to the buffer memory adjustment (increasing or reducing) of downlink data the first reception window value
Window value.The specific implementation of the step can refer to be described in detail hereinafter.
Step 103, forwarding device send upstream data and the second reception window value to the second equipment.
Optionally, the second equipment receives window value according to second obtained after adjustment and sends downlink data.Specifically, second
After equipment receives the second reception window value, determine that the second equipment is sent to the first equipment single according to the second reception window value
Downlink data data volume.
Step 104, forwarding device receive window value and buffer memory according to second and send downlink data to the first equipment.
Optionally, it if second receives window value less than buffer memory, is sent out according to the second reception window value to the first equipment
Send downlink data.If second, which receives window value, is greater than or equal to buffer memory, sent to the first equipment all data cached.
Optionally, it if buffer memory is sky, and is received from the data volume of the received downlink data of the second equipment less than second
Window value is then sent to the first equipment from the received downlink data of the second equipment.If buffer memory is sky, and is connect from the second equipment
The data volume of the downlink data of receipts is greater than second and receives window value, then receives window value according to second and send to the first equipment from the
The received downlink data of two equipment.
In data transmission method and device provided by the present application, forwarding device receives the first reception window that the first equipment is sent
Mouthful value, and according to the first reception window value and the first reception window value is adjusted to the buffer memory of downlink data obtain second and connect
Receive window value and to the second equipment send this second receive window value, and according to obtained after adjustment second receive window value and
Downlink data is sent to the first equipment to the buffer memory of downlink data.As it can be seen that compared with prior art, in the application, by turning
Hair equipment adjusts the (such as: increasing or reducing) first reception window value in time and obtains the second reception window value, and obtains according to after adjustment
The amount and the second equipment for the downlink data that the second reception window value control forwarding device arrived is sent to the first equipment single
The downlink data amount sent to the first equipment can be realized and reduce the first reception window value when the first equipment ability to accept is weaker
To avoid buffer cache, reception window value is improved when the first equipment reception ability is stronger and is set to improve the first equipment and second
Data volume between standby, and then improve data transfer efficiency.
Optionally, forwarding device presets preset window threshold value, which can be set by the user
Or forwarding device determines according to certain rules.For example, if first receives the flat of window value when congestion does not occur for the first equipment
Mean value is x byte, then it is x byte that the preset window threshold value, which can be set, in forwarding device, x is positive number.
It should be noted that if value setting is excessive, the number that may cause the increase of the first reception window value is excessive, into
And the data volume for the downlink data that the second equipment is sent to the first equipment is greatly increased, it is likely to result under forwarding device caching
The data volume of row data is larger, causes to bear to forwarding device.If value setting is too small, the first reception window may cause
The number for being worth increase is very few, and the downlink data for causing the second equipment to send to the first equipment single is still less, to efficiency of transmission
Raising it is limited.
After forwarding device receives the first reception window value, also to calculate the first reception window value and be less than or equal to default window
The cumulative number of mouth threshold value.The initial value of the cumulative number is zero.If the buffer memory is sky, it is arranged described accumulative
Number value is 0.Optionally, counter is arranged in forwarding device, if first receives window value less than or equal to preset window door
Limit value, then the value of counter adds 1, obtains the cumulative frequency.If forwarding device is sky to the buffer memory of downlink data,
The value of counter is emptied, so that the value of cumulative frequency is 0.
Preset times threshold value is the attainable upper limit of cumulative number institute, which is a natural number more than or equal to 2.It should
Value can rule of thumb or operator's management tactics is arranged.When cumulative number reaches the value, indicate that the first equipment may occur
The reception ability of failure or the first equipment is too low, thus forwarding device can not be the of the suitable size of the first device configuration
Two receive window value, and therefore, forwarding device is not necessarily to again be that first equipment is data cached, and forwarding device is by reducing first
Window value is received to empty the spatial cache of forwarding device.
It should be noted that if the value setting it is excessive, then cause it is above-mentioned break down or receive ability it is too low first
Equipment still occupies the cache resources of forwarding device, results in waste of resources.If value setting is too small, it will lead to and certain do not send out
Raw failure, stronger first equipment of reception ability are mistaken as the first equipment to break down, reception ability is poor, cause to forward
Equipment be no longer it is above-mentioned do not break down, stronger first equipment of reception ability it is data cached, cause the caching of forwarding device to provide
The utilization rate in source reduces.
So, forwarding device adjustment first receives window value in the step 102, obtains the second reception window value and specifically may be used
It is embodied as step 201 or step 202 or step 203 or step 204 or step 2051 or step 2052 shown in Fig. 3:
If step 201, the first reception window value is less than or equal to preset window threshold value and cumulative number is less than default
Frequency threshold value then increases first and receives window value, obtains the second reception window value.
Wherein, if first receives window value less than or equal to preset window threshold value, the value of cumulative number is set
Add 1, after cumulative frequency reaches preset times threshold value, cumulative frequency is not further added by.
Optionally, when increase first receives window value, can be increased according to the first reception window value with certain proportion.Example
Such as, increase according to 20% ratio, namely second obtained after increasing receives 120% that window value is the first reception window value.
When increase first receives window value, it is fixed value that increase, which can be set, makes obtain after increasing second to receive window value etc.
Average first in the first equipment region network receives window value;When increase first receives window value, can also be arranged
It is an average value that second obtained after increase, which receives window value,.It is connect for example, the second reception window value can be set for this
The first equipment is sent before receiving window value adjustment, in the data transmission system first receives window value and is greater than preset window thresholding
When value, all first receive the average value of window value.
If the second reception window value setting is excessive, after causing the first reception window value to increase, second obtained is connect
It is excessive to receive window value, and then greatly increases the data volume for the downlink data that the second equipment is sent to the first equipment, is likely to result in
The data volume of the downlink data of forwarding device caching is larger, causes to bear to forwarding device.If the second reception window value setting
It is too small, then it is too small to may cause the first reception window value incrementss, under causing the second equipment to send to the first equipment single
Row data are very few, limited to the raising of efficiency of transmission.
It should be noted that in the embodiment of the present application, receiving the set-up mode of window value without limitation to second.
If step 202, the first reception window value is less than or equal to preset window threshold value and cumulative number is equal to default
Frequency threshold value keeps first to receive window value then when buffer memory is empty, so that the second reception window value is equal to first and receives window
Value.
If step 203, the first reception window value is less than or equal to preset window threshold value and cumulative number is equal to default
Frequency threshold value reduces first and receives window value, obtain the second reception window value then when buffer memory non-empty.
Wherein, when buffer memory is empty, setting cumulative number value is 0.
Optionally, when reduction first receives window value, it can be set by the user the reduction amount of the first reception window value, or
Forwarding device determines the first reduction amount for receiving window value according to certain rules.It should be noted that no matter in which kind of situation
Under, reduce the second reception window value obtained after the first reception window value and is below preset window threshold value and the first reception window
Value.
Optionally, it is a fixed value that the second reception window value, which can be set, for example, the second reception window value is arranged
For a fixed lesser value, such as 50 bytes.It is an average value that the second reception window value, which can be set, for example, can
It is before this receives window value adjustment so that the second reception window value is arranged, the first equipment is sent in the data transmission system
When first reception window value is less than preset window threshold value, all first receive the average value of window values.Can be set this second
Reception window value is a difference, is preset window threshold value and forwards at this time for example, the second reception window value can be set
The sum of lesser value subtracts the value obtained after fixed word joint number in the first reception window value that equipment receives.
If value setting is excessive, the second reception window value caused is excessive, at this point, the reception number of the first equipment
According to speed be equally likely to or the speed of the processing data greater than the first equipment, cause the buffer memory in forwarding device that can not arrange
Sky results in waste of resources.If value setting is too small, the second reception window value that may cause is too small, leads to second
The downlink data that equipment is sent to the first equipment single is very few, limited to the raising of efficiency of transmission.
It should be noted that in the embodiment of the present application, receiving the set-up mode of window value without limitation to second.
If step 204, first receiving window value and being greater than preset window threshold value, when buffer memory is empty, the is kept
One receives window value, so that the second reception window value is equal to first and receives window value.
If step 205, first receiving window value and being greater than preset window threshold value, when buffer memory non-empty, then basis
First in last transmission process receives window value or the first reception window value, obtains the second reception window value.
Specifically, which can be divided into step 2051 and step 2052, in which:
If step 2051, first receive window value greater than preset window threshold value and buffer memory non-empty and are less than buffer memory
Threshold value, then first when the second reception window value being made to be equal to last data transmission procedure receives window value.
Wherein, when buffer memory is empty, setting cumulative number value is 0.
Optionally, forwarding device presets buffer memory threshold value, which is one and caches lower than forwarding device
The value of space maximum value, for determining whether the occupation rate of forwarding device spatial cache reaches certain limit, so that forwarding device
When buffer data size reaches certain limit, energy discharge part caching is to avoid forwarding device spatial cache data spilling.This is slow
Storage threshold value can be set by user according to forwarding device spatial cache maximum value or forwarding device determines according to certain rules.
For example, spatial cache maximum value is 1G Byte, it is generally the case that when spatial cache occupancy reaches 95%, data occur and overflow
Probability out is still lower, it is possible to which it is 950M Byte that the buffer memory threshold value, which is arranged,.
If value setting is too small, it will lead to that a large amount of spatial caches are vacant, in turn result in the wave of forwarding device spatial cache
Take.If value setting is excessive, it will lead to forwarding device spatial cache data and overflow and cause packet loss.
It should be noted that in the embodiment of the present application, without limitation to the set-up mode of buffer memory threshold value.
If step 2052, the first reception window value is greater than preset window threshold value and buffer memory is greater than or equal to buffer memory
Threshold value then reduces first and receives window value, obtains the second reception window value.
It should be noted that reducing first in step 2052 and receiving window value, to obtain the side of the second reception window value
Formula can receive window value with reference to reducing first in step 203, in a manner of obtaining the second reception window value, therefore not go to live in the household of one's in-laws on getting married
It states.But in the embodiment of the present application, window value is received to reduction first, is not limited in a manner of obtaining the second reception window value
It is fixed.
To sum up, in the application, when the first reception window value is less than preset window threshold value and cumulative number is less than default time
When number threshold value, increase first and receive window value, when cumulative number is equal to preset times threshold value, the data in forwarding device are delayed
Storage emptying, first receive window value be greater than preset window threshold value, and buffer memory be more than buffer memory threshold value when reduce first
Receive window value.Therefore, the application be avoided that break down or the first equipment that receiving efficiency is too low occupy excessive cache resources,
And avoid forwarding device spatial cache data from overflowing, and herein under the premise of improve data between the first equipment and the second equipment and pass
Defeated efficiency.
This application provides a kind of device 30, which can be used for executing shown in any one of above-mentioned Fig. 2 and Fig. 3
Method and step, as shown in figure 4, the device 30 includes:
Communication module 31, upstream data and first for receiving the transmission of the first equipment receive window value.
Processing module 32 is obtained for receiving window value to the buffer memory adjustment first of downlink data according to forwarding device
Second receives window value.
Communication module 31 is also used to send the received upstream data of communication module 31 and processing module 32 to the second equipment
Second obtained according to the first reception window value that communication module 31 obtains receives window value in order to which the second equipment is according to second
It receives window value and sends downlink data.
Communication module 31 is also used to receive window value and buffer memory to the first equipment transmission downlink data according to second.
Wherein, upstream data includes the data that the first equipment is sent to the second equipment;Downlink data include the second equipment to
The data that first equipment is sent.
In a kind of possible design of the application, processing module 32 is also used to:
If the first reception window value is less than or equal to preset window threshold value and cumulative number is less than preset times threshold value,
Then increase first and receive window value, obtains the second reception window value.
If the first reception window value is less than or equal to preset window threshold value and cumulative number is equal to preset times threshold value,
It then when buffer memory is empty, keeps first to receive window value, so that the second reception window value is equal to first and receive window value;Work as caching
When measuring non-empty, reduces first and receive window value, obtain the second reception window value.
If first, which receives window value, is greater than preset window threshold value, when buffer memory is empty, the first reception window is kept
Mouth value makes the second reception window value be equal to first and receives window value;When buffer memory non-empty, then according in last transmission process
First receive window value or first receive window value, obtain the second reception window value.
In a kind of possible design of the application, processing module 32 is also used to:
If the first reception window value is greater than preset window threshold value and buffer memory is less than buffer memory threshold value, second is set to connect
It receives first when window value is equal to last data transmission procedure and receives window value.
If the first reception window value is greater than preset window threshold value and buffer memory is greater than or equal to buffer memory threshold value, subtract
Small first receives window value, obtains the second reception window value.
Wherein, cumulative number is the number that the first reception window value is less than or equal to preset window threshold value, cumulative number
Initial value be zero.
If should be noted that the buffer memory is sky, it is 0 that the cumulative number value, which is arranged,;If described
One, which receives window value, is less than or equal to preset window threshold value, then the value that the cumulative number is arranged adds 1, reaches in cumulative frequency
To after preset times threshold value, cumulative frequency is not further added by.
In a kind of possible design of the application, communication module 31 is also used to:
If second, which receives window value, is less than buffer memory, window value is received according to second and sends lower line number to the first equipment
According to.
If second, which receives window value, is greater than or equal to buffer memory, sent to the first equipment all data cached.
If buffer memory is sky, and receives window value less than second from the data volume of the received downlink data of the second equipment,
Then send to the first equipment from the received downlink data of the second equipment.
If buffer memory is sky, and is greater than second from the data volume of the received downlink data of the second equipment and receives window value,
Then window value is received according to second to send to the first equipment from the received downlink data of the second equipment.
In addition, the device 30 can also include memory module 33, memory module 33 is used for the program generation of store-and-forward unit
Code and data.
In data transmission method and device provided by the present application, forwarding device receives the first reception window that the first equipment is sent
Mouthful value, and according to the first reception window value and the first reception window value is adjusted to the buffer memory of downlink data obtain second and connect
Receive window value and to the second equipment send this second receive window value, and according to obtained after adjustment second receive window value and
Downlink data is sent to the first equipment to the buffer memory of downlink data.As it can be seen that compared with prior art, in the application, by turning
Hair equipment adjusts the (such as: increasing or reducing) first reception window value in time and obtains the second reception window value, and obtains according to after adjustment
The amount and the second equipment for the downlink data that the second reception window value control forwarding device arrived is sent to the first equipment single
The downlink data amount sent to the first equipment can be realized and reduce the first reception window value when the first equipment ability to accept is weaker
To avoid buffer cache, reception window value is improved when the first equipment reception ability is stronger and is set to improve the first equipment and second
Data volume between standby, and then improve data transfer efficiency.
It wherein, should as shown in figure 5, above-mentioned processing module 32 can be processor 42 or controller in forwarding device 40
Processor or controller, which may be implemented or execute, combines various illustrative logic blocks described in present disclosure, mould
Block and circuit.The processor or controller can be central processing unit, general processor, digital signal processor, dedicated integrated
Circuit, field programmable gate array or other programmable logic device, transistor logic, hardware component or it is any
Combination.It, which may be implemented or executes, combines various illustrative logic blocks, module and electricity described in present disclosure
Road.The processor be also possible to realize computing function combination, such as comprising one or more microprocessors combine, DSP and
The combination etc. of microprocessor.
Communication module 31 can be transceiver, transmission circuit or communication interface 41 in forwarding device 40 etc..
Memory module 33 can be memory 43 in forwarding device 40 etc., which may include volatile storage
Device, such as random access memory;The memory also may include nonvolatile memory, such as read-only memory, flash memory
Reservoir, hard disk or solid state hard disk;The memory can also include the combination of the memory of mentioned kind.
The forwarding device 40 further includes bus 44, and the bus 44 can be expanding the industrial standard structure (Extended
Industry Standard Architecture, EISA) bus etc..Bus 44 can be divided into address bus, data/address bus, control
Bus processed etc..Only to be indicated with a thick line in Fig. 5, it is not intended that an only bus or a type of convenient for indicating
Bus.
Through the above description of the embodiments, it is apparent to those skilled in the art that, for description
It is convenienct and succinct, only the example of the division of the above functional modules, in practical application, can according to need and will be upper
It states function distribution to be completed by different functional modules, i.e., the internal structure of device is divided into different functional modules, to complete
All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before can referring to
The corresponding process in embodiment of the method is stated, details are not described herein.
The embodiment of the present application also provides a kind of computer readable storage medium, and finger is stored in computer readable storage medium
It enables, when computer executes the instruction, which executes forwarding device in method flow shown in above method embodiment
Each step.
Wherein, computer readable storage medium, such as electricity, magnetic, optical, electromagnetic, infrared ray can be but not limited to or partly led
System, device or the device of body, or any above combination.The more specific example of computer readable storage medium is (non-poor
The list of act) it include: the electrical connection with one or more conducting wires, portable computer diskette, hard disk, random access memory
(Random Access Memory, RAM), read-only memory (Read-Only Memory, ROM), erasable type may be programmed read-only
Memory (Erasable Programmable Read Only Memory, EPROM), optical fiber, portable compact disc are read-only
Memory (Compact Disc Read-Only Memory, CD-ROM), light storage device, magnetic memory device or above-mentioned
Any appropriate combination.In the embodiment of the present application, computer readable storage medium can be it is any include or storage program
Tangible medium, the program can be commanded execution system, device or device use or in connection.
The step of method in conjunction with described in present disclosure or algorithm can realize by the mode of hardware,
It can be and the mode of software instruction is executed by processor to realize.Software instruction can be made of corresponding software module, software
Module can be stored on RAM, flash memory, ROM, Erasable Programmable Read Only Memory EPROM (easable programmable ROM,
EPROM), Electrically Erasable Programmable Read-Only Memory (electrically EPROM, EEPROM), register, hard disk, movement are hard
In the storage medium of disk, CD-ROM (CD-ROM) or any other form well known in the art.A kind of illustrative storage
Medium couples to enable a processor to from the read information, and can be written to the storage medium and believe to processor
Breath.Certainly, storage medium is also possible to the component part of processor.Pocessor and storage media can be located in ASIC.
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 module or
The division of unit, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units
Or component can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, institute
Display or the mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, device or unit
Indirect coupling or communication connection 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.) or processor execute described in each embodiment of the application
The all or part of the steps of method.And storage medium above-mentioned include: flash memory, it is mobile hard disk, read-only memory, random
Access the various media that can store program code such as memory, magnetic or disk.
The above, the only specific embodiment of the application, but the protection scope of the application is not limited thereto, it is any
Change or replacement within the technical scope of the present application should all be covered within the scope of protection of this application.Therefore, this Shen
Protection scope please should be subject to the protection scope in claims.
Claims (8)
1. a kind of data transmission method, which is characterized in that be applied to forwarding device, which comprises
The upstream data and first for receiving the transmission of the first equipment receive window value;Window value and described is received according to described first
Forwarding device receives window value to the buffer memory adjustment described first of downlink data, obtains the second reception window value;
The upstream data and the second reception window value are sent to the second equipment in order to which second equipment is according to institute
It states the second reception window value and sends downlink data;
Window value and the buffer memory, which are received, according to described second sends downlink data to first equipment;
Wherein, the upstream data includes the data that first equipment is sent to second equipment;The downlink data packet
Include the data that second equipment is sent to first equipment;
It is described that the buffer memory adjustment described first of downlink data is connect according to the first reception window value and the forwarding device
Window value is received, the second reception window value is obtained, comprising:
If the first reception window value is less than or equal to preset window threshold value and cumulative number is less than preset times threshold value,
Then increase described first and receive window value, obtains the second reception window value;
If the first reception window value is less than or equal to the preset window threshold value and the cumulative number is equal to described
Preset times threshold value keeps described first to receive window value then when the buffer memory is empty, makes described second to receive window value
Window value is received equal to described first;When the buffer memory non-empty, reduces described first and receive window value, obtain described second
Receive window value;
If described first receives window value and be greater than preset window threshold value, when the buffer memory is empty, described the is kept
One receives window value, makes described second to receive window value and is equal to the first reception window value;When the buffer memory non-empty, then
Window value or the first reception window value are received according to first in last transmission process, described second is obtained and receives window
Value;
Wherein, the cumulative number is the number that the first reception window value is less than or equal to preset window threshold value, described
The initial value of cumulative number is zero.
2. the method according to claim 1, wherein if described first receives window value greater than the default window
Mouth threshold value, then when the buffer memory non-empty, first according in last transmission process receives window value or described
First receives window value, obtains described second and receives window value, comprising:
If the buffer memory is less than buffer memory threshold value, makes described second to receive window value and be equal to last data transmission procedure
When first receive window value;
If the buffer memory is equal to or more than the buffer memory threshold value, reduces described first and receive window value, obtains described
Second receives window value.
3. the method according to claim 1, wherein the method also includes:
If the buffer memory is sky, it is 0 that the cumulative number value, which is arranged,;
If described first, which receives window value, is less than or equal to preset window threshold value, the value that the cumulative number is arranged adds
1, after the cumulative number reaches the preset times threshold value, the cumulative number is not further added by.
4. the method according to claim 1, wherein described receive window value and the caching according to described first
It measures to first equipment and sends downlink data, comprising:
If described second, which receives window value, is less than the buffer memory, sent out according to the second reception window value to the first equipment
Send downlink data;
If described second, which receives window value, is greater than or equal to the buffer memory, sent to the first equipment all data cached;
If the buffer memory is sky, and is less than described second from the data volume of the received downlink data of the second equipment and receives
Window value is then sent to the first equipment from the received downlink data of the second equipment;
If the buffer memory is sky, and is greater than described second from the data volume of the received downlink data of the second equipment and receives
Window value then receives window value according to described second and sends to the first equipment from the received downlink data of the second equipment.
5. a kind of device for data transmission, which is characterized in that described device includes: as forwarding device
Communication module, upstream data and first for receiving the transmission of the first equipment receive window value;Processing module is used for root
Window value and the forwarding device are received according to described first, window value is received to the buffer memory adjustment described first of downlink data, obtain
Window value is received to second;
The communication module is also used to send the received upstream data of communication module and the processing mould to the second equipment
Root tuber receives window value according to second that the first reception window value that the communication module obtains obtains in order to second equipment
Window value, which is received, according to described second sends downlink data;
The communication module, under being also used to be sent according to the second reception window value and the buffer memory to first equipment
Row data;
Wherein, the upstream data includes the data that first equipment is sent to second equipment;The downlink data packet
Include the data that second equipment is sent to first equipment;
The processing module, is also used to:
If the first reception window value is less than or equal to preset window threshold value and cumulative number is less than preset times threshold value,
Then increase described first and receive window value, obtains the second reception window value;
If the first reception window value is less than or equal to the preset window threshold value and the cumulative number is equal to described
Preset times threshold value keeps described first to receive window value then when the buffer memory is empty, makes described second to receive window value
Window value is received equal to described first;When the buffer memory non-empty, reduces described first and receive window value, obtain described second
Receive window value;
If described first receives window value and be greater than preset window threshold value, when the buffer memory is empty, described the is kept
One receives window value, makes described second to receive window value and is equal to the first reception window value;When the buffer memory non-empty, then
Window value or the first reception window value are received according to first in last transmission process, described second is obtained and receives window
Value;
Wherein, the initial value of the cumulative number is zero, and the cumulative number is that the first reception window value is less than or equal to
The number of preset window threshold value.
6. device according to claim 5, which is characterized in that the processing module is also used to:
If described first receives window value greater than the preset window threshold value and the buffer memory non-empty and is less than buffer memory
Threshold value, then first when the second reception window value being made to be equal to last data transmission procedure receives window value;
If the first reception window value is greater than the preset window threshold value and the buffer memory is greater than or equal to described delay
Storage threshold value then reduces described first and receives window value, obtains described second and receives window value.
7. device according to claim 5, which is characterized in that the processing module is also used to:
If the buffer memory is sky, it is 0 that the cumulative number value, which is arranged,;
If described first, which receives window value, is less than or equal to preset window threshold value, the value that the cumulative number is arranged adds
1, after the cumulative number reaches the preset times threshold value, the cumulative number is not further added by.
8. device according to claim 5, which is characterized in that the communication module is also used to:
If described second, which receives window value, is less than the buffer memory, sent out according to the second reception window value to the first equipment
Send downlink data;
If described second, which receives window value, is greater than or equal to the buffer memory, sent to the first equipment all data cached;
If the buffer memory is sky, and is less than described second from the data volume of the received downlink data of the second equipment and receives
Window value is then sent to the first equipment from the received downlink data of the second equipment;
If the buffer memory is sky, and is greater than described second from the data volume of the received downlink data of the second equipment and receives
Window value then receives window value according to described second and sends to the first equipment from the received downlink data of the second equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711117150.0A CN107819853B (en) | 2017-11-13 | 2017-11-13 | A kind of data transmission method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711117150.0A CN107819853B (en) | 2017-11-13 | 2017-11-13 | A kind of data transmission method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107819853A CN107819853A (en) | 2018-03-20 |
CN107819853B true CN107819853B (en) | 2019-08-16 |
Family
ID=61608937
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711117150.0A Active CN107819853B (en) | 2017-11-13 | 2017-11-13 | A kind of data transmission method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107819853B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111314237B (en) * | 2020-01-17 | 2023-05-12 | 深信服科技股份有限公司 | Method, device and equipment for adjusting data packet transmission rate and readable storage medium |
CN111526383A (en) * | 2020-04-29 | 2020-08-11 | 江苏加信智慧大数据研究院有限公司 | Follow-up system and follow-up steps for operation arrangement |
CN113726681B (en) * | 2020-05-26 | 2023-07-11 | 华为技术有限公司 | Network congestion control method and network equipment |
CN115514454B (en) * | 2022-09-19 | 2024-05-28 | Oppo广东移动通信有限公司 | Data transmission method and device, electronic equipment and computer readable storage medium |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369875A (en) * | 2008-09-12 | 2009-02-18 | 上海华为技术有限公司 | Transmission method, apparatus and system for control protocol data package |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101867512B (en) * | 2010-04-15 | 2012-08-08 | 华为技术有限公司 | Data transmission control method and device |
CN102201997A (en) * | 2011-06-03 | 2011-09-28 | 华为技术有限公司 | Data transmission control method and equipment |
US9397939B2 (en) * | 2014-06-24 | 2016-07-19 | International Business Machines Corporation | Hybrid approach for performance enhancing proxies |
CN105376173B (en) * | 2014-09-02 | 2020-04-28 | 中兴通讯股份有限公司 | Sending window flow control method and terminal |
CN106713432B (en) * | 2016-12-13 | 2019-11-05 | 深信服科技股份有限公司 | Data cache method and network agent equipment |
-
2017
- 2017-11-13 CN CN201711117150.0A patent/CN107819853B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101369875A (en) * | 2008-09-12 | 2009-02-18 | 上海华为技术有限公司 | Transmission method, apparatus and system for control protocol data package |
Also Published As
Publication number | Publication date |
---|---|
CN107819853A (en) | 2018-03-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107819853B (en) | A kind of data transmission method and device | |
US8811379B2 (en) | Control apparatus and control method | |
US8861355B2 (en) | Multicast rate control | |
US20140269461A1 (en) | Systems and methods for link augmentation | |
EP1590978A2 (en) | Quality of service differentiation in wireless networks | |
CN101557348A (en) | Message forwarding method and device based on token bucket | |
CN100418314C (en) | Wireless mobile terminal and telecommunication system | |
CN114157603A (en) | Congestion control method, device, equipment and storage medium | |
WO2019105317A1 (en) | Method for sending service packet, network device, and system | |
CN103428756B (en) | The control apparatus and method of aggregate frame in a kind of WLAN | |
CN103517386B (en) | The data transmission method and equipment of WLAN | |
US10897725B2 (en) | System and method for managing data transfer between two different data stream protocols | |
US9807642B2 (en) | Traffic distribution method, device, and system | |
CN111130711B (en) | Method for determining length of feedback response information and related product | |
CN103067129A (en) | Method and system for transmission of network data | |
CN105900481A (en) | Bandwidth selection method of wireless fidelity technology and access point (ap) | |
CN109495865B (en) | D2D-assisted self-adaptive cache content placement method and system | |
CN105262643B (en) | A kind of packet loss differentiating method based on TD-LTE mobile network's transmission features | |
CN104348856A (en) | Method of implementing updating of web cache through broadcast network | |
CN105792381A (en) | Contention adjusting method and device for use in wireless local area network and system | |
CN205430288U (en) | Big data storage type wireless router | |
CN107733949A (en) | A kind of wireless access network caching method and system | |
CN106535257A (en) | Transmission method and device for data frame of wireless local area network | |
CN113543208B (en) | Wireless transmission control method, wireless communication system, and computer storage medium | |
CN115038120A (en) | Data transmission method, data transmission device, electronic device, storage medium, and program product |
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 |