Communication method, Web server and Web communication system

A communication method and server technology, applied in transmission systems, public keys for secure communication, user identity/authority verification, etc., can solve problems such as common connection channel security, and achieve the effect of saving CPU usage

Active Publication Date: 2013-05-15
HUAWEI TECH CO LTD
View PDF5 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a secure communication method based on the WebSocket common connection protocol (WS), a Web server and a Web communication system, and adopts a centralized authentication mechanism to solve the security problem of using a Websocket common connection channel

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 method, Web server and Web communication system
  • Communication method, Web server and Web communication system
  • Communication method, Web server and Web communication system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0084] Such as figure 1 As shown, Embodiment 1 of the present invention provides a communication method based on the Websocket protocol, including the following steps:

[0085] S101, the first web server sends a random value to the web browser;

[0086] Specifically, the authentication module is deployed in any web server, the authentication module is used to complete the authentication of the web browser, and the web server is called the first web server, and the first web server receives the web browser The first authentication request sent by the server, if the first Web server has not authenticated the Web browser, then send an unauthenticated message carrying a random value.

[0087] S102. The first Web server receives a second authentication request from the Web browser;

[0088] Specifically, the second authentication request carries a username, the IP address of the web browser, and a first abstract, and the first abstract is used by the web browser to combine the us...

Embodiment 2

[0096] Such as figure 2 As shown, Embodiment 2 of the present invention provides a communication method based on a common Websocket connection protocol, including the following steps:

[0097] S201, the web browser sends a first authentication request to the first web server, and receives an unauthenticated message returned by the first web server, where the unauthenticated message contains a random value; initiates the first authentication request and receives the first web server's returned messages;

[0098] Specifically, the sm.js module of the Web browser initiates the first authentication request. In a specific example, the first authentication request may be:

[0099] https:\\163.com\auth\session(put)

[0100] The first Web server judges the first authentication request, and returns an unauthenticated message carrying a random value if the Web server has not authenticated the browser.

[0101] S202. The web browser initiates a second authentication request.

[0102...

Embodiment 3

[0113] Based on the communication method based on the common connection protocol of Websocket described in embodiment two, such as image 3 As shown, Embodiment 3 of the present invention provides a method for encrypting a Websocket common connection data transmission channel, including the following steps:

[0114] S301, the web browser initiates a public key acquisition request, and the web server returns public key information;

[0115] S302. The Web browser generates a first dynamic password, and the first dynamic password is encrypted and generated by the Web browser according to the public key;

[0116] S303. The web browser initiates a request for obtaining sensitive data to the web server, and the request carries the first dynamic password;

[0117] S304. The web server uses a private key to decrypt the first dynamic password to obtain a second dynamic password;

[0118] S305. The web server acquires sensitive data, encrypts the acquired sensitive data using the seco...

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 relates to the field of communication technology, and particularly relates to a WebSocket trans-domain communication method, a Web server and a Web communication system. A safe communication method based on the WebSocket common connection protocol is provided. In a cluster scenario, a centralized authentication method is applied, and a WebSocket data transmission channel can be safely and efficiently used to push data. The data is encrypted according to the needs, so that occupation of a central processing unit (CPU) is reduced.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a websocket cross-domain communication method, a Web server and a Web communication system. Background technique [0002] With the advent of the Web 2.0 era, the network is more closely connected with people's lives. The social networking site facebook\twitter based on the World Wide Web (Web) is popular, and anyone can publish information and photos at any time in any place. Friends and relatives can know immediately and share together. The sharing of instant messages requires direct real-time full-duplex (Full Duplex) communication between Web communication nodes, that is, synchronous data sending and data receiving. [0003] At present, the communication between web browsers and web servers is generally based on Hypertext Transfer Protocol (HTTP) technology, such as polling technology (Polling) or server push technology (Comet), among which Polling technology can only su...

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/08H04L9/32H04L9/30
Inventor 程建杰
Owner HUAWEI TECH CO LTD
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