High-speed message processing method, apparatus and system

A message processing, high-speed technology, applied in transmission systems, electrical components, etc., can solve the problem of low data packet acquisition ability, and achieve the effect of reducing CPU performance consumption and improving processing capacity

Inactive Publication Date: 2018-06-01
ZTE CORP
View PDF6 Cites 9 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The technical problem to be solved by the embodiment of the present invention is to provide a high-speed message processing method, device and system to so

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
  • High-speed message processing method, apparatus and system
  • High-speed message processing method, apparatus and system
  • High-speed message processing method, apparatus and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Embodiment 1 of the present invention provides a high-speed message processing method, such as figure 1 As shown, the method includes:

[0052] S101. Map the first address of the data packet storage to the user virtual address space through the memory mapping function mmap;

[0053] S102. Create a message receiving thread corresponding to the network card receiving queue;

[0054] S103. Start the message receiving thread, and poll to receive the data message.

[0055] The high-speed message processing method provided by the embodiment of the present invention establishes a preset receiving mode between the operating system kernel module and the user virtual space, so that the user virtual space directly communicates with the network card when sending and receiving data files, and the data files do not need to go through the operating system The kernel performs processing to improve the processing capability of the data file. In addition, the data file is filtered thro...

Embodiment 2

[0057] Embodiment 2 of the present invention provides a high-speed message processing method applied to figure 2 shown in the Internet cache system. Such as figure 2 As shown, the Internet caching system includes a client, an origin site, a redirection server, and a caching server group. When working, the client in the Internet domain initiates a request for resources outside the network; the request is split into the redirection server by DPI (Deep Packet Inspection, deep packet inspection technology); the redirection server receives and analyzes the request packet, and constructs a corresponding The http / 302 redirect message is sent to the requesting client in the domain; after the client receives the request redirect message, the request for resources outside the network is directed to the cache server, and the client initiates a resource request to the cache server again. If the content hits locally , the cache server directly provides user services, otherwise the cach...

Embodiment 3

[0077] The high-speed packet processing method provided by Embodiment 3 of the present invention is applied to figure 2 shown in the Internet cache system. The HTTP GET request from the client is introduced to the redirection server through splitting, and the redirection server parses the HTTP request message, filters the HTTP request message, and reduces the CPU performance consumption of the redirection service.

[0078] Embodiment 3 of the present invention provides a high-speed message processing method, such as Figure 4 As shown, the method includes:

[0079] S401. Determine whether the user attribute of the data message belongs to the user blacklist, and filter the data message corresponding to the user blacklist;

[0080] Wherein, the basis for judging may include the IP address of the client sending the data packet, the sending method of the URL, and the like. In this embodiment, the IP address of the client is used as the judgment basis for description.

[0081]...

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 high-speed message processing method, apparatus and system, and belongs to the technical field of network cache. The method comprises the following steps: mapping a first datamessage storage address into a user virtual address space through a memory mapping function mmap; creating message receiving threads in one-to-one correspondence with network card receiving queues; and starting the message receiving threads, and receiving data messages in a polling manner. According to the high-speed message processing method, apparatus and system provided by the invention, as apreset receiving mode is established between an operating system kernel module and the user virtual space, when the user virtual space receives and sends a data file, the user virtual space directly communicates with a network card, and the data file does not need to be processed by an operating system kernel, so that the processing capability of the data file is improved.

Description

technical field [0001] The invention relates to the technical field of network caching, in particular to a high-speed message processing method, device and system. Background technique [0002] With the development of modern Internet technology and the massive increase of mobile phone users, the role of the Internet cache system is becoming more and more important. The most important component in the Internet caching system is the host that analyzes and schedules to send redirection packets quickly, usually called a redirection server. [0003] Existing packet capture technologies such as Libpcap are mainly composed of two parts: a network tap and a data filter. A network tap collects a copy of data from a network device driver, and a data filter decides whether to accept the packet. Libpcap uses the BSD Packet Filter algorithm to filter the link layer data packets received by the network card. The network card driver copies the received data packet to BPF (Berkeley Packe...

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
IPC IPC(8): H04L29/08
CPCH04L67/568H04L67/5682
Inventor 王井贵陈志敏莫晓斌陈伟峰
Owner ZTE CORP
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