Supercharge Your Innovation With Domain-Expert AI Agents!

A method and device for creating a tcp connection

A technology of the number of connections and the current connection, applied in the field of network communication, can solve the problems of new connection failure, large difference in the number of IP address connections, etc., and achieve the effect of reducing the number of connection failures

Active Publication Date: 2021-11-02
CHINANETCENT TECH
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When using the bind interface to select the source address, there will be a large difference in the number of connections between IP addresses, and this situation may occur: for the same service, there are already 65535 connected IP addresses, but they are still selected as the new IP address. The source address of the connection, which will cause new connections to fail

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
  • A method and device for creating a tcp connection
  • A method and device for creating a tcp connection
  • A method and device for creating a tcp connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0046] The embodiment of the present invention provides a method for creating a TCP connection, which can be applied to figure 1 In the network framework shown. The network framework includes CDN nodes and servers. When the CDN node receives the request message sent by the client and does not find a response to the request message in the cache, it starts to create a TCP connection with the server. The server in the embodiment of the present invention may include a CDN node and a source site.

[0047] The method provided by the embodiment of the present invention can also be applied to figure 2 In the network framework shown. Such as figure 2 As shown, when CDN node 1 receives the request message sent by the client and does not f...

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 method and device for establishing a TCP connection. The method is applied to a CDN node. The method includes: after determining that a TCP connection needs to be established with a server according to a received request message, according to the request The message determines the destination address and destination port of the server; determines the source address, wherein the source address is the IP address with the least number of current connections; determines the source port, wherein the source port is idle; based on the source address , the source port, the destination address, and the destination port create a TCP connection, and add one to the connection number of the source address. The embodiment of the present invention can record the number of connections of each IP address in real time. When establishing a TCP connection, the IP address with the least number of current connections can be selected as the source address for connection, so the number of connections of each IP address can be balanced and connection failures can be reduced. times.

Description

technical field [0001] The invention relates to the technical field of network communication, in particular to a method and device for establishing a TCP connection. Background technique [0002] The full name of CDN is Content Delivery Network, that is, content distribution network. The basic idea is to avoid possible speed bottlenecks on the Internet by placing CDN node servers (hereinafter referred to as CDN nodes) throughout the network to form a layer of intelligent virtual network based on the existing Internet through CDN nodes. And unstable network links, making content transmission faster and more stable. [0003] In the traditional CDN system, such as figure 1 As shown in , the client resolves to the nearest CDN node through smart DNS, the client sends a request message to the CDN node, and the CDN node first checks whether there is a response to the request message in the cache, and if so, feeds back the response to Client; If there is no such response in the c...

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): H04L29/08H04L29/06
CPCH04L67/14H04L67/141H04L69/163
Inventor 李永隆吴建国孙云峰苏学敏
Owner CHINANETCENT TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More