Network protocol internal proxy forwarding method and device, medium and terminal equipment

A technology of network protocol and forwarding method, which is applied in the field of proxy forwarding method, media and terminal equipment, and devices within the network protocol, which can solve the problems of inconvenient use for users and complicated port connection methods, and achieve the effect of improving the convenience of use

Inactive Publication Date: 2020-01-10
广州江南科友科技股份有限公司
4 Cites 5 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0004] The present invention provides a network protocol internal agent forwarding method, device, medium and terminal equipment. Multiple protocols are supported in one port, and the protocols used are distinguished by judging the message format and forwarded to different functional modules. Proces...
View more

Method used

2, adopt agent mode to realize, analyze the message received by external port network agent, thereby forward to the port on the internal different agreement, such implementation mode simplifies realization, is more conducive to the old system simultaneously expand.
[0036] In the technical solution of the present invention: TCP: Transmission Control Protocol (Transmission Control Protocol) is a connection-oriented, reliable, byte stream-based transport layer communication protocol. TLS: Transport Layer Security (TransportLayer Security), its predecessor is Secure Sockets Layer (Secure Sockets Layer, abbreviated as SSL) is a security protocol, the purpose is to provide security and data integrity guarantee for Internet communication. http: Hypertext Transfer Protocol (HyperTextTransfer Protocol), is a request ...
View more

Abstract

The invention discloses a network protocol internal proxy forwarding method. The method comprises the following steps: receiving and obtaining a request message sent from a client application program;analyzing the request message to obtain a message format; distinguishing a message protocol to carry out forwarding processing according to the message format; performing service processing accordingto the content of the distinguishing protocol. According to the invention, a plurality of protocols are supported to be completed in one port; through judging message format, the used protocols are distinguished and forwarded to different functional modules to be processed, so that the technical problems that a traditional one-to-one port connection method adopted for connection between an application and a server is complex and a user inconveniently uses the protocols are solved, the support of multiple message protocols on the same port is realized, and the use convenience of the user is further improved.

Application Domain

Transmission

Technology Topic

EngineeringDistributed computing +6

Image

  • Network protocol internal proxy forwarding method and device, medium and terminal equipment
  • Network protocol internal proxy forwarding method and device, medium and terminal equipment

Examples

  • Experimental program(3)

Example Embodiment

[0050] Embodiment 1, the client application sends the message that contains the TLS domain and adopts the https protocol to the server;
[0051] will go through the following steps:
[0052] 1. The client application sends a request https message;
[0053] 2. After the server application receives the message, it parses the message;
[0054] 3. The server application program forwards according to the message format, distinguishing the protocol;
[0055] Specifically: the packet contains TLS protocol packets, and TLS unpacking is performed. After unpacking, it is distinguished that the data field in the packet is a packet using the http protocol; the data field in the packet adopts the http protocol, which is forwarded to the http module for processing;
[0056] 4. The server-side application performs business processing.

Example Embodiment

[0057] Embodiment 2, the client application sends a TCP message to the server, which does not contain a message in the TLS domain;
[0058] will go through the following steps:
[0059] 1. The client application sends a request TCP message;
[0060] 2. After the server application receives the message, it parses the message;
[0061] 3. The server application program forwards according to the message format, distinguishing the protocol;
[0062] Specifically: the message does not have a TLS protocol message, and the data field in the message is a non-http protocol message; the data field in the message is a non-http protocol message, which is forwarded to the TCP module for processing;
[0063] 4. The server-side application performs business processing.

Example Embodiment

[0064] Embodiment 3, the client application sends the http message to the server, which does not contain the message of the TLS domain;
[0065] will go through the following steps:
[0066] 1. The client application sends a request http message;
[0067] 2. After the server application receives the message, it parses the message;
[0068] 3. The server application program forwards according to the message format, distinguishing the protocol;
[0069] Specifically, if the message has no TLS protocol message, it is distinguished that the data field in the message adopts the http protocol message; the data field in the message adopts the http protocol, which is forwarded to the http module for processing;
[0070] 4. The server-side application performs business processing.
[0071] The technology of the invention realizes that multiple protocols are supported in one port, and the application program can send information of different protocols to this port only if it knows the information of one port of the server, and the server judges the format of the information and distinguishes the protocols used. Do forwarding to a different function raw socket port for processing.
[0072] The advantages of the present invention are:
[0073] 1. Provide network services of different network protocols (TCP, TLS, HTTP) on the same network port, realizing the multiplexing of network ports.
[0074] 2. It is implemented in proxy mode, and the received packets are parsed through the external port network proxy, and then forwarded to the internal ports on different protocols. This implementation method simplifies the implementation and is more conducive to the expansion of the old system.
[0075] The embodiment of the present invention also provides a network protocol internal proxy forwarding device, including:
[0076] A message obtaining module, configured to receive and obtain a request message sent from a client application; in this embodiment, the message protocol includes TCP, TLS, http or https.
[0077] a message parsing module, configured to parse the request message to obtain a message format;
[0078] a protocol distinguishing module, configured to distinguish a packet protocol for forwarding processing according to the packet format;
[0079] In this embodiment, the protocol distinguishing module includes: a packet judging unit, configured to distinguish the packet types of the packet protocols, and determine whether the packet types contain TLS protocol packets; a forwarding processing unit, configured to After the packet types are distinguished, the protocol types of the data fields in the packets are distinguished, and the packets are forwarded to corresponding processing modules for processing according to different types.
[0080] In this embodiment, the forwarding processing unit includes: a first processing subunit for judging the http protocol adopted in the data field in the packet, and forwarding to the http module for processing; a second processing subunit, It is used to judge when the non-http protocol adopted in the data field in the message is forwarded to the TCP module for processing.
[0081] The service processing module is configured to perform service processing according to the content of the differentiation protocol.
[0082] An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program; wherein, the computer program controls a device where the computer-readable storage medium is located to execute the above-mentioned operation when running. The method for forwarding a proxy within a network protocol according to any one of the embodiments.
[0083] An embodiment of the present invention further provides a terminal device, the terminal device includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor executes the The computer program implements the method for forwarding an internal proxy of a network protocol described in any of the foregoing embodiments.
[0084] Preferably, the computer program can be divided into one or more modules/units (eg computer program, computer program), the one or more modules/units are stored in the memory, and are executed by the processor Execute to complete the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device.
[0085] The processor may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf processor Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may be any A conventional processor, which is the control center of the terminal equipment, uses various interfaces and lines to connect various parts of the terminal equipment.
[0086] The memory mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system, an application program required for at least one function, and the like, and the data storage area can store related data and the like. In addition, the memory may be a high-speed random access memory, and may also be a non-volatile memory, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, and a flash memory card ( Flash Card), etc., or the memory can also be other volatile solid-state storage devices.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Vehicular Bluetooth playing device

Owner:SHENZHEN YAGUAN ELECTRONICS CO LTD

Image processing method, image processing device, terminal and readable storage medium

InactiveCN112130735AAvoid CatonImprove ease of use
Owner:REALME MOBILE TELECOMM SHENZHEN CO LTD

Classification and recommendation of technical efficacy words

  • Improve ease of use

Air conditioning system and method of operating same

InactiveCN101178235AImprove ease of use
Owner:LG ELECTRONICS (TIANJIN) APPLIANCES CO LTD

Refrigerator

ActiveCN109990557AImprove ease of useMinimize the loss of storage space
Owner:LG ELECTRONICS INC
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