WO2009000119A1 - Data transmission system and transmission method thereof - Google Patents

Data transmission system and transmission method thereof Download PDF

Info

Publication number
WO2009000119A1
WO2009000119A1 PCT/CN2007/003559 CN2007003559W WO2009000119A1 WO 2009000119 A1 WO2009000119 A1 WO 2009000119A1 CN 2007003559 W CN2007003559 W CN 2007003559W WO 2009000119 A1 WO2009000119 A1 WO 2009000119A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
soap message
xml
algorithm
attribute value
Prior art date
Application number
PCT/CN2007/003559
Other languages
French (fr)
Chinese (zh)
Inventor
Yuxiang Feng
Original Assignee
Zte Corporation
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zte Corporation filed Critical Zte Corporation
Publication of WO2009000119A1 publication Critical patent/WO2009000119A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/04Protocols for data compression, e.g. ROHC
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]

Definitions

  • the present invention relates to the field of computer communications, and in particular to a data transmission system and a method for reducing network bandwidth occupied by a Soap protocol by using a data compression algorithm.
  • BACKGROUND In the current field of computer communication, in order to meet the needs of communication between heterogeneous devices, the WebService protocol has been increasingly applied.
  • the encapsulation protocol for data in the WebService interface is the Soap protocol, which is usually transmitted using the Http protocol.
  • the relationship between WebService, Soap and XML is shown in Figure 1.
  • the Soap protocol uses XML statements to describe the data content.
  • the compression method is to recombine and optimize the strings without destroying the data encoding format (UTF8, gb2312, etc.).
  • This approach is similar to the way huffman coding.
  • the standard methods for reading and manipulating XML data streams are the DOM (Document Object Model) approach and the SAX (Simple API for XML) approach.
  • the methods proposed by the researchers are all modified and applied to the DOM or SAX methods, which can directly parse the data stream.
  • the disadvantage is that it is difficult to implement, because there is no ready-made implementation code to use, and more importantly, the compression ratio is very low, and the bandwidth occupation problem cannot be fundamentally solved.
  • the present invention has been made in view of the above problems, and an object of the present invention is to provide a data transmission system and a transmission method thereof.
  • the method includes: a data transmitting device, configured to compress the XML portion in the Soap message and package the compressed data as an accessory into the Soap message, and send the packaged Soap message to the data receiving And a data receiving device, configured to: after receiving the Soap message, extract an attachment of the Soap message, and decompress the accessory to obtain an XML part.
  • the data sending device includes: a data compression module, configured to compress the XML portion in the Soap message to obtain binary data; and a first data recombining module, configured to reassemble the compressed binary data as an attachment into the Soap message and send the Soap message To the data receiving device, wherein the data compression module identifies the compression method by the attribute value of the content type field.
  • the data receiving apparatus includes: a second data recombining module, configured to extract the attribute values of the binary data and the content type field in the received Soap message; and a data decompression module, configured to decompress the binary data according to the attribute value.
  • the above attribute value is one of the following: lzw data corresponding to the lzw algorithm, k78 data corresponding to the 1 ⁇ 78 algorithm, and 1 ⁇ 77 data corresponding to the 1 ⁇ 77 algorithm.
  • the attribute value is one of the following: lzw data / XML, 1 ⁇ 78 data / XML, 1 ⁇ 77 data / XML.
  • Step S302 The data sending end compresses the XML part of the Soap message and packages the compressed data as an attachment into the Soap message, and sends the packaged Soap message.
  • step S304 After receiving the Soap message, the data receiving end extracts the attachment of the Soa message and decompresses the attachment to obtain the XML part.
  • the step S302 includes: Step S302-2, according to the sender, compressing the XML part in the Soap message to obtain binary data; Step S302-4, recombining the compressed binary data as an attachment into the Soap message and Soap The message is sent to the data receiving end, where the data compression module identifies the compression method by the attribute value of the content type field.
  • Step S304 includes: step S304-2, the data receiving end extracts the binary data in the received Soap message and the attribute value of the content type field; and step S304-4, the binary data is solved according to the attribute value.
  • the above attribute value is one of the following: lzw data corresponding to the lzw algorithm, 1 ⁇ 78 data corresponding to the 1 ⁇ 78 algorithm, and 1 ⁇ 77 data corresponding to the 1 ⁇ 77 algorithm.
  • the attribute value is one of the following: lzw data / XML, 1 ⁇ 78 data / XML, 1 ⁇ 77 data / XML.
  • FIG. 1 is a diagram showing a relationship between a prior art WebService, Soap, and XML;
  • FIG. 2 is a structural diagram showing a data transmission system according to an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT OF THE INVENTION
  • FIG. 2 is a block diagram showing a data transmission system according to an embodiment of the present invention. As shown in FIG.
  • the data transmission system includes: a data sending device 202, configured to compress an XML portion in a Soap message, and package the compressed data as an accessory into a Soap message, and send the packaged Soap message to the data.
  • a receiving device configured to: after receiving the Soa message, extract an attachment of the Soap message, and decompress the accessory to obtain an XML part.
  • the data sending device 202 includes: a data compression module 202-2, configured to compress the XML portion in the Soap message to obtain binary data, and the algorithm used is a traditional compression algorithm, such as LZ77, LZ78, LZW, etc., data compression module ⁇ !
  • the xml part of the Soap message is compressed to obtain a series of binary data; the first data recombining module 202-4 is configured to reassemble the compressed binary data as an attachment into the Soap message and send the Soap message to the data receiving apparatus.
  • the data receiving apparatus 204 includes: a second data recombining module 204-2, configured to extract the attribute values of the binary data and the content type field in the received Soap message, and the recombining module extracts the binary data in the attachment. Then, using the data decompression module, the data block is decompressed using the compression algorithm identified by the Content-Type field to obtain the original xml format data; and the data decompression module 204-4 is used to perform the attribute value on the binary data.
  • FIG. 3 is a flow chart showing a data transmission method according to an embodiment of the present invention.
  • the data transmission method includes the following steps: Step S302: The data sending end compresses the XML part of the Soap message and packages the compressed data as an attachment into the Soap message, and sends the packaged Soap message to the The data receiving end; Step S304, after receiving the Soap message, the data receiving end extracts the attachment of the Soa message, and decompresses the accessory to obtain the XML part.
  • step S302 includes: Step S302-2, the data sending end compresses the XML part in the Soap message to obtain binary data; Step S302-4, reassembles the compressed binary data as an attachment to the Soap message.
  • Step S304 includes: Step S304-2: The data receiving end extracts the binary data in the received Soap message and the attribute value of the content type field; and in step S304-4, decompresses the binary data according to the attribute value.
  • the attribute value is one of the following: lzw data corresponding to the lzw algorithm, 1 ⁇ 78 data corresponding to the 1 ⁇ 78 algorithm, and 1 ⁇ 77 data corresponding to the 1 ⁇ 77 algorithm.
  • An example is as follows: An existing uncompressed Soap response packet is as follows: HTTP/1.1 200 ok
  • the bold part is the XML data that needs to be transferred, and the block size is about 570 bytes.
  • a new data block is obtained.
  • the new data block uses binary representation: 0x52 0x61 0x72 0x21 0x7B 0x00 0x40 0x07 0x00, with 250 bytes, compressed to the original 44%.
  • Use Http to transfer this data block, and get the new data packet as follows:
  • the data in each packet can be compressed separately.
  • the value of Content-Type can be extended to: lzwdata/xml, lz77data/xmL lz78data/xml, etc.
  • the implementation code of the algorithm (lzw, 1 ⁇ 77, 1 ⁇ 78) of the present invention is ready-made and convenient to implement; the compression ratio is particularly large, compared with the compression algorithm of the same type proposed by various researchers, the compression of this implementation mode The effect is the best. As you can see from the example, the xml data is compressed to 44%, and the whole package is reduced by 320 bytes.

Abstract

A data transmission system is disclosed. It includes: a data sending device, for compressing the XML component in the soap message, packaging the compressed data to the soap message as attachments, and sending the packaged soap message to the data receiving device; a data receiving device, for extracting the attachments of the soap message after receiving the soap message, and decompressing the attachments to get the XML component .A data transmission method is also disclosed. It includes the following steps: the data sending side compresses the XML component in the soap message, packages the compressed data to the soap message as attachments, and sends the packaged soap message to the data receiving side; the data receiving side extracts the attachments of the soap message after receiving the soap message, and decompresses the attachments to get the XML component.

Description

数据传输系统及其传输方法 技术领域 本发明涉及计算机通信领域, 具体地说 , 涉及一种数据传输系统以及利 用数据压缩算法减少 Soap协议占用的网络带宽的方法。 背景技术 在目前的计算机通信领域中, 为了满足异构设备之间通信的需要, 使得 WebService协议得到了越来越多的应用。 WebService接口中数据的封装协议 是 Soap协议, 通常采用 Http协议进行传输。 WebService, Soap和 XML之 间的关系如图 1所示。 Soap协议使用 XML语句描述数据内容, 具有简单易 读的优点, 但是数据冗余量较大, 有大量的描述字符。 现在通过无线网络上网, 进行数据通信的需求越来越大。 用户使用无线 上网获取信息是通信发展的大趋势。 用户无线上网, 使用的还是和普通电脑 上网一样的通信协议, 所有的数据都是承载在 IP协议上的 , 只是用户接入的 方式采用的是无线方式而已。 如果要使用无线上网, 那么 Soap协议就会被越来越多的使用到。 但是 无线这种接入方式就使网络带宽十分有限和宝贵, 满足不了用户的需求, 限 制了无线上网业务的开展。 所以在使用 Soap协议通信的时候, XML语句信 息冗余量大的缺点就会十分明显。 为了解决这个矛盾, 现在很多研究者提出了自己的方法。 但都是采用一 些复杂的算法对数据流进行编码压缩, 压缩的方式都还是在不破坏数据的编 码格式 (UTF8、 gb2312等)的基 上对字符串进行重新组合, 优化。 这种方式 类似于 huffman编码的方式。读取和操纵 XML数据流的标准方法还是 DOM (文档对象模型) 方式和 SAX ( Simple API for XML ) 方式。 研究者们提出 的方法都是对 DOM或者 SAX方式进行修改并应用 ,可以直接对数据流进行 解析。 缺点是实现困难, 因为没有现成的实现代码可以用, 而且更重要的是 压缩率很低, 不能从根本上解决带宽的占用问题。 另外, 随着 CPU计算能力的提高, 现在手机终端的运算能力越来越强。 这就使得手机终端完成一些运算量大但是十分通用的算法成为可能。 发明内容 考虑到上述问题而做出本发明, 为此,本发明的目的在于提供数据传输 系统及其传输方法。 才艮据本发明数据传输系统, 包括: 数据发送装置, 用于将 Soap消息中 的 XML部分进行压缩并将压缩后的数据作为附件打包到 Soap消息中,将打 包后的 Soap消息发送至数据接收装置; 数据接收装置, 用于在接收到 Soap 消息后, 提取 Soap消息的附件, 并对附件进行解压以得到 XML部分。 数据发送装置包括: 数据压缩模块, 用于将 Soap消息中的 XML部分 进行压缩得到二进制数据; 第一数据重组模块, 用于将压缩得到的二进制数 据作为附件重组到 Soap消息中并将 Soap消息发送至数据接收装置 , 其中, 数据压缩模块通过内容类型字段的属性值标识压缩方法。 数据接收装置包括: 第二数据重组模块, 用于提取接收到的 Soap消息 中的二进制数据和内容类型字段的属性值; 以及数据解压模块, 用于根据属 性值对二进制数据进行解压缩。 此外,上述属性值为以下之一:对应于 lzw算法的 lzw数据、对应于 1ζ78 算法的 k78数据、对应于 1ζ77算法的 1ζ77数据。同时属性值为以下之一: lzw 数据/ XML、 1ζ78数据 /XML、 1ζ77数据/ XML。 冲艮据本发明的数据传输方法, 包括以下步骤: 步驟 S302, 数据发送端 将 Soap消息中得 XML部分进行压缩并将压缩后的数据作为附件打包到 Soap 消息中, 将打包后的 Soap消息发送至数据接收端; 步錄 S304, 数据接收端 在接收到 Soap消息后,提取 Soa 消息的附件,并对附件进行解压以得到 XML 部分。 其中,步綠 S302包括:步骤 S302-2, ¾据发送端将 Soap消息中的 XML 部分进行压缩得到二进制数据; 步驟 S302-4, 将压缩得到的二进制数据作为 附件重组到 Soap消息中并将 Soap消息发送至数据接收端, 其中, 数据压缩 模块通过内容类型字段的属性值标识压缩方法。 其中,步骤 S304包括:步驟 S304-2,所述数据接收端提取接收到的 Soap 消息中的二进制数据和所述内容类型字段的属性值; 以及步骤 S304-4, 根据 属性值对二进制数据进行解压缩。 上述属性值为以下之一: 对应于 lzw算法的 lzw数据、 对应于 1ζ78算 法的 1ζ78数据、对应于 1ζ77算法的 1ζ77数据。 同时,属性值为以下之一: lzw 数据/ XML、 1ζ78数据/ XML、 1ζ77数据 /XML。 通过本发明的上述方面, 算法(lzw、 1ζ77、 1ζ78 ) 的实现代码都是现成 的, 实现起来方便; 压缩率特别大, 相比较现在各个研究者提出的同类压缩 算法, 这种实现方式的压缩效果是最好的; 扩展性强, 以后出现了新的数据 压缩算法都可以直接应用。 附图说明 此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是示出了现有技术的 WebService、 Soap和 XML之间的关系图; 图 2是示出了根据本发明实施例的数据传输系统的结构图; 以及 图 3是示出了根据本发明实施例的数据传输方法的流程图; 具体实施方式 以下结合附图对本发明的优选实施例进行说明, 应当理解, 此处所描述 的优选实施例仅用于说明和解释本发明 , 并不用于限定本发明。 在本实施例中,图 2是示出了根据本发明实施例的数据传输系统的结构 图。 如图 2所示, 数据传输系统包括: 数据发送装置 202, 用于将 Soap消息 中得 XML部分进行压缩并将压缩后的数据作为附件打包到 Soap消息中 ,将 打包后的 Soap消息发送至数据接收装置; 数据接收装置 204, 用于在接收到 Soa 消息后, 提取 Soap消息的附件, 并对附件进行解压以得到 XML部分。 数据发送装置 202 包括: 数据压缩模块 202-2, 用于将 Soap消息中的 XML 部分进行压缩得到二进制数据, 它采用的算法是传统的压缩算法, 如 LZ77、 LZ78、 LZW等, 数据压缩模块 ^!夸 Soap消息中的 xml部分进行压缩, 得到一系列的二进制数据; 第一数据重组模块 202-4, 用于将压缩得到的二 进制数据作为附件重组到 Soap消息中并将 Soap消息发送至数据接收装置。 数据接收装置 204包括: 第二数据重组模块 204-2, 用于提取接收到的 Soap消息中的二进制数据和内容类型字段的属性值, 重组模块将附件中的二 进制数据提取出来。 然后使用数据解压模块, 使用 Content-Type (内容类型) 字段标识的压缩算法对数据块进行解压, 得到原始的 xml格式的数据; 以及 数据解压模块 204-4, 用于 居属性值对二进制数据进行解压缩, 它采用和 发端相同的算法。 这种处理方式类似于 Http传送文件数据 (比如网页的图片等)的方式。 打包时, 发送端通过 Content-Type字段的属性值, 标示压缩方法。 这里需要 说明的是: 消息重组模块扩展了 Content-Type字段的属性值, 添加了如下属 性: lzwdata、 lz78data、 lz77data, 分别对应 lzw算法、 1ζ78算法和 1ζ77算法。 其中 , 数据压缩模块通过内容类型字段的属性值标识压缩方法。 在本实施例中,图 3是示出了根据本发明实施例的数据传输方法的流程 图。 如图 3 所示, 数据传输方法包括以下步骤: 步骤 S302, 数据发送端将 Soap 消息中得 XML部分进行压缩并将压缩后的数据作为附件打包到 Soap 消息中, 将打包后的 Soap消息发送至数据接收端; 步骤 S304, 数据接收端 在接收到 Soap消息后,提取 Soa 消息的附件,并对附件进行解压以得到 XML 部分。 在该传输方法中, 其中, 步驟 S302包括: 步骤 S302-2, 数据发送端将 Soap消息中的 XML部分进行压缩得到二进制数据; 步驟 S302-4, 将压缩得 到的二进制数据作为附件重组到 Soap消息中并将 Soap消息发送至数据接收 端, 其中, 数据压缩模块通过内容类型字段的属性值标识压缩方法。 其中, 步骤 S304 包括: 步骤 S304-2, 数据接收端提取接收到的 Soap 消息中的二进制数据和所述内容类型字段的属性值; 以及步骤 S304-4, 根据 属性值对二进制数据进行解压缩。 在该方法中, 上述属性值为以下之一: 对应于 lzw算法的 lzw数据、 对 应于 1ζ78算法的 1ζ78数据、 对应于 1ζ77算法的 1ζ77数据。 举例如下: 现有一个未压缩的 Soap响应包如下: HTTP/1.1 200 ok BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the field of computer communications, and in particular to a data transmission system and a method for reducing network bandwidth occupied by a Soap protocol by using a data compression algorithm. BACKGROUND In the current field of computer communication, in order to meet the needs of communication between heterogeneous devices, the WebService protocol has been increasingly applied. The encapsulation protocol for data in the WebService interface is the Soap protocol, which is usually transmitted using the Http protocol. The relationship between WebService, Soap and XML is shown in Figure 1. The Soap protocol uses XML statements to describe the data content. It has the advantage of being easy to read, but the data redundancy is large and there are a large number of description characters. Nowadays, the demand for data communication is increasing through the wireless network. Users using wireless Internet access to obtain information is a major trend in communication development. Users wireless Internet access, the same communication protocol as the ordinary computer Internet access, all data is carried on the IP protocol, but the user access method is wireless. If you want to use wireless Internet access, then the Soap protocol will be used more and more. However, the wireless access method makes the network bandwidth very limited and valuable, can not meet the needs of users, and limits the development of wireless Internet services. Therefore, when using the Soap protocol to communicate, the shortcomings of the XML statement information redundancy will be very obvious. In order to resolve this contradiction, many researchers have now proposed their own methods. However, some complex algorithms are used to encode and compress the data stream. The compression method is to recombine and optimize the strings without destroying the data encoding format (UTF8, gb2312, etc.). This approach is similar to the way huffman coding. The standard methods for reading and manipulating XML data streams are the DOM (Document Object Model) approach and the SAX (Simple API for XML) approach. The methods proposed by the researchers are all modified and applied to the DOM or SAX methods, which can directly parse the data stream. The disadvantage is that it is difficult to implement, because there is no ready-made implementation code to use, and more importantly, the compression ratio is very low, and the bandwidth occupation problem cannot be fundamentally solved. In addition, with the improvement of CPU computing power, the computing power of mobile phone terminals is now getting stronger and stronger. This makes it possible for mobile terminals to perform some computationally expensive but very versatile algorithms. SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and an object of the present invention is to provide a data transmission system and a transmission method thereof. According to the data transmission system of the present invention, the method includes: a data transmitting device, configured to compress the XML portion in the Soap message and package the compressed data as an accessory into the Soap message, and send the packaged Soap message to the data receiving And a data receiving device, configured to: after receiving the Soap message, extract an attachment of the Soap message, and decompress the accessory to obtain an XML part. The data sending device includes: a data compression module, configured to compress the XML portion in the Soap message to obtain binary data; and a first data recombining module, configured to reassemble the compressed binary data as an attachment into the Soap message and send the Soap message To the data receiving device, wherein the data compression module identifies the compression method by the attribute value of the content type field. The data receiving apparatus includes: a second data recombining module, configured to extract the attribute values of the binary data and the content type field in the received Soap message; and a data decompression module, configured to decompress the binary data according to the attribute value. Further, the above attribute value is one of the following: lzw data corresponding to the lzw algorithm, k78 data corresponding to the 1ζ78 algorithm, and 1ζ77 data corresponding to the 1ζ77 algorithm. At the same time, the attribute value is one of the following: lzw data / XML, 1ζ78 data / XML, 1ζ 77 data / XML. According to the data transmission method of the present invention, the method includes the following steps: Step S302: The data sending end compresses the XML part of the Soap message and packages the compressed data as an attachment into the Soap message, and sends the packaged Soap message. To the data receiving end; in step S304, after receiving the Soap message, the data receiving end extracts the attachment of the Soa message and decompresses the attachment to obtain the XML part. The step S302 includes: Step S302-2, according to the sender, compressing the XML part in the Soap message to obtain binary data; Step S302-4, recombining the compressed binary data as an attachment into the Soap message and Soap The message is sent to the data receiving end, where the data compression module identifies the compression method by the attribute value of the content type field. Step S304 includes: step S304-2, the data receiving end extracts the binary data in the received Soap message and the attribute value of the content type field; and step S304-4, the binary data is solved according to the attribute value. compression. The above attribute value is one of the following: lzw data corresponding to the lzw algorithm, 1ζ78 data corresponding to the 1ζ78 algorithm, and 1ζ77 data corresponding to the 1ζ77 algorithm. At the same time, the attribute value is one of the following: lzw data / XML, 1ζ78 data / XML, 1ζ77 data / XML. Through the above aspects of the present invention, the implementation codes of the algorithms (lzw, 1ζ77, 1ζ78) are all ready-made and convenient to implement; the compression ratio is particularly large, compared with the compression algorithms of the same kind proposed by various researchers, the compression of this implementation The effect is the best; the scalability is strong, and new data compression algorithms can be applied directly in the future. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a diagram showing a relationship between a prior art WebService, Soap, and XML; FIG. 2 is a structural diagram showing a data transmission system according to an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT OF THE INVENTION The preferred embodiments of the present invention are described in the following with reference to the drawings, and the preferred embodiments described herein are only used to illustrate and explain the present invention. It is not intended to limit the invention. In the present embodiment, FIG. 2 is a block diagram showing a data transmission system according to an embodiment of the present invention. As shown in FIG. 2, the data transmission system includes: a data sending device 202, configured to compress an XML portion in a Soap message, and package the compressed data as an accessory into a Soap message, and send the packaged Soap message to the data. a receiving device; the data receiving device 204, configured to: after receiving the Soa message, extract an attachment of the Soap message, and decompress the accessory to obtain an XML part. The data sending device 202 includes: a data compression module 202-2, configured to compress the XML portion in the Soap message to obtain binary data, and the algorithm used is a traditional compression algorithm, such as LZ77, LZ78, LZW, etc., data compression module ^ ! The xml part of the Soap message is compressed to obtain a series of binary data; the first data recombining module 202-4 is configured to reassemble the compressed binary data as an attachment into the Soap message and send the Soap message to the data receiving apparatus. . The data receiving apparatus 204 includes: a second data recombining module 204-2, configured to extract the attribute values of the binary data and the content type field in the received Soap message, and the recombining module extracts the binary data in the attachment. Then, using the data decompression module, the data block is decompressed using the compression algorithm identified by the Content-Type field to obtain the original xml format data; and the data decompression module 204-4 is used to perform the attribute value on the binary data. Decompressed, it uses the same algorithm as the originator. This kind of processing is similar to the way Http transfers file data (such as pictures of web pages, etc.). When packing, the sender indicates the compression method by the attribute value of the Content-Type field. What needs to be explained here is: The message reassembly module extends the attribute value of the Content-Type field, and adds the following attributes: lzwdata, lz78data, lz77data, which correspond to the lzw algorithm, the 1ζ78 algorithm, and the 1ζ77 algorithm, respectively. The data compression module identifies the compression method by the attribute value of the content type field. In the present embodiment, FIG. 3 is a flow chart showing a data transmission method according to an embodiment of the present invention. As shown in FIG. 3, the data transmission method includes the following steps: Step S302: The data sending end compresses the XML part of the Soap message and packages the compressed data as an attachment into the Soap message, and sends the packaged Soap message to the The data receiving end; Step S304, after receiving the Soap message, the data receiving end extracts the attachment of the Soa message, and decompresses the accessory to obtain the XML part. In the transmission method, step S302 includes: Step S302-2, the data sending end compresses the XML part in the Soap message to obtain binary data; Step S302-4, reassembles the compressed binary data as an attachment to the Soap message. And sending a Soap message to the data receiving end, where the data compression module identifies the compression method by using the attribute value of the content type field. Step S304 includes: Step S304-2: The data receiving end extracts the binary data in the received Soap message and the attribute value of the content type field; and in step S304-4, decompresses the binary data according to the attribute value. In the method, the attribute value is one of the following: lzw data corresponding to the lzw algorithm, 1ζ78 data corresponding to the 1ζ78 algorithm, and 1ζ77 data corresponding to the 1ζ77 algorithm. An example is as follows: An existing uncompressed Soap response packet is as follows: HTTP/1.1 200 ok
Server: Apache/1.3.29 (Unix) Server: Apache/1.3.29 (Unix)
Connection: close Connection: close
Content-Type: text/xml Content-Type: text/xml
content-length: 815 Content-length: 815
<?xml version="1.0" encoding="UTF-8" ?>  <?xml version="1.0" encoding="UTF-8" ?>
<SOAP-ENV:Envelope <SOAP-ENV: Envelope
xmlns:xsi=Mhttp://www. w3.org/2001/XMLSchema-instance" xmlns:xsd=http://www. w3.org/2001 XMLSchema Xmlns:xsi= M http://www. w3.org/2001/XMLSchema-instance" xmlns:xsd=http://www. w3.org/2001 XMLSchema
xmlns:SOAP-ENV="http://schemas.xmIsoap.org/soap/envelope/" Xmlns:SOAP-ENV="http://schemas.xmIsoap.org/soap/envelope/"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/M> Xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/ M >
<SOAP-ENV:Header> <SOAP-ENV:Header>
<TransactionID <TransactionID
xmIns="http://w w.monternet.com/dsmp/schemas/M>9571000000000002</Tra nsactionID> xmIns="http://w w.monternet.com/dsmp/schemas/ M >9571000000000002</Tra nsactionID>
</SOAP-ENV:Header> </SOAP-ENV:Header>
<SOAP-ENV:Body> <SOAP-ENV:Body>
<AuthPriceResp xmlns="http://10.1.2.122/misc/dsmp.xsd"> <Version>1.5.0< Version> </AuthPriceResp> <AuthPriceResp xmlns="http://10.1.2.122/misc/dsmp.xsd"> <Version>1.5.0< Version> </AuthPriceResp>
</SOAP-ENV:Body> </SOAP-ENV:Envelope> 其中粗体部分是需要传送的 XML数据,数据块大小有大约 570个字节。 对这些数据使用 LZW算法进行压缩后, 得到新的数据块。 新数据块使用二 进制表示就是: 0x52 0x61 0x72 0x21 0x7B 0x00 0x40 0x07 0x00, 有 250 个字节, 压缩到了原来的 44 %。 使用 Http对这个数据块进行传送, 得到新的数据包如下: </SOAP-ENV:Body> </SOAP-ENV:Envelope> The bold part is the XML data that needs to be transferred, and the block size is about 570 bytes. After the data is compressed using the LZW algorithm, a new data block is obtained. The new data block uses binary representation: 0x52 0x61 0x72 0x21 0x7B 0x00 0x40 0x07 0x00, with 250 bytes, compressed to the original 44%. Use Http to transfer this data block, and get the new data packet as follows:
HTTP/1.1 200 ok HTTP/1.1 200 ok
Server: Apache/1.3.29 (Unix) Connection: close Server: Apache/1.3.29 (Unix) Connection: close
Content-Type: lzwdata/xml content-length: 495 —MIME— boundary Content-Type: soapdata Content-Type: lzwdata/xml content-length: 495 — MIME— boundary Content-Type: soapdata
Content-ID: Content-ID:
0x52 0x61 0x72 0x21 0x7B 0x00 0x40 0x07 0x00 0x52 0x61 0x72 0x21 0x7B 0x00 0x40 0x07 0x00
— MIME— boundary— 上面数据包中的粗体部分, 1 , Content-Type的描述修改为 lzwdata/xml, 表示下面的数据使用了 lzw算法进行了压缩, 解压后的格式为 xml语句; 2, 加粗的数字部分就是压缩后的二进制数据。 MIME_boundary 表示数据是 Soap消息的附件部分。 接收端接收到数据后, 根据 Content-Type的描述,使用 lzw算法对后面 的二进制数据进行解压得到正常 UTF-8格式的 ml数据。 再使用 SAX或者 DOM方法进行解析就可以得到自己所需要的数据了。 如果出现一个请求或者响应被 Http协议拆包的情况, 则可以分別对每 —个包中的数据进行压缩。 才艮据现在常用的压缩算法, Content-Type 的属性 值可以扩展为: lzwdata/xml、 lz77data/xmL lz78data/xml等。 综上所述, 本发明算法(lzw、 1ζ77、 1ζ78 ) 的实现代码都是现成的, 实 现起来方便; 压缩率特别大, 相比较现在各个研究者提出的同类压缩算法, 这种实现方式的压缩效果是最好的, 从例子就可以看出, xml数据压缩到了 原来的 44% , 整个包减少了 320个字节; 扩展性强, 以后出现了新的数据压 缩算法; t卩可以直接应用。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的精神和 原则之内, 所作的任何修改、 等同替换、 改进等 > 均应包含在本发明的保护 范围之内。 — MIME— boundary— The bold part of the above packet, 1 , the description of Content-Type is modified to lzwdata/xml, indicating that the following data is compressed using the lzw algorithm, and the format after decompression is xml statement; The thicker part is the compressed binary data. MIME_boundary indicates that the data is an attachment to the Soap message. After receiving the data, the receiving end uses the lzw algorithm to decompress the subsequent binary data according to the description of the Content-Type to obtain the ml data in the normal UTF-8 format. Then use the SAX or DOM method to parse and get the data you need. If a request occurs or the response is unpacked by the Http protocol, the data in each packet can be compressed separately. According to the compression algorithm that is currently used, the value of Content-Type can be extended to: lzwdata/xml, lz77data/xmL lz78data/xml, etc. In summary, the implementation code of the algorithm (lzw, 1ζ77, 1ζ78) of the present invention is ready-made and convenient to implement; the compression ratio is particularly large, compared with the compression algorithm of the same type proposed by various researchers, the compression of this implementation mode The effect is the best. As you can see from the example, the xml data is compressed to 44%, and the whole package is reduced by 320 bytes. The scalability is strong, and a new data compression algorithm appears in the future; t卩 can be directly applied. The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种数据传输系统, 其特征在于包括: A data transmission system, comprising:
数据发送装置, 用于对 Soap消息中的 XML部分进行压缩并将压 缩后的数据作为附件打包到所述 Soap消息中, 将打包后的 Soap消息发 送至数据接收装置;  a data sending device, configured to compress the XML portion in the Soap message and package the compressed data as an accessory into the Soap message, and send the packaged Soap message to the data receiving device;
所述数据接收装置,用于在接收到所述 Soap消息后,提取所述 Soap 消息的附件, 并对所述附件进行解压以得到所述 XML部分。  The data receiving apparatus is configured to: after receiving the Soap message, extract an attachment of the Soap message, and decompress the accessory to obtain the XML part.
2. 根据权利要求 1所述的数据传输系统, 其特征在于, 所述数据发送装置 包括: 2. The data transmission system according to claim 1, wherein the data transmitting device comprises:
数据压缩模块, 用于对所述 Soap消息中的 XML部分进行压缩得 到二进制数据;  a data compression module, configured to compress the XML portion of the Soap message to obtain binary data;
第一数据重组模块 ,用于将压缩得到的二进制数据作为附件重组到 所述 Soap消息中并将所述 Soap消息发送至所述数据接收装置, 其中, 所述数据压缩模块通过内容类型字段的属性值标识压缩方法。  a first data reassembly module, configured to reassemble the compressed binary data into the Soap message as an attachment, and send the Soap message to the data receiving apparatus, where the data compression module passes an attribute of a content type field The value identifies the compression method.
3. 根据权利要求 2所述的数据传输系统, 其特征在于, 所述数据接收装置 包括: 3. The data transmission system according to claim 2, wherein the data receiving device comprises:
第二数据重组模块 , 用于提取接收到的 Soap消息中的二进制数据 和所述内容类型字段的属性值; 以及  a second data reassembly module, configured to extract binary data in the received Soap message and attribute values of the content type field;
数据解压模块, 用于根据所述属性值对所述二进制数据进行解压 缩。  And a data decompression module, configured to decompress the binary data according to the attribute value.
4. 根据权利要求 1至 3中任一项所述的数据传输系统, 其特征在于, 所述 属性值为以下之一:对应于 lzw算法的 lzw数据、对应于 1ζ78算法的 1ζ78 数据、 对应于 1ζ77算法的 1ζ77数据。 The data transmission system according to any one of claims 1 to 3, wherein the attribute value is one of: lzw data corresponding to the lzw algorithm, 1ζ78 data corresponding to the 1ζ78 algorithm, corresponding to 1ζ77 algorithm of 1ζ77 data.
5. 根据权利要求 1至 3中任一项所述的数据传输系统, 其特征在于, 所述 属性值为以下之一: lzw数据 /XML、 1ζ78数据/ XML、 1ζ77数据 /XML。 The data transmission system according to any one of claims 1 to 3, wherein the attribute value is one of: lzw data/XML, 1ζ78 data/XML, 1ζ77 data/XML.
6. 一种数据传输方法, 其特征在于, 包括以下步骤: 6. A data transmission method, comprising the steps of:
步骤一, 数据发送端将 Soap消息中的 XML部分进行压缩并将压 缩后的数据作为附件打包到所述 Soap消息中, 将打包后的 Soap消息发 送至数据接收端;  Step 1: The data sending end compresses the XML part in the Soap message and packages the compressed data as an accessory into the Soap message, and sends the packaged Soap message to the data receiving end;
步驟二,所述数据接收端在接收到所述 Soap消息后,提取所述 Soap 消息的附件, 并对所述附件进行解压以得到所述 XML部分。  Step 2: After receiving the Soap message, the data receiving end extracts an attachment of the Soap message, and decompresses the accessory to obtain the XML part.
7. 根据权利要求 6所述的数据传输方法, 其特征在于, 步 一包括: 7. The data transmission method according to claim 6, wherein the step one comprises:
步骤 a,数据发送端将所述 Soap消息中的 XML部分进行压缩得到 二进制数据;  Step a, the data sending end compresses the XML part in the Soap message to obtain binary data;
步驟 b, 将压缩得到的二进制数据作为附件重组到所迷 Soap 消息 中并将所述 Soap消息发送至所述数据接收端, 其中, 所述数据压缩模块 通过内容类型字段的属性值标识压缩方法。  In step b, the compressed binary data is reassembled into the Soap message as an attachment, and the Soap message is sent to the data receiving end, where the data compression module identifies the compression method by using the attribute value of the content type field.
8. 根据权利要求 7所述的数据传输方法, 其特征在于, 所述步骤二包括: 步驟 a, 所述数据接收端提取接收到的 Soap 消息中的二进制数据 和所述内容类型字段的属性值; 以及 The data transmission method according to claim 7, wherein the step 2 includes: Step a, the data receiving end extracts binary data in the received Soap message and attribute values of the content type field ; as well as
步骤 b, 根据所述属性值对所述二进制数据进行解压缩。  Step b: Decompress the binary data according to the attribute value.
9. 根据权利要求 6至 8中任一项所述的数据传输方法, 其特征在于, 所述 属性值为以下之一:对应于 lzw算法的 lzw数据、对应于 1ζ78算法的 1ζ78 数据、 对应于 1ζ77算法的 1ζ77数据。 The data transmission method according to any one of claims 6 to 8, wherein the attribute value is one of: lzw data corresponding to the lzw algorithm, 1ζ78 data corresponding to the 1ζ78 algorithm, corresponding to 1ζ77 algorithm of 1ζ77 data.
10. 根据权利要求 6至 8中任一项所迷的数据传输方法, 其特征在于, 所述 属性值为以下之一: 】zw数据 XML、 1ζ78数据/ XML、 〗z77数据/ XML。 The data transmission method according to any one of claims 6 to 8, characterized in that the attribute value is one of the following: 】zw data XML, 1ζ78 data/XML, 〖z77 data/XML.
PCT/CN2007/003559 2007-06-26 2007-12-12 Data transmission system and transmission method thereof WO2009000119A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 200710112457 CN101079889A (en) 2007-06-26 2007-06-26 Data transmission system and its transmission method
CN200710112457.1 2007-06-26

Publications (1)

Publication Number Publication Date
WO2009000119A1 true WO2009000119A1 (en) 2008-12-31

Family

ID=38907116

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2007/003559 WO2009000119A1 (en) 2007-06-26 2007-12-12 Data transmission system and transmission method thereof

Country Status (2)

Country Link
CN (1) CN101079889A (en)
WO (1) WO2009000119A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140050522A (en) * 2012-10-19 2014-04-29 한국전자통신연구원 System and providing method for multimedia virtual system

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079889A (en) * 2007-06-26 2007-11-28 中兴通讯股份有限公司 Data transmission system and its transmission method
CN101388905B (en) * 2008-10-09 2011-09-07 浙江大学 Simple object access protocol engine implementing method based on mobile device
CN101729381B (en) * 2008-10-23 2012-01-11 上海宝信软件股份有限公司 Data dynamic customizing and exchanging system and method based on external system
US20110202509A1 (en) * 2010-02-16 2011-08-18 Microsoft Corporation Efficient extraction and compression of data
CN102111437A (en) * 2010-12-30 2011-06-29 浪潮集团山东通用软件有限公司 Simple object access protocol (SOAP) extension-based WEB service transmission compression method
CN103475565B (en) * 2012-06-08 2018-10-09 南京中兴软件有限责任公司 The method and device of message attachment is transmitted in Enterprise Service Bus
CN104158629A (en) * 2014-08-25 2014-11-19 国家电网公司 Distributed new energy running data encryption, compression and transmission method based on LZW (Lempel-Ziv-Welch) algorithm
CN106851733A (en) * 2016-12-29 2017-06-13 安徽网新恒天软件有限公司 A kind of adaptive H TTP message compression methods for mobile network's application
CN109544964A (en) * 2018-12-29 2019-03-29 同济大学 A kind of course line Transmission system of automatic driving car
CN111010274B (en) * 2019-12-30 2022-08-12 烽火通信科技股份有限公司 Safe and low-overhead SRv6 implementation method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747387A (en) * 2004-09-06 2006-03-15 佳能株式会社 Information processing apparatus and information processing method
CN101079889A (en) * 2007-06-26 2007-11-28 中兴通讯股份有限公司 Data transmission system and its transmission method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747387A (en) * 2004-09-06 2006-03-15 佳能株式会社 Information processing apparatus and information processing method
CN101079889A (en) * 2007-06-26 2007-11-28 中兴通讯股份有限公司 Data transmission system and its transmission method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DAI A.-G. AND ZHANG L.-C.: "The research of compressing soap to improve the performance of XML Web Service", FUJIAN COMPUTER, no. 9, December 2006 (2006-12-01), pages 126 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140050522A (en) * 2012-10-19 2014-04-29 한국전자통신연구원 System and providing method for multimedia virtual system
KR101877034B1 (en) * 2012-10-19 2018-08-09 한국전자통신연구원 System and providing method for multimedia virtual system

Also Published As

Publication number Publication date
CN101079889A (en) 2007-11-28

Similar Documents

Publication Publication Date Title
WO2009000119A1 (en) Data transmission system and transmission method thereof
EP1992143B1 (en) Method and device for generating and sending signaling messages
CN109687995B (en) CoAP-based OPC UA message transmission method suitable for resource-limited industrial field equipment
TW586294B (en) Communication system and method for shared context compression
Werner et al. Compressing SOAP messages by using differential encoding
US6807173B1 (en) Method and system for improving bandwidth availability in a data communication network by tokenizing messages
CN102017580B (en) Method and apparatus for processing messages
CN101366261A (en) Method and apparatus for enhancing rohc performance when encountering silence suppression
WO2007028122B1 (en) Sip header reduction
US6963587B2 (en) Communication system and method utilizing request-reply communication patterns for data compression
CN101132273B (en) Safe transmission method for text transport protocol message
CN109831409A (en) Data transmission method, device, computer readable storage medium and electronic equipment
CN101557399A (en) Method for compression and decompression of XMPP protocol transmission data
CN100452656C (en) Arrangement for application message decompression
CN106851733A (en) A kind of adaptive H TTP message compression methods for mobile network&#39;s application
US8918516B2 (en) Symbiotic client and server for embedded network system
WO2022063058A1 (en) Netconf protocol-based transmission method, device and storage medium
KR101607096B1 (en) Method and device for establishing an end-to-end communication between two networks
KR100732664B1 (en) Method and device for text data compression
CN101843071B (en) Session initiation protocol message payload compression
CN101197825B (en) Method, system and device for compression message transmission
CN101388905B (en) Simple object access protocol engine implementing method based on mobile device
Jin et al. Using SigComp to compress SIP/SDP messages
CN115499506B (en) MQTT information transmission data compression method based on LZW algorithm and server
CN107517202B (en) Binary sending and receiving method of SIP signaling

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 07855669

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 07855669

Country of ref document: EP

Kind code of ref document: A1