CN107426108A - TCP jamming control methods, device and service end - Google Patents

TCP jamming control methods, device and service end Download PDF

Info

Publication number
CN107426108A
CN107426108A CN201710927883.4A CN201710927883A CN107426108A CN 107426108 A CN107426108 A CN 107426108A CN 201710927883 A CN201710927883 A CN 201710927883A CN 107426108 A CN107426108 A CN 107426108A
Authority
CN
China
Prior art keywords
packet
client
retransmitted
number
data package
Prior art date
Application number
CN201710927883.4A
Other languages
Chinese (zh)
Inventor
何绍富
张文明
陈少杰
Original Assignee
武汉斗鱼网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Priority to CN201710927883.4A priority Critical patent/CN107426108A/en
Publication of CN107426108A publication Critical patent/CN107426108A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/10Flow control or congestion control
    • H04L47/29Using a combination of thresholds
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic regulation in packet switching networks
    • H04L47/10Flow control or congestion control
    • H04L47/32Packet discarding or delaying

Abstract

The present invention relates to network transmission technology field, there is provided a kind of TCP jamming control methods, device and service end, methods described include:The request of client is received, and packet is sent to client;When packet loss occurs, continual data package dropout number is obtained;If continual data package dropout number is more than or equal to the first predetermined threshold value, TCP congestion control policies, if continual data package dropout number is less than the first predetermined threshold value, trigger data re-transmission policy are triggered.TCP jamming control methods provided in an embodiment of the present invention, it can effectively lift the bandwidth availability ratio of TCP transmission bandwidth availability ratio, especially mobile environment.

Description

TCP jamming control methods, device and service end

Technical field

The present invention relates to network transmission technology field, in particular to a kind of TCP jamming control methods, device and clothes Business end.

Background technology

Network data transmission is being carried out using TCP (Transmission Control Protocol, transmission control protocol) During, it is difficult to run in broadband completely in the case of singular link, particularly under mobile network environment, TCP bandwidth availability ratio phase To relatively low.Can secured transmission of payload data be quickly user when client TCP connection request data for service end Experience the basic of fluency.For this problem, existing TCP jamming control methods mainly take what fast quick-recovery period guarded Bag conservation mechanism, specifically, TCP often receive a repeat ACK (Acknowledgement, response), then send a new data Bag, the packet for belonging to the stream on network is kept constant, realize network bag conservation.I.e. when packet loss event occurs, conventional TCP Transmission rate is reduced first, then keeps this transmission rate to send packet, seriously reduces TCP transmission bandwidth availability ratio.

The content of the invention

The purpose of the embodiment of the present invention is to provide a kind of TCP jamming control methods, device and service end, on improving State problem.

To achieve these goals, the technical scheme that the embodiment of the present invention uses is as follows:

In a first aspect, the embodiments of the invention provide a kind of TCP jamming control methods, it is connected applied to client communication Service end, methods described includes:The request of client is received, and packet is sent to the client;When packet loss occurs, Obtain continual data package dropout number;If the continual data package dropout number is more than or equal to the first predetermined threshold value, TCP congestion controls are triggered Strategy, if the continual data package dropout number is less than the first predetermined threshold value, trigger data re-transmission policy.

Second aspect, the embodiment of the present invention additionally provide a kind of TCP congestion control devices, connected applied to client communication The service end connect, described device include packet sending module, packet loss number acquisition module and execution module.Wherein, packet Sending module is used for the request for receiving client, and sends packet to the client;Packet loss number acquisition module is used to work as During generation packet loss, continual data package dropout number is obtained;If it is pre- more than or equal to first that execution module is used for the continual data package dropout number If threshold value, then TCP congestion control policies are triggered, if the continual data package dropout number is less than the first predetermined threshold value, trigger number According to re-transmission policy.

The third aspect, the embodiment of the present invention additionally provide a kind of service end, and the service end is connected with client communication, institute Stating service end includes memory, processor and TCP congestion control devices, and the TCP congestion control devices are installed on described deposit Include in reservoir and including one or more software function modules by the computing device, the TCP congestion control devices Packet sending module, packet loss number acquisition module and execution module.Wherein, packet sending module is used to receive client Request, and send packet to the client;Packet loss number acquisition module is used for when packet loss occurs, and obtains continual data package dropout Number;If execution module is more than or equal to the first predetermined threshold value for the continual data package dropout number, TCP congestion control plans are triggered Slightly, if the continual data package dropout number is less than the first predetermined threshold value, trigger data re-transmission policy.

Compared with the prior art, a kind of TCP jamming control methods, device and service end provided in an embodiment of the present invention, pass through TCP data bag is monitored, when packet loss occurs, obtains continual data package dropout number, and judge to work as according to the continual data package dropout number Preceding packet loss is packet loss caused by congestion, or link in itself caused by random loss;If continual data package dropout number is more than or equal to First predetermined threshold value, then it is real congestion packet loss, triggering TCP congestion control policies are slowed down, if continual data package dropout number Less than the first predetermined threshold value, then for link in itself caused by random loss, trigger data re-transmission policy carries out fast to the bag of loss Speed retransmits.Compared with existing TCP jamming control methods, TCP jamming control methods provided in an embodiment of the present invention, to needing to drop The congestion packet loss of speed carries out reduction of speed operation, the random loss Fast retransmission to not needing reduction of speed, effectively improves TCP transmission bandwidth Utilization rate.

To enable the above objects, features and advantages of the present invention to become apparent, preferred embodiment cited below particularly, and coordinate Appended accompanying drawing, is described in detail below.

Brief description of the drawings

In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by embodiment it is required use it is attached Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, therefore be not construed as pair The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can also be according to this A little accompanying drawings obtain other related accompanying drawings.

Fig. 1 shows the schematic diagram that service end provided in an embodiment of the present invention interacts with client.

Fig. 2 shows the block diagram of service end provided in an embodiment of the present invention.

Fig. 3 shows TCP jamming control methods flow chart provided in an embodiment of the present invention.

Fig. 4 is the sub-step flow chart of the step S101 shown in Fig. 3.

Fig. 5 is the sub-step flow chart of the step S102 shown in Fig. 3.

Fig. 6 shows the block diagram of TCP congestion control devices provided in an embodiment of the present invention.

Icon:100- service ends;200- clients;300- networks;110-TCP congestion control devices;111- packets are sent out Send module;112- packet loss number acquisition modules;113- execution modules;114- response message receiving modules;115- packets are cleared up Module;120- memories;130- processors;140- communication units.

Embodiment

Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Ground describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.Generally exist The component of the embodiment of the present invention described and illustrated in accompanying drawing can be configured to arrange and design with a variety of herein.Cause This, the detailed description of the embodiments of the invention to providing in the accompanying drawings is not intended to limit claimed invention below Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing The every other embodiment obtained on the premise of going out creative work, belongs to the scope of protection of the invention.

It should be noted that:Similar label and letter represents similar terms in following accompanying drawing, therefore, once a certain Xiang Yi It is defined, then it further need not be defined and explained in subsequent accompanying drawing in individual accompanying drawing.Meanwhile the present invention's In description, term " first ", " second " etc. are only used for distinguishing description, and it is not intended that instruction or hint relative importance.

During network data transmission is carried out using TCP, basic in the case of singular link is difficult to run bandwidth completely, especially It is relatively low in mobile network environment, TCP bandwidth availability ratio.Packet loss is the key factor for influenceing TCP bandwidth availability ratios, because For for TCP congestion controls, once packet loss, TCP congestion controls can all be considered to send causes very much congestion packet loss soon, so Protocol stack can reduce transmission speed in itself.

In view of this, inventor has found by long-term observation and research, because send causes very much congestion packet loss in fact simultaneously soon Incorrect, packet loss is not necessarily due to the too fast caused congestion packet loss of transmission speed, it is also possible to is link poor quality itself Caused packet loss, particularly in wireless network environment, link fluctuates larger in itself, and link inherently has certain packet loss, In this case it is the transmission speed that reduce data, but needs to take the mode of Fast retransmission.Meanwhile inventor In research process it has also been found that:Then it is likely to be to send to lead soon very much if sheet of continuity packet loss when packet loss occurs The congestion packet loss of cause;If packet is the loss of randomness, link caused packet loss in itself is most likely due to.Cause This, inventor is based on research above and found, it is proposed that the scheme described in the embodiment of the present invention.

The present invention is described in further detail below by specific embodiment and with reference to accompanying drawing.

Fig. 1 is refer to, Fig. 1 shows that service end 100 provided in an embodiment of the present invention is carried out with least one client 200 Interactive schematic diagram.Service end 100 can be communicated by network 300 with client 200, to realize service end 100 and client Data communication or interaction between end 200.

In embodiments of the present invention, service end 100 is web (website) server.Client 200 may be, but not limited to, Smart mobile phone, PC (personal computer, PC), tablet personal computer, personal digital assistant (personal Digital assistant, PDA), mobile internet surfing equipment (mobile Internet device, MID) etc..Client 200 can With from data such as the foradownloaded video of service end 100, audio, pictures.

Fig. 2 is refer to, Fig. 2 is the block diagram of the service end 100 shown in Fig. 1.Service end 100 includes TCP congestion controls Device 110, memory 120, processor 130 and communication unit 140 processed.

Memory 120, processor 130 and 140 each element of communication unit are directly or indirectly electrically connected between each other, with Realize the transmission or interaction of data.For example, these elements between each other can be real by one or more communication bus or signal wire Now it is electrically connected with.TCP congestion control devices 110 can be stored in including at least one in the form of software or firmware (firmware) In memory 120 or the software function module that is solidificated in the operating system of the service end 100, serviced in the embodiment of the present invention The operating system at end 100 is (SuSE) Linux OS.Processor 130 is used to perform the executable module stored in memory 120, Such as software function module included by TCP congestion control devices 110 and computer program etc..

Wherein, the memory 120 may be, but not limited to, random access memory (Random Access Memory, RAM), read-only storage (Read Only Memory, ROM), programmable read only memory (Programmable Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only Memory, EEPROM) etc..Wherein, memory 120 is used for storage program, and processor 130 performs after execute instruction is received Described program.Communication unit 140 is used for the communication connection established by network 300 between service end 100 and client 200, and For passing through the transceiving data of network 300.

First embodiment

Fig. 3 is refer to, Fig. 3 shows TCP jamming control methods flow chart provided in an embodiment of the present invention.TCP congestion controls Method processed comprises the following steps:

Step S101, the request of client is received, and packet is sent to client.

In embodiments of the present invention, service end 100 receive client 200 request before, it is necessary to perform initialization phase Preparation is closed, the initialization correlation preparation can include:

First, every queue and the object pool in TCP kernels are initialized, for example, packet waiting list, data packet retransmission Queue etc..

Then, retransmission queue and unresponsive queue are added in TCP kernels, wherein, retransmission queue can be expressed as Resend queues, unresponsive queue can be expressed as no-ack queues;It should be noted that retransmission queue here and unresponsive Queue is different from the logic of the original data packet retransmission queue of TCP kernels etc., is the queue newly added, that is to say, that the re-transmission Queue and unresponsive queue and the original data packet retransmission queue of TCP kernels etc. are separate.

3rd, a sequence number field is added in sk_buffer structures, the sequence number field can be uint64_t fields, For marking the sequence number of the packet sent to client 200, it is necessary to which explanation, the sequence number of packet is pair of addition here The numbering of each packet, since 0, continue after spilling since 0, in addition, the calculating of all about sequence number is required for removing 264

Finally, congestion judge mark is added in TCP kernels, the congestion judge mark represents to result in soon very much due to sending Congestion.

In embodiments of the present invention, after related preparation completion is initialized, asking for client 200 is started waiting for Ask.When receiving the request of client 200, buffered data is divided into multiple data segments and in sk_buffer structures first Middle formation data message head, then each data segment with data message head is packaged into packet.Afterwards to each sk_ Sequence number field in buffer structures carries out cumulative numbering, and multiple packets with cumulative numbering then are placed on into packet etc. Treat queue.Finally, the packet in packet waiting list is transmitted according to TCP slow turn-ons process.

It should be noted that home window is arranged into 36000 bytes first in whole process, timing is set afterwards Device, sack, and wait-for-response ack are opened, each packet being transmitted across, no-ack queues is multiplexed into, is only added to no- In ack queues, data copy is not done.

Fig. 4 is refer to, step S1011 can include following sub-step:

Sub-step S1011, when receiving the request of client, buffered data is divided into multiple packets.

In embodiments of the present invention, when client 200 has request to arrive, after TCP three-way handshake terminates, service end 100 Upper strata has mass data to reach buffering area formation buffered data, and buffered data is divided into multiple data segments and interpolation data message Head, then each data segment with data message head is packaged into packet.

Sub-step S1012, sequence number is added to each packet, and the packet with sequence number is sent to client, wherein, The sequence number of packet is cumulative successively.

In embodiments of the present invention, after packet encapsulation is completed, sequence number cumulative successively is added to each packet, then Packet with sequence number is sent to client 200.

Step S102, when packet loss occurs, obtain continual data package dropout number.

In embodiments of the present invention, after client 200 receives the packet of the transmission of service end 100, to service end 100 Send ack messages, when service end 100 receives ack messages, removed from no-ack queues packet corresponding to the ack messages, And the packet of the corresponding sequence number in resend queues;Continue new packet after ack messages reach to send, TCP congestion controls and flow control are controlled by sliding window, and other existing speed control logics are herein no longer Repeat.

In embodiments of the present invention, need to monitor whether during ack messages are waited there occurs packet loss, TCP can be with Judge packet loss by following two modes:Firstth, judge whether timer is overtime;Second, if exist continuous DACK three times or Packet corresponding to person DSACK instruction sequence numbers, specific deterministic process belong to prior art, will not be repeated here.When there is packet When meeting condition, that is, occur packet loss when, first, obtained from no-ack queues be also not received by ack messages need weight The packet to be retransmitted passed, and the packet to be retransmitted is put into resend queues;Then, check in resend queues and treat weight Whether the sequence number for passing packet has continuous data bag, if so, obtaining the number of the continuous data bag, the number is continual data package dropout Number.

Fig. 5 is refer to, step S102 can include following sub-step:

Sub-step S1021, when packet loss occurs, obtain packet to be retransmitted.

In embodiments of the present invention, when packet loss occurs, obtained from no-ack queues and be also not received by ack messages need The packet to be retransmitted to be retransmitted.

Sub-step S1022, packet to be retransmitted is sent into the retransmission queue added in advance.

In embodiments of the present invention, the packet to be retransmitted obtained from no-ack queues is put into what is added in advance Resend queues.

Sub-step S1023, obtain in the retransmission queue that adds in advance each sequence number of packet to be retransmitted.

In embodiments of the present invention, check whether the sequence number of the packet to be retransmitted in resend queues has continuous data Bag, if so, obtaining the number of the continuous data bag.

Sub-step S1024, according to the sequence number of each packet to be retransmitted, obtain the number of continual data package dropout.

In embodiments of the present invention, the number of continuous data bag is as continuous in the packet to be retransmitted in resend queues Packet loss number.

Step S103, if continual data package dropout number is more than or equal to the first predetermined threshold value, trigger TCP congestion control plans Slightly, if continual data package dropout number is less than the first predetermined threshold value, trigger data re-transmission policy.

In embodiments of the present invention, after obtaining continual data package dropout number, judge the continuous data bag number whether be more than or Equal to the first predetermined threshold value (for example, 5), if continual data package dropout number is more than or equal to the first predetermined threshold value, it is judged to sending out Too fast caused congestion is sent, sets congestion marking simultaneously to trigger TCP congestion control policies, TCP congestion control policies include reducing number Retransmitted according to bag transmission speed and by the packet to be retransmitted in the resend queues added in advance, wait the sound of client 200 Should the response message that sends of data be retransmitted.

If continual data package dropout number is less than the first predetermined threshold value, it is determined as congestion caused by link poor quality itself, Remove congestion marking and trigger data re-transmission policy, data re-transmission policy is by the number to be retransmitted in the resend queues added in advance Retransmitted according to bag, now without reduction of speed, wait client 200 to respond the response message that the data to be retransmitted are sent.

In embodiments of the present invention, TCP congestion control policies or data re-transmission policy are triggered according to continual data package dropout number Afterwards, TCP jamming control methods provided in an embodiment of the present invention can also include:

Step S104, receive the response message that client end response packet to be retransmitted is sent.

In embodiments of the present invention, the resend that will be added in advance with the speed of reduction after TCP congestion control policies is triggered Packet to be retransmitted in queue is retransmitted, the resend teams that will be added in advance without reduction of speed after trigger data re-transmission policy Packet to be retransmitted in row is retransmitted, after client 200 receives the packet to be retransmitted, based on the re-transmission packet As service end 100 sends response message.

In embodiments of the present invention, after receiving the response message that client 200 responds packet transmission to be retransmitted, this hair The TCP jamming control methods that bright embodiment provides can also include:

Step S105, according to response message, corresponding packet to be retransmitted in retransmission queue is cleared up.

In embodiments of the present invention, service end 100 receives client 200 and responds the response report that packet to be retransmitted is sent After text, packet to be retransmitted corresponding to the response message is found in resend queues and is cleared up, cleared up and then secondary The number of continuous data bag in the packet to be retransmitted in resend queues is checked, when the number of the continuous data bag is less than second During predetermined threshold value (for example, 3), that is, when the number of the continual data package dropout in resend queues is less than 3, then cancel TCP Congestion control policy, the packet transmission speed of reduction is recovered, while data re-transmission policy is stated in triggering.

In embodiments of the present invention, using empirical data (for example, continuous five data-bag losts), judgement is really to gather around Packet loss or common random loss are filled in, the false judgment rate of congestion generation is reduced with this, so as to reduce the behaviour of service end 100 Make the number of system default congestion, reduce the number of operating system reduction of speed, TCP congestion control sides provided in an embodiment of the present invention Method, it can effectively lift the bandwidth availability ratio of TCP transmission bandwidth availability ratio, especially mobile environment.

Second embodiment

Fig. 6 is refer to, Fig. 6 shows the block diagram of TCP congestion control devices 110 provided in an embodiment of the present invention. TCP congestion control devices 110 include packet sending module 111, packet loss number acquisition module 112, execution module 113, response Message receiving module 114 and packet cleaning modul 115.

Packet sending module 111, packet is sent for receiving the request of client, and to client.

In embodiments of the present invention, packet sending module 111 can be used for performing step S101.

In embodiments of the present invention, packet sending module 111, it is additionally operable to:

When receiving the request of client, buffered data is divided into multiple packets;

Sequence number is added to each packet, and the packet with sequence number is sent to client, wherein, the sequence number of packet It is cumulative successively.

In embodiments of the present invention, packet sending module 111 can be also used for performing sub-step S1011~S1012.

Packet loss number acquisition module 112, for when packet loss occurs, obtaining continual data package dropout number.

In embodiments of the present invention, packet loss number acquisition module 112 can be used for performing step S102.

In embodiments of the present invention, packet loss number acquisition module 112, is additionally operable to:

When packet loss occurs, packet to be retransmitted is obtained;

Packet to be retransmitted is sent into the retransmission queue added in advance;

Obtain in the retransmission queue that adds in advance each sequence number of packet to be retransmitted;

According to the sequence number of each packet to be retransmitted, the number of continual data package dropout is obtained.

In embodiments of the present invention, packet loss number acquisition module 112 can be also used for performing sub-step S1021~S1024.

Execution module 113, if being more than or equal to the first predetermined threshold value for continual data package dropout number, trigger TCP congestions Control strategy, if continual data package dropout number is less than the first predetermined threshold value, trigger data re-transmission policy.

In embodiments of the present invention, execution module 113 can be used for performing step S103.

Response message receiving module 114, the response message sent for receiving client end response packet to be retransmitted.

In embodiments of the present invention, response message receiving module 114 can be used for performing step S104.

Packet cleaning modul 115, for according to response message, being carried out to corresponding packet to be retransmitted in retransmission queue Cleaning.

In embodiments of the present invention, packet cleaning modul 115 can be used for performing step S105.

In summary, a kind of TCP jamming control methods, device and service end provided by the invention, methods described include:Connect The request of client is received, and packet is sent to client;When packet loss occurs, continual data package dropout number is obtained;If continuously lose Bag number is more than or equal to the first predetermined threshold value, then triggers TCP congestion control policies, if continual data package dropout number is pre- less than first If during threshold value, then trigger data re-transmission policy.The present invention utilizes empirical data (for example, continuous five data-bag losts), judges It is real congestion packet loss or common random loss, the false judgment rate of congestion generation is reduced with this, so as to reduces clothes The number of the operating system acquiescence congestion at business end, reduces the number of operating system reduction of speed, and TCP provided in an embodiment of the present invention is gathered around Control method is filled in, can effectively lift the bandwidth availability ratio of TCP transmission bandwidth availability ratio, especially mobile environment.

In several embodiments provided herein, it should be understood that disclosed apparatus and method, can also pass through Other modes are realized.Device embodiment described above is only schematical, for example, flow chart and block diagram in accompanying drawing Show the device of multiple embodiments according to the present invention, method and computer program product architectural framework in the cards, Function and operation.At this point, each square frame in flow chart or block diagram can represent the one of a module, program segment or code Part, a part for the module, program segment or code include one or more and are used to realize holding for defined logic function Row instruction.It should also be noted that at some as in the implementation replaced, the function that is marked in square frame can also with different from The order marked in accompanying drawing occurs.For example, two continuous square frames can essentially perform substantially in parallel, they are sometimes It can perform in the opposite order, this is depending on involved function.It is it is also noted that every in block diagram and/or flow chart The combination of individual square frame and block diagram and/or the square frame in flow chart, function or the special base of action as defined in performing can be used Realize, or can be realized with the combination of specialized hardware and computer instruction in the system of hardware.

In addition, each functional module in each embodiment of the present invention can integrate to form an independent portion Point or modules individualism, can also two or more modules be integrated to form an independent part.

If the function is realized in the form of software function module and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.Need Illustrate, herein, such as first and second or the like relational terms be used merely to by an entity or operation with Another entity or operation make a distinction, and not necessarily require or imply between these entities or operation any this reality be present The relation or order on border.Moreover, term " comprising ", "comprising" or its any other variant are intended to the bag of nonexcludability Contain, so that process, method, article or equipment including a series of elements not only include those key elements, but also including The other element being not expressly set out, or also include for this process, method, article or the intrinsic key element of equipment. In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including the key element Process, method, other identical element also be present in article or equipment.

The preferred embodiments of the present invention are the foregoing is only, are not intended to limit the invention, for the skill of this area For art personnel, the present invention can have various modifications and variations.Within the spirit and principles of the invention, that is made any repaiies Change, equivalent substitution, improvement etc., should be included in the scope of the protection.It should be noted that:Similar label and letter exists Similar terms is represented in following accompanying drawing, therefore, once being defined in a certain Xiang Yi accompanying drawing, is then not required in subsequent accompanying drawing It is further defined and explained.

Claims (10)

1. a kind of TCP jamming control methods, it is characterised in that applied to the service end being connected with client communication, methods described Including:
The request of client is received, and packet is sent to the client;
When packet loss occurs, continual data package dropout number is obtained;
If the continual data package dropout number is more than or equal to the first predetermined threshold value, TCP congestion control policies are triggered, if described When continual data package dropout number is less than the first predetermined threshold value, then trigger data re-transmission policy.
2. the method as described in claim 1, it is characterised in that the request for receiving client, and sent out to the client The step of sending packet, including:
When receiving the request of the client, buffered data is divided into multiple packets;
To each packet addition sequence number, and the packet with sequence number is sent to the client, wherein, the data The sequence number of bag is cumulative successively.
3. the method as described in claim 1, it is characterised in that it is described when packet loss occurs, obtain the number of continual data package dropout Step, including:
When packet loss occurs, packet to be retransmitted is obtained;
The packet to be retransmitted is sent into the retransmission queue added in advance;
Obtain in the retransmission queue added in advance each sequence number of packet to be retransmitted;
According to the sequence number of each packet to be retransmitted, continual data package dropout number is obtained.
4. the method as described in claim 1, it is characterised in that the TCP congestion control policies include reducing packet transmission Speed is simultaneously retransmitted the packet to be retransmitted in the retransmission queue added in advance;The data re-transmission policy includes will Packet to be retransmitted in the retransmission queue added in advance is retransmitted.
5. method as claimed in claim 4, it is characterised in that preset if the continual data package dropout number is more than or equal to Threshold value, then TCP congestion control policies are triggered, if the continual data package dropout number is less than predetermined threshold value, trigger data retransmits After the step of strategy, in addition to:
Receive the response message that packet to be retransmitted described in the client end response is sent;
According to the response message, corresponding packet to be retransmitted in the retransmission queue is cleared up.
6. a kind of TCP congestion control devices, it is characterised in that applied to the service end being connected with client communication, described device Including:
Packet sending module, packet is sent for receiving the request of client, and to the client;
Packet loss number acquisition module, for when packet loss occurs, obtaining continual data package dropout number;
Execution module, if being more than or equal to the first predetermined threshold value for the continual data package dropout number, trigger TCP congestion controls Strategy, if the continual data package dropout number is less than the first predetermined threshold value, trigger data re-transmission policy.
7. device as claimed in claim 6, it is characterised in that the packet sending module is additionally operable to:
When receiving the request of the client, buffered data is divided into multiple packets;
To each packet addition sequence number, and the packet with sequence number is sent to the client, wherein, the data The sequence number of bag is cumulative successively.
8. device as claimed in claim 6, it is characterised in that the number acquisition module is additionally operable to:
When packet loss occurs, packet to be retransmitted is obtained;
The packet to be retransmitted is sent into the retransmission queue added in advance;
Obtain in the retransmission queue added in advance each sequence number of packet to be retransmitted;
According to the sequence number of each packet to be retransmitted, continual data package dropout number is obtained.
9. device as claimed in claim 8, it is characterised in that the TCP congestion control devices also include:
Response message receiving module, the response message sent for receiving packet to be retransmitted described in the client end response;
Packet cleaning modul, for according to the response message, entering to corresponding packet to be retransmitted in the retransmission queue Row cleaning.
10. a kind of service end, it is characterised in that the service end is connected with client communication, and the service end includes:
Memory;
Processor;And
TCP congestion control devices, the TCP congestion control devices are installed in the memory and including one or more by institute The software function module of computing device is stated, it includes:
Packet sending module, packet is sent for receiving the request of client, and to the client;
Number acquisition module, for when packet loss occurs, obtaining continual data package dropout number;
Execution module, if being more than or equal to the first predetermined threshold value for the continual data package dropout number, trigger TCP congestion controls Strategy, if the continual data package dropout number is less than the first predetermined threshold value, trigger data re-transmission policy.
CN201710927883.4A 2017-10-09 2017-10-09 TCP jamming control methods, device and service end CN107426108A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710927883.4A CN107426108A (en) 2017-10-09 2017-10-09 TCP jamming control methods, device and service end

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710927883.4A CN107426108A (en) 2017-10-09 2017-10-09 TCP jamming control methods, device and service end

Publications (1)

Publication Number Publication Date
CN107426108A true CN107426108A (en) 2017-12-01

Family

ID=60436151

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710927883.4A CN107426108A (en) 2017-10-09 2017-10-09 TCP jamming control methods, device and service end

Country Status (1)

Country Link
CN (1) CN107426108A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103986548A (en) * 2013-02-07 2014-08-13 华为技术有限公司 Method for determining packet loss reasons and terminal
CN104683259A (en) * 2015-02-15 2015-06-03 上海帝联信息科技股份有限公司 TCP congestion control method and device
CN104980365A (en) * 2014-04-01 2015-10-14 广西大学 TCP transmission acceleration method based on continuous packet losing congestion judgment
US9167473B2 (en) * 2012-01-09 2015-10-20 Ntt Docomo, Inc. Communication processing method, apparatus and gateway device
CN105376172A (en) * 2014-08-29 2016-03-02 华平信息技术股份有限公司 Method for controlling network congestion

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9167473B2 (en) * 2012-01-09 2015-10-20 Ntt Docomo, Inc. Communication processing method, apparatus and gateway device
CN103986548A (en) * 2013-02-07 2014-08-13 华为技术有限公司 Method for determining packet loss reasons and terminal
CN104980365A (en) * 2014-04-01 2015-10-14 广西大学 TCP transmission acceleration method based on continuous packet losing congestion judgment
CN105376172A (en) * 2014-08-29 2016-03-02 华平信息技术股份有限公司 Method for controlling network congestion
CN104683259A (en) * 2015-02-15 2015-06-03 上海帝联信息科技股份有限公司 TCP congestion control method and device

Similar Documents

Publication Publication Date Title
Bai et al. Information-agnostic flow scheduling for commodity data centers
US10116574B2 (en) System and method for improving TCP performance in virtualized environments
US9634944B2 (en) Multi-level iSCSI QoS for target differentiated data in DCB networks
Yang et al. TCP congestion avoidance algorithm identification
EP2772018B1 (en) Network congestion management based on communication delay
JP6608948B2 (en) Network flow log for multi-tenant environments
US20170026894A1 (en) Mobile network with software defined networking architecture
CN104137511B (en) Method, equipment and client device for the dynamic select of security protocol
US8738986B2 (en) Remote presentation over lossy transport with forward error correction
US9559972B2 (en) Systems and methods for managing congestion
EP2548130B1 (en) Shaping virtual machine communication traffic
Magalhaes et al. Transport level mechanisms for bandwidth aggregation on mobile hosts
US10044587B2 (en) Systems and methods for dynamically setting a rate limit for a computing device
TW576045B (en) System for controlling network flow by monitoring download bandwidth
CN102045362B (en) Data transmission method and system based on UDP protocol
US7813277B2 (en) Lockless bandwidth management for multiprocessor networking devices
US20110216648A1 (en) Congestion control for delay sensitive applications
TW201929569A (en) Buffer sizing for multi-hop networks
Quwaider et al. Cloudlet-based for big data collection in body area networks
JP6029074B2 (en) Reduce inter-arrival delay in network traffic
US6789050B1 (en) Method and apparatus for modeling a web server
US9800485B2 (en) System and method for determining an effect of network congestion
US8279885B2 (en) Lockless processing of command operations in multiprocessor systems
Kojo et al. Seawind: a Wireless Network Emulator.
CN104657250A (en) Monitoring method for monitoring performance of cloud host

Legal Events

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