Multilink safety communication method based on completion port model

A technology to complete port and secure communication, applied in digital transmission system, electrical components, error prevention, etc., can solve problems such as excessively frequent server response, limited CPU resources, TCP connection interruption, etc., to achieve efficient secure communication method and frame structure Clear, Versatile Effects

Inactive Publication Date: 2013-11-13
中船凌久高科(武汉)有限公司
View PDF3 Cites 44 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] On the other hand, in practical applications, the number of servers is often limited, usually one or more than a dozen, and the number of clients communicating with them may be hundreds of times or even massive. When several clients need to communicate with When the server performs instant messaging, if the method of dynamically creating threads to process event requests in sequence is used, the server’s response will be delayed due to limited CPU resources and excessively frequent thread scheduling, and data sending and receiving timeout errors will occur, which will eventually lead to TCP connection failures. to interrupt

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
  • Multilink safety communication method based on completion port model
  • Multilink safety communication method based on completion port model
  • Multilink safety communication method based on completion port model

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Such as figure 1 , figure 2 As shown, the communication platform involved in the present invention is made up of server and client two parts, adopts C / S mode, and server asynchronously listens to communication port status change, and a plurality of clients independently initiates TCP connection to server independently and Request response, the server returns the result after verification and processing, that is, the communication process is completed in the way of "event request-response processing-return result". The specific implementation method is as follows image 3 shown, including the following steps:

[0025] Step 1: The server creates a service agent, the main function is to make the server program run with the server in the form of Windows system application service and reside in the memory, receive external calls from the operating system, and maintain the management of the server itself;

[0026] Step 2: When the service agent starts, it initializes and c...

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 provides a method for supporting multilink concurrence safety communication between a server and multiple clients and relates to a multilink safety communication method based on a completion port model. The method includes that a main worker thread at a communication server is embedded into an application service of a Windows system to run, a transmission control protocol (TCP) communication server is built according to the completion port model, meanwhile a fixed number of communication interface threads are built to conduct communication with the clients in an asynchronous mode, and the parallel processing capability of the server is improved. In an interaction process, after any client builds the TCP connection, two communication parties must adopt a handshake mechanism to ensure connection legality and adopt connection pool queues or local variables to dynamically maintain message serial numbers in the following data receiving and transmitting process, data transmitted by any party on the legal connection are packaged again according to the data package structure definition, and the receiving party adopts a safety verification algorithm to verify the data packages and regroup the plurality of data packages according to the precedence order of the message serial numbers.

Description

technical field [0001] The invention relates to the field of real-time communication in a local area network environment, and is a method for supporting multi-link concurrent secure communication between a server and multiple clients. Background technique [0002] In the network environment, the C / S model provides a convenient way for users, so that each client distributed in different locations breaks through the geographical restrictions, and centrally shares the resources of the server in the way of "request-response-return". At present, this model has been selected by most commercial applications, and is widely involved in various industries. Its core technology, TCP / IP protocol, provides reliable organizational structure support for the communication between the client and the server. [0003] On the other hand, in practical applications, the number of servers is often limited, usually one or more than a dozen, and the number of clients communicating with them may be hu...

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/06H04L29/08H04L1/00
Inventor 胡甜陈鲲丁又华
Owner 中船凌久高科(武汉)有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products