CN107370687A - A kind of network TCP flow amount control method - Google Patents

A kind of network TCP flow amount control method Download PDF

Info

Publication number
CN107370687A
CN107370687A CN201710693366.5A CN201710693366A CN107370687A CN 107370687 A CN107370687 A CN 107370687A CN 201710693366 A CN201710693366 A CN 201710693366A CN 107370687 A CN107370687 A CN 107370687A
Authority
CN
China
Prior art keywords
receiving end
end window
rate
speed
iscsi receiving
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.)
Pending
Application number
CN201710693366.5A
Other languages
Chinese (zh)
Inventor
杨怀艳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201710693366.5A priority Critical patent/CN107370687A/en
Publication of CN107370687A publication Critical patent/CN107370687A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/19Flow control; Congestion control at layers above the network layer
    • H04L47/193Flow control; Congestion control at layers above the network layer at the transport layer, e.g. TCP related
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/22Traffic shaping
    • H04L47/225Determination of shaping rate, e.g. using a moving window

Abstract

The present invention relates to a kind of network TCP flow amount control method, sets rate-valve value first for speed pipeline;When actual speed rate is more than reservation rate-valve value, reduce iSCSI receiving end window;When actual speed rate is less than reservation rate-valve value, iSCSI receiving end window is stepped up;To taking different degrees of control dynamics respectively beyond speed low threshold and beyond two kinds of situations of crossing the border of speed high threshold;Change iSCSI receiving end window value.The beneficial effects of the invention are as follows:In flow control process, the present invention confirms iSCSI receiving end window value size in bag by changing ACK, reaches transmitting terminal from the purpose of its transmission rate of main regulation, it is achieved thereby that controlling the flow of TCP flow.And iSCSI receiving end window process is changed in dynamic, estimates transmitting terminal TCP message length real-time sampling current TCP segment length, and in this, as the least unit of modification iSCSI receiving end window value, to improve Control granularity.Due to not packet discard in flow control process, preferably overcome data packet retransmission problem, improve the utilization rate of network bandwidth.

Description

A kind of network TCP flow amount control method
Technical field
The invention belongs to network control field, more particularly, to a kind of network TCP flow amount control method.
Background technology
Most of traditional flow control methods are the flow control algorithms based on queuing model, such as RED, WFQ, by slow Deposit or packet discard adjusts business flow rate, and the priority scheduling for passing through queue completes the bandwidth point of different kinds of business stream Match somebody with somebody, different services are provided different business stream and realize the quality of service guarantee of key business.Conventional method exists following some Deficiency:1. the queuing delay of queue and scheduler latency add the round-trip delay of packet.Especially queue it is larger when, Caused delay will increase, and the Business Stream of high real-time requires may be impacted;2. packet loss can cause the data of TCP flow Bag retransmits, and wastes network bandwidth, reduces the utilization rate of network bandwidth.Simultaneously because the congestion control mechanism of Transmission Control Protocol can be to losing Bag takes the measure for suppressing transmission rate, and TCP transmission rates can independently decline, cause the occupied bandwidth that UDP flow is excessive, cause The unjustness of TCP flow and UDP flow;3. the setting underaction of flow control policy, the tactful index relied on is not comprehensive enough. Most of flow control system cannot distinguish between the agreement in different levels, and the type of service that can not be especially directed to application layer is carried out Distinguish;4. the flow control between being difficult to ensure that Business Stream is separate, it is impossible to uses independent flow for single Business Stream Control structure
The content of the invention
In order to solve the above technical problems, the present invention provides a kind of network TCP flow amount control method.
The technical solution adopted by the present invention is:A kind of network TCP flow amount control method, comprises the following steps:
Step 1:For speed pipeline, rate-valve value is set;
Step 2:When actual speed rate is more than reservation rate-valve value, reduce iSCSI receiving end window;When actual speed rate is less than reservation During rate-valve value, iSCSI receiving end window is stepped up;
Step 3:To being taken respectively in various degree beyond speed low threshold and beyond two kinds of situations of crossing the border of speed high threshold Control dynamics;
Step 4:Change iSCSI receiving end window value.
Preferably, step 3 control method is when actual speed rate exceeds speed high threshold, and iSCSI receiving end window is down at once One element length, when actual speed rate is less than speed low threshold, iSCSI receiving end window increases an element length.
Concrete operation step is:
A is that speed pipeline sets rate-valve value;
B sets speed high threshold thresholdhig and speed low threshold thresholdlow;
C, which intercepts and captures Business Stream receiving terminal and returned, confirms bag, obtains its iSCSI receiving end window value size;
The return that D intercepts and captures according to nearest 1s confirms that bag iSCSI receiving end window value size calculates average received end window size,
As the unit length of modification iSCSI receiving end window, hereinafter referred to as unit length;
E calculates current business flow through-rate;
Whether F present rates exceed speed high threshold thresholdhigh, if it is, redirecting H;
Whether G present rates are less than speed low threshold thresholdlow, if it is, redirecting L;Otherwise I is redirected;
H intends modification iSCSI receiving end window size and is decreased to an element length, redirects J;
I, which intends modification iSCSI receiving end window size, increases an element length;Redirect J;
J judges whether receiving terminal window size is more than actual iSCSI receiving end window value size after intending modification, if it is lower,
L algorithms are redirected to terminate;
K changes iSCSI receiving end window value;
L modifications terminate;
The present invention has the advantages and positive effects of:In flow control process, the present invention confirms bag by changing ACK Middle iSCSI receiving end window value size, reach transmitting terminal from the purpose of its transmission rate of main regulation, it is achieved thereby that the flow to TCP flow Control.And iSCSI receiving end window process is changed in dynamic, estimates transmitting terminal TCP message length real-time sampling current TCP reports Literary segment length, and in this, as the least unit of modification iSCSI receiving end window value, to improve Control granularity.Due to flow control process In not packet discard, preferably overcome data packet retransmission problem, improve the utilization rate of network bandwidth.
Brief description of the drawings
Fig. 1 is the flow chart of the present invention.
Embodiment
One embodiment of the present of invention is explained below in conjunction with the accompanying drawings.
It is as shown in figure 1, of the invention:When actual speed rate is more than reservation rate-valve value, reduce iSCSI receiving end window;When actual speed When rate is less than reservation rate-valve value, iSCSI receiving end window is stepped up.Meanwhile to beyond speed low threshold and beyond speed high threshold Two kinds of situations of crossing the border take different degrees of control dynamics respectively, when actual speed rate exceeds speed high threshold, receive end window An element length is down on a kind of horse raised north of the Grean Wall, it is therefore an objective to ensure that actual speed rate can not exceed reservation rate-valve value, when actual speed rate is less than During speed low threshold, iSCSI receiving end window increases an element length, progressively recovers transmission rate.In the effect of this controlling mechanism Under, actual speed is controlled in two thresholdings of speed low threshold thresholdlow and speed high threshold thresholdhigh Between value.Processing delay is reduced by way of hardware-accelerated processing, TCP unjustnesses are overcome by way of taking not packet loss Problem and TCP data bag retransmit problem, and provide flexible policy development mode, in addition devise speed control pipe Channel array structure ensures that the speed control of each TCP traffic stream is separate.
Step is as follows:
(1) will be encapsulated after packet capture according to user-defined format:In the relevant letter of the original head encapsulated data packet of packet Breath, timestamp and the hash value calculated according to five-tuple, the packet for encapsulating completion will be fed into user's space and supply user program Parsed;
(2) according to user configuration, a five-tuple rule base is built:The five-tuple rule base mainly includes source IP, purpose IP, source port, destination interface and agreement, while also need to make a distinction entry and exit flow, increase to entering physical port Matching, flow control policy number is obtained after the match is successful;
(3) according to user configuration, flow table is built:Flow table indexes according to Business Stream five-tuple hash value, in list item in write-in Hold the flow control policy number for user configuration;
(4) flow control policy number that comparison step (2) and step (3) respectively obtain, if the two, selection step Suddenly the flow control policy number obtained by (3) is used as final result;
(5) according to obtained flow control policy number, system by Business Stream be sent into corresponding to speed control pipeline, use simultaneously Speed pipeline is configured to the rate-valve value of agreement by family, so as to ensure the through-rate of Business Stream not over this speed threshold Value.
Concrete operation step is:
A is that speed pipeline sets rate-valve value;
B sets speed high threshold thresholdhig and speed low threshold thresholdlow;
C, which intercepts and captures Business Stream receiving terminal and returned, confirms bag, obtains its iSCSI receiving end window value size;
The return that D intercepts and captures according to nearest 1s confirms that bag iSCSI receiving end window value size calculates average received end window size,
As the unit length of modification iSCSI receiving end window, hereinafter referred to as unit length;
E calculates current business flow through-rate;
Whether F present rates exceed speed high threshold thresholdhigh, if it is, redirecting H;
Whether G present rates are less than speed low threshold thresholdlow, if it is, redirecting L;Otherwise I is redirected;
H intends modification iSCSI receiving end window size and is decreased to an element length, redirects J;
I, which intends modification iSCSI receiving end window size, increases an element length;Redirect J;
J judges whether receiving terminal window size is more than actual iSCSI receiving end window value size after intending modification, if it is lower,
L algorithms are redirected to terminate;
K changes iSCSI receiving end window value;
L modifications terminate;
One embodiment of the present of invention is described in detail above, but the content is only the preferable implementation of the present invention Example, it is impossible to be considered as the practical range for limiting the present invention.All equivalent changes made according to the present patent application scope and improvement Deng, all should still belong to the present invention patent covering scope within.

Claims (3)

  1. A kind of 1. network TCP flow amount control method, it is characterised in that:Comprise the following steps:
    Step 1:For speed pipeline, rate-valve value is set;
    Step 2:When actual speed rate is more than reservation rate-valve value, reduce iSCSI receiving end window;When actual speed rate is less than reservation speed During threshold value, iSCSI receiving end window is stepped up;
    Step 3:To taking different degrees of control respectively beyond speed low threshold and beyond two kinds of situations of crossing the border of speed high threshold Dynamics processed;
    Step 4:Change iSCSI receiving end window value.
  2. A kind of 2. network TCP flow amount control method according to claim 1, it is characterised in that:The step 3 controlling party Method is when actual speed rate exceeds speed high threshold, and iSCSI receiving end window is down to an element length at once, when actual speed rate is less than During speed low threshold, iSCSI receiving end window increases an element length.
  3. A kind of 3. network TCP flow amount control method according to claim 1 or 2, it is characterised in that:Concrete operation step For:
    A is that speed pipeline sets rate-valve value;
    B sets speed high threshold thresholdhig and speed low threshold thresholdlow;
    C, which intercepts and captures Business Stream receiving terminal and returned, confirms bag, obtains its iSCSI receiving end window value size;
    The return that D is intercepted and captured according to nearest 1s confirms that bag iSCSI receiving end window value size calculates average received end window size, as repairing Relocate the receiving the unit length of end window mouth, hereinafter referred to as unit length;
    E calculates current business flow through-rate;
    Whether F present rates exceed speed high threshold thresholdhigh, if it is, redirecting H;
    Whether G present rates are less than speed low threshold thresholdlow, if it is, redirecting L;Otherwise I is redirected;
    H intends modification iSCSI receiving end window size and is decreased to an element length, redirects J;
    I, which intends modification iSCSI receiving end window size, increases an element length;Redirect J;
    J judges whether receiving terminal window size is more than actual iSCSI receiving end window value size after intending modification, if it is lower, redirecting L calculations Method terminates;
    K changes iSCSI receiving end window value;
    L modifications terminate.
CN201710693366.5A 2017-08-14 2017-08-14 A kind of network TCP flow amount control method Pending CN107370687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710693366.5A CN107370687A (en) 2017-08-14 2017-08-14 A kind of network TCP flow amount control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710693366.5A CN107370687A (en) 2017-08-14 2017-08-14 A kind of network TCP flow amount control method

Publications (1)

Publication Number Publication Date
CN107370687A true CN107370687A (en) 2017-11-21

Family

ID=60309621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710693366.5A Pending CN107370687A (en) 2017-08-14 2017-08-14 A kind of network TCP flow amount control method

Country Status (1)

Country Link
CN (1) CN107370687A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107801215A (en) * 2017-11-22 2018-03-13 重庆邮电大学 The balanced system and method for the up TCP traffic streams of AP are realized in WLAN

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107801215A (en) * 2017-11-22 2018-03-13 重庆邮电大学 The balanced system and method for the up TCP traffic streams of AP are realized in WLAN
CN107801215B (en) * 2017-11-22 2021-02-09 重庆邮电大学 System and method for realizing AP uplink TCP service flow balance in WLAN

Similar Documents

Publication Publication Date Title
US10432556B1 (en) Enhanced audio video bridging (AVB) methods and apparatus
US9191297B2 (en) Providing feedback to media senders over real time transport protocol (RTP)
WO2018086076A1 (en) Data transmission method and apparatus
WO2022247550A1 (en) Data retransmission processing method and apparatus, computer device, and storage medium
CN101364999B (en) QoS processing method, apparatus and system based on stream
WO2020125521A1 (en) Method, apparatus and system for controlling network congestion
CN100534069C (en) Accelerating method for asymmetric and multi-concurrency network
US10637792B2 (en) Real-time analysis of quality of service for multimedia traffic in a local area network
CN103647722B (en) A kind of Link Congestion Control Method based on prestige
JP2006511140A (en) Real-time data protection in wireless networks
CN101599965B (en) Self-adaption high-speed information transmission method based on measurement
CN103346963A (en) MPTCP data scheduling method based on forecast arrival time
CN112737964B (en) Transmission control method and system integrating push-pull semantics
Zhang et al. Congestion control and packet scheduling for multipath real time video streaming
CN106789427A (en) A kind of transmission volume computational methods
CN112995048B (en) Blocking control and scheduling fusion method of data center network and terminal equipment
WO2006122501A1 (en) Method and device for shaping the service flow transmitted in network
US9942161B1 (en) Methods and systems for configuring and updating session-based quality of service for multimedia traffic in a local area network
CN103200112A (en) Computer network transmission control protocol (TCP) flow control method
CN107370687A (en) A kind of network TCP flow amount control method
CN108924063B (en) Flow distribution method for minimizing end-to-end time delay based on time delay constraint perception
Yadav et al. A review of congestion control mechanisms for wireless networks
Shiang et al. Content-aware tcp-friendly congestion control for multimedia transmission
Xiong et al. Efficient Frame Schedule Scheme for Real-time Video Transmission Across the Internet Using TCP.
Hayes et al. Impact of Flow Control on quality of service driven packet scheduling disciplines

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171121

WD01 Invention patent application deemed withdrawn after publication