Method and device for transmitting IPv4 address and port of client-side to back-end server

An ipv4 address and client technology, which is applied in the computer field, can solve the problems of being unable to carry out business normally, unable to see the real source IP of the client, and unable to locate the client address, etc., and achieve the effect of strong flexibility and high portability

Active Publication Date: 2013-09-11
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In the existing load balancing equipment, if the NAT (Network Address Translation) mode is adopted, the real backend server can only see the backend IP of the load balancing equipment, but cann

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 transmitting IPv4 address and port of client-side to back-end server
  • Method and device for transmitting IPv4 address and port of client-side to back-end server
  • Method and device for transmitting IPv4 address and port of client-side to back-end server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] Embodiments of the present invention are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals designate the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary only for explaining the present invention and should not be construed as limiting the present invention. On the contrary, the embodiments of the present invention include all changes, modifications and equivalents coming within the spirit and scope of the appended claims.

[0019] In the description of the present invention, it should be understood that the terms "first", "second" and so on are used for descriptive purposes only, and cannot be interpreted as indicating or implying relative importance. In the description of the present invention, it should be noted that unless otherwise specified and limited, the terms "connected" and "connect...

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 provides a method and device for transmitting an original IPv4 address and a port of a client-side to a back-end server from an IPv4 load balancing device. The method comprises the following steps: the client-side sends data packages to the IPv4 load balancing device; the IPv4 load balancing device carries out address conversion on the original IPv4 address and the port of the client-side, the original IPv4 address and the port of the client-side are stored in a TCP option field, and data packages with the TCP option field are sent; a Linux kernel layer of the server intercepts a syn_recv_sock hook, and a tcp_v4_syn_recv_sock_ttm hook function is mounted so as to obtain and store the original IPv4 address and the port of the client-side in the TCP option field; the Linux kernel layer of the server intercepts a getname hook, and a inet_getname_ttm hook function is mounted so as to extract the original IPv4 address and the port of the client-side to be used by a Linux application layer of the server. Due to the fact that the original IPv4 address and the port information of the client-side are added in the TCP option field, the back-end real server can obtain an original IP and the port information of the client-side, and address positioning can be carried out on a client.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a method for transferring the original IPv4 address and port of a client to a backend server from an IPv4 load balancing device. Background technique [0002] In the existing load balancing equipment, if the NAT (Network Address Translation) mode is adopted, the real backend server can only see the backend IP of the load balancing equipment, but cannot see the real source IP of the client. Therefore, it is impossible to locate the address of the client, so that related services based on geographical information cannot be normally carried out. Contents of the invention [0003] The present invention aims to solve at least one of the above-mentioned technical problems. [0004] Therefore, an object of the present invention is to propose a method that can transmit the original IPv4 address and port of the client to the backend server. [0005] Another object of the present inv...

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/12H04L29/08
Inventor 刘晓光姜丽娜刘涛吴教仁刘宁张诚
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) 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