Unlock instant, AI-driven research and patent intelligence for your innovation.

Method and device for obtaining client address

A client and address technology, applied in the field of data transmission, can solve the problem that the business server cannot directly obtain the client address.

Active Publication Date: 2019-09-03
TENCENT TECH (SHENZHEN) CO LTD
View PDF7 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Since the client address is hidden when the proxy server forwards the data packet of the client, the service server cannot directly obtain the client address, the embodiment of the present invention provides a method and device for obtaining the client address

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 and device for obtaining client address
  • Method and device for obtaining client address
  • Method and device for obtaining client address

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0048] In a possible implementation manner, the filter rule is set according to the attribute of the target data packet.

[0049] Exemplarily, when the target data packet is a SYN packet, the identification field of the SYN packet is acquired, and then the filtering rule is set to filter out data packets containing the identification field of the SYN packet.

[0050] In a possible implementation manner, filter rules are set according to the attributes of the target data packet and the address of the service server providing external services.

[0051] Exemplarily, when the target data packet is a SYN packet, the identification field of the SYN packet is obtained. It is determined that when the service server establishes a TCP / IP connection with the client, the service server provides the server's IP address and port address to the outside. The filter rule is set as follows: first filter the data flow according to the IP address and port address of the server provided by the b...

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 provides a method and a device for obtaining a client address, relates to the technical field of data transmission, and the method comprises the following steps: monitoring a data stream received by a network interface, and determining a target data packet from the data stream according to a filtering rule, the target data packet being forwarded by an intermediate server. When the target data packet is the network connection request packet, the TOA field of the head part of the network connection request packet is analyzed to obtain the client address, so that the problem that a service server cannot directly obtain the client address due to the fact that an intermediate server hides the client address is avoided. And secondly, as the network interface of the service server is monitored to obtain the data stream and the target data packet is obtained from the data stream, the process of obtaining the client address is independent of the actual service process of the service server, the service logic of the service server does not need to be changed, and the operation of normal services is not influenced. In addition, deep transformation of the underlying protocol stack is not needed, and dependence on the system is avoided.

Description

technical field [0001] The embodiment of the present invention relates to the technical field of data transmission, in particular to a method and device for obtaining a client address. Background technique [0002] At present, many network service providers need to obtain the real Internet Protocol Address (Internet Protocol Address, referred to as IP address) and port (Port) of the client for formulating and optimizing business policies. In addition, the IP and Port information of the client, as basic statistical data, is of great significance to the monitoring and evaluation of online business operations. The business server can directly obtain the client address through the application programming interface (Application Programming Interface, referred to as API), but when a proxy server is added in front of the business server, the proxy server will hide the client address, and then send the address of the proxy server to For the business server, the proxy server address...

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): H04L12/26H04L29/06
CPCH04L43/08H04L69/22H04L69/16
Inventor 闵江涛
Owner TENCENT TECH (SHENZHEN) CO LTD