Method and device for processing data packets

A processing method and data packet technology, applied in the field of communication, can solve problems such as inability to obtain client IP addresses

Active Publication Date: 2018-06-19
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

After the backend server receives the data packet, it cannot obtain the IP address of the cli

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 processing data packets
  • Method and device for processing data packets
  • Method and device for processing data packets

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] The technical solutions in the embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention.

[0048] In the prior art, when LVS forwards the data packet sent by the client to the back-end server, it will rewrite the source IP address and destination IP in the data packet, so that the back-end server cannot obtain the client's IP address according to the received data packet. IP address, so that the business analysis of the client cannot be performed.

[0049] In order to solve the above problems, the embodiment of the present invention provides a data packet processing method and device, which can be applied to LVS, and LVS can write the IP address of the client into the received data packet, and forward the data packet to the back-end server, and then This allows the backend server to perform business analysis on the client corresponding to each data packet based on the IP address of the client...

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 processing data packets. The method and the device can be applied to an LVS (Linux Virtual Server). The method comprises the following steps: acquiring all to-be-sent data packets by the LVS; determining sampling data packets, in which IP (Internet Protocol) addresses of corresponding client sides require to be written, of all thedata packets according to a preset data packet sampling rate; writing the IP addresses of the corresponding client sides in the sampling data packets, thus obtaining all target data packets; sending all the target data packets to a preset back-end server, and carrying out service analysis on the client sides corresponding to all the data packets according to the IP addresses of the client sides inall the target data packets by the back-end server based on the processing.

Description

technical field [0001] The present invention relates to the technical field of communications, in particular to a data packet processing method and device. Background technique [0002] In the prior art, LVS (Linux Virtual Server, Linux virtual server) is usually used to realize the communication between the client and the backend server. According to the load balancing technology provided by LVS, a server cluster with high performance and high availability can be realized, and the server cluster has good reliability, scalability and operability. [0003] However, the inventor found in the process of realizing the present invention that the prior art has at least the following problems: [0004] The LVS generally has a virtual IP (Internet Protocol, network protocol) address. When LVS receives the data packet corresponding to the client's request, it will store the data packet into the register. For each data packet in the register, LVS can determine the backend server th...

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/06H04L29/08
CPCH04L67/1008H04L69/06H04L69/22
Inventor 高锦峰吴杰珂
Owner BEIJING QIYI CENTURY SCI & 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