JP2008219264A - Data compression and transfer device, data compression and transfer system, data compressing and transferring method, and data compression and transfer program - Google Patents

Data compression and transfer device, data compression and transfer system, data compressing and transferring method, and data compression and transfer program Download PDF

Info

Publication number
JP2008219264A
JP2008219264A JP2007051546A JP2007051546A JP2008219264A JP 2008219264 A JP2008219264 A JP 2008219264A JP 2007051546 A JP2007051546 A JP 2007051546A JP 2007051546 A JP2007051546 A JP 2007051546A JP 2008219264 A JP2008219264 A JP 2008219264A
Authority
JP
Japan
Prior art keywords
data
code
compression
dictionary
keyword
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
JP2007051546A
Other languages
Japanese (ja)
Other versions
JP4756003B2 (en
Inventor
Hiroshi Shibata
弘 柴田
Norihito Tomimizu
律人 富水
Yoichi Taguchi
陽一 田口
Tomoaki Ogawa
智明 小川
Masashi Niizeki
将史 新夕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NTT Communications Corp
Original Assignee
NTT Communications Corp
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 NTT Communications Corp filed Critical NTT Communications Corp
Priority to JP2007051546A priority Critical patent/JP4756003B2/en
Publication of JP2008219264A publication Critical patent/JP2008219264A/en
Application granted granted Critical
Publication of JP4756003B2 publication Critical patent/JP4756003B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To compress data of a format with a tag of about 1KB into about 1/10 and to establish each of divided data as one piece of completed data. <P>SOLUTION: A data converting part 22 of this data compression and transfer device 2 performs first stage compression that converts a keyword used in a data tag into a code on the basis of a conversion list of a dictionary 23, and subsequently performs second stage compression that applies a data structure of ASN. 1 encode rule to eliminate a start tag symbol, an end tag symbol and a line feed symbol. Thus, a high compression rate is achieved. Further, in the case of having to divide the data, a slot preparing part 26 inserts the start tag symbol and the end tag symbol into a division position determined so as not to separate relevant data. Consequently, each divided data can be established as one piece of completed data, and a receiving side can process the dats even if all of the divided data are not collected. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、データを転送する際の転送効率の向上を図るための技術に関する。   The present invention relates to a technique for improving transfer efficiency when transferring data.

通信インフラとして衛星回線を用いることにより、広範囲で災害に対する耐環境性の高い情報通信が可能となり、災害情報や環境情報を監視するサービスへの適用が検討されている。災害や環境を監視するシステムとしては、多種多様で膨大な数のセンサを用いることが想定され、例えば、各種のセンサと、センサが測定して得た情報(センサ情報)を受信して衛星回線を介して転送するゲートウェイ装置(GW装置)と、GW装置から受信したセンサ情報を管理するサーバ装置とを備えることが考えられる。   By using a satellite link as a communication infrastructure, information communication with a wide range of disaster resistance is possible over a wide area, and application to a service for monitoring disaster information and environmental information is being studied. As a system for monitoring disasters and the environment, it is assumed that a large number of various sensors are used. For example, various sensors and information (sensor information) obtained by the sensors are received and a satellite line is received. It is conceivable to include a gateway device (GW device) that transfers data via the server and a server device that manages sensor information received from the GW device.

このようなシステムにおいては、各センサから送られるデータは、アナログ数値型、論理値型、2次元ベクトル型、3次元ベクトル型、複数のサンプリング測定値の平均値、最大値、最大変化量など、出力形式が様々である。このような様々な形式のデータをGW装置とサーバ装置間で送受信するためには、データの取り扱いを容易化でき、新規のデータ構造にも対応可能な拡張性の高いフォーマットである、XML形式などのタグ付きフォーマットを用いることが求められる。   In such a system, the data sent from each sensor is analog numerical type, logical value type, two-dimensional vector type, three-dimensional vector type, average value of a plurality of sampling measurement values, maximum value, maximum change amount, etc. There are various output formats. In order to send and receive such various types of data between the GW device and the server device, the XML format is a highly extensible format that can handle data easily and can accommodate new data structures. It is required to use the tagged format.

ファイルを圧縮するアルゴリズムやソフトウェア(圧縮ツール)は多数存在し、XMLファイルに特化した圧縮技術も存在するが、これらはファイルサイズがある程度大きくなければ圧縮の効果がなく、また巨大なファイルだと圧縮に相当の時間を要する。その圧縮効率は、非特許文献1のグラフに示されるように、XMLデータサイズで100KB(Kilo-Byte)程度ある場合に約30%に圧縮できるというレベルである。
インターネット,<http://www-06.ibm.com/jp/developerworks/xml/020705/j_x-matters19.html/>
There are many algorithms and software (compression tools) for compressing files, and there are also compression techniques specialized for XML files. However, if the file size is not large to some extent, there will be no compression effect, and it will be a huge file The compression takes a considerable amount of time. As shown in the graph of Non-Patent Document 1, the compression efficiency is at a level that can be compressed to about 30% when the XML data size is about 100 KB (Kilo-Byte).
Internet, <http://www-06.ibm.com/jp/developerworks/xml/020705/j_x-matters19.html/>

上記のようにセンサ情報をサーバ装置で一元管理するシステムにおいては、その緊急性からセンサ情報をタイムリーかつ効率的に収集する必要がある。   In the system in which the sensor information is centrally managed by the server device as described above, it is necessary to collect the sensor information in a timely and efficient manner due to its urgency.

1つ1つのセンサ情報が少量で、かつ膨大な数のセンサ情報を、衛星回線を用いた固定長スロットにのせて効率的に伝送するためには、サイズの小さいXMLファイルをいかにして圧縮し、圧縮後のデータをいかにして固定長スロットに配分するかが重要となる。   In order to efficiently transmit a huge amount of sensor information on a fixed-length slot using a satellite line with a small amount of sensor information, how to compress a small XML file How to allocate the compressed data to the fixed-length slots is important.

従来の圧縮技術では、100KB程度のXMLファイルでさえ30%程度にしか圧縮できず、100−数KB程度の小サイズのセンサ情報(センサのID,種別、測定値等を格納したシンプルなもの)のXMLファイルであれば、さらに圧縮率が低下してしまう。また、センサ情報をある程度まとめて圧縮することが考えられるが、巨大なファイルは圧縮に時間を要する。例えば10分の1といった高圧縮率を達成するには、数MB程度のサイズが必要である。1秒あたり1KBしか処理できないので、約17分間のデータを蓄積する必要があり、これではセンサ情報をタイムリーに収集するという目的を果たせない。   With the conventional compression technology, even an XML file of about 100 KB can only be compressed to about 30%, and sensor information of a small size of about 100-several KB (simple information storing sensor ID, type, measurement value, etc.) If this is an XML file, the compression rate will be further reduced. Although it is conceivable to compress the sensor information together to some extent, a huge file requires time for compression. For example, in order to achieve a high compression ratio of 1/10, a size of about several MB is necessary. Since only 1 KB can be processed per second, it is necessary to accumulate about 17 minutes of data, which cannot fulfill the purpose of collecting sensor information in a timely manner.

衛星回線の観測局に約100個のセンサを取り付け、各センサが1分に1回データを発信し、1つのセンサ情報のXMLデータが上述したようなシンプルなもので600バイト程度である環境下では、観測局配下の全センサを合計すると1秒当り約1KB(100×1/60×600Byte)のデータが発生する。   In an environment where about 100 sensors are attached to an observation station on a satellite line, each sensor transmits data once a minute, and the XML data of one sensor information is as simple as described above and is about 600 bytes. Then, when all the sensors under the observation station are totaled, data of about 1 KB (100 × 1/60 × 600 bytes) per second is generated.

一方、衛星回線では、全国に配置された数千台のGW装置が利用できるよう、その帯域を細かく分割する必要があるため、衛星回線の帯域は1Kbps程度となる。そのため、GW装置は、1秒間に発生する1KB程度のXMLファイルを約10分の1に圧縮して、1Kbpsの衛星回線で送信する必要がある。   On the other hand, in the satellite line, the band of the satellite line is about 1 Kbps because it is necessary to divide the band finely so that thousands of GW apparatuses arranged in the whole country can be used. Therefore, it is necessary for the GW apparatus to compress an XML file of about 1 KB generated in one second to about 1/10 and transmit it through a 1 Kbps satellite line.

また、スロットサイズよりも大きなサイズのデータを、スロットサイズに合わせて分割して送信すると、受信側では分割した全てのデータを回収するまでデータを処理することができない。衛星回線は常時通信可能ではなく、各GW装置に対して通信時間が割り当てられており、GW装置が1つのデータを送信してから次のデータを送信するまでに数10分間空くことがあることを想定すると、分割したデータのそれぞれが1つの完成したデータとして成立していて、受信側であ即時に読み込んで処理できる必要がある。   Further, if data having a size larger than the slot size is divided and transmitted in accordance with the slot size, the receiving side cannot process the data until all the divided data are collected. The satellite line is not always communicable, the communication time is allocated to each GW device, and it may be tens of minutes before the GW device transmits one data until the next data is transmitted. As a result, it is necessary that each of the divided data is established as one completed data, and can be read and processed immediately on the receiving side.

本発明は、上記に鑑みてなされたものであり、その課題は、小サイズのタグ付きフォーマットのデータを約10分の1に圧縮することにある。   The present invention has been made in view of the above, and an object thereof is to compress data of a small-sized tagged format to about 1/10.

本発明の別の課題は、分割したデータのそれぞれを完成したデータとして成立させることにある。   Another object of the present invention is to establish each of the divided data as completed data.

第1の本発明に係るデータ圧縮転送装置は、タグ付きフォーマットのデータを格納しておく格納手段と、前記データのタグに用いられるキーワードとそれに対応する符号とを関連付けた辞書を記憶しておく記憶手段と、前記格納手段から前記データを読み出して、当該データにおけるキーワードを前記辞書に基づいて符号に変換し、変換後のデータに記号及びコードが不要なデータ構造を定義する情報構造定義ルールを適用し開始タグ記号、終了タグ記号、改行コードを削除してバイナリデータとするデータ変換手段と、前記バイナリデータをサーバ装置へネットワークを介して送信する送信手段と、を有することを特徴とする。   The data compression transfer apparatus according to the first aspect of the present invention stores storage means for storing data in a tagged format, and a dictionary in which keywords used for the data tags are associated with corresponding codes. An information structure definition rule that reads out the data from the storage means and converts the keyword in the data into a code based on the dictionary, and defines a data structure that does not require symbols and codes in the converted data And a data conversion unit that deletes the start tag symbol, the end tag symbol, and the line feed code to obtain binary data, and a transmission unit that transmits the binary data to the server device via a network.

本発明にあっては、データのタグに用いられるキーワードを符号に変換するという1段階目の圧縮をした後、更に情報構造定義ルールを適用して開始タグ記号、終了タグ記号、改行コードを削除するという2段階目の圧縮をすることで、高い圧縮率を実現している。   In the present invention, after compression of the first step of converting a keyword used for a data tag into a code, an information structure definition rule is further applied to delete a start tag symbol, an end tag symbol, and a line feed code. A high compression ratio is achieved by performing the second stage compression.

ここで、情報構造定義ルールとは、記号及びコードが不要なデータ構造を定義するものをいう。例えば、各情報をサイズで特定すると共に、その情報およびサイズを関連付けた上で情報全体を階層構造化して把握することによって、タグ記号や改行コード等のコードを不要にできるものが該当する。   Here, the information structure definition rule is a rule that defines a data structure that does not require symbols and codes. For example, it is possible to identify each information by size, associate the information and the size, and grasp the entire information in a hierarchical structure so that codes such as tag symbols and line feed codes can be eliminated.

第2の本発明に係るデータ圧縮転送装置は、バイナリデータを圧縮する圧縮ツール及びその圧縮率を記憶しておく記憶手段と、前記バイナリデータのサイズが前記ネットワークのスロットのサイズよりも大きい場合、前記バイナリデータのサイズに前記圧縮率を乗じた値が前記スロットのサイズよりも小さいときには前記バイナリデータを前記圧縮ツールによって圧縮し、前記バイナリデータのサイズに前記圧縮率を乗じた値が前記スロットのサイズよりも大きいときには、当該バイナリデータの元のデータについて、関連するデータが離れないように定められた分割位置に開始タグ記号或いは終了タグ記号を挿入してデータを分割する分割手段と、当該分割後のデータについて前記データ変換手段および前記分割手段による処理を繰り返させる繰返手段と、を有し、前記送信手段は、前記繰返手段によって処理されたバイナリデータを送信することを特徴とする。   The data compression and transfer apparatus according to the second aspect of the present invention includes a compression tool for compressing binary data and storage means for storing the compression ratio, and when the size of the binary data is larger than the slot size of the network, When the value obtained by multiplying the size of the binary data by the compression rate is smaller than the size of the slot, the binary data is compressed by the compression tool, and the value obtained by multiplying the size of the binary data by the compression rate is the value of the slot. When the size is larger than the size, with respect to the original data of the binary data, a dividing means for dividing the data by inserting a start tag symbol or an end tag symbol at a division position determined so as not to leave the related data, and the division Repeat the process by the data conversion means and the dividing means for subsequent data. That the repeating unit has, the transmission unit, and transmits the binary data processed by the repeating unit.

本発明にあっては、バイナリデータを圧縮ツールを用いて圧縮してもネットワークのスロットサイズよりも小さくならず、データを分割する必要がある場合に、関連するデータが離れないように定められた分割位置に開始タグ記号或いは終了タグ記号を挿入することで、各々の分割されたデータが1つのタグ付きフォーマットのデータとして成立するようにしている。   In the present invention, even when binary data is compressed using a compression tool, the data is not smaller than the slot size of the network, and when it is necessary to divide the data, the related data is determined not to be separated. By inserting a start tag symbol or an end tag symbol at the division position, each divided data is established as one tag-formatted data.

第3の本発明に係るデータ圧縮転送システムは、ネットワークを介して相互に通信可能なデータ圧縮転送装置とサーバ装置とを備え、前記データ圧縮転送装置が、タグ付きフォーマットデータを格納しておく第1格納手段と、前記データのタグに用いられるキーワードと対応する符号とを関連付けた辞書を記憶しておく第1記憶手段と、前記第1格納手段から前記データを読み出し、当該データにおけるキーワードを前記辞書に基づいて符号に変換し、変換後のデータに記号及びコードが不要なデータ構造を定義する情報構造定義ルールを適用し開始タグ記号、終了タグ記号、改行コードを削除してバイナリデータとするデータ変換手段と、前記バイナリデータをサーバ装置へネットワークを介して送信する送信手段と、を有し、前記サーバ装置が、前記データのタグに用いられるキーワードとそれに対応する符号とを関連付けた辞書を記憶しておく第2記憶手段と、前記データ圧縮転送装置からバイナリデータを受信して第2格納手段に格納させる受信手段と、前記第2格納手段から前記バイナリデータを読み出し、当該バイナリデータに情報構造定義ルールを適用して開始タグ記号、終了タグ記号、改行コードを挿入し、当該データにおける符号を前記辞書に基づいてキーワードに変換することで元のデータを復元する復元手段と、を有することを特徴とする。   A data compression / transfer system according to a third aspect of the present invention includes a data compression / transfer apparatus and a server apparatus which can communicate with each other via a network, and the data compression / transfer apparatus stores tagged format data. 1 storage means, a first storage means for storing a dictionary that associates a code corresponding to a keyword used for the tag of the data, and the data is read from the first storage means, and the keyword in the data is Convert to code based on dictionary, apply information structure definition rule that defines data structure that does not need symbols and codes to the converted data, delete start tag symbol, end tag symbol, and line feed code to make binary data Data conversion means, and transmission means for transmitting the binary data to a server device via a network, and the server A second storage means for storing a dictionary in which a keyword used for the tag of the data and a code corresponding thereto are stored; and binary data is received from the data compression transfer device and stored in the second storage means Reading the binary data from the second storage means, applying an information structure definition rule to the binary data, inserting a start tag symbol, an end tag symbol, and a line feed code, and converting the code in the data into the dictionary And restoring means for restoring the original data by converting into keywords based on the above.

本発明にあっては、上記のデータ圧縮転送装置で圧縮されたバイナリデータをサーバ装置で収集し、このバイナリデータに情報構造定義ルールを適用して開始タグ記号、終了タグ記号、改行コードを挿入し、当該データにおける符号を辞書に基づいてキーワードに変換することで元のデータを復元する。   In the present invention, binary data compressed by the data compression / transfer apparatus is collected by a server device, and an information tag definition rule is applied to the binary data to insert a start tag symbol, an end tag symbol, and a line feed code. Then, the original data is restored by converting the code in the data into a keyword based on the dictionary.

第4の本発明に係るデータ圧縮転送システムは、前記サーバ装置が、前記データからキーワードを抽出し、キーワード毎に出現回数を記録手段に記録すると共に、出現回数の多いものから順位を付け、上位64位までのキーワードを1バイトの符号で表現すると共に、65位以下のキーワードを2バイトの符号で表現することにより前記辞書を作成する辞書作成手段を有することを特徴とする。   In the data compression transfer system according to the fourth aspect of the present invention, the server device extracts a keyword from the data, records the number of appearances for each keyword in the recording means, and ranks them in descending order of the number of appearances. It is characterized by having a dictionary creation means for creating the dictionary by expressing keywords up to 64th by a 1-byte code and expressing keywords by 65th or lower by a 2-byte code.

本発明にあっては、出現回数が多いキーワードから順位を付け、上位64位までのキーワードを1バイトの符号で表現し、65位以下のキーワードを2バイトの符号で表現する。これによって、出現頻度の高いキーワードから順に符号を割り当てることができ、新たなキーワードが追加された場合にも、それに対応する符号を自動的に辞書に登録することができる。   In the present invention, the keywords are ranked in descending order of the number of appearances, the keywords up to the top 64 are expressed by a 1-byte code, and the keywords below the 65th are expressed by a 2-byte code. Thus, codes can be assigned in order from keywords with the highest appearance frequency, and even when new keywords are added, the codes corresponding to the keywords can be automatically registered in the dictionary.

第5の本発明に係るデータ圧縮転送システムは、前記サーバ装置が、前記辞書作成手段によって追加・変更したキーワードおよびそれに対応する符号を用いて前記データのキーワードを符号に変換する変換手段と、当該変換後のデータと当該変換に用いたキーワードおよび符号とを一まとめにして前記データ圧縮転送装置へ送信する送信手段と、を有し、前記データ圧縮転送装置は、前記サーバ装置から受信した前記キーワードおよび符号を用いて前記辞書を更新する更新手段と、前記サーバ装置から受信したデータを更新後の辞書を用いて復元する復元手段と、を有することを特徴とする。   According to a fifth aspect of the present invention, there is provided a data compression / transfer system, wherein the server device converts the keyword of the data into a code using the keyword added / changed by the dictionary creation unit and the code corresponding thereto, Transmission means for collectively transmitting the converted data and the keyword and code used for the conversion to the data compression / transfer apparatus, and the data compression / transfer apparatus receives the keyword received from the server apparatus And updating means for updating the dictionary using the code, and restoring means for restoring the data received from the server device using the updated dictionary.

本発明にあっては、サーバ装置により、追加・変更したキーワードおよびそれに対応する符号を用いて変換した後のデータと、そのキーワードおよび符号とを一まとめにしてデータ圧縮転送装置に送信し、データ圧縮転送装置において、受信したキーワードおよび符号を用いて辞書を更新することで、最新の辞書をサーバ装置と共有できる。また、データ圧縮転送装置において、サーバ装置から受信したデータを更新後の辞書を用いて復元することで、制御コマンドや通信スケジュール等の様々な情報を利用することができる。   In the present invention, the server device transmits the converted data using the added / changed keyword and the corresponding code, and the keyword and the code together to the data compression and transfer device, In the compression transfer device, the latest dictionary can be shared with the server device by updating the dictionary using the received keyword and code. Further, in the data compression / transfer apparatus, various data such as control commands and communication schedules can be used by restoring the data received from the server apparatus using the updated dictionary.

第6の本発明に係るデータ圧縮転送方法は、前記データ圧縮転送装置により、前記タグ付きフォーマットのデータを格納手段に格納しておくステップと、前記格納手段から前記データを読み出して、前記データのタグに用いられるキーワードとそれに対応する符号とを関連付けた辞書に基づいて、当該データにおけるキーワードを符号に変換し、変換後のデータに記号及びコードが不要なデータ構造を定義する情報構造定義ルールを適用し開始タグ記号、終了タグ記号、改行コードを削除してバイナリデータとするステップと、前記バイナリデータをサーバ装置へネットワークを介して送信するステップと、を有することを特徴とする。   In a data compression transfer method according to a sixth aspect of the present invention, the data compression transfer device stores the data in the tagged format in storage means, reads the data from the storage means, An information structure definition rule for converting a keyword in the data into a code based on a dictionary that associates a keyword used for a tag with a code corresponding to the keyword, and defining a data structure that does not require a symbol and a code in the converted data. Applying and deleting a start tag symbol, an end tag symbol, and a line feed code to form binary data, and transmitting the binary data to a server device via a network.

第7の本発明に係るデータ圧縮転送プログラムは、データ圧縮転送装置に対して、タグ付きフォーマットのデータを格納手段に格納させるステップと、前記格納手段から前記データを読み出して、前記データのタグに用いられるキーワードとそれに対応する符号とを関連付けた辞書に基づいて、当該データにおけるキーワードを符号に変換し、変換後のデータに記号及びコードが不要なデータ構造を定義する情報構造定義ルールを適用して開始タグ記号、終了タグ記号、改行コードを削除してバイナリデータとするステップと、前記バイナリデータをサーバ装置へネットワークを介して送信するステップと、を実行させることを特徴とする。   According to a seventh aspect of the present invention, there is provided a data compression / transfer program for causing a data compression / transfer apparatus to store data in a tagged format in a storage means, reading the data from the storage means, and Based on a dictionary that associates keywords used with their corresponding codes, the keywords in the data are converted into codes, and information structure definition rules that define data structures that do not require symbols and codes in the converted data are applied. And deleting the start tag symbol, the end tag symbol, and the line feed code into binary data, and transmitting the binary data to the server device via a network.

第1の本発明によれば、1KB程度の小サイズのタグ付きフォーマットのデータを約10分の1に圧縮することができる。   According to the first aspect of the present invention, data of a tagged format having a small size of about 1 KB can be compressed to about 1/10.

第2の本発明によれば、分割したデータのそれぞれを1つの完成したデータとして成立させることができる。   According to the second aspect of the present invention, each of the divided data can be established as one completed data.

図1は、本実施の形態におけるデータ圧縮転送システムの構成を示すブロック図である。同図に示すように、本システムは、センサ装置1に対して通信可能なデータ圧縮転送装置2と、データ圧縮転送装置2に対してネットワークを介して通信可能なサーバ装置3とを備える。このネットワークの例として、ここでは衛星回線4を用いる。   FIG. 1 is a block diagram showing a configuration of a data compression / transfer system according to the present embodiment. As shown in the figure, this system includes a data compression / transfer apparatus 2 that can communicate with the sensor apparatus 1 and a server apparatus 3 that can communicate with the data compression / transfer apparatus 2 via a network. Here, a satellite line 4 is used as an example of this network.

センサ装置1は、多種多様なセンサ1a,1b,1c…が100個程度取り付けられており、各センサがタグ付きフォーマットのデータを1分間に1回発信する。一例として、ここではXMLフォーマットのデータを扱う。   About 100 sensors 1a, 1b, 1c... Are attached to the sensor device 1, and each sensor transmits data in a tagged format once a minute. As an example, XML format data is handled here.

データ圧縮転送装置2は、センサ装置1からのデータをネットワークを介して受信するセンサ接続部21、受信したデータにおけるキーワードを符号化すると共に、タグ記号を削除してバイナリデータに変換するデータ変換部22、キーワードの符号変換に用いる辞書23、辞書23を管理する辞書管理部24、変換後のバイナリデータを圧縮ツールを用いて更に圧縮するバイナリデータ圧縮部25、符号化・バイナリ化され圧縮されたデータを衛星回線4のスロットに詰め込むスロット作成部26、作成されたスロットによりデータを衛星回線4を介してサーバ装置3へ送信し、或いはサーバ装置3からデータを受信するデータ送受信部27、サーバ装置3から受信した圧縮データを辞書23を用いて復元する圧縮データ復元部28、復元されたデータによって示される制御コマンド等の処理を行う制御コマンド処理部29を有する。   A data compression transfer device 2 includes a sensor connection unit 21 that receives data from the sensor device 1 via a network, a data conversion unit that encodes a keyword in the received data, and deletes a tag symbol to convert it into binary data. 22, a dictionary 23 used for keyword code conversion, a dictionary management unit 24 for managing the dictionary 23, a binary data compression unit 25 for further compressing the converted binary data using a compression tool, encoded and binarized and compressed A slot creation unit 26 that packs data into the slot of the satellite line 4, a data transmission / reception unit 27 that transmits data to the server device 3 via the satellite line 4 or receives data from the server device 3, and the server device 3, a compressed data restoration unit 28 that restores the compressed data received from 3 using the dictionary 23 Having a control command processing unit 29 that performs processing such as control commands indicated by the data.

データ圧縮転送装置2は、専用の装置としてもよいし、汎用コンピュータを用いて構成し、各部の処理をプログラムによって実行させることとしてもよい。データ圧縮転送装置2は、各部の処理を実行するための演算処理装置や記憶装置等を備え、各部での処理においては、必要な情報を記憶装置から読み出すとともに、処理後の情報を記憶装置に記憶させる。   The data compression transfer device 2 may be a dedicated device, or may be configured using a general-purpose computer, and the processing of each unit may be executed by a program. The data compression / transfer apparatus 2 includes an arithmetic processing device, a storage device, and the like for executing processing of each unit. In the processing in each unit, the necessary information is read from the storage device, and the processed information is stored in the storage device. Remember.

本システムを災害や環境を監視するシステムに適用する場合には、データ圧縮転送装置2は、全国数千箇所に設置され得るゲートウェイ装置として利用できるものである。この場合、各ゲートウェイ装置には1Kbps程度の衛星回線帯域が割り当てられる。   When this system is applied to a system for monitoring disasters and the environment, the data compression / transfer apparatus 2 can be used as a gateway apparatus that can be installed at thousands of locations nationwide. In this case, a satellite channel band of about 1 Kbps is assigned to each gateway device.

サーバ装置3は、圧縮されたバイナリデータをデータ圧縮転送装置2と送受信するデータ送受信部31、圧縮されたバイナリデータを復元するバイナリデータ復元部32、符号をキーワードに復元するための辞書33、辞書33を管理する辞書管理部34、バイナリデータの符号を辞書33を用いて対応するキーワードに復元する圧縮データ復元部35、データの生成・解析を行うデータ生成・解析部36、生成・解析したデータをデータ圧縮転送装置2へ送信するために圧縮するデータ圧縮部37、データにおけるキーワードと符号との対応関係を学習し、辞書33に登録する辞書作成部38を有する。   The server device 3 includes a data transmission / reception unit 31 that transmits / receives compressed binary data to / from the data compression / transfer device 2, a binary data restoration unit 32 that restores compressed binary data, a dictionary 33 that restores a code to a keyword, a dictionary 33, a dictionary management unit 34 that manages the data 33, a compressed data restoration unit 35 that restores the binary data code to the corresponding keyword using the dictionary 33, a data generation / analysis unit 36 that generates and analyzes data, and data that is generated and analyzed Is compressed to transmit data to the data compression transfer device 2, and a dictionary creation unit 38 that learns the correspondence between keywords and codes in data and registers them in the dictionary 33.

サーバ装置3についても、専用の装置としてもよいし、汎用コンピュータを用いて構成し、各部の処理をプログラムによって実行させることとしてもよい。サーバ装置3は、各部の処理を実行するための演算処理装置や記憶装置等を備え、各部の処理においては、必要な情報を記憶装置から読み出すとともに、処理後の情報を記憶装置に記憶させる。   The server device 3 may also be a dedicated device, may be configured using a general-purpose computer, and the processing of each unit may be executed by a program. The server device 3 includes an arithmetic processing device, a storage device, and the like for executing processing of each unit. In the processing of each unit, the server device 3 reads necessary information from the storage device and stores the processed information in the storage device.

次に、データ圧縮転送装置2における処理の流れについて図2のフローチャートを用いて説明する。   Next, the flow of processing in the data compression / transfer apparatus 2 will be described with reference to the flowchart of FIG.

まず、センサ装置1において、各センサから取得した測定情報をデータ圧縮転送装置2へ送信する。この測定情報は、例えば図3(a)に示されるXMLフォーマットで記述されるものとする。   First, in the sensor device 1, the measurement information acquired from each sensor is transmitted to the data compression transfer device 2. This measurement information is described in, for example, the XML format shown in FIG.

ステップ1(図2では「S1」と示す。以下同じ)で、データ圧縮転送装置2は、センサ接続部21を通じてセンサ装置1からXMLデータを受信し、記憶装置に記憶させる。   In step 1 (shown as “S1” in FIG. 2; the same applies hereinafter), the data compression transfer device 2 receives the XML data from the sensor device 1 through the sensor connection unit 21 and stores it in the storage device.

ステップ2で、データ変換部22により、辞書23を用いてXMLデータに含まれるキーワードを符号化し、更に情報構造定義ルールのデータ構造を適用し開始タグ記号、終了タグ記号、改行コードを削除することによりバイナリデータに変換する。   In step 2, the data conversion unit 22 encodes the keywords included in the XML data using the dictionary 23, and further applies the data structure of the information structure definition rule to delete the start tag symbol, end tag symbol, and line feed code. To convert to binary data.

情報構造定義ルールとは、記号やコードを不要にするデータ構造を定義するものであり、例えば各情報をサイズで特定すると共に、その情報およびサイズを関連付けた上で情報全体を階層構造化することによってタグ記号や改行コード等を不要にできるものである。情報構造定義ルールには、例えばASN.1ルールやEBML(Extensible Binary Meta-Language)等がある。ここでは、一例としてASN.1ルールを用いるものとし、上記のステップ2では、ASN.1エンコードルールを適用してXMLデータをバイナリデータに変換するものとする。   An information structure definition rule defines a data structure that eliminates the need for symbols and codes. For example, each information is specified by size, and the information and size are associated with each other and the entire information is hierarchically structured. Can eliminate the need for tag symbols, line feed codes, and the like. Information structure definition rules include, for example, ASN.1 rules and EBML (Extensible Binary Meta-Language). Here, an ASN.1 rule is used as an example, and in step 2 above, XML data is converted to binary data by applying the ASN.1 encoding rule.

そして、ステップ2での符号化処理を行うため、辞書23では、図4に示すように、XMLのタグに用いられるキーワードと、それに対応する16進コードの符号とを変換リスト上に関連付けておく。符号は1バイト又は2バイトとし、辞書23の変換リストは、サーバ装置3における辞書33のものと同一とする。   In order to perform the encoding process in step 2, the dictionary 23 associates the keyword used for the XML tag and the code of the corresponding hexadecimal code on the conversion list as shown in FIG. . The code is 1 byte or 2 bytes, and the conversion list of the dictionary 23 is the same as that of the dictionary 33 in the server device 3.

データ変換部22は、図3(a)に示されるようなXMLデータに対し、タグに用いられているキーワードが辞書23のリストに存在するか否かをチェックし、存在する場合には、そのキーワードを対応する符号に置き換える。図3(a)の例では、XMLデータの最初に出現する「?xml version="1.0" encoding="UTF-8"?」というキーワードを、図4の変換リストの中から探し出し、それに対応する「80」という符号に置き換える。   The data conversion unit 22 checks whether or not the keyword used for the tag is present in the list of the dictionary 23 against the XML data as shown in FIG. 3A. Replace the keyword with the corresponding code. In the example of FIG. 3A, the keyword “? Xml version =" 1.0 "encoding =" UTF-8 "?" That appears at the beginning of the XML data is searched from the conversion list of FIG. 4 and corresponds to it. Replace with “80”.

その他のキーワードも同様に符号に置き換えることにより、図3(b)のようなキーワードを全て符号に置き換えたXMLデータとする。なお、同図において、「&」は16進を示すものとする。以上の符号化処理により、382バイトのデータが163バイトに変換され、その圧縮率は約40%になる。   Similarly, other keywords are also replaced with codes to obtain XML data in which keywords as shown in FIG. 3B are all replaced with codes. In the figure, “&” indicates hexadecimal. Through the above encoding process, 382 bytes of data are converted to 163 bytes, and the compression ratio is about 40%.

データ変換部22は、さらに、符号化後のXMLデータを、XML構造からASN.1エンコードルールに基づいたデータ構造に変換し、開始タグ記号、終了タグ記号、改行コードを削除する。参考までに、図5にASN.1エンコードルールに基づくデータ構造の変換例を示す。図5(a)に示すようなXMLデータを、このルールでは図5(b)に示すように、タグ符号と、タグ内のデータサイズ(Length)と、データ(data)の3組で表す。タグ符号は1バイト又は2バイトで表し、データサイズも1バイト又は2バイトで表す。データサイズはASN.1エンコード後のデータのサイズである。   The data converter 22 further converts the encoded XML data from the XML structure into a data structure based on the ASN.1 encoding rule, and deletes the start tag symbol, end tag symbol, and line feed code. For reference, FIG. 5 shows a data structure conversion example based on the ASN.1 encoding rule. In this rule, XML data as shown in FIG. 5A is represented by three sets of a tag code, a data size (Length) in the tag, and data (data), as shown in FIG. 5B. The tag code is represented by 1 byte or 2 bytes, and the data size is also represented by 1 byte or 2 bytes. The data size is the size of data after ASN.1 encoding.

ASN.1エンコードの具体例を図6に示す。図6(a)のような符号化後のXMLデータを、ASN.1エンコードルールに基づいて変換すると図6(b)のようなバイナリデータとなる。同図(a)において、開始タグ記号は「< >」で示され、終了タグ記号は「</ >」で示されており、同図(b)ではこれらが省略されている。また、同図(a)において改行されている部分には図示しない改行コードが挿入されており、これも同図(b)においては省略されている。   A specific example of ASN.1 encoding is shown in FIG. When the encoded XML data as shown in FIG. 6A is converted based on the ASN.1 encoding rule, binary data as shown in FIG. 6B is obtained. In FIG. 9A, the start tag symbol is indicated by “<>”, the end tag symbol is indicated by “</>”, and these are omitted in FIG. In addition, a line feed code (not shown) is inserted in the part where the line is broken in FIG. 10A, and this is also omitted in FIG.

この変換では、例えば図6(a)における一行目のタグ「<&80>」は、図6(b)における1バイト目の「&80」と2バイト目の「&18」になる。ここで「&80」はタグ文字に対応する符号コードであり、「&18」は10進数の24に相当し、ASN.1で変換した後のデータサイズが24バイトであることを意味する。同図に示すように163バイトのXMLデータを変換した後は、計26バイトのデータとなる。このように、符号化・バイナリ化したデータを、ここではバイナリデータと呼ぶものとする。   In this conversion, for example, the tag “<& 80>” in the first line in FIG. 6A becomes “& 80” in the first byte and “& 18” in the second byte in FIG. 6B. Here, “& 80” is a code code corresponding to the tag character, and “& 18” corresponds to decimal number 24, which means that the data size after conversion by ASN.1 is 24 bytes. As shown in the figure, after converting 163 bytes of XML data, the data becomes 26 bytes in total. In this way, the encoded / binary data is referred to as binary data here.

なお、符号と符号でないものとを識別するために、最上位ビットを両者を見分けるフラグとして使用する。ここでは最上位ビットが0であれば、後続はバイナリ化していない文字列やタグ文字以外のデータ部分の文字列であると判定する。最上位ビットが1であれば、可読文字ではないため、符号であると判定する。このとき、残りの7ビットで符号を表現すると、128通りしか対応するキーワードを扱えなくなるので、2バイトでも符号を表現可能とする。そのため、上位2ビット目をLength部が1バイトか2バイトかを見分けるフラグとして使用する。具体的には、1バイト符号と2バイト符号との識別は、図7に示すように1バイト目の上位2ビットが"10"か"11"かで行う。その結果、1バイトで表現された符号は上位が"10"で始まる計64個であり、2バイトで表現された符号は上位が"11"で始まる計16384個となる。識別アルゴリズムの詳細については図8に示す。図8では、Length部の後がdataであるのなら必ず文字となることから、当該部分が文字であれば1ビット目が1になることはなく、よって1ビット目が1であるものはタグ符号として認識して良いし、またタグ符号の後には必ずLength部が来るのでLength部の位置も確定することを前提としている。   In order to distinguish between a code and a non-code, the most significant bit is used as a flag for distinguishing both. Here, if the most significant bit is 0, it is determined that the subsequent character string is a non-binary character string or a data portion other than a tag character. If the most significant bit is 1, since it is not a readable character, it is determined to be a code. At this time, if the code is expressed by the remaining 7 bits, only 128 corresponding keywords can be handled, so that the code can be expressed even by 2 bytes. Therefore, the upper 2 bits are used as a flag for distinguishing whether the Length part is 1 byte or 2 bytes. Specifically, the identification between the 1-byte code and the 2-byte code is performed based on whether the upper 2 bits of the first byte are “10” or “11” as shown in FIG. As a result, a total of 64 codes represented by 1 byte start with “10”, and a total of 16384 codes represented by 2 bytes start with “11”. Details of the identification algorithm are shown in FIG. In FIG. 8, if the data after the Length part is data, it will always be a character. Therefore, if the part is a character, the first bit will never be 1, so the first bit is 1 if it is a tag. It may be recognized as a code, and since the Length part always comes after the tag code, it is assumed that the position of the Length part is also determined.

続いて、XMLデータの分割処理について説明する。   Next, XML data division processing will be described.

図2のステップ1において、センサが行う測定内容、送信間隔等の例を示す表を図9に、その測定のタイミングを図10に示す。図9、図10に示すように、各センサは、1つの測定対象データに対して、10msec単位のサンプリング周期で複数回の測定を行い、その平均値、最大値、最小値、変化量平均値、変化量最大値、変化量最小値、ゼロクロス数を計測する。これらの計測値は、センサ内部の記憶装置に記録される。この処理を数秒間隔の測定タイミングで行うものとする。これにより、数秒間隔でセンサに上記計測結果が逐次記録されていく。さらに、測定タイミングよりも長い時間間隔で送信間隔を設定するものとし、送信間隔おきに各センサに記録されている各測定値を纏めてセンサ装置1に送信する。センサ装置1は、この受信した各測定値をXML形式で表現したうえでデータ圧縮転送装置2へ送信する。   FIG. 9 shows a table showing examples of measurement contents and transmission intervals performed by the sensor in Step 1 of FIG. 2, and FIG. 10 shows the timing of the measurement. As shown in FIGS. 9 and 10, each sensor performs a plurality of measurements on a single measurement target data at a sampling period of 10 msec, and the average value, maximum value, minimum value, and change amount average value. Measure the maximum change amount, minimum change amount, and number of zero crossings. These measured values are recorded in a storage device inside the sensor. This process is performed at measurement timings of several seconds. Thereby, the measurement result is sequentially recorded on the sensor at intervals of several seconds. Further, the transmission interval is set at a time interval longer than the measurement timing, and the measurement values recorded in each sensor are collectively transmitted to the sensor device 1 at every transmission interval. The sensor device 1 expresses each received measurement value in the XML format and transmits it to the data compression transfer device 2.

センサ装置1が作成するXMLデータの例を図11に示す。このXMLデータでは、関連するデータが離れないように分割位置が定められている。具体的には、センサ装置1は、一まとまりの測定値(average, maximum, minimun, zero_cross等)の後尾に分割可能目印として「<EOF/>」タグを追加する。また、送信間隔の間に蓄積された測定結果を示すデータの開始部分に「<Split>」を挿入し、その終了部分に「</Split>」を挿入する。これら「<EOF/>」、「<Split>」、「</Split>」はXMLデータを分割するための特殊なタグである。   An example of XML data created by the sensor device 1 is shown in FIG. In this XML data, division positions are determined so that related data does not leave. Specifically, the sensor device 1 adds a “<EOF />” tag as a severable mark at the end of a group of measured values (average, maximum, minimun, zero_cross, etc.). In addition, “<Split>” is inserted at the start portion of the data indicating the measurement result accumulated during the transmission interval, and “</ Split>” is inserted at the end portion thereof. These “<EOF />”, “<Split>”, and “</ Split>” are special tags for dividing XML data.

なお、ここでは各センサが上記の高度な処理を行うとしたが、センサを1回の測定毎に測定値を通知するだけの機能を備えたものとし、センサ装置1が上記の計算機能や蓄積機能を備えることとしてもよい。   Here, each sensor performs the above-described advanced processing. However, it is assumed that the sensor has a function of notifying a measured value for each measurement, and the sensor device 1 performs the above calculation function and accumulation. It is good also as providing a function.

続いて、図2のステップ3において、データ圧縮転送装置2のスロット作成部26は、符号化・バイナリ化後のバイナリデータのサイズと衛星回線4のスロットのサイズとを比較し、前者の方が後者より小さい場合にはステップ9へ進んでバイナリデータをスロットへ詰め込む。一方、前者の方が後者より大きい場合には、ステップ4へ進む。   Subsequently, in step 3 of FIG. 2, the slot creating unit 26 of the data compression / transfer apparatus 2 compares the size of the binary data after encoding / binarization with the size of the slot of the satellite line 4. If it is smaller than the latter, the process proceeds to step 9 to pack binary data into the slot. On the other hand, if the former is larger than the latter, the process proceeds to step 4.

ステップ4において、スロット作成部26は、バイナリデータのサイズに圧縮ツールによる圧縮率を乗じた値とスロットのサイズとを比較する。この圧縮ツールは、例えばGZIPに代表される圧縮用のソフトウェアであり、バイナリデータ圧縮部25によって記憶装置に記憶・管理される。その圧縮率については、80%−90%の値になると想定し、ユーザによって事前に登録されるものとする。そして、比較の結果、バイナリデータのサイズに圧縮率を乗じた値がスロットのサイズよりも小さい場合には、ステップ5へ進んで、バイナリデータを圧縮ツールによって圧縮した後、ステップ6へ進む。一方、バイナリデータのサイズに圧縮率を乗じた値がスロットのサイズよりも大きい場合には、ステップ7,8へ進んで、当該バイナリデータの元のXMLデータについて分割の処理を行う。   In step 4, the slot creating unit 26 compares the value obtained by multiplying the size of the binary data by the compression rate by the compression tool with the size of the slot. This compression tool is compression software represented by GZIP, for example, and is stored and managed in a storage device by the binary data compression unit 25. The compression rate is assumed to be 80% -90% and is registered in advance by the user. As a result of comparison, if the value obtained by multiplying the size of binary data by the compression ratio is smaller than the size of the slot, the process proceeds to step 5, and after the binary data is compressed by the compression tool, the process proceeds to step 6. On the other hand, if the value obtained by multiplying the size of the binary data by the compression ratio is larger than the size of the slot, the process proceeds to Steps 7 and 8, and the original XML data of the binary data is divided.

ステップ6では、スロット作成部26は、圧縮後のバイナリデータとスロットのサイズとを比較し、前者の方が小さい場合にはステップ9へ進んでバイナリデータをスロットへ詰め込む。一方、前者の方が大きい場合には、ステップ7,8へ進んで、当該バイナリデータの元のXMLデータについて分割の処理を行う。   In step 6, the slot creating unit 26 compares the compressed binary data with the slot size, and if the former is smaller, the process proceeds to step 9 to pack the binary data into the slot. On the other hand, if the former is larger, the process proceeds to steps 7 and 8, and the original XML data of the binary data is divided.

ステップ8では、スロット作成部26は、バイナリデータの元のXMLデータについて、関連するデータが離れないように定められた分割位置に開始タグ記号或いは終了タグ記号を挿入してデータを分割する。そして、上記ステップ1〜9の処理を繰り返させる。   In step 8, the slot creation unit 26 divides the data by inserting a start tag symbol or an end tag symbol at a division position determined so that related data is not separated from the original XML data of binary data. And the process of the said steps 1-9 is repeated.

詳細に説明すると、図12(a)に示すように元のXMLデータのサイズが1165バイトであり、符号化・バイナリ化によって100バイトになったとする。ここで、予め登録した圧縮ツールの圧縮率が80%とすると、圧縮後のデータの予測サイズは80バイトであり、スロットのサイズが70バイトであるとすると、分割すべき元のデータサイズは、非圧縮のデータサイズ×スロットサイズ/(圧縮率×バイナリデータサイズ)による算出式で求められ、元のXMLデータを分割によって1165×70/80=1019バイト以下にする必要があると算出できる。   More specifically, it is assumed that the size of the original XML data is 1165 bytes as shown in FIG. 12A and has become 100 bytes by encoding / binarization. Here, if the compression rate of the compression tool registered in advance is 80%, the predicted size of the compressed data is 80 bytes, and if the slot size is 70 bytes, the original data size to be divided is It is obtained by a calculation formula of uncompressed data size × slot size / (compression rate × binary data size), and it can be calculated that the original XML data needs to be 1165 × 70/80 = 1019 bytes or less by dividing.

図12(a)のXMLデータは、分割目印である「<EOF/>」が、543バイト目と824バイト目にある。サイズが1019バイトを超えない最大となる目印位置で分割することで、なるべく分割数を減らすようにする観点から、ここでは824バイト目で分割する。この後、分割したXMLデータの前半部分の後段に、XMLデータの「</Split>」以降に表示される終了タグを示す「</GetRes>」「</KVPTransac>」「</Frame>」を付与する。その結果、前半部分の分割データは図12(b)のようになる。また、分割したデータの後半部分に対しては、その前段にXMLデータの「<Split>」以前に表示される開始タグを付与する。その結果、後半部分の分割データは図12(c)のようになる。   In the XML data of FIG. 12A, the division mark “<EOF />” is at the 543rd and 824th bytes. From the viewpoint of reducing the number of divisions as much as possible by dividing at the maximum mark position whose size does not exceed 1019 bytes, here, division is performed at the 824th byte. After this, “</ GetRes>”, “</ KVPTransac>”, “</ Frame>” indicating the end tags displayed after “</ Split>” of the XML data in the latter part of the first half of the divided XML data. Is granted. As a result, the divided data in the first half is as shown in FIG. In addition, a start tag displayed before “<Split>” of the XML data is added to the former stage of the latter half of the divided data. As a result, the divided data in the latter half is as shown in FIG.

なお、圧縮ツールの圧縮率については、前述したように事前に登録しておく他、随時更新してもよい。随時更新する手法としては、バイナリデータ圧縮部25が圧縮率情報として古い値(ここではαとおく)を記憶装置に保持しておき、バイナリデータのサイズ×α≦スロットサイズとなる場合であって実際に圧縮をした結果、バイナリデータのサイズ×α>スロットサイズとなったときに、このαの値を実際の圧縮率の値に更新する。その後、図2のステップ7以降において更新後の圧縮率を用いて分割処理を行うようにする。   Note that the compression rate of the compression tool may be updated as needed in addition to registering in advance as described above. As a method of updating as needed, the binary data compression unit 25 holds an old value (here, α) as compression rate information in a storage device, and the size of binary data × α ≦ slot size is satisfied. As a result of actual compression, when the size of binary data × α> slot size is satisfied, the value of α is updated to the value of the actual compression rate. Thereafter, in step 7 and subsequent steps in FIG. 2, the division process is performed using the updated compression rate.

サーバ装置3では、データ送受信部31により、データ圧縮転送装置2から送られてきた圧縮されたバイナリデータを受信して記憶装置に一旦記憶させた後、バイナリデータ復元部32により、復元ツールを用いてバイナリデータを復元する。そして、圧縮データ復元部35により、このバイナリデータにASN.1デコードルールを適用して開始タグ記号、終了タグ記号、改行コードを挿入した後、当該データにおける符号を辞書33の変換リストに基づいてキーワードに変換することで、元のデータを復元する。   In the server device 3, the data transmission / reception unit 31 receives the compressed binary data sent from the data compression / transfer device 2 and temporarily stores it in the storage device, and then the binary data restoration unit 32 uses a restoration tool. Restore the binary data. The compressed data decompression unit 35 applies the ASN.1 decoding rule to the binary data and inserts a start tag symbol, an end tag symbol, and a line feed code, and then converts the code in the data based on the conversion list of the dictionary 33. Restore original data by converting to keywords.

次に、辞書の学習機能について説明する。これは、サーバ装置3の辞書作成部38が持つ機能である。前提として、図7を用いて説明したように、タグに用いられるキーワードを1バイト又は2バイトの符号で表すものとする。1バイトで表現できる数は64個までであるので、学習の主な処理は、どのキーワードを1バイトで表現し、どのキーワードを2バイトで表現するかを決定することにある。   Next, the learning function of the dictionary will be described. This is a function of the dictionary creation unit 38 of the server device 3. As a premise, as described with reference to FIG. 7, a keyword used for a tag is represented by a 1-byte or 2-byte code. Since the number that can be expressed by 1 byte is up to 64, the main process of learning is to determine which keyword is expressed by 1 byte and which keyword is expressed by 2 bytes.

サーバ装置3では、圧縮されているデータについてはバイナリデータ復元部32及び圧縮データ復元部35により復元してから辞書作成部38へ伝送し、非圧縮のものはそのまま辞書作成部38へ伝送する。すなわち、辞書作成部38には、もとのXMLデータが伝送される。なお、圧縮データ復元部35は、受け取ったデータが圧縮データか非圧縮データかをデータの所定位置のフラグで判別するものとする。   In the server device 3, the compressed data is restored by the binary data restoration unit 32 and the compressed data restoration unit 35 and then transmitted to the dictionary creation unit 38, and the uncompressed data is transmitted to the dictionary creation unit 38 as it is. That is, the original XML data is transmitted to the dictionary creation unit 38. Note that the compressed data restoration unit 35 determines whether received data is compressed data or non-compressed data by using a flag at a predetermined position of the data.

辞書作成部38は、受け取ったデータからキーワードを抽出し、キーワード毎に出現回数を記憶装置に一旦記憶する。そして、出現回数の多いものから順位を付け、上位64位までのキーワードを1バイトの符号で表現すると共に、65位以下のキーワードを2バイトの符号で表現し、これらのキーワードと符号とを対応付けることにより辞書33を作成する。   The dictionary creation unit 38 extracts keywords from the received data, and temporarily stores the number of appearances for each keyword in the storage device. Then, the ranking is performed in descending order of the number of appearances, and the keywords up to the top 64 are represented by 1-byte codes, and the keywords below 65th are represented by 2-byte codes, and these keywords are associated with the codes. Thus, the dictionary 33 is created.

例えば、図13に示すように、抽出した特定のキーワードについて、24時間毎に出現回数を記録し、現在から24時間以内の出願回数、及びそれ以前に24時間毎に発生した出現の回数を計数し、それぞれに重み付けを行った上で総和を求めることで評価値とする。図13では、出現回数が現在から順に3,2,3,4,4であり、その重みを順に1.0,0.8,0.4,0.2,0.1としたときの評価値が6.0になることを示す。この評価値の高いものから順位を付け、上位64位までを1バイトで表現することとし、65位以下は2バイトで表現する。   For example, as shown in FIG. 13, the number of appearances is recorded every 24 hours for the extracted specific keywords, and the number of applications within 24 hours from the present time and the number of appearances that occurred every 24 hours before that are counted. Then, each weight is weighted, and the sum is obtained to obtain an evaluation value. In FIG. 13, the number of appearances is 3, 2, 3, 4 and 4 in order from the present, and the evaluation is made when the weights are 1.0, 0.8, 0.4, 0.2 and 0.1 in order. Indicates that the value is 6.0. The ranking is given in descending order of the evaluation value, and the upper 64 positions are expressed by 1 byte, and the 65th and lower positions are expressed by 2 bytes.

図14は、キーワード、その出現回数、符号の対応関係を纏めた変換リストの例を示す。同図では、キーワード「attribData xsi:type="java:java.lang.String"」が64位であり1バイト符号が割り当てられており、キーワード「MagnetSensorAttribute」が65位であり2バイト符号が割り当てられている。そして、同図に示す出現回数が計数された段階で学習を行うと、キーワード「attribData xsi:type="java:java.lang.String"」の評価値は、5×1.0+5×0.8+5×0.6+20×0.4+20×0.2=24であり、キーワード「MagnetSensorAttribute」の評価値は、10×1.0+10×0.8+10×0.6+5×0.4+5×0.2=27となる。この結果、「attribData xsi:type="java:java.lang.String"」は65位となるので2バイト符号である「&C000」に対応付け、一方「MagnetSensorAttribute」は64位となるので1バイト符号である「&BF」に対応付ける。以上の処理によって、両キーワードは順位が逆転することとなり、辞書作成部38は、この情報で辞書33の変換リストを更新する。   FIG. 14 shows an example of a conversion list that summarizes the correspondence between keywords, the number of appearances, and codes. In the figure, the keyword “attribData xsi: type =“ java: java.lang.String ”” is 64th and assigned a 1-byte code, and the keyword “MagnetSensorAttribute” is 65th and assigned a 2-byte code. ing. Then, when learning is performed at the stage where the number of appearances shown in the figure is counted, the evaluation value of the keyword “attribData xsi: type =“ java: java.lang.String ”” is 5 × 1.0 + 5 × 0.8 + 5 × 0.6 + 20 × 0.4 + 20 × 0.2 = 24, and the evaluation value of the keyword “MagnetSensorAttribute” is 10 × 1.0 + 10 × 0.8 + 10 × 0.6 + 5 × 0.4 + 5 × 0.2 = 27 Become. As a result, “attribData xsi: type =“ java: java.lang.String ”” is 65th, so it is associated with “& C000” which is a 2-byte code, while “MagnetSensorAttribute” is 64th, so it is a 1-byte code. Corresponds to "& BF". Through the above processing, the rankings of both keywords are reversed, and the dictionary creation unit 38 updates the conversion list of the dictionary 33 with this information.

また、図14に示すように、新規のキーワード「AAABBBCCCDDD」が出現した場合には、登録後の符号の数が64(1バイト分)+16384(2バイト分)個に達していなければ、最後尾の符号を割り当てる。同図の例では「&C002」を割り当てた状態を示す。なお、登録数が64に満たない場合には、1バイト符号への割り当てを行う。このような評価値の算出を例えば24時間毎に実施する。また、新規のタグを当初から圧縮したい場合には、その符号を変換リストに予め手動で登録してもよい。   Also, as shown in FIG. 14, when a new keyword “AAABBBCCCDDD” appears, if the number of codes after registration has not reached 64 (1 byte) +16384 (2 bytes), the end Is assigned. In the example of the figure, “& C002” is assigned. When the number of registrations is less than 64, allocation to a 1-byte code is performed. Such an evaluation value is calculated every 24 hours, for example. If a new tag is to be compressed from the beginning, the code may be manually registered in advance in the conversion list.

辞書作成部38は、この変換リストの変更結果および新規割り当て結果を、辞書管理部34に通知し、辞書管理部34が、キーワードと符号との対応関係を管理する。また、辞書管理部34は、データ送受信部31を介して最新の変換リストを全てのデータ圧縮転送装置2へ通知し、各データ圧縮転送装置2では受け取った変換リストで自己の辞書23を更新する。これにより、各データ圧縮転送装置2とサーバ装置3とで同一の辞書を用いることができる。なお、辞書管理部34は、新たに更新された辞書だけでなく、更新前の辞書についても削除せずに保持しておくようにしてもよい。   The dictionary creation unit 38 notifies the dictionary management unit 34 of the conversion list change result and the new assignment result, and the dictionary management unit 34 manages the correspondence between the keyword and the code. Further, the dictionary management unit 34 notifies the latest conversion list to all the data compression / transfer apparatuses 2 via the data transmission / reception unit 31, and each data compression / transfer apparatus 2 updates its own dictionary 23 with the received conversion list. . Thereby, the same dictionary can be used in each data compression transfer device 2 and server device 3. Note that the dictionary management unit 34 may store not only the newly updated dictionary but also the pre-update dictionary without deleting it.

次に、サーバ装置3からデータ圧縮転送装置2に対してデータを送信する処理について具体的に説明する。   Next, a process for transmitting data from the server apparatus 3 to the data compression / transfer apparatus 2 will be specifically described.

サーバ装置3のデータ圧縮部37は、辞書作成部38によって辞書33に追加・変更されたキーワードと符号との対応関係を示す変換リストを用いて、データ圧縮転送装置2での圧縮手法と同様にしてXMLデータのキーワードを符号に変換する。そして、データ送受信部31により、変換後のデータと、変換に用いたキーワードおよび符号とを1つに纏めてデータ圧縮転送装置2へ送信する。   The data compression unit 37 of the server device 3 uses the conversion list indicating the correspondence relationship between the keyword and the code added / changed to the dictionary 33 by the dictionary creation unit 38, and performs the same compression method as the data compression / transfer device 2. The XML data keyword is converted into a code. Then, the data transmission / reception unit 31 collects the converted data and the keywords and codes used for the conversion together and transmits them to the data compression / transfer apparatus 2.

サーバ装置3がデータ圧縮転送装置2及びその配下のセンサ装置1に対する制御コマンドを配信する場合には、データ圧縮部37は、制御コマンドについてもセンサ情報と同様にXML形式で表現すると共に、辞書33を用いてキーワードを符号に変換する。そして、データ圧縮部37は、このとき参照したキーワードおよび符号をデータの後尾に付与して一まとめにして、データ送受信部31へ送信する。   When the server device 3 distributes a control command to the data compression / transfer device 2 and the sensor device 1 under the data compression / transfer device 2, the data compression unit 37 expresses the control command in the XML format as well as the sensor information, and the dictionary 33 Is used to convert a keyword into a code. Then, the data compression unit 37 assigns the keyword and code referred to at this time to the tail of the data, and transmits them to the data transmission / reception unit 31 together.

サーバ装置3での上記送信処理においては、送信するデータにASN.1エンコードルールのデータ構造を適用してバイナリ化し、圧縮ツールを用いて圧縮したものを用いるものとする。   In the transmission process in the server device 3, the data to be transmitted is binarized by applying the data structure of the ASN.1 encoding rule, and compressed using a compression tool.

図15(a)は、このとき適用したキーワードの符号変換の例を示すデータであり、同図(b)は一まとめにしたデータの構造例を示す。図15(a)に示すようにデータはXML形式であり、同図(b)に示すように、XMLタグ「<XMLbody>」と「</XMLbody>」の間に圧縮した制御コマンドを挿入し、XMLタグ「<KeywordRule>」と「</KeywordRule>」の間に参照した変換リスト或いは前回送信した辞書内容との差分を挿入する。図15(c)は、「<KeywordRule>」と「</KeywordRule>」の間に挿入された辞書情報の具体例を示す。   FIG. 15A shows data indicating an example of keyword code conversion applied at this time, and FIG. 15B shows an example of the structure of the data collectively. The data is in XML format as shown in FIG. 15A, and a compressed control command is inserted between the XML tags “<XMLbody>” and “</ XMLbody>” as shown in FIG. Then, the difference between the referenced conversion list or the previously transmitted dictionary content is inserted between the XML tags “<KeywordRule>” and “</ KeywordRule>”. FIG. 15C shows a specific example of dictionary information inserted between “<KeywordRule>” and “</ KeywordRule>”.

図1において、サーバ装置3のデータ送受信部31がデータを送信すると、データ圧縮転送装置2のデータ送受信部27がこれを受信して記憶装置に一旦記憶させる。そして、受信したデータを圧縮データ復元部28に伝送する。圧縮データ復元部28は、まずデータが圧縮ツールで圧縮されたものである場合には、復元ツールを用いて復元する。そして、図15(C)に示すデータのうち「<KeywordRule>」と「</KeywordRule>」の間に挿入された情報を辞書管理部24へ伝送する。   In FIG. 1, when the data transmitting / receiving unit 31 of the server device 3 transmits data, the data transmitting / receiving unit 27 of the data compression / transfer device 2 receives the data and temporarily stores it in the storage device. Then, the received data is transmitted to the compressed data decompression unit 28. When the data is first compressed by the compression tool, the compressed data restoration unit 28 restores the data using the restoration tool. Then, information inserted between “<KeywordRule>” and “</ KeywordRule>” in the data shown in FIG. 15C is transmitted to the dictionary management unit 24.

辞書管理部24は、受け取ったデータに示される「<record>」タグ内に記述された「<key>」タグ内に示される符号と、「<char>」タグ内に示されるキーワードの文字列とを抽出して辞書23に記録する。この処理によって、辞書23の変換リストを更新する。   The dictionary management unit 24 uses the code indicated in the “<key>” tag described in the “<record>” tag indicated in the received data, and the character string of the keyword indicated in the “<char>” tag. Are extracted and recorded in the dictionary 23. With this process, the conversion list of the dictionary 23 is updated.

辞書の更新処理が終了した後、圧縮データ復元部28は、辞書23を参照して、受け取ったデータの「<XMLbody>」と「</XMLbody>」の間に挿入されたデータを元のXMLデータに復元する。図16(C)に圧縮された制御コマンドの例を、図16(d)に復元された制御コマンドの例をそれぞれ示す。なお、図16(a)は復元対象のデータの構造例を示す図であり、図16(b)はその辞書部分の情報を示す図である。   After the dictionary update processing is completed, the compressed data decompression unit 28 refers to the dictionary 23 and converts the data inserted between “<XMLbody>” and “</ XMLbody>” of the received data into the original XML. Restore to data. FIG. 16C shows an example of the compressed control command, and FIG. 16D shows an example of the restored control command. FIG. 16A is a diagram showing an example of the structure of data to be restored, and FIG. 16B is a diagram showing information in the dictionary portion.

したがって、本実施の形態によれば、データ圧縮転送装置2において、データのタグに用いられるキーワードを符号に変換するという1段階目の圧縮をした後、更にASN.1エンコードルールのデータ構造を適用して開始タグ記号、終了タグ記号、改行コードを削除するという2段階目の圧縮をすることで、高い圧縮率を実現することができる。これを衛星回線を使った災害情報や環境情報を監視するシステムに適用することによって、全国数千箇所にゲートウェイ装置を設置し、各ゲートウェイ装置に多種多様なセンサを100個程度取り付け、各ゲートウェイ装置に割り当てられた衛星回線帯域が1kbps程度であっても、センサ情報のようなサイズが小さいタグ付きフォーマットのデータを1/10程度に圧縮することが可能となる。   Therefore, according to the present embodiment, the data compression / transfer apparatus 2 applies the data structure of the ASN.1 encoding rule after the first-stage compression of converting the keyword used for the data tag into the code. Then, by performing the second-stage compression of deleting the start tag symbol, end tag symbol, and line feed code, a high compression rate can be realized. By applying this to a system for monitoring disaster information and environmental information using satellite links, gateway devices are installed in thousands of locations nationwide, and about 100 different sensors are attached to each gateway device. Even if the satellite line bandwidth assigned to 1 is about 1 kbps, it is possible to compress data of a tagged format with a small size such as sensor information to about 1/10.

本実施の形態によれば、データ圧縮転送装置2において、データを分割する必要がある場合に、関連するデータが離れないように定められた分割位置に開始タグ記号と終了タグ記号を挿入することで、各々の分割されたデータを1つの完成されたデータとして成立させることができ、受信側では全ての分割されたデータを回収しなくともデータを処理することができる。   According to the present embodiment, in the data compression transfer device 2, when it is necessary to divide data, the start tag symbol and the end tag symbol are inserted at the division positions determined so as not to leave the related data. Thus, each divided data can be established as one completed data, and the receiving side can process the data without collecting all the divided data.

本実施の形態によれば、サーバ装置3の辞書作成部38により、キーワード毎に出現回数が多いものから順位を付け、上位64位までのキーワードを1バイトの符号で表現し、65位以下のキーワードを2バイトの符号で表現する。これによって、出現頻度の高いキーワードから順に符号を割り当てることができ、新たなキーワードが追加された場合に、それに対応する符号を自動的に辞書に登録することができる。   According to the present embodiment, the dictionary creation unit 38 of the server device 3 ranks the keywords in descending order of appearance, and expresses the keywords up to the top 64 with 1-byte codes. The keyword is expressed by a 2-byte code. Thus, codes can be assigned in order from keywords with the highest appearance frequency, and when new keywords are added, codes corresponding to the keywords can be automatically registered in the dictionary.

本実施の形態によれば、サーバ装置3により、追加・変更したキーワード及び符号を用いて変換した後のデータと、そのキーワード及び符号とを一まとめにしてデータ圧縮転送装置2に送信し、データ圧縮転送装置2において、受信したキーワードおよび符号を用いて辞書を更新することで、データ圧縮転送装置2ではサーバ装置3のものと同一の最新の辞書を用いることができる。また、データ圧縮転送装置2において、サーバ装置3から受信したデータを更新後の辞書を用いて復元することで、制御コマンドや通信スケジュール等の様々な情報を利用することができる。   According to the present embodiment, the server device 3 transmits the converted data using the added / changed keyword and code, and the keyword and code together to the data compression / transfer device 2, By updating the dictionary using the received keyword and code in the compression transfer device 2, the data compression transfer device 2 can use the latest dictionary identical to that of the server device 3. In the data compression / transfer apparatus 2, various information such as control commands and communication schedules can be used by restoring the data received from the server apparatus 3 using the updated dictionary.

特に、制御コマンドを送信するタイミングで、その辞書に用いるキーワードおよび符号を一まとめにして送信することで、通信回数を低減できると共に、制御コマンドを圧縮/復元する際の不一致を回避することができる。   In particular, by transmitting the keywords and codes used in the dictionary together at the transmission timing of the control command, it is possible to reduce the number of communications and avoid inconsistencies when compressing / decompressing the control command. .

一実施の形態におけるデータ圧縮転送システムの構成を示すブロック図である。It is a block diagram which shows the structure of the data compression transfer system in one embodiment. データ圧縮転送装置における処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process in a data compression transfer apparatus. 同図(a)は符号化前のXMLデータの例を示し、同図(b)はXMLデータのキーワードを辞書を用いて符号化したデータの例を示す。FIG. 4A shows an example of XML data before encoding, and FIG. 4B shows an example of data obtained by encoding a keyword of XML data using a dictionary. XMLのタグに用いるキーワードと符号とを関連付けた変換リストの例を示す図である。It is a figure which shows the example of the conversion list which linked | related the keyword and code | symbol used for an XML tag. XML構造をASN.1エンコードルールに基づいたデータ構造に変換する変換例を示す図である。It is a figure which shows the example of a conversion which converts an XML structure into the data structure based on an ASN.1 encoding rule. 同図(a)は符号化後のXMLデータの例を示し、同図(b)は符号化後のXMLデータにASN.1エンコードルールを適用して更に圧縮したデータの例を示す。2A shows an example of encoded XML data, and FIG. 2B shows an example of data further compressed by applying the ASN.1 encoding rule to the encoded XML data. 1バイト符号と2バイト符号を識別するためのフラグを示す図である。It is a figure which shows the flag for identifying 1 byte code | symbol and 2 byte code | symbol. 1バイト符号と2バイト符号を識別するためのアルゴリズムを示す図である。It is a figure which shows the algorithm for identifying 1 byte code and 2 byte code. センサによる測定内容、送信間隔等を示す表である。It is a table | surface which shows the measurement content by a sensor, a transmission interval, etc. センサによる測定のタイミングを示す図である。It is a figure which shows the timing of the measurement by a sensor. センサが測定した値をXML形式で表現したデータの例を示す図である。It is a figure which shows the example of the data which expressed the value which the sensor measured in the XML format. XMLデータを分割する例を示す図であり、同図(a)は分割前、同図(b),(c)は分割後のXMLデータを示す。It is a figure which shows the example which divides | segments XML data, The figure (a) shows the XML data before a division | segmentation, The figure (b), (c) shows the XML data after a division | segmentation. 辞書学習における評価値の算出例を示す図である。It is a figure which shows the example of calculation of the evaluation value in dictionary learning. 辞書に用いるキーワード、出現回数、符号の対応関係を纏めた変換リストの例を示す図である。It is a figure which shows the example of the conversion list which put together the correspondence of the keyword used for a dictionary, the frequency | count of appearance, and a code | symbol. 同図(a)は、サーバ装置から送信するデータについてのキーワードの符号変換の例、同図(b)は一まとめにしたデータの構造例、同図(c)は一まとめにしたデータのうちの辞書情報部分の例を示す。FIG. 4A shows an example of keyword code conversion for data transmitted from the server device, FIG. 4B shows an example of the structure of the data grouped together, and FIG. An example of the dictionary information part is shown. 同図(a)は復元対象のデータの構造例、同図(b)はその辞書部分の例、同図(C)は圧縮された制御コマンドの例、同図(d)は復元された制御コマンドの例をそれぞれ示す図である。FIG. 4A shows an example of the structure of data to be restored, FIG. 4B shows an example of the dictionary portion thereof, FIG. 4C shows an example of a compressed control command, and FIG. 4D shows restored control. It is a figure which shows the example of a command, respectively.

符号の説明Explanation of symbols

1…センサ装置
1a,1b,1c…センサ
2…データ圧縮転送装置
3…サーバ装置
4…衛星回線
21…センサ接続部
22…データ変換部
23…辞書
24…辞書管理部
25…バイナリデータ圧縮部
26…スロット作成部
27…データ送受信部
28…圧縮データ復元部
29…制御コマンド処理部
31…データ送受信部
32…バイナリデータ復元部
33…辞書
34…辞書管理部
35…圧縮データ復元部
36…データ生成・解析部
37…データ圧縮部
38…辞書作成部
DESCRIPTION OF SYMBOLS 1 ... Sensor apparatus 1a, 1b, 1c ... Sensor 2 ... Data compression transfer apparatus 3 ... Server apparatus 4 ... Satellite line 21 ... Sensor connection part 22 ... Data conversion part 23 ... Dictionary 24 ... Dictionary management part 25 ... Binary data compression part 26 ... Slot creation unit 27 ... Data transmission / reception unit 28 ... Compressed data restoration unit 29 ... Control command processing unit 31 ... Data transmission / reception unit 32 ... Binary data restoration unit 33 ... Dictionary 34 ... Dictionary management unit 35 ... Compressed data restoration unit 36 ... Data generation・ Analysis unit 37 ... Data compression unit 38 ... Dictionary creation unit

Claims (7)

タグ付きフォーマットのデータを格納しておく格納手段と、
前記データのタグに用いられるキーワードとそれに対応する符号とを関連付けた辞書を記憶しておく記憶手段と、
前記格納手段から前記データを読み出して、当該データにおけるキーワードを前記辞書に基づいて符号に変換し、変換後のデータに記号及びコードが不要なデータ構造を定義する情報構造定義ルールを適用して開始タグ記号、終了タグ記号、改行コードを削除してバイナリデータとするデータ変換手段と、
前記バイナリデータをサーバ装置へネットワークを介して送信する送信手段と、
を有することを特徴とするデータ圧縮転送装置。
Storage means for storing tagged data,
Storage means for storing a dictionary in which a keyword used for the tag of the data is associated with a code corresponding to the keyword;
Start by applying the information structure definition rule that reads the data from the storage means, converts the keyword in the data into a code based on the dictionary, and defines a data structure that does not require symbols and codes in the converted data Data conversion means that deletes the tag symbol, end tag symbol, and line feed code to make binary data,
Transmitting means for transmitting the binary data to a server device via a network;
A data compression transfer apparatus characterized by comprising:
バイナリデータを圧縮する圧縮ツール及びその圧縮率を記憶しておく記憶手段と、
前記バイナリデータのサイズが前記ネットワークのスロットのサイズよりも大きい場合、前記バイナリデータのサイズに前記圧縮率を乗じた値が前記スロットのサイズよりも小さいときには前記バイナリデータを前記圧縮ツールによって圧縮し、前記バイナリデータのサイズに前記圧縮率を乗じた値が前記スロットのサイズよりも大きいときには、当該バイナリデータの元のデータについて、関連するデータが離れないように定められた分割位置に開始タグ記号或いは終了タグ記号を挿入してデータを分割する分割手段と、
当該分割後のデータについて前記データ変換手段および前記分割手段による処理を繰り返させる繰返手段と、を有し、
前記送信手段は、前記繰返手段によって処理されたバイナリデータを送信することを特徴とする請求項1記載のデータ圧縮転送装置。
A compression tool for compressing binary data and storage means for storing the compression ratio;
When the size of the binary data is larger than the size of the slot of the network, when the value obtained by multiplying the size of the binary data by the compression rate is smaller than the size of the slot, the binary data is compressed by the compression tool; When the value obtained by multiplying the size of the binary data by the compression rate is larger than the size of the slot, the original tag data of the binary data is set to a start tag symbol or a division position determined so as not to leave the related data. A dividing means for dividing the data by inserting an end tag symbol;
Repetitive means for repeating the processing by the data conversion means and the dividing means for the divided data,
2. The data compression transfer apparatus according to claim 1, wherein the transmission unit transmits the binary data processed by the repetition unit.
ネットワークを介して相互に通信可能なデータ圧縮転送装置とサーバ装置とを備えたデータ圧縮転送システムであって、
前記データ圧縮転送装置は、
タグ付きフォーマットデータを格納しておく第1格納手段と、
前記データのタグに用いられるキーワードと対応する符号とを関連付けた辞書を記憶しておく第1記憶手段と、
前記第1格納手段から前記データを読み出し、当該データにおけるキーワードを前記辞書に基づいて符号に変換し、変換後のデータに記号及びコードが不要なデータ構造を定義する情報構造定義ルールを適用し開始タグ記号、終了タグ記号、改行コードを削除してバイナリデータとするデータ変換手段と、
前記バイナリデータをサーバ装置へネットワークを介して送信する送信手段と、を有し、
前記サーバ装置は、
前記データのタグに用いられるキーワードとそれに対応する符号とを関連付けた辞書を記憶しておく第2記憶手段と、
前記データ圧縮転送装置からバイナリデータを受信して第2格納手段に格納させる受信手段と、
前記第2格納手段から前記バイナリデータを読み出し、当該バイナリデータに情報構造定義ルールを適用して開始タグ記号、終了タグ記号、改行コードを挿入し、当該データにおける符号を前記辞書に基づいてキーワードに変換することで元のデータを復元する復元手段と、
を有することを特徴とするデータ圧縮転送システム。
A data compression and transfer system comprising a data compression and transfer device and a server device that can communicate with each other via a network,
The data compression transfer device
First storage means for storing tagged format data;
First storage means for storing a dictionary in which a keyword used for a tag of the data is associated with a corresponding code;
Read the data from the first storage means, convert a keyword in the data into a code based on the dictionary, and start applying an information structure definition rule that defines a data structure that does not require symbols and codes in the converted data Data conversion means that deletes the tag symbol, end tag symbol, and line feed code to make binary data,
Transmission means for transmitting the binary data to a server device via a network,
The server device
Second storage means for storing a dictionary in which a keyword used for the tag of the data is associated with a code corresponding to the keyword;
Receiving means for receiving binary data from the data compression transfer device and storing it in a second storage means;
Reading the binary data from the second storage means, applying an information structure definition rule to the binary data, inserting a start tag symbol, an end tag symbol, and a line feed code, and using the code in the data as a keyword based on the dictionary A restoration means for restoring the original data by converting,
A data compression and transfer system comprising:
前記サーバ装置は、
前記データからキーワードを抽出し、キーワード毎に出現回数を記録手段に記録すると共に、出現回数の多いものから順位を付け、上位64位までのキーワードを1バイトの符号で表現すると共に、65位以下のキーワードを2バイトの符号で表現することにより前記辞書を作成する辞書作成手段を有することを特徴とする請求項3記載のデータ圧縮転送システム。
The server device
The keywords are extracted from the data, the number of appearances is recorded in the recording means for each keyword, and the ranking is performed in descending order of the number of appearances. 4. The data compression and transfer system according to claim 3, further comprising dictionary creation means for creating the dictionary by expressing the keyword by a 2-byte code.
前記サーバ装置は、
前記辞書作成手段によって追加・変更したキーワードおよびそれに対応する符号を用いて前記データのキーワードを符号に変換する変換手段と、
当該変換後のデータと当該変換に用いたキーワードおよび符号とを一まとめにして前記データ圧縮転送装置へ送信する送信手段と、を有し、
前記データ圧縮転送装置は、
前記サーバ装置から受信した前記キーワードおよび符号を用いて前記辞書を更新する更新手段と、
前記サーバ装置から受信したデータを更新後の辞書を用いて復元する復元手段と、
を有することを特徴とする請求項4記載のデータ圧縮転送システム。
The server device
Conversion means for converting the keyword of the data into a code using the keyword added / changed by the dictionary creation means and the code corresponding thereto;
Transmission means for collectively sending the converted data and the keywords and codes used for the conversion to the data compression transfer device,
The data compression transfer device
Updating means for updating the dictionary using the keyword and code received from the server device;
Restoring means for restoring the data received from the server device using the updated dictionary;
5. The data compression transfer system according to claim 4, further comprising:
前記データ圧縮転送装置により、
前記タグ付きフォーマットのデータを格納手段に格納しておくステップと、
前記格納手段から前記データを読み出して、前記データのタグに用いられるキーワードとそれに対応する符号とを関連付けた辞書に基づいて、当該データにおけるキーワードを符号に変換し、変換後のデータに記号及びコードが不要なデータ構造を定義する情報構造定義ルールを適用し開始タグ記号、終了タグ記号、改行コードを削除してバイナリデータとするステップと、
前記バイナリデータをサーバ装置へネットワークを介して送信するステップと、
を有することを特徴とするデータ圧縮転送方法。
By the data compression transfer device,
Storing the data in the tagged format in a storage means;
The data is read from the storage means, the keyword in the data is converted into a code based on a dictionary that associates the keyword used for the tag of the data and the code corresponding thereto, and the converted data is converted to a symbol and code. Applying an information structure definition rule that defines data structures that do not need to be deleted and removing the start tag symbol, end tag symbol, and line feed code to make binary data,
Transmitting the binary data to a server device via a network;
A data compression transfer method characterized by comprising:
データ圧縮転送装置に対して、
タグ付きフォーマットのデータを格納手段に格納させるステップと、
前記格納手段から前記データを読み出して、前記データのタグに用いられるキーワードとそれに対応する符号とを関連付けた辞書に基づいて、当該データにおけるキーワードを符号に変換し、変換後のデータに記号及びコードが不要なデータ構造を定義する情報構造定義ルールを適用して開始タグ記号、終了タグ記号、改行コードを削除してバイナリデータとするステップと、
前記バイナリデータをサーバ装置へネットワークを介して送信するステップと、
を実行させることを特徴とするデータ圧縮転送プログラム。
For data compression transfer equipment
Storing data in a tagged format in a storage means;
The data is read from the storage means, the keyword in the data is converted into a code based on a dictionary that associates the keyword used for the tag of the data and the code corresponding thereto, and the converted data is converted to a symbol and code. Applying an information structure definition rule that defines a data structure that does not need to delete the start tag symbol, end tag symbol, and line feed code to make binary data,
Transmitting the binary data to a server device via a network;
A data compression and transfer program characterized in that
JP2007051546A 2007-03-01 2007-03-01 Data compression / transfer apparatus, data compression / transfer system, data compression / transfer method, and data compression / transfer program Active JP4756003B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007051546A JP4756003B2 (en) 2007-03-01 2007-03-01 Data compression / transfer apparatus, data compression / transfer system, data compression / transfer method, and data compression / transfer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007051546A JP4756003B2 (en) 2007-03-01 2007-03-01 Data compression / transfer apparatus, data compression / transfer system, data compression / transfer method, and data compression / transfer program

Publications (2)

Publication Number Publication Date
JP2008219264A true JP2008219264A (en) 2008-09-18
JP4756003B2 JP4756003B2 (en) 2011-08-24

Family

ID=39838812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007051546A Active JP4756003B2 (en) 2007-03-01 2007-03-01 Data compression / transfer apparatus, data compression / transfer system, data compression / transfer method, and data compression / transfer program

Country Status (1)

Country Link
JP (1) JP4756003B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013539570A (en) * 2010-07-21 2013-10-24 サムスン エレクトロニクス カンパニー リミテッド Data transmission apparatus and method
KR20140138646A (en) * 2012-01-23 2014-12-04 포스월 미디어, 인코포레이티드 Systems and methods for user event data reduction
JP2017022602A (en) * 2015-07-13 2017-01-26 富士通株式会社 Encoding program, encoding method, encoder, decoding program, decoding method, and decoder
CN117195005A (en) * 2023-11-03 2023-12-08 山东四季车网络科技有限公司 Information data management system based on wisdom carwash

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61232724A (en) * 1985-04-08 1986-10-17 Nippon Denki Off Syst Kk Compressing system for character code data
JPH06202845A (en) * 1993-01-05 1994-07-22 Nec Corp Method and device for compressing transmission data
JP2001067348A (en) * 1999-06-21 2001-03-16 Fujitsu Ltd Method and device for compressing structured documents and computer-readable recording medium recording structured document compressing program
JP2002163248A (en) * 2000-11-24 2002-06-07 Fujitsu Ltd Structured document compressor, structured document restoring device and structured document processing system
JP2003203067A (en) * 2001-12-28 2003-07-18 Fujitsu Ltd Structured document converting method and data converting method
JP2004258773A (en) * 2003-02-24 2004-09-16 Mitsubishi Electric Corp Document compressing device and document reconstructing device
JP2005018672A (en) * 2003-06-30 2005-01-20 Hitachi Ltd Method for compressing structured document
JP2005094652A (en) * 2003-09-19 2005-04-07 Ntt Docomo Inc Data compressing apparatus, data decompressing apparatus and data management apparatus
JP2005202507A (en) * 2004-01-13 2005-07-28 Ntt Docomo Inc Data compression device, data restoration device, template generation device, and data compression system
JP2006287518A (en) * 2005-03-31 2006-10-19 Fujitsu Ltd Compression rule generation method, compression communication device, and program

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61232724A (en) * 1985-04-08 1986-10-17 Nippon Denki Off Syst Kk Compressing system for character code data
JPH06202845A (en) * 1993-01-05 1994-07-22 Nec Corp Method and device for compressing transmission data
JP2001067348A (en) * 1999-06-21 2001-03-16 Fujitsu Ltd Method and device for compressing structured documents and computer-readable recording medium recording structured document compressing program
JP2002163248A (en) * 2000-11-24 2002-06-07 Fujitsu Ltd Structured document compressor, structured document restoring device and structured document processing system
JP2003203067A (en) * 2001-12-28 2003-07-18 Fujitsu Ltd Structured document converting method and data converting method
JP2004258773A (en) * 2003-02-24 2004-09-16 Mitsubishi Electric Corp Document compressing device and document reconstructing device
JP2005018672A (en) * 2003-06-30 2005-01-20 Hitachi Ltd Method for compressing structured document
JP2005094652A (en) * 2003-09-19 2005-04-07 Ntt Docomo Inc Data compressing apparatus, data decompressing apparatus and data management apparatus
JP2005202507A (en) * 2004-01-13 2005-07-28 Ntt Docomo Inc Data compression device, data restoration device, template generation device, and data compression system
JP2006287518A (en) * 2005-03-31 2006-10-19 Fujitsu Ltd Compression rule generation method, compression communication device, and program

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013539570A (en) * 2010-07-21 2013-10-24 サムスン エレクトロニクス カンパニー リミテッド Data transmission apparatus and method
US9753940B2 (en) 2010-07-21 2017-09-05 Samsung Electronics Co., Ltd. Apparatus and method for transmitting data
KR20140138646A (en) * 2012-01-23 2014-12-04 포스월 미디어, 인코포레이티드 Systems and methods for user event data reduction
JP2015511430A (en) * 2012-01-23 2015-04-16 フォースウォール・メディア・インコーポレーテッド User event data reduction system and method
KR101950058B1 (en) 2012-01-23 2019-02-19 포스월 미디어, 인코포레이티드 Systems and methods for user event data reduction
JP2017022602A (en) * 2015-07-13 2017-01-26 富士通株式会社 Encoding program, encoding method, encoder, decoding program, decoding method, and decoder
CN117195005A (en) * 2023-11-03 2023-12-08 山东四季车网络科技有限公司 Information data management system based on wisdom carwash
CN117195005B (en) * 2023-11-03 2024-01-26 山东四季车网络科技有限公司 Information data management system based on wisdom carwash

Also Published As

Publication number Publication date
JP4756003B2 (en) 2011-08-24

Similar Documents

Publication Publication Date Title
KR100424130B1 (en) Data compression apparatus, database system, data communication system, data compression method, storage medium and program transmission apparatus
CN1968254B (en) Method and system for determining whether to compress data transmitted over a network
US10469101B2 (en) Log collection device, log generation device, and log collection method
US11748335B2 (en) Maintaining consistency of data between computing nodes of a distributed computer architecture
CN103379140A (en) Log processing rule synchronization method and relative device and system
JP4756003B2 (en) Data compression / transfer apparatus, data compression / transfer system, data compression / transfer method, and data compression / transfer program
CN113094346A (en) Big data coding and decoding method and device based on time sequence
CN113810489A (en) Industrial internet control system and method
EP1990737A1 (en) Document transformation system
CN113312325B (en) Track data transmission method, device, equipment and storage medium
Al-Qurabat et al. Two-level energy-efficient data reduction strategies based on SAX-LZW and hierarchical clustering for minimizing the huge data conveyed on the internet of things networks
JP4261299B2 (en) Data compression device, data restoration device, and data management device
CN116567079A (en) Data compression method and device
US20110093524A1 (en) Access log management method
CN112905571B (en) Train rail transit sensor data management method and device
CN102387121A (en) Management server, image dissemination control system and image dissemination control method
KR20180108505A (en) Method for transforming data for low volume transmission of meta model base protocol, and data transmitting system for low volume transmission of meta model base protocol
CN117014527A (en) Data processing method and device, storage medium and electronic equipment
CN103929447B (en) A kind of method of the parsing HTTP chunked coded datas based on PEEK operations
Ali et al. A metadata encoding for memory-constrained devices
CN111866520A (en) Coding and decoding method, coding and decoding device and communication system
JP4205603B2 (en) Variable length multi-format conversion apparatus and method, and file transfer system using the same
JP2830697B2 (en) Data processing device
CN111178008A (en) Digital character-oriented data encoding method, digital character-oriented data analyzing method and digital character-oriented data encoding system
CN114666406B (en) Electric power Internet of things data compression method and device based on object model

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090302

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110304

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110308

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110428

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110524

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110530

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140603

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4756003

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250