A network packet processing method, device, electronic device and storage medium

By receiving network filtering rules sent by user state and building target filters, matching and processing filter sub-rules for matching network packets is solved, and the problem of difficulty in interacting with kernel drivers and applications in the prior art is achieved, and more efficient network packet processing is achieved.

CN113691458BActive Publication Date: 2025-02-28BEIJING ZHIZHANGYI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110954516.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-19
Publication Date
2025-02-28
Estimated Expiration
2041-08-19

AI Technical Summary

Technical Problem

In the prior art, WFP drivers work in the kernel state of the operating system, which makes it difficult to interact with the kernel drivers and applications, and it is difficult to develop and debug. In addition, non-compliant code writing can easily cause system crashes and affect the processing efficiency of network packets.

Method used

By receiving network filtering rules sent by user state, split them into filter subrules, and configure them into preset initial filters to build target filters. The target filter subrules are matched according to the target filter, and the target network packet is processed according to the preset network packet processing policy.

Benefits of technology

It reduces the kernel-driven writing process, reduces the difficulty of development and debugging, reduces the skill requirements for developers, avoids system crashes caused by non-compliance in code writing, and effectively improves the processing efficiency of network packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113691458B_ABST
    Figure CN113691458B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a method, device, electronic device and storage medium for processing network packets. The method is executed by kernel state, including: receiving network filtering rules sent by user state, splitting the network filtering rules to obtain at least one filtering sub-rule in the network filtering rules; configuring the filtering sub-rule to a preset initial filter to construct a target filter; matching the obtained network packets to be matched with the filtering sub-rules according to the target filter, and determining the network packets to be matched that match the filtering sub-rules as target network packets; processing the target network packets according to a preset network packet processing strategy. By configuring the filtering rules for kernel state in user state, the operation on kernel state is reduced, and the upper-layer application does not need to write kernel state drivers, thereby improving development efficiency.
Need to check novelty before this filing date? Find Prior Art