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

Method and device for processing message

A message and request message technology, applied in the field of communication, can solve problems such as low efficiency

Active Publication Date: 2012-11-14
BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
View PDF4 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0026] Embodiments of the present invention provide a method and device for processing messages to solve the problem of low efficiency in processing HTTP request messages in the prior art

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
  • Method and device for processing message
  • Method and device for processing message
  • Method and device for processing message

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042]The first method in the prior art needs to parse each character in the request header of the HTTP request message to find and parse the specified fields that actually need to be parsed, so the efficiency of processing the HTTP request message is low. The second method needs to find all the terminators in the request header through a matching algorithm to locate the position of each field, and needs to sequentially determine whether each field located is a specified field, so the second method performs a judgment. Only one field that does not need to be parsed can be skipped, so the efficiency of processing HTTP request messages is still low.

[0043] In practical applications, the sorting order of the fields in the request header of the HTTP request message is generally fixed. Moreover, the number of characters in some fields is also fixed, such as the Connection field, User-agent field, Accept-Encoding field, Accept-Language field, Accept-charset field, etc. Although th...

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 and a device for processing a message, to solve the problem of lower efficiency in processing the HTTP (hyper text transport protocol) request message in the prior art. The method comprises the steps as follows: when analyzing the appointed field in the HTTP request message, confirming the number of offset characters of the appointed field relative to the starting position of a request header according to the character number and the sort order of fields in the pre-stored request header, and confirming the offset position in the request header based on the number of the offset characters; and when the field of the offset position is the appointed field, analyzing the field, and otherwise, continuing to search and analyze the appointed field according to the sort order of the appointed field and the field of the offset position. According to the method, network equipment can directly skip a plurality of fields not required to be analyzed and search the appointed field, it is not necessary to analyze every character in the request header or search all ending characters in the request header through a matching algorithm, so that the efficiency in processing the HTTP message is improved.

Description

technical field [0001] The invention relates to the technical field of communications, in particular to a method and device for processing messages. Background technique [0002] Hypertext Transfer Protocol (Hyper Text Transfer Protocol, HTTP) is the most widely used network protocol on the Internet, and it is the data communication basis of World Wide Web (WWW). [0003] When the terminal wants to request resources from the server, it needs to send an HTTP request message to the server, and the HTTP request message carries a uniform resource locator (Uniform Resource Locator, URL) of the resource to be requested. The server parses the HTTP request message, and provides corresponding resources according to the URL carried therein. [0004] The format of the HTTP request message is shown in Table 1. [0005] request line request header blank line optional message body [0006] Table 1 [0007] Among them, the request line is composed o...

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): H04L12/56
Inventor 陈国鹏
Owner BEIJING XINWANG RUIJIE NETWORK TECH CO LTD
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