Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and device for acquiring indicator of TCP connection in multi-processor environment

A multi-processor and acquisition method technology, applied in the Internet field, can solve the problems of inability to obtain deeper data of TCP connections, inability to realize TCP connection optimization, inaccurate analysis results, etc., and achieve simplified design, flexible loading, and data accuracy. high effect

Active Publication Date: 2015-05-06
BEIJING BAIDU NETCOM SCI & TECH CO LTD
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The existing technology has the following disadvantages: (1) low efficiency, complex logic and low efficiency when copying data packets to the application layer, and low sampling rate makes the analysis results inaccurate; (2) deeper data in the TCP connection cannot be obtained , so that it is impossible to realize and guide the optimization of TCP connections

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 acquiring indicator of TCP connection in multi-processor environment
  • Method and device for acquiring indicator of TCP connection in multi-processor environment
  • Method and device for acquiring indicator of TCP connection in multi-processor environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] 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.

[0028] 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 a device for acquiring an indicator of TCP connection used in a kernel layer in a multi-processor environment. The method comprises the following steps of: requesting permission from a cache module to acquire a pointer pointing to an information entry; acquiring a first data in a TCP connection data packet from skb; saving the first data to an information entry to which the pointer points; reading the first data from the information entry and converting the first data in the information entry into a second data; saving the second data to a log buffer; and writing the second data in the log buffer into a log file. According to the method in an embodiment of the invention, a module can be flexibly loaded or unloaded. The method has high efficiency, high packet capture rate and high data accuracy rate, and can make sure that data will not be lost. With the method, deeper TCP connection data can be easily obtained. Besides, the method is simple in design and assists in acquiring all the data needed under the precondition of low consumption (such as low CPU occupation). Indicator obtaining can be completed directly through a kernel thread by outputting data, without replication and with high efficiency.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to an index acquisition method and device for a TCP connection working at a kernel layer in a multiprocessor environment. Background technique [0002] In the prior art, when monitoring TCP traffic, acquiring TCP connection indicators, or deeply analyzing TCP connections, the underlying data packets are copied and processed accordingly at the application layer. [0003] The existing technology has the following disadvantages: (1) low efficiency, complex logic and low efficiency when copying data packets to the application layer, and low sampling rate makes the analysis results inaccurate; (2) deeper data in the TCP connection cannot be obtained , so that it is impossible to realize and guide the optimization of the TCP connection. Contents of the invention [0004] The present invention aims to solve at least one of the above-mentioned technical problems. [0005] For this ...

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): G06F15/163H04L29/06
CPCY02D30/50
Inventor 唐济生蒋浩
Owner BEIJING BAIDU NETCOM SCI & TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products