Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Communication link method under multi-thread environment and transit server

A transfer server and communication link technology, which is applied in the field of communication link methods and transfer servers, can solve problems such as CPU resource consumption, and achieve the effect of reducing the consumption of CPU resources

Active Publication Date: 2014-02-05
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF6 Cites 10 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Based on this, it is necessary to address the technical problem that a large number of concurrent communication links are established while the transfer server provides transfer services when the transfer server is used to access the network in a multi-threaded environment in the prior art, resulting in a large amount of CPU resource consumption. Communication Link Method and Transit Server in Thread Environment

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
  • Communication link method under multi-thread environment and transit server
  • Communication link method under multi-thread environment and transit server
  • Communication link method under multi-thread environment and transit server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments.

[0020] like figure 1 Shown is the working flow chart of the communication link method under a kind of multi-thread environment of the present invention, comprises:

[0021] Communication link establishment step S101, establish a communication link to a specified network address and a specified port under at least one thread, after the communication link is established successfully, obtain the link identification of the communication link, and use the thread identification of the thread as the communication link. Thread identification, associating the link identification, the specified network address, the specified port with the communication thread identification as a link structure, and saving the link structure to a link pool;

[0022] Network access request receiving step S102, receiving a network access request including a targe...

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 communication link method and a transit server. The communication link method comprises the steps that a communication link to a designated network address and a designated port is established under at least one thread, after the communication link is established successfully, the link identification of the communication link is obtained, the link identification, the designated network address and the designated port are associated with communication thread identification to serve as a link structure, and the link structure is stored into a link pool; after a network access request comprising a target network address and a target port is received, a thread is distributed for the network access request to serve as an access thread; the link structure is searched and accessed from the link pool, and the access thread is communicated with the target network address and the target port through the link identification of the access link structure. According to the communication link method, the occurrence that a large number of communication links are established in a concurrency mode while a network server provides a transit service is avoided, and the consumption of CUP resources is reduced.

Description

technical field [0001] The invention relates to the technical field related to network communication, in particular to a communication link method and a transfer server. Background technique [0002] When users access the redis server and mongodb server, since the redis server and mongodb server are in the internal network, and most users access from the external network, a network server (that is, a web server) is established as a transit server. The user sends a network access request to the network server through the browser. The network access request includes a network address and port, and the network server establishes a connection to the specified network address and port for network communication. [0003] This method uses a web server to provide access forwarding services for many users. As a bridge between users and the redis server and mongodb server, the web server needs to receive a large number of user network access requests. In order to meet the real-time r...

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 Applications(China)
IPC IPC(8): H04L29/08G06F9/38
Inventor 刘垒
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products