Method used by server to send message to client in NAT network

A technology for sending messages and clients, applied in transmission systems, electrical components, etc., can solve the problems of complex implementation, difficulty in grasping, waste of server-side bandwidth, etc., and achieve low latency, simple establishment, and good latency

Inactive Publication Date: 2017-05-24
北信源系统集成有限公司
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, there are two mainstream solutions: one is the client polling technology, that is, the client periodically actively accesses the public IP address of the server to obtain changes in the data status of the server. The problem with this method is: if The server's business data has not changed during the two consecutive polling requests, and the work of the latter request is actually a negative number - a waste of server-side bandwidth and no payload; moreover, the timing of the client polling process The server interval parameter is also a difficult problem to grasp. Since the business data status of the ser

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
  • Method used by server to send message to client in NAT network

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0024] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0025] like figure 1 As shown, a schematic flowchart of a method for sending a message from a server to a client in a NAT network according to the present invention is shown. In order to be able to communicate with the client, the server must first activate the UDP-S and TCP-S services. It should be understood that any other service between the server and the client can also directly access the UDP-S service. Then, the client sends a UDP data packet to the server through the UDP-S service, and the UDP data packet contains the unique ID number of the client, the intranet IP address and the intranet UDP li...

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 used by a server to send a message to a client in an NAT network. The method comprises the steps that a UDP-S service is turned on in the server to communicate with the client; the client sends a UDP data packet to the UDP-S service of the server to establish a server cache information table; the server judges whether the client is located within the internal network defined by an NAT gateway according to the UDP data packet and returns the client identity; the client responds to the client identity to establish a UDP communication channel between the server and the client; and the server calls the UDP-S service according to the server cache information table to send the message to the client through the UDP communication channel. According to the invention, the bandwidth of the server side is saved, and the communication channel is easily established.

Description

technical field [0001] The present invention relates to the field of computer network communication, and more particularly to a method for sending a message from a server to a client in a NAT network. Background technique [0002] The communication between the client and the server is based on HTTP (Hypertext Transfer Protocol), and HTTP is a stateless communication protocol. Each request-response is based on a newly established HTTP connection, which makes the server actively notify The client becomes a difficult point. [0003] At present, there are two mainstream solutions: one is the client-side polling technology, that is, the client periodically actively accesses the server's public IP address to obtain changes in the server's data status. The problem with this method is: if The server's business data does not change during two consecutive polling requests, and the work of the latter request is actually negative—wasting server-side bandwidth, and no payload is obtaine...

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
IPC IPC(8): H04L29/08H04L29/12
CPCH04L61/2503H04L67/55
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