Method, apparatus and server for processing data packet

A processing method and technology of a processing device, applied in the field of communication, can solve the problems of no message confirmation and retransmission mechanism, large message body, low parsing efficiency, etc., and achieve the effect of ensuring communication quality mode and integrity.

Active Publication Date: 2016-06-01
CHINA MOBILE GRP GUANGDONG CO LTD
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] In order to solve the above technical problems, the present invention discloses a data packet processing method, device and server, which solves the problems in the prior art that the message body is large, the analysis efficiency is low, and there is no strict message confirmation and retransmission mechanism, which is prone to loss. Package or duplication, not suitable for business speed

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, apparatus and server for processing data packet
  • Method, apparatus and server for processing data packet
  • Method, apparatus and server for processing data packet

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0069] In order to make the technical problems, technical solutions and advantages to be solved by the present invention clearer, the following will describe in detail with reference to the drawings and specific embodiments.

[0070] The present invention adopts the communication mode of the data protocol packet, encapsulates the XMPP data packet with the protocol header, guarantees the integrity of the data through the length field of the protocol header, and defines the communication quality of different types of data packets, thereby ensuring the communication quality of different types of data packets mode, and convert the original package body into a format that is more conducive to compression algorithms for compression.

[0071] Such as figure 1 As shown, in an embodiment of the present invention, a method for processing a data packet includes:

[0072] Step 1, generating the XMPP message data based on the Extensible Message and Presence Protocol to be sent, the XMPP m...

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 present invention provides a method, an apparatus and a server for processing a data packet. The method comprises the steps of: generating XMPP (Extensible Messaging and Presence Protocol)-based message data to be transmitted, wherein the XMPP-based message data comprises a message header and a message body; performing self-defined packaging for the message header to obtain a packaged message header; converting the message body into a message body conforming to a preset protocol format; packaging the packaged message header and the message body conforming to the preset protocol format to obtain a new message packet; and transmitting the new message packet. According to the method, the apparatus and the server of the present invention, a communication mode of data protocol packets is adopted, an XMPP data packet is packaged by a protocol header, integrity of data is ensured through length field of the protocol header; in addition, communication quality of different types of data packets is defined, so that communication quality modes of different types of data packets can be ensured; and an original packet body is converted into UTF-8 byte stream for processing, thereby facilitating compression with a compression algorithm.

Description

technical field [0001] The present invention relates to the technical field of communication, in particular to a data packet processing method, device and server. Background technique [0002] XMPP (Extensible Messaging and Presence Protocol) is an open instant messaging protocol based on Extensible Markup Language (XML), and is an Internet standard approved by the Internet Engineering Task Force (IETF). XMPP specifies a near-real-time, scalable Instant Messaging (Instant Messaging) transmission standard, and occupies a large share in the instant messaging market by virtue of its great flexibility and openness. Many Internet and computer industry giants use the XMPP protocol to realize their instant messaging services. [0003] At present, in the whole world, many large-scale instant messaging (IM) systems in operation are based on the XMPP protocol or the XMPP protocol framework to transform and expand similar protocols. [0004] Since the XMPP protocol is developed from ...

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): H04L1/16H04L29/06H04L12/58
Inventor 陈雅娟王劲鹏温建明刘翔林哲
Owner CHINA MOBILE GRP GUANGDONG CO LTD
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