[go: up one dir, main page]

CN104065464A - A method and device for adjusting the initial window size of a TCP connection - Google Patents

A method and device for adjusting the initial window size of a TCP connection Download PDF

Info

Publication number
CN104065464A
CN104065464A CN201310084910.8A CN201310084910A CN104065464A CN 104065464 A CN104065464 A CN 104065464A CN 201310084910 A CN201310084910 A CN 201310084910A CN 104065464 A CN104065464 A CN 104065464A
Authority
CN
China
Prior art keywords
initial
tcp connection
size
window size
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310084910.8A
Other languages
Chinese (zh)
Other versions
CN104065464B (en
Inventor
陆璐
李牧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201310084910.8A priority Critical patent/CN104065464B/en
Publication of CN104065464A publication Critical patent/CN104065464A/en
Application granted granted Critical
Publication of CN104065464B publication Critical patent/CN104065464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides a method and a device used for adjusting the size of an initial window of TCP connection. According to the network bandwidth corresponding to the network access mode of a core network, the size of the initial window of TCP connection of a TCP proxy device is confirmed, so that the TCP proxy device can carry out data transmission according to the size of the initial window. For different network access modes, the size of the initial window of TCP connection of the TCP proxy device is set. The size of the initial window of TCP connection is flexibly connected. The size of the initial window of TCP connection can match the network access mode. The transmission speed and the bandwidth utilization of TCP connection are further improved.

Description

一种调整TCP连接的初始窗口大小的方法和装置A method and device for adjusting the initial window size of a TCP connection

技术领域technical field

本发明涉及通信领域,尤其涉及一种调整传输控制协议(TransmissionControl Protocol,TCP)连接的初始窗口大小的方法和装置。The present invention relates to the communication field, in particular to a method and a device for adjusting the initial window size of a Transmission Control Protocol (Transmission Control Protocol, TCP) connection.

背景技术Background technique

随着第二代移动通信(2Generation,2G)/第三代移动通信(3Generation,3G)/长期演进(Long Term Evolution,LTE)/无线局域网(Wireless Local AreaNetwork,WLAN)网络的不断发展,无线接入的带宽越来越高。随着智能终端的发展和普及,基于TCP协议的业务种类更加多样,不单纯是传统的网页浏览业务,也包含在线视频、文件下载等业务,且浏览网页的元素数目和大小都显著增大。同时,主流的浏览器支持并发TCP连接。以上因素都要求TCP连接能够提升效率。与此同时,利用TCP连接承载实时媒体穿越防火墙,对实时性有要求,因此,亟需提高TCP连接的传输速度及带宽利用率。With the continuous development of the second-generation mobile communication (2Generation, 2G)/third-generation mobile communication (3Generation, 3G)/long-term evolution (Long Term Evolution, LTE)/wireless local area network (Wireless Local Area Network, WLAN) network, wireless access The incoming bandwidth is getting higher and higher. With the development and popularization of smart terminals, the types of services based on the TCP protocol are more diverse, not only the traditional web browsing services, but also online video, file download and other services, and the number and size of browsing elements have increased significantly. At the same time, mainstream browsers support concurrent TCP connections. All of the above factors require TCP connections to improve efficiency. At the same time, using TCP connections to carry real-time media through firewalls requires real-time performance. Therefore, it is urgent to improve the transmission speed and bandwidth utilization of TCP connections.

现有方案提出,可以通过调整TCP连接的初始窗口大小,来提高TCP连接的传输速度及带宽利用率,所述初始窗口可以理解为包括初始接收窗口和初始发送窗口。目前包括以下两种调整TCP连接的初始窗口大小的方法:The existing solution proposes that the transmission speed and bandwidth utilization rate of the TCP connection can be improved by adjusting the size of the initial window of the TCP connection. The initial window can be understood as including an initial receiving window and an initial sending window. Currently, the following two methods of adjusting the initial window size of a TCP connection are included:

第一种、在服务器上调整TCP连接的初始窗口大小。The first is to adjust the initial window size of the TCP connection on the server.

在本方法中,通过因特网协议路径(ip route)的方式,在服务器(server)处添加ip route指令,修改初始发送窗口大小(initcwnd值),在三次握手连接建立后建立套接字(socket),调用metric函数即采用了新的发送窗口大小(cwnd值)。In this method, add the ip route command at the server (server) through the Internet protocol route (ip route), modify the initial sending window size (initcwnd value), and establish a socket (socket) after the three-way handshake connection is established , call the metric function to adopt the new sending window size (cwnd value).

在客户端和服务器建立TCP连接后,初始发送窗口大小=min{拥塞窗口大小,通告窗口大小}。且初始发送窗口大小一般取决于拥塞窗口大小。在本方法中,具体公式为:initcwnd=min{10*MSS,max(2*MSS,14600)}。After the client and server establish a TCP connection, the initial sending window size = min{congestion window size, notification window size}. And the size of the initial sending window generally depends on the size of the congestion window. In this method, the specific formula is: initcwnd=min{10*MSS, max(2*MSS, 14600)}.

因此,在本方法中,初始发送窗口大小根据Path MTU确定的MSS值可以增大至15KB左右,约为10个段(segments)大小。Therefore, in this method, the size of the initial sending window can be increased to about 15 KB according to the MSS value determined by the Path MTU, which is about 10 segments (segments).

第二种、在代理设备上调整TCP连接的初始窗口大小。The second is to adjust the initial window size of the TCP connection on the proxy device.

本方法在代理设备上实现。代理设备部署在客户端(Client)及Server之间,与Client和Server分别维护两段TCP连接。在代理设备处添加ip route指令,修改初始发送窗口大小(initcwnd值)及初始接收窗口大小(initrwnd值),在三次握手连接建立后建立socket,调用metric函数即采用了新的发送窗口大小(cwnd值)和接收窗口大小(rwnd值)。This method is implemented on the agent device. The proxy device is deployed between the client (Client) and the server, and maintains two TCP connections with the client and the server respectively. Add the ip route command at the proxy device, modify the initial sending window size (initcwnd value) and the initial receiving window size (initrwnd value), establish the socket after the three-way handshake connection is established, and call the metric function to adopt the new sending window size (cwnd value) and receive window size (rwnd value).

在本方法中,初始窗口大小(initcwnd值和initrwnd值)根据Path MTU确定的MSS值增大,具体增大的数值可以自行设定。In this method, the initial window size (initcwnd value and initrwnd value) increases according to the MSS value determined by the Path MTU, and the specific increased value can be set by yourself.

基于上述描述,第一种方法在服务器侧实现,修改服务器的初始发送窗口大小,因此,仅适用于提高下行TCP连接(从服务器到客户端的TCP连接)的传输速度及带宽利用率,进行下行加速。Based on the above description, the first method is implemented on the server side and modifies the initial sending window size of the server. Therefore, it is only suitable for improving the transmission speed and bandwidth utilization of the downlink TCP connection (the TCP connection from the server to the client) for downlink acceleration. .

第二种方法在客户端与服务器中间的代理设备上实现,修改代理设备的初始发送窗口及初始接收窗口,不仅可以进行下行加速,也可以进行上行加速。但在第二种方法中,对所有网络接入方式均采用固定的初始发送窗口或初始接收窗口大小,因此,对TCP连接的传输速度及带宽利用率的提高程度仍有限,无法有效提高TCP连接的传输速度及带宽利用率。The second method is implemented on the proxy device between the client and the server. Modifying the initial sending window and initial receiving window of the proxy device can not only perform downlink acceleration, but also uplink acceleration. However, in the second method, a fixed initial sending window or initial receiving window size is used for all network access methods. Therefore, the improvement of the transmission speed and bandwidth utilization of the TCP connection is still limited, and the TCP connection cannot be effectively improved. transmission speed and bandwidth utilization.

发明内容Contents of the invention

本发明实施例提供一种调整TCP连接的初始窗口大小的方法和装置,用于进一步提高TCP连接的传输速度及带宽利用率。Embodiments of the present invention provide a method and device for adjusting the initial window size of a TCP connection, so as to further improve the transmission speed and bandwidth utilization rate of the TCP connection.

一种调整传输控制协议TCP连接的初始窗口大小的方法,所述方法包括:A method for adjusting the initial window size of a Transmission Control Protocol TCP connection, the method comprising:

确定核心网的网络接入方式;Determine the network access mode of the core network;

确定所述核心网的网络接入方式对应的网络带宽;determining the network bandwidth corresponding to the network access mode of the core network;

根据所述网络带宽确定TCP连接的初始窗口大小,其中,网络带宽越大,确定出的初始窗口越大,TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。Determine the initial window size of the TCP connection according to the network bandwidth, wherein the larger the network bandwidth, the larger the determined initial window, and the TCP proxy device performs data transmission according to the initial window size after establishing the TCP connection.

一种调整传输控制协议TCP连接的初始窗口大小的装置,所述装置包括:A device for adjusting the initial window size of a Transmission Control Protocol TCP connection, the device comprising:

第一确定模块,用于确定核心网的网络接入方式;The first determination module is used to determine the network access mode of the core network;

第二确定模块,用于确定所述核心网的网络接入方式对应的网络带宽;A second determining module, configured to determine the network bandwidth corresponding to the network access mode of the core network;

第三确定模块,用于根据所述网络带宽确定TCP连接的初始窗口大小,其中,网络带宽越大,确定出的初始窗口越大,TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。The third determining module is used to determine the initial window size of the TCP connection according to the network bandwidth, wherein the larger the network bandwidth, the larger the determined initial window, and the TCP proxy device performs data according to the initial window size after establishing the TCP connection transmission.

根据本发明实施例提供的方案,根据核心网的网络接入方式对应的网络带宽,来确定TCP代理设备的TCP连接的初始窗口大小,使得TCP代理设备可以根据该初始窗口大小实现数据传输。从而实现针对不同的网络接入方式,来设置TCP代理设备的TCP连接的初始窗口大小,实现TCP连接的初始窗口大小的灵活设置,使得TCP连接的初始窗口大小可以与网络接入方式相匹配,进一步提高TCP连接的传输速度及带宽利用率。According to the scheme provided by the embodiment of the present invention, the initial window size of the TCP connection of the TCP proxy device is determined according to the network bandwidth corresponding to the network access mode of the core network, so that the TCP proxy device can realize data transmission according to the initial window size. In this way, the initial window size of the TCP connection of the TCP proxy device can be set for different network access methods, and the flexible setting of the initial window size of the TCP connection can be realized, so that the initial window size of the TCP connection can match the network access method. Further improve the transmission speed and bandwidth utilization of TCP connections.

附图说明Description of drawings

图1为本发明实施例一提供的调整TCP连接的初始窗口大小的方法的步骤流程图;FIG. 1 is a flow chart of the steps of the method for adjusting the initial window size of a TCP connection provided by Embodiment 1 of the present invention;

图2为本发明实施例二提供的调整TCP连接的初始窗口大小的装置的结构示意图;2 is a schematic structural diagram of a device for adjusting the initial window size of a TCP connection provided by Embodiment 2 of the present invention;

图3为本发明实施例三提供的调整TCP连接的初始窗口大小的系统的结构示意图;3 is a schematic structural diagram of a system for adjusting the initial window size of a TCP connection provided by Embodiment 3 of the present invention;

图4为本发明实施例四提供的调整TCP连接的初始窗口大小的系统的结构示意图;4 is a schematic structural diagram of a system for adjusting the initial window size of a TCP connection provided by Embodiment 4 of the present invention;

图5为本发明实施例五提供的调整TCP连接的初始窗口大小的系统的结构示意图;5 is a schematic structural diagram of a system for adjusting the initial window size of a TCP connection provided by Embodiment 5 of the present invention;

图6为本发明实施例六提供的调整TCP连接的初始窗口大小的系统的结构示意图。FIG. 6 is a schematic structural diagram of a system for adjusting the initial window size of a TCP connection provided by Embodiment 6 of the present invention.

具体实施方式Detailed ways

针对现有技术中,无法有效提高TCP连接的传输速度及带宽利用率的问题,本发明实施例提出,可以根据核心网的网络接入方式对应的网络带宽,来确定初始窗口大小,从而针对不同网络带宽的网络接入方式,分别确定初始窗口大小,实现初始窗口大小与网络带宽的匹配,达到有效提高TCP连接的传输速度及带宽利用率的效果。较优的,可以利用通用分组无线服务隧道协议(GRRS Turning Protocol,GTP)消息中携带的无线接入类型(Radio AccessType,RAT)参数,来确定网络接入方式。In view of the problem that the transmission speed and bandwidth utilization of TCP connections cannot be effectively improved in the prior art, the embodiment of the present invention proposes that the initial window size can be determined according to the network bandwidth corresponding to the network access mode of the core network, so as to target different The network access mode of the network bandwidth determines the initial window size respectively, realizes the matching between the initial window size and the network bandwidth, and achieves the effect of effectively improving the transmission speed of the TCP connection and the utilization rate of the bandwidth. Preferably, a radio access type (Radio AccessType, RAT) parameter carried in a General Packet Radio Service Tunneling Protocol (GRRS Turning Protocol, GTP) message can be used to determine the network access mode.

进一步的,本发明实施例还提出,可以结合网络带宽和业务类型来确定初始窗口大小。Furthermore, the embodiment of the present invention also proposes that the initial window size may be determined in combination with network bandwidth and service type.

进一步的,本发明实施例还提出,可以结合网络带宽和突发丢包的概率来确定初始窗口大小。Furthermore, the embodiment of the present invention also proposes that the initial window size may be determined in combination with the network bandwidth and the probability of burst packet loss.

其中,本发明各实施例涉及的网络接入方式包括但不限于包括2G接入方式、3G接入方式、LTE接入方式和WLAN接入方式。Wherein, the network access methods involved in various embodiments of the present invention include but are not limited to include 2G access methods, 3G access methods, LTE access methods and WLAN access methods.

以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明。并且在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention. And in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

实施例一、Embodiment one,

以利用GTP消息中携带的RAT参数,来确定网络接入方式为例,本发明实施例一提供一种调整TCP连接的初始窗口大小的方法,该方法的步骤流程图可以如图1所示,包括:Taking the use of the RAT parameters carried in the GTP message to determine the network access mode as an example, Embodiment 1 of the present invention provides a method for adjusting the initial window size of a TCP connection. The flow chart of the steps of the method can be shown in Figure 1. include:

步骤101、确定RAT参数的参数值。Step 101, determine the parameter value of the RAT parameter.

由于GTP消息中携带的RAT参数表示网络接入方式,例如,RAT参数值与网络接入方式的对应关系可以如表1所示。因此在本实施例中,可以通过RAT参数来确定网络接入方式。Since the RAT parameter carried in the GTP message indicates the network access mode, for example, the corresponding relationship between the RAT parameter value and the network access mode may be shown in Table 1. Therefore, in this embodiment, the network access mode can be determined through the RAT parameter.

网络接入方式Network access method RAT参数值(十进制)RAT parameter value (decimal) <reserved><reserved> 00 UTRANUTRAN 11 GERANGERAN 22 WLANWLAN 33 GANGAN 44 HSPA EvolutionHSPA Evolution 55 EUTRANEUTRAN 66 Virtualvirtual 77 <sare><sare> 8-2558-255

表1Table 1

在本步骤中,可以确定核心网设备之间传输的GTP消息中携带的RAT参数的参数值。In this step, the parameter value of the RAT parameter carried in the GTP message transmitted between the core network devices may be determined.

步骤102、确定核心网的网络接入方式。Step 102, determine the network access mode of the core network.

在本步骤中,可以将所述RAT参数的参数值对应的网络接入方式,确定为核心网的网络接入方式。In this step, the network access mode corresponding to the parameter value of the RAT parameter may be determined as the network access mode of the core network.

当然,在本步骤之前,已经预先设置了RAT参数的各种参数值与网络接入方式的对应关系。具体的,在本步骤中,可以根据预先设置的RAT参数的各种参数值与网络接入方式的对应关系,确定步骤101中确定出的参数值对应的网络接入方式。Of course, prior to this step, the correspondence between various parameter values of the RAT parameters and network access modes has been preset. Specifically, in this step, the network access mode corresponding to the parameter value determined in step 101 may be determined according to the correspondence between various parameter values of the preset RAT parameters and the network access mode.

步骤103、确定网络带宽。Step 103, determine the network bandwidth.

在本步骤中,可以确定所述核心网的网络接入方式对应的网络带宽。具体的,在本步骤中,可以根据预先保存的各种网络接入方式与网络带宽的对应关系,确定所述核心网的网络接入方式对应的网络带宽。In this step, the network bandwidth corresponding to the network access mode of the core network may be determined. Specifically, in this step, the network bandwidth corresponding to the network access mode of the core network may be determined according to the pre-stored correspondence between various network access modes and network bandwidth.

例如,本发明各实施例涉及的网络接入方式中,部分网络接入方式下的网络带宽(数据速率)通常如下,可以理解为预先保存的一种网络接入方式对应的网络带宽,为该网络接入方式对应的实际网络带宽:For example, in the network access methods involved in various embodiments of the present invention, the network bandwidth (data rate) in some network access methods is usually as follows, which can be understood as the network bandwidth corresponding to a pre-saved network access method, which is The actual network bandwidth corresponding to the network access method:

(1)、2G接入方式,其中包括但不限于包括:(1) 2G access methods, including but not limited to:

通用分组无线服务(General Packect Radio Service,GPRS)接入方式,理论数据速率170Kbps,实际数据速率通常为30-70Kbps;General Packet Radio Service (GPRS) access method, the theoretical data rate is 170Kbps, and the actual data rate is usually 30-70Kbps;

增强型数据速率全球移动通信系统演进(Enhanced Data Rate for GSMEvolution,EDGE)接入方式,理论数据速率384Kbps。Enhanced Data Rate for GSMEvolution (EDGE) access mode, theoretical data rate 384Kbps.

(2)、3G接入方式,其中包括但不限于包括:(2) 3G access methods, including but not limited to:

时分同步码分多址下一步演进(TD-HSDPA)接入方式,理论数据速率下行2.8Mbps、上行128Kbps。Time Division Synchronous Code Division Multiple Access Next Evolution (TD-HSDPA) access mode, theoretical data rate downlink 2.8Mbps, uplink 128Kbps.

(3)、LTE接入方式,理论数据速率下行100Mbps、上行50Mbps。(3) LTE access mode, the theoretical data rate is 100Mbps downlink and 50Mbps uplink.

(4)、WLAN接入方式,其中包括但不限于包括:(4) WLAN access methods, including but not limited to:

802.11g标准下的WLAN接入方式,理论数据速率54Mbps,实际一般在16~30Mbps之间;The WLAN access method under the 802.11g standard, the theoretical data rate is 54Mbps, and the actual data rate is generally between 16 and 30Mbps;

802.11g+标准下的WLAN接入方式,理论数据速率108Mbps,实际一般在24~50Mbps。The WLAN access method under the 802.11g+ standard has a theoretical data rate of 108 Mbps, but the actual data rate is generally 24 to 50 Mbps.

在本实施例中,可以针对2G/3G接入方式、LTE接入方式、WLAN接入方式层面来分别设置初始窗口。即,可以根据网络接入方式为2G/3G接入方式、LTE接入方式或WLAN接入方式,来确定初始窗口的大小。In this embodiment, initial windows may be set respectively for the 2G/3G access mode, the LTE access mode, and the WLAN access mode level. That is, the size of the initial window may be determined according to whether the network access mode is a 2G/3G access mode, an LTE access mode or a WLAN access mode.

步骤104、确定初始窗口大小。Step 104, determine the initial window size.

在本步骤中,可以根据步骤103确定出的网络带宽,确定TCP代理设备的TCP连接的初始窗口大小,其中,所述TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。In this step, the initial window size of the TCP connection of the TCP proxy device may be determined according to the network bandwidth determined in step 103, wherein the TCP proxy device performs data transmission according to the initial window size after establishing the TCP connection.

具体的,可以按照针对越高的网络带宽,确定越大的初始窗口的原则,确定TCP代理设备的TCP连接的初始窗口大小。Specifically, the initial window size of the TCP connection of the TCP proxy device may be determined according to the principle of determining a larger initial window for a higher network bandwidth.

例如,可以对于较高的网络带宽,设置较大的TCP连接的初始窗口,如10个segments;对于较低的网络带宽,设置较小的TCP连接的初始窗口,如6个segments。For example, for a higher network bandwidth, a larger initial window of the TCP connection, such as 10 segments, may be set; for a lower network bandwidth, a smaller initial window of the TCP connection, such as 6 segments, may be set.

进一步的,在本步骤中,可以确定TCP代理设备的下行初始发送窗口大小、下行初始接收窗口大小、上行初始发送窗口大小和上行初始接收窗口大小。具体的,可以通过以下方式实现:Further, in this step, the downlink initial sending window size, the downlink initial receiving window size, the uplink initial sending window size and the uplink initial receiving window size of the TCP proxy device can be determined. Specifically, it can be achieved in the following ways:

根据步骤103确定出的网络带宽,确定TCP代理设备的下行初始发送窗口大小,所述下行初始发送窗口表示用于实现从服务器到客户端的TCP连接的初始发送窗口大小。According to the network bandwidth determined in step 103, the size of the downlink initial sending window of the TCP proxy device is determined, and the downlink initial sending window indicates the size of the initial sending window used to realize the TCP connection from the server to the client.

例如,对于对应高带宽的网络接入方式,可设置较大的下行初始发送窗口,如对于LTE接入方式、WLAN接入方式,设置下行初始发送窗口为10个segments。对于对应低带宽的网络接入方式,可设置较小的下行初始发送窗口,如对于2G/3G接入方式,设置下行初始发送窗口为4~6个segments。For example, for a network access mode corresponding to high bandwidth, a larger downlink initial sending window may be set, for example, for an LTE access mode and a WLAN access mode, the downlink initial sending window may be set to 10 segments. For the network access mode corresponding to low bandwidth, a smaller downlink initial sending window can be set, for example, for the 2G/3G access mode, the downlink initial sending window is set to 4 to 6 segments.

根据步骤103确定出的网络带宽,以及TCP代理设备缓存大小,确定所述TCP代理设备的下行初始接收窗口大小,所述下行初始接收窗口表示用于实现从服务器到客户端的TCP连接的初始接收窗口大小。According to the network bandwidth determined in step 103, and the cache size of the TCP proxy device, determine the downlink initial receiving window size of the TCP proxy device, and the downlink initial receiving window represents an initial receiving window for realizing a TCP connection from the server to the client size.

其中,可以设定下行初始接收窗口大小的最大值,如将该最大值设置为64KB。Wherein, the maximum value of the downlink initial receiving window size may be set, for example, the maximum value is set to 64KB.

根据步骤103确定出的网络带宽,以及用户代理(User Agent,UA)操作系统信息,确定TCP代理设备的上行初始发送窗口大小,所述上行初始发送窗口表示用于实现从客户端到服务器的TCP连接的初始发送窗口大小。当然,所述UA操作系统信息是在确定所述上行初始发送窗口之前,由客户端上报的。According to the network bandwidth determined in step 103, and the operating system information of the user agent (User Agent, UA), determine the size of the uplink initial sending window of the TCP proxy device, and the uplink initial sending window indicates that it is used to realize the TCP connection from the client to the server. The initial send window size for the connection. Of course, the UA operating system information is reported by the client before the initial uplink sending window is determined.

例如,在网络带宽较大,且根据UA操作系统信息确定TCP连接支持较大的发送窗口时,可以设置第一尺寸大小的上行初始发送窗口。对于网络带宽较大,但根据UA操作系统信息确定TCP连接支持较小的发送窗口时,可以设置第二尺寸大小的上行初始发送窗口,其中第二尺寸大小小于第一尺寸大小。For example, when the network bandwidth is large and it is determined according to the information of the UA operating system that the TCP connection supports a relatively large sending window, an uplink initial sending window of the first size may be set. When the network bandwidth is relatively large, but it is determined according to the information of the UA operating system that the TCP connection supports a smaller sending window, an uplink initial sending window of a second size may be set, wherein the second size is smaller than the first size.

同样,在网络带宽较小,但根据UA操作系统信息确定TCP连接支持较大的发送窗口时,可以设置第三尺寸大小的上行初始发送窗口。在网络带宽较小,且根据UA操作系统信息确定TCP连接支持较小的发送窗口时,可以设置第四尺寸大小的上行初始发送窗口,其中第四尺寸大小小于第三尺寸大小。Similarly, when the network bandwidth is small, but it is determined according to the information of the UA operating system that the TCP connection supports a larger sending window, a third size of the uplink initial sending window may be set. When the network bandwidth is small, and it is determined according to the information of the UA operating system that the TCP connection supports a smaller sending window, an uplink initial sending window of a fourth size may be set, wherein the fourth size is smaller than the third size.

根据步骤103确定出的网络带宽,以及TCP代理设备缓存大小,确定所述TCP代理设备的上行初始接收窗口大小,所述上行初始接收窗口表示用于实现从客户端到服务器的TCP连接的初始接收窗口大小。According to the network bandwidth determined in step 103, and the cache size of the TCP proxy device, determine the size of the uplink initial receiving window of the TCP proxy device, and the uplink initial receiving window represents the initial reception for realizing the TCP connection from the client to the server window size.

其中,可以设定上行初始接收窗口大小的最大值,如将该最大值设置为64KB。Wherein, the maximum value of the uplink initial receiving window size may be set, for example, the maximum value is set to 64KB.

在本步骤中,不限于仅根据网络带宽来确定TCP代理设备的TCP连接的初始窗口大小。In this step, it is not limited to determine the initial window size of the TCP connection of the TCP proxy device only according to the network bandwidth.

更优的,在核心网包括的网元具有七层深层包检测(Deep PacketInspection,DPI)功能时,可以根据步骤103确定出网络带宽,以及TCP连接承载业务的类型,如FTP下载业务类型、网页浏览业务类型、在线视频业务类型等,确定TCP代理设备的TCP连接的初始窗口大小。More preferably, when the network elements included in the core network have a seven-layer Deep Packet Inspection (Deep PacketInspection, DPI) function, the network bandwidth and the type of service carried by the TCP connection can be determined according to step 103, such as FTP download service type, web page Browse the business type, online video business type, etc., and determine the initial window size of the TCP connection of the TCP proxy device.

例如,可以针对指定的业务类型,增大仅根据步骤103确定出网络带宽,确定出的TCP代理设备的TCP连接的初始窗口大小,如针对移动公司自有业务,增大仅根据步骤103确定出网络带宽,确定出的TCP代理设备的TCP连接的初始窗口大小至10个segments。For example, it is possible to increase the initial window size of the TCP connection of the TCP proxy device determined only according to step 103 for a specified service type, such as for the mobile company's own business, increase only determined according to step 103 Network bandwidth, the initial window size of the TCP connection of the determined TCP proxy device is up to 10 segments.

又如,可以为业务设置优先级,如根据用户访问量设置,将业务的优先级设置为高、中、低三类。可以针对高优先级的业务,增大仅根据步骤103确定出网络带宽,确定出的TCP代理设备的TCP连接的初始窗口大小,如增大至10个segments。针对中优先级的业务,增大仅根据步骤103确定出网络带宽,确定出的TCP代理设备的TCP连接的初始窗口大小,如增大至6个segments。针对低优先级的业务,保持仅根据步骤103确定出网络带宽,确定出的TCP代理设备的TCP连接的初始窗口大小不变。As another example, priority can be set for services, such as setting the priority of services as high, medium, and low according to user visits. For high-priority services, the initial window size of the TCP connection of the TCP proxy device determined only according to the network bandwidth determined in step 103 can be increased, for example, to 10 segments. For services with medium priority, increase the initial window size of the TCP connection of the TCP proxy device determined only according to the network bandwidth determined in step 103, for example, to 6 segments. For low-priority services, keep only the network bandwidth determined according to step 103, and the determined initial window size of the TCP connection of the TCP proxy device remains unchanged.

更优的,还可以根据步骤103确定出网络带宽,以及当前网络环境下发生突发丢包的概率,确定TCP代理设备的TCP连接的初始窗口大小。More preferably, the initial window size of the TCP connection of the TCP proxy device can be determined according to the network bandwidth determined in step 103 and the probability of burst packet loss under the current network environment.

例如,在当前网络环境下发生突发丢包的概率大于设定值时,增大仅根据步骤103确定出网络带宽,确定出的TCP代理设备的TCP连接的初始窗口大小,如,增大至10个segments。For example, when the probability of burst packet loss in the current network environment is greater than the set value, increase only the network bandwidth determined according to step 103, and determine the initial window size of the TCP connection of the TCP proxy device, such as, increase to 10 segments.

需要说明的是,本实施例各步骤的执行主体可以是TCP代理设备,也可以是独立于TCP代理设备的网元。It should be noted that the execution subject of each step in this embodiment may be a TCP proxy device, or may be a network element independent of the TCP proxy device.

若各步骤的执行主体是TCP代理设备,则TCP代理设备可以直接根据确定出的初始窗口大小进行TCP连接。且TCP代理设备可以直接获得自身的缓存大小。TCP代理设备可以部署在核心网设备上,较优的,可以部署在可以获得携带RAT参数的GTP消息的核心网设备上,从而可以更快地获得RAT参数,从而更快地确定初始窗口大小。If the execution subject of each step is a TCP proxy device, the TCP proxy device can directly perform a TCP connection according to the determined initial window size. In addition, the TCP proxy device can directly obtain its own cache size. The TCP proxy device can be deployed on the core network device, preferably, it can be deployed on the core network device that can obtain the GTP message carrying the RAT parameter, so that the RAT parameter can be obtained faster, thereby determining the initial window size faster.

若各步骤的执行主体是独立于TCP代理设备的网元,则该网元可以将确定出的初始窗口大小发送给TCP代理设备,TCP代理设备可以根据接收到的初始窗口大小进行TCP连接。且该网元获得的TCP代理设备缓存大小可以是TCP代理设备发送的。If the execution subject of each step is a network element independent of the TCP proxy device, the network element may send the determined initial window size to the TCP proxy device, and the TCP proxy device may perform a TCP connection according to the received initial window size. In addition, the buffer size of the TCP proxy device obtained by the network element may be sent by the TCP proxy device.

与实施例一基于同一发明构思,提供以下的装置。Based on the same inventive concept as the first embodiment, the following devices are provided.

实施例二、Embodiment two,

本发明实施例二提供一种调整TCP连接的初始窗口大小的装置,该装置可以集成在TCP代理设备,亦可以集成在独立于TCP代理设备的网元,该装置的结构示意图可以如图2所示,包括:Embodiment 2 of the present invention provides a device for adjusting the initial window size of a TCP connection. The device can be integrated in a TCP proxy device, or can be integrated in a network element independent of the TCP proxy device. The structural diagram of the device can be shown in FIG. 2 display, including:

第一确定模块11用于确定核心网的网络接入方式;第二确定模块12用于确定所述核心网的网络接入方式对应的网络带宽;第三确定模块13用于根据所述网络带宽确定TCP连接的初始窗口大小,其中,网络带宽越大,确定出的初始窗口越大,TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。The first determination module 11 is used to determine the network access mode of the core network; the second determination module 12 is used to determine the network bandwidth corresponding to the network access mode of the core network; the third determination module 13 is used to determine the network bandwidth according to the network bandwidth The initial window size of the TCP connection is determined, wherein the larger the network bandwidth is, the larger the determined initial window is, and the TCP proxy device performs data transmission according to the initial window size after establishing the TCP connection.

所述第一确定模块11具体用于确定核心网设备之间传输的通用分组无线服务隧道协议GTP消息中携带的无线接入类型RAT参数的参数值;将所述RAT参数的参数值对应的网络接入方式,确定为核心网的网络接入方式。The first determination module 11 is specifically configured to determine the parameter value of the wireless access type RAT parameter carried in the General Packet Radio Service Tunneling Protocol GTP message transmitted between the core network equipment; the network corresponding to the parameter value of the RAT parameter The access mode is determined as the network access mode of the core network.

所述第三确定模块13具体用于根据所述网络带宽,确定下行初始发送窗口大小,所述下行初始发送窗口表示用于实现从服务器到客户端的TCP连接的初始发送窗口大小。The third determining module 13 is specifically configured to determine the size of the downlink initial sending window according to the network bandwidth, and the downlink initial sending window indicates the size of the initial sending window used to realize the TCP connection from the server to the client.

所述第三确定模块13具体用于根据所述网络带宽,以及TCP代理设备缓存大小,确定下行初始接收窗口大小,所述下行初始接收窗口表示用于实现从服务器到客户端的TCP连接的初始接收窗口大小。The third determining module 13 is specifically configured to determine the downlink initial receiving window size according to the network bandwidth and the cache size of the TCP proxy device, and the downlink initial receiving window represents an initial receiving window for realizing a TCP connection from the server to the client. window size.

所述装置还包括接收模块14:The device also includes a receiving module 14:

所述接收模块14用于接收客户端上报的用户代理UA操作系统信息;The receiving module 14 is used to receive the user agent UA operating system information reported by the client;

所述第三确定模块13具体用于根据所述网络带宽,以及所述UA操作系统信息,确定上行初始发送窗口大小,所述上行初始发送窗口表示用于实现从客户端到服务器的TCP连接的初始发送窗口大小。The third determination module 13 is specifically configured to determine the size of the uplink initial sending window according to the network bandwidth and the UA operating system information, and the uplink initial sending window indicates the size of the TCP connection used to realize the TCP connection from the client to the server. Initial send window size.

所述第三确定模块13具体用于根据所述网络带宽,以及TCP代理设备缓存大小,确定所述上行初始接收窗口大小,所述上行初始接收窗口表示用于实现从客户端到服务器的TCP连接的初始接收窗口大小。The third determining module 13 is specifically configured to determine the size of the uplink initial receiving window according to the network bandwidth and the buffer size of the TCP proxy device, and the uplink initial receiving window indicates that it is used to realize the TCP connection from the client to the server The initial receive window size for .

所述第三确定模块13具体用于根据所述网络带宽,以及TCP连接承载业务的类型,确定TCP连接的初始窗口大小。The third determination module 13 is specifically configured to determine the initial window size of the TCP connection according to the network bandwidth and the type of service carried by the TCP connection.

所述第三确定模块13具体用于根据所述网络带宽,以及当前网络环境下发生突发丢包的概率,确定TCP连接的初始窗口大小。The third determination module 13 is specifically configured to determine the initial window size of the TCP connection according to the network bandwidth and the probability of burst packet loss under the current network environment.

与实施例一、二基于同一发明构思,提供以下的系统。Based on the same inventive concept as Embodiments 1 and 2, the following systems are provided.

实施例三、Embodiment three,

以实施例一各步骤的执行主体是独立于TCP代理设备的策略服务器(PCRF),可以理解为实施例二所述的装置集成在策略服务器PCRF,TCP代理设备部署在核心网设备为例,本发明实施例三提供一种调整TCP连接的初始窗口大小的系统,该系统的结构示意图可以如图3所示,包括依次连接的客户端所在终端、第一核心网设备、部署有TCP代理设备的第二核心网设备、服务器,以及与第二核心网设备、TCP代理设备进行交互的策略服务器:Taking the execution subject of each step in Embodiment 1 as a policy server (PCRF) independent of the TCP proxy device, it can be understood that the device described in Embodiment 2 is integrated in the policy server PCRF, and the TCP proxy device is deployed in the core network device as an example. Embodiment 3 of the invention provides a system for adjusting the initial window size of a TCP connection. The structural diagram of the system can be shown in FIG. The second core network device, the server, and the policy server interacting with the second core network device and the TCP proxy device:

其中,TCP代理设备分别维护与客户端和服务器的TCP连接;策略服务器可以保存各种网络接入方式对应的网络带宽,并可以保存有RAT参数的各种参数值与网络接入方式的对应关系。策略服务器在接收到第二核心网设备上报的RAT参数的参数值时,确定该参数值对应的网络接入方式,并确定该网络接入方式对应的网络带宽,进而根据该网络带宽确定TCP代理设备的TCP连接的初始窗口大小,并可以将该初始窗口大小发送给TCP代理设备,使得TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。Among them, the TCP proxy device maintains the TCP connection with the client and the server respectively; the policy server can store the network bandwidth corresponding to various network access modes, and can store the corresponding relationship between various parameter values of RAT parameters and network access modes . When the policy server receives the parameter value of the RAT parameter reported by the second core network device, it determines the network access mode corresponding to the parameter value, and determines the network bandwidth corresponding to the network access mode, and then determines the TCP agent according to the network bandwidth. The initial window size of the TCP connection of the device, and can send the initial window size to the TCP proxy device, so that the TCP proxy device performs data transmission according to the initial window size after establishing the TCP connection.

下面通过几个具体的实例对本发明实施例三的方案进行说明。The scheme of Embodiment 3 of the present invention will be described below through several specific examples.

实施例四、Embodiment four,

以TCP代理设备部署在2G/3G核心网上的网关通用分组无线服务支持节点(Gateway GPRS Support Node,GGSN)为例,本发明实施例四提供一种调整TCP连接的初始窗口大小的系统,该系统的结构示意图可以如图4所示,包括依次连接的客户端所在终端、服务通用分组无线服务支持节点(ServicingGPRS Support Node,SGSN)、部署有TCP代理设备的GGSN、服务器,以及与GGSN、TCP代理设备进行交互的策略服务器:Taking a Gateway GPRS Support Node (GGSN) where a TCP proxy device is deployed on a 2G/3G core network as an example, Embodiment 4 of the present invention provides a system for adjusting the initial window size of a TCP connection. The schematic diagram of the structure can be shown in Figure 4, including the terminal where the client is connected in sequence, the serving general packet wireless service support node (ServicingGPRS Support Node, SGSN), the GGSN with the TCP proxy device deployed, the server, and the connection with the GGSN and the TCP proxy The policy server with which the device interacts:

其中,TCP代理设备分别维护与客户端和服务器的TCP连接;策略服务器可以保存各种网络接入方式对应的网络带宽,并可以保存有RAT参数的各种参数值与网络接入方式的对应关系。策略服务器在接收到GGSN上报的RAT参数的参数值时,确定该参数值对应的网络接入方式,并确定该网络接入方式对应的网络带宽,进而根据该网络带宽确定TCP代理设备的TCP连接的初始窗口大小,并可以将该初始窗口大小发送给TCP代理设备,使得TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。Among them, the TCP proxy device maintains the TCP connection with the client and the server respectively; the policy server can store the network bandwidth corresponding to various network access modes, and can store the corresponding relationship between various parameter values of RAT parameters and network access modes . When the policy server receives the parameter value of the RAT parameter reported by the GGSN, it determines the network access mode corresponding to the parameter value, and determines the network bandwidth corresponding to the network access mode, and then determines the TCP connection of the TCP proxy device according to the network bandwidth The initial window size, and can send the initial window size to the TCP proxy device, so that the TCP proxy device performs data transmission according to the initial window size after establishing the TCP connection.

实施例五、Embodiment five,

以TCP代理设备部署在LTE核心网上的公用数据网网关(PDN Gateway,P-GW)为例,本发明实施例五提供一种调整TCP连接的初始窗口大小的系统,该系统的结构示意图可以如图5所示,包括依次连接的客户端所在终端、服务网关(Serving Gateway,S-GW)、部署有TCP代理设备的P-GW、服务器,以及与P-GW、TCP代理设备进行交互的策略服务器:Taking the public data network gateway (PDN Gateway, P-GW) deployed on the LTE core network as a TCP proxy device as an example, Embodiment 5 of the present invention provides a system for adjusting the initial window size of a TCP connection. The structural diagram of the system can be as follows As shown in Figure 5, it includes the terminal where the client is connected in sequence, the Serving Gateway (Serving Gateway, S-GW), the P-GW deployed with the TCP proxy device, the server, and the strategy for interacting with the P-GW and the TCP proxy device server:

其中,TCP代理设备分别维护与客户端和服务器的TCP连接;策略服务器可以保存各种网络接入方式对应的网络带宽,并可以保存有RAT参数的各种参数值与网络接入方式的对应关系。策略服务器在接收到P-GW上报的RAT参数的参数值时,确定该参数值对应的网络接入方式,并确定该网络接入方式对应的网络带宽,进而根据该网络带宽确定TCP代理设备的TCP连接的初始窗口大小,并可以将该初始窗口大小发送给TCP代理设备,使得TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。Among them, the TCP proxy device maintains the TCP connection with the client and the server respectively; the policy server can store the network bandwidth corresponding to various network access modes, and can store the corresponding relationship between various parameter values of RAT parameters and network access modes . When the policy server receives the parameter value of the RAT parameter reported by the P-GW, it determines the network access mode corresponding to the parameter value, and determines the network bandwidth corresponding to the network access mode, and then determines the TCP proxy device according to the network bandwidth. The initial window size of the TCP connection, and the initial window size may be sent to the TCP proxy device, so that the TCP proxy device performs data transmission according to the initial window size after establishing the TCP connection.

实施例六、Embodiment six,

以TCP代理设备部署在WLAN核心网上的公用数据网网关(PDNGateway,P-GW)为例,本发明实施例六提供一种调整TCP连接的初始窗口大小的系统,该系统的结构示意图可以如图6所示,包括依次连接的客户端所在终端、接入点、接入控制器(AP、AC)、部署有TCP代理设备的P-GW、服务器,以及与P-GW、TCP代理设备进行交互的策略服务器:Taking the public data network gateway (PDNGateway, P-GW) where the TCP proxy device is deployed on the WLAN core network as an example, Embodiment 6 of the present invention provides a system for adjusting the initial window size of a TCP connection. The structural diagram of the system can be shown in the figure 6, including the terminal where the client is connected in sequence, the access point, the access controller (AP, AC), the P-GW deployed with the TCP proxy device, the server, and the interaction with the P-GW and the TCP proxy device The policy server:

其中,TCP代理设备分别维护与客户端和服务器的TCP连接;策略服务器可以保存各种网络接入方式对应的网络带宽,并可以保存有RAT参数的各种参数值与网络接入方式的对应关系。策略服务器在接收到P-GW上报的RAT参数的参数值时,确定该参数值对应的网络接入方式,并确定该网络接入方式对应的网络带宽,进而根据该网络带宽确定TCP代理设备的TCP连接的初始窗口大小,并可以将该初始窗口大小发送给TCP代理设备,使得TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。Among them, the TCP proxy device maintains the TCP connection with the client and the server respectively; the policy server can store the network bandwidth corresponding to various network access modes, and can store the corresponding relationship between various parameter values of RAT parameters and network access modes . When the policy server receives the parameter value of the RAT parameter reported by the P-GW, it determines the network access mode corresponding to the parameter value, and determines the network bandwidth corresponding to the network access mode, and then determines the TCP proxy device according to the network bandwidth. The initial window size of the TCP connection, and the initial window size may be sent to the TCP proxy device, so that the TCP proxy device performs data transmission according to the initial window size after establishing the TCP connection.

本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本申请是参照根据本申请实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowcharts and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present application. It should be understood that each procedure and/or block in the flowchart and/or block diagram, and combinations of procedures and/or blocks in the flowchart and/or block diagram can be realized by computer program instructions. These computer program instructions may be provided to a general purpose computer, special purpose computer, embedded processor, or processor of other programmable data processing equipment to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing equipment produce a Means for realizing the functions specified in one or more steps of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to operate in a specific manner, such that the instructions stored in the computer-readable memory produce an article of manufacture comprising instruction means, the instructions The device realizes the function specified in one or more procedures of the flowchart and/or one or more blocks of the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby The instructions provide steps for implementing the functions specified in the flow chart flow or flows and/or block diagram block or blocks.

尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。While preferred embodiments of the present application have been described, additional changes and modifications to these embodiments can be made by those skilled in the art once the basic inventive concept is appreciated. Therefore, the appended claims are intended to be construed to cover the preferred embodiment and all changes and modifications which fall within the scope of the application.

显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the application without departing from the spirit and scope of the application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (16)

1.一种调整传输控制协议TCP连接的初始窗口大小的方法,其特征在于,所述方法包括:1. a method for adjusting the initial window size of transmission control protocol TCP connection, it is characterized in that, described method comprises: 确定核心网的网络接入方式;Determine the network access mode of the core network; 确定所述核心网的网络接入方式对应的网络带宽;determining the network bandwidth corresponding to the network access mode of the core network; 根据所述网络带宽确定TCP连接的初始窗口大小,其中,网络带宽越大,确定出的初始窗口越大,TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。Determine the initial window size of the TCP connection according to the network bandwidth, wherein the larger the network bandwidth, the larger the determined initial window, and the TCP proxy device performs data transmission according to the initial window size after establishing the TCP connection. 2.如权利要求1所述的方法,其特征在于,确定核心网的网络接入方式,具体包括:2. The method according to claim 1, wherein determining the network access mode of the core network specifically comprises: 确定核心网设备之间传输的通用分组无线服务隧道协议GTP消息中携带的无线接入类型RAT参数的参数值;Determine the parameter value of the wireless access type RAT parameter carried in the General Packet Radio Service Tunneling Protocol GTP message transmitted between the core network equipment; 将所述RAT参数的参数值对应的网络接入方式,确定为核心网的网络接入方式。The network access mode corresponding to the parameter value of the RAT parameter is determined as the network access mode of the core network. 3.如权利要求1所述的方法,其特征在于,根据所述网络带宽确定TCP连接的初始窗口大小,具体包括:3. The method according to claim 1, wherein, determining the initial window size of the TCP connection according to the network bandwidth, specifically comprises: 根据所述网络带宽,确定下行初始发送窗口大小,所述下行初始发送窗口表示用于实现从服务器到客户端的TCP连接的初始发送窗口大小。Determine the size of the downlink initial sending window according to the network bandwidth, and the downlink initial sending window indicates the size of the initial sending window used to realize the TCP connection from the server to the client. 4.如权利要求1所述的方法,其特征在于,根据所述网络带宽确定TCP连接的初始窗口大小,具体包括:4. The method according to claim 1, wherein determining the initial window size of the TCP connection according to the network bandwidth specifically comprises: 根据所述网络带宽,以及TCP代理设备缓存大小,确定下行初始接收窗口大小,所述下行初始接收窗口表示用于实现从服务器到客户端的TCP连接的初始接收窗口大小。According to the network bandwidth and the cache size of the TCP proxy device, the downlink initial receiving window size is determined, and the downlink initial receiving window represents the initial receiving window size for realizing the TCP connection from the server to the client. 5.如权利要求1所述的方法,其特征在于,根据所述网络带宽确定TCP连接的初始窗口大小之前,所述方法还包括:5. The method according to claim 1, wherein, before determining the initial window size of the TCP connection according to the network bandwidth, the method further comprises: 接收客户端上报的用户代理UA操作系统信息;Receive the user agent UA operating system information reported by the client; 则,根据所述网络带宽确定TCP连接的初始窗口大小,具体包括:Then, determine the initial window size of the TCP connection according to the network bandwidth, specifically including: 根据所述网络带宽,以及所述UA操作系统信息,确定上行初始发送窗口大小,所述上行初始发送窗口表示用于实现从客户端到服务器的TCP连接的初始发送窗口大小。Determine the size of the uplink initial sending window according to the network bandwidth and the UA operating system information, and the uplink initial sending window indicates the size of the initial sending window used to realize the TCP connection from the client to the server. 6.如权利要求1所述的方法,其特征在于,根据所述网络带宽确定TCP连接的初始窗口大小,具体包括:6. The method according to claim 1, wherein determining the initial window size of the TCP connection according to the network bandwidth specifically comprises: 根据所述网络带宽,以及TCP代理设备缓存大小,确定所述上行初始接收窗口大小,所述上行初始接收窗口表示用于实现从客户端到服务器的TCP连接的初始接收窗口大小。According to the network bandwidth and the cache size of the TCP proxy device, the size of the uplink initial receiving window is determined, and the uplink initial receiving window indicates the size of the initial receiving window used to realize the TCP connection from the client to the server. 7.如权利要求1~6任一所述的方法,其特征在于,根据所述网络带宽确定TCP连接的初始窗口大小,具体包括:7. The method according to any one of claims 1 to 6, wherein determining the initial window size of the TCP connection according to the network bandwidth specifically comprises: 根据所述网络带宽,以及TCP连接承载业务的类型,确定TCP连接的初始窗口大小。The initial window size of the TCP connection is determined according to the network bandwidth and the type of service carried by the TCP connection. 8.如权利要求1~6任一所述的方法,其特征在于,根据所述网络带宽确定TCP连接的初始窗口大小,具体包括:8. The method according to any one of claims 1 to 6, wherein determining the initial window size of the TCP connection according to the network bandwidth specifically comprises: 根据所述网络带宽,以及当前网络环境下发生突发丢包的概率,确定TCP连接的初始窗口大小。The initial window size of the TCP connection is determined according to the network bandwidth and the probability of burst packet loss under the current network environment. 9.一种调整传输控制协议TCP连接的初始窗口大小的装置,其特征在于,所述装置包括:9. A device for adjusting the initial window size of the Transmission Control Protocol TCP connection, characterized in that the device comprises: 第一确定模块,用于确定核心网的网络接入方式;The first determination module is used to determine the network access mode of the core network; 第二确定模块,用于确定所述核心网的网络接入方式对应的网络带宽;A second determining module, configured to determine the network bandwidth corresponding to the network access mode of the core network; 第三确定模块,用于根据所述网络带宽确定TCP连接的初始窗口大小,其中,网络带宽越大,确定出的初始窗口越大,TCP代理设备建立TCP连接后根据所述初始窗口大小进行数据传输。The third determining module is used to determine the initial window size of the TCP connection according to the network bandwidth, wherein the larger the network bandwidth, the larger the determined initial window, and the TCP proxy device performs data according to the initial window size after establishing the TCP connection transmission. 10.如权利要求9所述的装置,其特征在于,所述第一确定模块,具体用于确定核心网设备之间传输的通用分组无线服务隧道协议GTP消息中携带的无线接入类型RAT参数的参数值;将所述RAT参数的参数值对应的网络接入方式,确定为核心网的网络接入方式。10. The apparatus according to claim 9, wherein the first determining module is specifically configured to determine the wireless access type RAT parameter carried in the General Packet Radio Service Tunneling Protocol (GTP) message transmitted between core network devices The parameter value of the RAT parameter; determining the network access mode corresponding to the parameter value of the RAT parameter as the network access mode of the core network. 11.如权利要求9所述的装置,其特征在于,所述第三确定模块,具体用于根据所述网络带宽,确定下行初始发送窗口大小,所述下行初始发送窗口表示用于实现从服务器到客户端的TCP连接的初始发送窗口大小。11. The device according to claim 9, wherein the third determination module is specifically configured to determine the downlink initial sending window size according to the network bandwidth, and the downlink initial sending window indicates that the slave server The initial send window size for TCP connections to clients. 12.如权利要求9所述的装置,其特征在于,所述第三确定模块,具体用于根据所述网络带宽,以及TCP代理设备缓存大小,确定下行初始接收窗口大小,所述下行初始接收窗口表示用于实现从服务器到客户端的TCP连接的初始接收窗口大小。12. The apparatus according to claim 9, wherein the third determining module is specifically configured to determine the downlink initial receiving window size according to the network bandwidth and the cache size of the TCP proxy device, and the downlink initial receiving window size is window represents the initial receive window size used to implement the TCP connection from the server to the client. 13.如权利要求9所述的装置,其特征在于,所述装置还包括接收模块:13. The device according to claim 9, further comprising a receiving module: 所述接收模块,用于接收客户端上报的用户代理UA操作系统信息;The receiving module is configured to receive user agent UA operating system information reported by the client; 所述第三确定模块,具体用于根据所述网络带宽,以及所述UA操作系统信息,确定上行初始发送窗口大小,所述上行初始发送窗口表示用于实现从客户端到服务器的TCP连接的初始发送窗口大小。The third determination module is specifically configured to determine the size of the uplink initial sending window according to the network bandwidth and the UA operating system information, and the uplink initial sending window indicates the size of the uplink initial sending window used to realize the TCP connection from the client to the server. Initial send window size. 14.如权利要求9所述的装置,其特征在于,所述第三确定模块,具体用于根据所述网络带宽,以及TCP代理设备缓存大小,确定所述上行初始接收窗口大小,所述上行初始接收窗口表示用于实现从客户端到服务器的TCP连接的初始接收窗口大小。14. The apparatus according to claim 9, wherein the third determining module is specifically configured to determine the size of the uplink initial receiving window according to the network bandwidth and the cache size of the TCP proxy device, and the uplink Initial Receive Window indicates the initial receive window size used to implement a TCP connection from the client to the server. 15.如权利要求9~14任一所述的装置,其特征在于,所述第三确定模块,具体用于根据所述网络带宽,以及TCP连接承载业务的类型,确定TCP连接的初始窗口大小。15. The device according to any one of claims 9 to 14, wherein the third determination module is specifically configured to determine the initial window size of the TCP connection according to the network bandwidth and the type of service carried by the TCP connection . 16.如权利要求9~14任一所述的装置,其特征在于,所述第三确定模块,具体用于根据所述网络带宽,以及当前网络环境下发生突发丢包的概率,确定TCP连接的初始窗口大小。16. The device according to any one of claims 9 to 14, wherein the third determining module is specifically configured to determine the TCP packet loss probability according to the network bandwidth and the probability of burst packet loss under the current network environment. The initial window size for connections.
CN201310084910.8A 2013-03-18 2013-03-18 A kind of method and apparatus of the initial window size of adjustment TCP connections Active CN104065464B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310084910.8A CN104065464B (en) 2013-03-18 2013-03-18 A kind of method and apparatus of the initial window size of adjustment TCP connections

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310084910.8A CN104065464B (en) 2013-03-18 2013-03-18 A kind of method and apparatus of the initial window size of adjustment TCP connections

Publications (2)

Publication Number Publication Date
CN104065464A true CN104065464A (en) 2014-09-24
CN104065464B CN104065464B (en) 2018-05-08

Family

ID=51553012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310084910.8A Active CN104065464B (en) 2013-03-18 2013-03-18 A kind of method and apparatus of the initial window size of adjustment TCP connections

Country Status (1)

Country Link
CN (1) CN104065464B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681265A (en) * 2014-11-20 2016-06-15 华为软件技术有限公司 Unilateral transmission control protocol acceleration method and device
CN107017968A (en) * 2017-03-13 2017-08-04 上海无疆信息科技有限公司 A kind of protocol type detection method of Wi Fi signals
CN107211331A (en) * 2014-12-01 2017-09-26 三星电子株式会社 Method and apparatus, switching support method and its device of the TCP connections disconnected for configuring in a communications system
CN108111430A (en) * 2017-12-22 2018-06-01 北京百度网讯科技有限公司 A kind of TCP home windows optimization method and system
CN108600834A (en) * 2018-04-13 2018-09-28 深圳银澎云计算有限公司 Video transmission system, reception/transmission/transmission method and device
CN110011868A (en) * 2018-01-05 2019-07-12 武汉斗鱼网络科技有限公司 A kind of network is reachable to determine method, electronic equipment and readable storage medium storing program for executing
CN111010349A (en) * 2018-10-08 2020-04-14 阿里巴巴集团控股有限公司 Transmission acceleration method and device for first screen
CN114143188A (en) * 2021-11-18 2022-03-04 深圳大学 Video processing method and device, electronic equipment and storage medium
CN114157727A (en) * 2021-12-10 2022-03-08 北京华环电子股份有限公司 Application method and device of TCP acceleration in OSU

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050141419A1 (en) * 2003-06-17 2005-06-30 Cisco Technology, Inc. A Corporation Of California Methods and devices for the coordination of flow control between a TCP/IP network and other networks
CN1681235A (en) * 2004-04-05 2005-10-12 阿尔卡特公司 Wireless mobile terminal and wireless mobile telecommunication system
CN1842080A (en) * 2005-03-29 2006-10-04 华为技术有限公司 A Method of Adjusting Transmission Control Protocol Receive Window
US20070058534A1 (en) * 2003-08-20 2007-03-15 Hideyuki Shimonishi Session relay apparatus and relaying method
CN102739515A (en) * 2010-04-13 2012-10-17 北京英华高科科技有限公司 Tcp congestion control for heterogeneous networks

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050141419A1 (en) * 2003-06-17 2005-06-30 Cisco Technology, Inc. A Corporation Of California Methods and devices for the coordination of flow control between a TCP/IP network and other networks
US20070058534A1 (en) * 2003-08-20 2007-03-15 Hideyuki Shimonishi Session relay apparatus and relaying method
CN1681235A (en) * 2004-04-05 2005-10-12 阿尔卡特公司 Wireless mobile terminal and wireless mobile telecommunication system
CN1842080A (en) * 2005-03-29 2006-10-04 华为技术有限公司 A Method of Adjusting Transmission Control Protocol Receive Window
CN102739515A (en) * 2010-04-13 2012-10-17 北京英华高科科技有限公司 Tcp congestion control for heterogeneous networks

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681265B (en) * 2014-11-20 2019-04-05 华为软件技术有限公司 Unilateral transmission control protocol accelerating method and device
CN105681265A (en) * 2014-11-20 2016-06-15 华为软件技术有限公司 Unilateral transmission control protocol acceleration method and device
CN107211331A (en) * 2014-12-01 2017-09-26 三星电子株式会社 Method and apparatus, switching support method and its device of the TCP connections disconnected for configuring in a communications system
CN107211331B (en) * 2014-12-01 2020-06-09 三星电子株式会社 Method and apparatus for configuring a disconnected TCP connection in a communication system, handover support method and apparatus
CN107017968A (en) * 2017-03-13 2017-08-04 上海无疆信息科技有限公司 A kind of protocol type detection method of Wi Fi signals
CN107017968B (en) * 2017-03-13 2020-04-03 上海无疆信息科技有限公司 Protocol type detection method of Wi-Fi signal
CN108111430B (en) * 2017-12-22 2022-02-25 北京百度网讯科技有限公司 TCP initial window optimization method and system
CN108111430A (en) * 2017-12-22 2018-06-01 北京百度网讯科技有限公司 A kind of TCP home windows optimization method and system
CN110011868A (en) * 2018-01-05 2019-07-12 武汉斗鱼网络科技有限公司 A kind of network is reachable to determine method, electronic equipment and readable storage medium storing program for executing
CN108600834A (en) * 2018-04-13 2018-09-28 深圳银澎云计算有限公司 Video transmission system, reception/transmission/transmission method and device
CN111010349A (en) * 2018-10-08 2020-04-14 阿里巴巴集团控股有限公司 Transmission acceleration method and device for first screen
CN111010349B (en) * 2018-10-08 2023-06-02 阿里巴巴集团控股有限公司 Transmission acceleration method and device for first screen
CN114143188A (en) * 2021-11-18 2022-03-04 深圳大学 Video processing method and device, electronic equipment and storage medium
CN114143188B (en) * 2021-11-18 2023-06-23 深圳大学 A video processing method, device, electronic equipment and storage medium
CN114157727A (en) * 2021-12-10 2022-03-08 北京华环电子股份有限公司 Application method and device of TCP acceleration in OSU
CN114157727B (en) * 2021-12-10 2024-05-14 北京华环电子股份有限公司 Application method and device of TCP acceleration in OSU

Also Published As

Publication number Publication date
CN104065464B (en) 2018-05-08

Similar Documents

Publication Publication Date Title
CN104065464B (en) A kind of method and apparatus of the initial window size of adjustment TCP connections
JP6568270B2 (en) Service tier southbound interface and quality of service
ES2810159T3 (en) Transmission control protocol proxy in a long-term evolving radio access network
CN107637029B (en) Communication system and communication method for providing wireless terminal with access to IP network
WO2017117968A1 (en) Method and apparatus for branching data interface, terminal device and computer storage medium
CN104813725B (en) Data transmission device and method
CN111988212B (en) A message transmission method and related device
EP3531620B1 (en) Method for processing message in hybrid access network, and network device
EP3314864B1 (en) First network node and methods therein, for determining whether a second multi path transmission control protocol connection is to be initiated
US20150237525A1 (en) Traffic Shaping and Steering for a Multipath Transmission Control Protocol Connection
US10511640B2 (en) Providing cellular-specific transport layer service by way of cell-site proxying in a network environment
WO2015085763A1 (en) Data transmission method and router
WO2014101505A1 (en) Method for aligning qos of wlan and qos of packet core network
WO2017008701A1 (en) Data transmission method, apparatus, and user device
TW201707419A (en) Multiple broadband subscription sharing
TWI721333B (en) Method and apparatus for establishing bearers in a wireless communication system
CN106332129B (en) Configuration method of wireless network function, wireless network node and core network equipment
CN103501282A (en) Network message sending control method, virtual switch and physical machine
CN108141866A (en) A kind of method and device of processing business data packet
CN103152794B (en) Business access method and access controller
US20150032807A1 (en) System And Method For Network Access Based On Application Layer Data
US20200015114A1 (en) Method for reducing overhead of air interface data transmission
EP3701744B1 (en) Controlling a congestion window value for a wireless device in a heterogeneous network
WO2014180302A1 (en) Application internet access processing method, apparatus, and terminal
JP6180225B2 (en) Portable device and communication control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant