Unlock instant, AI-driven research and patent intelligence for your innovation.

Speed ​​limiting method and device based on tcp connection

A technology of speed limit and token bucket algorithm, applied in the field of computer network, it can solve the problems affecting network stability, data packet discarding, disconnection, etc., and achieve the effect of improving user experience, improving user experience, and ensuring stability.

Active Publication Date: 2018-07-10
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, there is a certain blindness in the method of uniformly discarding data packets. If there are multiple TCP connections in a service, the data packets of a certain TCP connection may be discarded, causing the TCP connection to be retransmitted because the number of retransmissions exceeds the maximum number of retransmissions. Disconnected due to restrictions, affecting network stability and reducing user experience

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Speed ​​limiting method and device based on tcp connection
  • Speed ​​limiting method and device based on tcp connection
  • Speed ​​limiting method and device based on tcp connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary and are intended to explain the present invention and should not be construed as limiting the present invention.

[0015] The following describes the TCP connection-based rate limiting method and device in the embodiments of the present invention with reference to the accompanying drawings.

[0016] figure 1 It is the process flow of the speed limiting method based on TCP connection according to one embodiment of the present invention Figure 1 .

[0017] Such as figure 1 As shown, the rate limiting method based on the TCP connection may include:

[0018] S101. Determine a corresponding TCP connection through a TCP connection session hash...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a speed limiting method and a speed limiting device based on TCP (Transmission Control Protocol) connection, wherein the speed limiting method based on the TCP connection comprises the following steps: determining corresponding TCP connection through a TCP connection session hash table; judging whether a data packet passes or not in the TCP connection within a previous minimal RTO (Retransmission Time-Out) time, wherein the minimal RTO time is obtained according to a RTT (Round Trip Time); and allowing a current data packet to pass within a current minimal RTO time if not detecting that the data packet passes. According to the speed limiting method and the speed limiting device based on the TCP connection in the embodiment of the invention, the corresponding TCP connection is determined through the TCP connection session hash table; whether the data packet passes or not in the TCP connection within the previous minimal RTO time is judged; the current data packet is allowed to pass within the current minimal RTO time when the data packet pass is not detected; therefore, the disconnection problem of the TCP connection when the speed of a network is limited can be avoided; the stability of the network is ensured; and thus, user experience of users is improved.

Description

technical field [0001] The invention relates to the technical field of computer networks, in particular to a TCP connection-based rate limiting method and device. Background technique [0002] With the development of Internet technology, more and more users obtain required resources and process services through the Internet, and the resulting amount of network data is also continuously increasing. Therefore, in the case of limited bandwidth resources, it is usually necessary to limit the bandwidth rate for the network traffic of a certain service, a certain user, and a certain IP address. [0003] At present, for TCP (connection-oriented reliable transport layer protocol), the reliability of data transmission is mainly guaranteed through retransmission and confirmation mechanisms. When the total traffic of a user or service exceeds its bandwidth limit, the speed limit will be achieved by discarding data packets exceeding the bandwidth quota. For example, for a certain serv...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/801H04L29/06
CPCH04L47/10H04L69/163
Inventor 赵子毅刘晓光裴超刘涛刘宁张诚
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD