A method for multiplexing network packet headers at the application layer

A technology of network message and application layer, which is applied in the field of communication, can solve the problems that the mark cannot be obtained and can only be used by the Linux kernel protocol stack, etc., to achieve the effect of improving data processing performance, easy tracking, and improving performance

Active Publication Date: 2021-11-26
CHENGDU DBAPP SECURITY
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The Linux kernel provides basic network firewall functions, namely Netfilter / Iptables. The firewall can flexibly mark packets according to the rules, but unfortunately this mark cannot be obtained by the application layer and can only be used by the Linux kernel protocol stack.

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
  • A method for multiplexing network packet headers at the application layer
  • A method for multiplexing network packet headers at the application layer
  • A method for multiplexing network packet headers at the application layer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0037] A method for multiplexing network packet headers at the application layer, which performs custom mapping on the header fields of each layer of the IP network, converts them into application layer labels, and sends the converted labels to the application layer through the protocol stack, and the application layer Directly use the tag sent as the session ID to process the data instead of generating a set of session tags by itself. The key point is that the application layer maps and multiplexes the header labels at the bottom layer of the network to reduce redundancy and improve the data processing performance of the entire network. At the same time, the unification of labels can reduce the difficulty of diagnosing network problems.

[0038] like figure 1 As shown, the input direction: the message passes through several data processing modules of "label mapping->network protocol stack->label extraction->application program" in sequence. Output direction: The message pas...

Embodiment 2

[0040] This embodiment is optimized on the basis of embodiment 1, such as figure 2 As shown in , the packets in the input direction go through the following processing steps in sequence:

[0041] 1. Extract the mapping source field. The extraction basis is set by the application program, and the optional fields include Mac address, Ethernet protocol number, VLAN Tag, VXLAN ID, IP address, IP protocol number, IP port number, etc. It can be a single field or a combination of multiple fields.

[0042] 2. Perform mapping according to the mapping algorithm to obtain the application tag value. The mapping algorithm is set by the application. It can be a simple one-to-one mapping, or hash calculation based on the combination of multiple fields. The optional calculation hash algorithm includes CRC16, CRC32, MD5, etc. One-to-one mapping directly uses a message field such as a Mac address as the application label, and hash mapping uses the hash result as the application label.

[0...

Embodiment 3

[0050] This embodiment is optimized on the basis of embodiment 1 or 2, as figure 2 As shown in , packets in the output direction go through the following steps in sequence:

[0051]1. The application writes the label into the protocol stack message control field. Similar to the input direction, the implementation of this step may be slightly different for different protocol stack implementations. Some can reuse existing fields in the message control structure, while others need to add a new field.

[0052] 2. Write the tag into the message. Unlike the packet input direction, the label reverse mapping in the output direction does not support hash mapping. The reason is that due to the limitation of traditional network equipment, the network layer packet header cannot be modified arbitrarily. However, in some scenarios, the network layer still allows modification of the header. For example, the network layer uses a user-defined SDN network. In this solution, the application...

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 discloses a method for multiplexing network message headers at the application layer, which performs custom mapping on the header fields of each layer of the IP network, converts them into application layer labels, and sends the converted labels to the application through the protocol stack. The application layer directly uses the sent label as the session ID to process the data, and the application layer maps and multiplexes the network bottom header label. The invention reduces redundancy and improves the data processing performance of the entire network. At the same time, the unification of labels can reduce the difficulty of diagnosing network problems.

Description

technical field [0001] The invention belongs to the technical field of communication, and in particular relates to a method for multiplexing network message headers at an application layer. Background technique [0002] For the processing of network packets, there are various devices and software, and the layers of these devices and software can be divided into network layer and application layer, both of which perform their respective functions. The network layer device and software process and forward the message according to the header of the message, and the application layer device and software process and respond to the data according to the message content. [0003] The network layer adopts a hierarchical structure, and data packets have different header fields (ie labels) at each level, and different labels are suitable for different network scenarios. For example, Mac tags are used for Layer 2 forwarding, IP tags are used for Layer 3 forwarding, and Vlan tags are u...

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): H04L12/723H04L12/46H04L45/50
CPCH04L45/50H04L12/465
Inventor 刘佳范渊吴永越郑学新刘韬
Owner CHENGDU DBAPP SECURITY
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