Handshake and communication methods for gateway, gateway and Web communication system

A gateway and web browser technology, applied in the field of communication, can solve the problems of consuming web application server resources and low efficiency, and achieve the effect of efficient communication and real-time interactive data

Active Publication Date: 2012-07-04
HUAWEI TECH CO LTD
View PDF3 Cites 37 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since the communication nodes of the Web are often located behind the firewall and are not visible to each other, the communication between them needs to be realized through a relay server, and the relay server is used as a communication intermediary or gateway to support Web browsers or Web In the real-time interaction between the browser and the back-end server in the local area network, technologies based on the HTTP protocol are generally used for communication, such as: polling technology (Polling) or server push technology (Comet), among them, Po

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
  • Handshake and communication methods for gateway, gateway and Web communication system
  • Handshake and communication methods for gateway, gateway and Web communication system
  • Handshake and communication methods for gateway, gateway and Web communication system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0082] figure 1 It is a flowchart of a gateway handshaking method provided by Embodiment 1 of the present invention.

[0083] like figure 1 As shown, the gateway handshake method in Embodiment 1 of the present invention includes:

[0084] S101. The gateway receives a handshake message from a web browser, where the handshake message carries a protocol upgrade request and address information of the web browser.

[0085] It should be noted that the protocol upgrade request is generally an HTTP GET request, and a specific example may be as shown in the following code:

[0086] GET / real-time HTTP / 1.1\r\n

[0087] Upgrade: WebSocket\r\n

[0088] Connection: Upgrade\r\n

[0089] ...\r\n

[0090] In the HTTP GET request, the address information of the Web browser may be carried in a new information element.

[0091] S102, the gateway changes the application layer protocol between the web browser and the gateway from the hypertext transfer protocol HTTP to the web socket protoc...

Embodiment 2

[0107] Based on the gateway handshake method described in Embodiment 1, such as image 3 As shown, Embodiment 2 of the present invention provides a gateway communication method, including the following steps:

[0108] S201. The gateway receives a data packet sent from a first web browser to a second web browser, where the data packet carries application data and address information of the second web browser.

[0109] Wherein, the first Web browser serves as a communication initiating node, and the second browser serves as a communication target node.

[0110] It should be noted that the application data in the data packet is structured and encapsulated according to the data format specified by the Websocket protocol, and the application data can be transmitted in the form of data frames.

[0111] It should be further explained that the address information of the second Web browser is generally encapsulated into a header file in the data packet before transmission, and the gat...

Embodiment 3

[0119] Based on the gateway handshake method of Embodiment 1, such as Figure 4 As shown, Embodiment 3 of the present invention also provides a gateway communication method, including the following steps:

[0120] S301. The gateway receives a data packet sent by a web browser to a backend server, where the data packet carries application data and address information of the backend server.

[0121] It should be noted that the back-end server is a web application server for providing services such as online information browsing to the web browser, and the back-end server is located behind a firewall and is in the same local area network as the gateway; further It should be noted that the application data is structured and encapsulated according to the data format specified by the Websocket protocol, and the application data can be transmitted in the form of data frames.

[0122] S302. According to the address information of the back-end server, the gateway establishes a data tr...

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 embodiment of the invention discloses a handshake method for a gateway. The method comprises the following steps that: the gateway receives a handshake message from a Web browser, wherein the handshake message carries a protocol upgrade request and the address information of the Web browser; the gateway changes an application layer protocol between the Web browser and the gateway from a hyper text transfer protocol (HTTP) into a Websocket protocol according to the protocol upgrade request to establish a Websocket data transmission channel between the Web browser and the gateway; and the gateway stores the address information of the Web browser into a storage medium. The invention also discloses a communication method for the gateway, the gateway and a Web communication system. By the technical scheme, direct full duplex high-efficiency communication can be performed between the Web browsers or between the Web browser and a backend server in a local area network through the gateway.

Description

technical field [0001] The invention relates to the communication field, in particular to a gateway handshake, a communication method, a gateway and a Web communication system. Background technique [0002] With the development of Internet technology, many real-time, event-driven World Wide Web (Web) applications, such as Web real-time collaboration, Web multiplayer games, and Web real-time data push, all require direct communication between Web communication nodes. Real-time full-duplex (Full Duplex) communication, that is, data transmission and data reception are performed synchronously. [0003] Since the communication nodes of the Web are often located behind the firewall and are not visible to each other, the communication between them needs to be realized through a relay server, and the relay server is used as a communication intermediary or gateway to support Web browsers or Web In the real-time interaction between the browser and the back-end server in the local are...

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/08H04L12/66
CPCH04L29/08G06F17/30H04L67/28H04L61/00H04L67/02H04L67/56
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