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

A 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: 2022-08-02
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 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
  • A method and device for obtaining client address
  • A method and device for obtaining client address
  • A method and device for obtaining client address

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0048] In a possible implementation, filtering rules are set according to attributes of target data packets.

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

[0050] In a possible implementation, filtering rules are set according to the attributes of the target data packets and the addresses of the service servers that provide services to the outside world.

[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 IP address and port address of the server to the outside world. Set the filtering rule to: first filter the data stream according to the IP address and port address of the server provid...

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

Embodiments of the present invention provide a method and device for obtaining a client address, which relate to the technical field of data transmission. The method includes: monitoring a data stream received by a network interface, and determining a target data packet from the data stream according to a filtering rule. is forwarded by the intermediate server. When the target data packet is a network connection request packet, the TOA field in the header of the network connection request packet is parsed to obtain the client address, so as to avoid the problem that the service server cannot directly obtain the client address because the intermediate server hides the client address. Secondly, since the network interface of the monitoring service server obtains the data stream and obtains the target data packet from the data stream, the process of obtaining the client address is independent of the actual service process of the service server, and the business logic of the service server does not need to be changed, thereby not affecting the normal business operations. In addition, there is no need to deeply transform the underlying protocol stack, and there is no dependence on the system.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of data transmission, and in particular, to a method and apparatus 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, IP address for short) 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 (API), but when a proxy server is added to the 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 directly obtained by the API is used instead o...

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 Patents(China)
IPC IPC(8): H04L43/08H04L69/22H04L69/16
CPCH04L43/08H04L69/22H04L69/16
Inventor 闵江涛
Owner TENCENT TECH (SHENZHEN) CO LTD