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

Session log processing method and device

A log and session information technology, which is applied in the field of network communication, can solve problems such as competition conflicts and low performance of write log queues, and achieve the effect of improving writing speed

Active Publication Date: 2016-10-05
HANGZHOU DPTECH TECH
View PDF5 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides a session log processing method and device to solve the problem that in the prior art, when multiple CPUs write to the same log queue at the same time and lock operation is required, there will be serious competition conflicts when multiple CPUs write to the queue, resulting in Log queue performance is very low

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
  • Session log processing method and device
  • Session log processing method and device
  • Session log processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings For further detailed explanation.

[0021] see figure 1 , which is a schematic diagram of an application scenario applying session log processing according to an embodiment of the present invention:

[0022] figure 1 A networking architecture for session log processing is shown in . The architecture includes a first device, a second device and a network device.

[0023] Wherein, the first device and the first device may be terminal devices of the client, wherein the terminal devices may include various smart phones, tablet computers, PCs (Personal Computers, p...

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 present invention provides a session log processing method and a session log processing device. The method is applied to network equipment, wherein the network equipment is provided with a multi-core processor (CPU) and at least two log queues. The method includes the following steps that: when a first device and a second device establish a session or delete a session, session information generated when the first device and the second device are connected is received; corresponding log information generated when the first device and the second device establish the session or delete the session is obtained according to the session information, and a target CPU core for processing the session information is determined according to the session information, wherein the target CPU core is any one core in the multi-core processor; and a log queue serial number corresponding to the log information is calculated according to the target CPU core, and the log information is written into a log queue corresponding to the log queue serial number. With the session log processing method and the session log processing device of the invention adopted, the writing speed of the log information can be improved, and it can be ensure that log information from the same source is written into the same log queue.

Description

technical field [0001] The invention relates to the technical field of network communication, in particular to a session log processing method and device. Background technique [0002] Session (session) means that one party to the communication can associate a series of messages so that the messages can depend on each other. The session log refers to the information about the user address or port mapping relationship obtained by the network device according to the user's needs when the session is newly created or the session is removed, such as: the Internet Protocol (IP) address and the destination IP address of the interconnection between the source networks. address, source port, etc. Wherein, each session log can be saved in the form of a queue. [0003] In the prior art, a multi-core processor refers to a network device that is configured as a multi-core central processing unit (Central Processing Unit, CPU), usually having an 8-core CPU, a 16-core CPU, or a 32-core C...

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): H04L29/06
Inventor 刘世贞
Owner HANGZHOU DPTECH TECH
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