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

CN105991633AActive Publication Date: 2016-10-05HANGZHOU DPTECH TECH
5 Cites 5 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Publication Date
2016-10-05

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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...

Examples

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...