JP2006287518A - Compression rule generation method, compression communication device, and program - Google Patents

Compression rule generation method, compression communication device, and program Download PDF

Info

Publication number
JP2006287518A
JP2006287518A JP2005103536A JP2005103536A JP2006287518A JP 2006287518 A JP2006287518 A JP 2006287518A JP 2005103536 A JP2005103536 A JP 2005103536A JP 2005103536 A JP2005103536 A JP 2005103536A JP 2006287518 A JP2006287518 A JP 2006287518A
Authority
JP
Japan
Prior art keywords
data
rule
compression
communication device
received
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
JP2005103536A
Other languages
Japanese (ja)
Other versions
JP4548184B2 (en
Inventor
Kazuki Matsui
一樹 松井
Soichi Nishiyama
聡一 西山
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2005103536A priority Critical patent/JP4548184B2/en
Publication of JP2006287518A publication Critical patent/JP2006287518A/en
Application granted granted Critical
Publication of JP4548184B2 publication Critical patent/JP4548184B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

<P>PROBLEM TO BE SOLVED: To allow even a particularly low-capability device or a device for radio communication to compress and communicate data without being loaded, in transmitting and receiving data between devices. <P>SOLUTION: A compression rule is generated as follows; data to be transmitted/received is divided into prescribed units likes words; appearance frequencies etc. are analyzed per divided prescribed unit and are aggregated per data transmission source: and words or the like having high frequencies out of contents of data transmitted from a pertinent transmission source are selected by aggregated frequencies etc. to convert the data to information having a smaller data volume. Furthermore, the generated compression rule is reported to the transmission source by using an empty area of data to be necessarily transmitted/received on communication procedures. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、他の通信装置と通信可能な通信機能を備えた装置が通信機能を介して他の装置とデータを送受信する際の送受信するデータの圧縮・伸長を行うシステムに適用される圧縮規則生成方法、圧縮通信装置およびプログラムに関する。   The present invention relates to a compression rule applied to a system for compressing / decompressing data to be transmitted / received when a device having a communication function capable of communicating with another communication device transmits / receives data to / from another device via the communication function. The present invention relates to a generation method, a compression communication device, and a program.

近年、各種通信技術やネットワークサービスの発展及び一般社会への普及に伴い、企業間取り引きのみならず、個人が利用するサービス等においても、ネットワークを介した取り引きやサービスが広く利用されるようになり、端末装置から各企業のサーバやサービス提供元のサーバに接続して、取引業務の実行やサービスの提供を受けることが広く行われるようになっている。   In recent years, with the development of various communication technologies and network services and their spread to the general public, transactions and services via networks have become widely used not only for business transactions but also for services used by individuals. In addition, it is widely performed that a terminal device is connected to a server of each company or a server of a service provider to receive a business operation or a service.

また一方で、取り引きを実行するための操作を行う端末装置やサービスを利用するための操作を行う端末装置も、多種多様な形態が存在するようになってきている。従来の机上に設置する据置型のパーソナルコンピュータ(パソコン)を使用するだけでなく、携行可能な携帯型のパーソナルコンピュータや携帯電話等を利用する場面も多くなってきている。   On the other hand, there are various types of terminal devices that perform operations for executing transactions and terminal devices that perform operations for using services. In addition to using a conventional stationary personal computer (personal computer) installed on a desk, there are many occasions where a portable personal computer or a mobile phone that can be carried is used.

さらに、サーバと端末装置の間で送受信されるデータは、HTML(HyperText Markup Language)やXML(eXtensible Markup Language)等の構造化文書で記述されることが多くなってきており、これらの構造化文書はデータの可読性という特徴から冗長になりがちであり、データ量は増大する一方となっている。送受信するデータのデータ量の増大は、ネットワークの負荷を増大させ、特に、無線LAN、赤外線通信(IrDA(Infrared Data Association))、BLUETOOTH(登録商標)といった無線通信にてデータの送受信が行われている場合には、無線の電波障害や端末装置のバッテリー不足の影響を受けやすくなり、取り引きの実行やサービスの利用の際にデータの送受信が正常に行われず、取り引きの実行やサービスの利用の妨げとなることが多くなっている。   Furthermore, data transmitted and received between the server and the terminal device is often described in structured documents such as HTML (HyperText Markup Language) and XML (eXtensible Markup Language). Tends to be redundant due to the feature of data readability, and the amount of data is only increasing. The increase in the amount of data to be transmitted / received increases the load on the network. In particular, data is transmitted / received by wireless communication such as wireless LAN, infrared communication (IrDA (Infrared Data Association)), BLUETOOTH (registered trademark). If it is, it becomes easy to be affected by radio wave interference and battery shortage of the terminal device, data transmission / reception is not performed normally when executing transactions or using services, and hindering the execution of transactions or using services It is becoming more and more.

このような状況を回避するために、送受信するデータを圧縮してデータ量を削減してからネットワークに送出することが行われている。   In order to avoid such a situation, data to be transmitted / received is compressed to reduce the data amount and then sent to the network.

データを圧縮する方式としては、一般的なファイルの圧縮方式であるgzipや、XMLに特化した特許文献1、特許文献2、非特許文献1や非特許文献2に開示されている方式が検討されている。特許文献1には、BtoB標準仕様に準拠したメッセージ交換を行う場合に、過去の取引と今回の取引との差分情報を生成して取引相手に送信し、差分情報と過去の取引から今回の取引を復元することが開示されている。特許文献2には、予め文法規則を用意しておき、送信する構造化文書を、構造とコンテンツに分離し、構造部分を文法規則に基づいて圧縮する技術が開示されている。非特許文献1及び非特許文献2については、詳細仕様は策定中であるが、XMLの構造に着目した圧縮方式の検討が行われている。
特開2003−308444号公報 特開2001−217720号公報 Robin Berjon他、「XML Binary Characterization Working Group Public Page」、[online]、2005年3月4日更新、[平成17年3月16日検索]、インターネット<URL: http://www.w3.org/XML/Binary/> Dennis M. Sosnoski、「XBIS XML Information Set Encoding」、[平成17年3月16日検索]、インターネット<URL:http://xbis.sourceforge.net/>
As a method for compressing data, gzip, which is a general file compression method, and methods disclosed in Patent Document 1, Patent Document 2, Non-Patent Document 1, and Non-Patent Document 2 specialized for XML are considered. Has been. In Patent Document 1, when message exchange based on the BtoB standard specification is performed, difference information between a past transaction and the current transaction is generated and transmitted to a trading partner, and the current transaction is calculated from the difference information and the past transaction. Is disclosed. Patent Document 2 discloses a technique in which a grammar rule is prepared in advance, a structured document to be transmitted is separated into a structure and a content, and a structure portion is compressed based on the grammar rule. For Non-Patent Document 1 and Non-Patent Document 2, detailed specifications are being formulated, but compression methods focusing on the structure of XML are being studied.
JP 2003-308444 A JP 2001-217720 A Robin Berjon et al., "XML Binary Characterization Working Group Public Page", [online], updated March 4, 2005, [searched March 16, 2005], Internet <URL: http://www.w3.org / XML / Binary /> Dennis M. Sosnoski, "XBIS XML Information Set Encoding", [March 16, 2005 search], Internet <URL: http://xbis.sourceforge.net/>

しかし、データの圧縮を行う場合、圧縮ルールや圧縮プログラムをデータの送受信を行う通信装置間(例えば、サーバと端末装置、デスクトップ型の端末装置とモバイル型の端末装置等)の双方に用意しなければならない。一般的には、汎用的な圧縮プログラムや圧縮ルールをデータの受渡しを行う双方に有し、相互に送受信するデータの圧縮・復元処理を行っている。   However, when data is compressed, compression rules and programs must be prepared between communication devices that transmit and receive data (for example, a server and a terminal device, a desktop terminal device and a mobile terminal device, etc.). I must. In general, a general-purpose compression program or compression rule is provided in both sides for data transfer, and compression / decompression processing of data transmitted / received to / from each other is performed.

あるいは、データ圧縮に使用する辞書情報をその圧縮後のデータに付加して、圧縮後のデータと辞書情報を1ファイルとしてセットで送信することを行っている。
前述の背景技術の欄においてもそれぞれに同一の圧縮ルールや圧縮プログラムを有することが前提となっている。gzip、特許文献1、非特許文献1及び非特許文献2の圧縮・伸長方式では、圧縮・伸長プログラムの処理内容が膨大になり、特に、性能の低い端末装置においては、圧縮・伸長プログラムの実行による負荷が高く、端末装置での処理時間の増大を招き、引いては、全体の処理のスループットを下げることになる。また、特許文献1においても、過去の取引を端末装置に格納しておくのは端末装置の記憶容量の圧迫を招くため、圧縮処理の際にサーバ側に類似する過去の取引を問い合わせて、類似する過去の取引を特定して差分情報を生成する必要があり、端末装置とサーバ間での通信回数の増加も招き、端末装置とサーバ間での送受信されるデータの圧縮処理には適さない。
Alternatively, dictionary information used for data compression is added to the compressed data, and the compressed data and dictionary information are transmitted as a set as one file.
In the background art section described above, it is assumed that each has the same compression rule and compression program. In the compression / decompression method of gzip, Patent Document 1, Non-Patent Document 1, and Non-Patent Document 2, the processing content of the compression / decompression program becomes enormous, and in particular, the terminal device with low performance executes the compression / decompression program. As a result, the processing time in the terminal device is increased and the throughput of the entire processing is lowered. Also, in Patent Document 1, storing past transactions in the terminal device causes pressure on the storage capacity of the terminal device, so inquiring past transactions similar to the server side during compression processing, and similar It is necessary to identify past transactions to be generated and generate difference information, which increases the number of communication between the terminal device and the server, and is not suitable for compression processing of data transmitted and received between the terminal device and the server.

また、端末装置毎に、その性能特性は異なっており、一律に同じ圧縮ルールや圧縮プログラムを適用することが望ましいとは限らない。   Moreover, the performance characteristics differ for every terminal device, and it is not always desirable to apply the same compression rule and compression program uniformly.

特に、性能の低い端末装置とサーバの通信においても、端末装置側に負担をかけず、さらに、通信回数を増加させることなく、送受信されるデータの圧縮・伸長処理を可能とすることが一層求められている。   In particular, even in communication between a low-performance terminal device and a server, it is further required to enable compression / decompression processing of transmitted / received data without imposing a burden on the terminal device side and without increasing the number of communications. It has been.

本願の発明者は、例えば、サーバと端末装置の間で送受信されるデータの内容は、サーバで提供される業務やサービスに応じて類似性が高くなること、さらには、利用者毎に見てみると、その類似性は一層高くなることに着目した。また、通信手順に従って、サーバと端末装置の間で常に送受信される通信データのうち、通信手順上、使用されていない領域を有する通信データが存在することに着目した。   The inventor of the present application, for example, shows that the content of data transmitted and received between the server and the terminal device increases in similarity according to the business or service provided by the server, and further, for each user. We looked at the fact that the similarity is even higher. Further, attention has been paid to the fact that there is communication data having an area that is not used in the communication procedure among the communication data constantly transmitted and received between the server and the terminal device in accordance with the communication procedure.

サーバと端末装置等の装置間で送受信されるデータに含まれる文字列を、端末装置毎に集計し、例えば、端末装置毎に集計結果に基づいて使用頻度の高い文字列を抽出し、使用頻度の高い文字列を抽出して、抽出した文字列をデータ量の少ない文字列に置き換えるための圧縮ルールを生成し、生成した圧縮ルールを端末装置に通知することを考案した。   The character strings included in the data transmitted and received between the server and the terminal device are aggregated for each terminal device. For example, the frequently used character strings are extracted for each terminal device based on the aggregation result, and the usage frequency is extracted. It was devised to extract a character string having a high size, generate a compression rule for replacing the extracted character string with a character string having a small amount of data, and notify the terminal device of the generated compression rule.

さらに、サーバと端末装置との間等データの送受信を行う通信装置間で、データを送受信する場合、いずれかから送信されてきたデータを受信した際に、データを受信した側からデータを受信したことを送信側に通知する仕組みが取られていることが多いが、データを受信したことを通知する際の通知データには、受信したデータを識別する識別情報(メッセージID等)のみが設定されていることがほとんどであり、数十バイトから数百バイトのデータが設定されているのみである。サーバや端末装置から通信網に送出されるデータの単位は、例えば、一般的に、ethernet(登録商標)でMTU(Maximum Transmission Unit)は1500バイトであり、ヘッダ部(TCPの場合、40バイト程度)を考慮しても、数百バイトの空き領域が存在している。この空き領域を使用すれば、サーバと端末装置の通信手順や通信回数を増やさずに、生成した圧縮ルールをサーバと端末装置間で保持することが可能となり、同一の圧縮ルールに基づいた処理が行われたデータの送受信が可能となる。また、データの送受信を行う通信装置間において、通信装置間の接続状態を確認するコマント(例えば、pingコマンド/pongコマンド)を所定の時間間隔で送受信している場合がある。これらのコマンドについても、送受信されるコマンドに設定されるデータは数バイト程度でよく、前述のTCPの場合のMTUを考慮すると、千数百バイトの空き領域が存在する。この空き領域を利用して、圧縮ルールを送受信するようにしても、同じように余分な通信データの送受信を行うことなく、圧縮ルールの共有が可能となる。 本願発明は、送受信されるデータを単語等の所定の単位に分割し、分割した所定の単位毎に出現頻度等を分析して、データの送信元毎に集計し、集計された頻度等から当該送信元から送信されてくるデータの内容のうち、頻度の高い単語等を選定して、よりデータ量の少ない情報に変更する圧縮ルールを作成する。さらには、作成した圧縮ルールを、通信手順上必ず送受信されるデータの空き領域を使用して送信元に通知することを特徴とする。   Furthermore, when data is transmitted / received between communication devices that transmit / receive data such as between a server and a terminal device, when data transmitted from either is received, the data is received from the data receiving side In many cases, a mechanism for notifying the transmission side is used, but only identification information (message ID, etc.) for identifying the received data is set in the notification data when notifying that the data has been received. In most cases, data of several tens to several hundreds of bytes is set. The unit of data sent from the server or terminal device to the communication network is, for example, generally Ethernet (registered trademark), the MTU (Maximum Transmission Unit) is 1500 bytes, and the header portion (about 40 bytes in the case of TCP). ), There are several hundred bytes of free space. If this free space is used, the generated compression rule can be held between the server and the terminal device without increasing the communication procedure and the number of communication between the server and the terminal device, and processing based on the same compression rule can be performed. It is possible to send and receive data that has been performed. Further, there is a case where a command (for example, a ping command / pong command) for confirming a connection state between communication devices is transmitted / received at a predetermined time interval between communication devices performing data transmission / reception. Also for these commands, the data set in the transmitted / received command may be about several bytes, and considering the MTU in the case of the above-described TCP, there are thousands of bytes of free space. Even when the compression rule is transmitted / received using this free area, the compression rule can be shared without transmitting / receiving excess communication data in the same manner. The present invention divides the data to be transmitted and received into predetermined units such as words, analyzes the appearance frequency for each divided predetermined unit, aggregates it for each data transmission source, Among the contents of data transmitted from the transmission source, a compression rule for selecting a frequently used word or the like and changing the information to a smaller amount of data is created. Furthermore, the generated compression rule is notified to the transmission source using a free area of data that is always transmitted and received in the communication procedure.

すなわち、本願発明は、通信機能を備えた通信可能に接続され、通信装置間で送受信されるデータの圧縮処理を行うための圧縮規則を生成するための規則生成方法であって、通信機能を介して他の通信装置から送信されてきたデータ受信した際に、当該受信したデータに含まれる文字列を抽出し、抽出した文字列の出現状況を当該文字列毎に集計し、集計した結果を送信元の他の通信装置毎に集計して記憶部に蓄積しておき、記憶部に記憶された文字列の出現状況に応じて、データを圧縮する際の圧縮処理の対象とする文字列を選定し、選定した文字列と圧縮処理後のデータとを対応づけて圧縮規則を生成し、生成した圧縮規則を当該データの送信元である他の通信装置に対応づけて記憶部に記憶しておき、他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応づけて記憶された圧縮規則を受信通知と共に送信することを特徴とする。   That is, the invention of the present application is a rule generation method for generating a compression rule for compressing data transmitted and received between communication devices that are communicably connected with a communication function. When data sent from another communication device is received, the character string included in the received data is extracted, the appearance status of the extracted character string is aggregated for each character string, and the aggregated result is transmitted. Aggregate each other communication device and store it in the storage unit, and select the character string to be compressed when compressing the data according to the appearance status of the character string stored in the storage unit Then, a compression rule is generated by associating the selected character string with the data after compression processing, and the generated compression rule is stored in the storage unit in association with another communication device that is the transmission source of the data. Sent from another communication device In transmitting the reception notification to chromatography data, and transmits the compression rule stored in association with the other communication apparatus together with the received notification.

請求項1、2、4、5の発明によれば、受信したデータの内容に基づいて、データの圧縮規則を生成し、データの送信元へ通知するため、送受信されるデータの特徴に応じた圧縮規則が生成される。また、圧縮規則(圧縮に使用する辞書情報を含む)を、データの受信通知など通信手順上必ず送受信されるデータと共に送信することで、通信相手に対して、メッセージ処理数を増やさずに、圧縮規則を共有することが可能になる。特にモバイル通信環境においては、通信が切断されることが頻繁に起こるため、送信するメッセージ数が増えると、それだけ送受信失敗といった不具合を発生させる通信リスクが高くなるが、メッセージ処理数、すなわち、データの送受信回数を増やすことなく、圧縮規則を共有することが可能なため、モバイル通信環境においても、通信品質を悪化させることなく、圧縮・復元処理を伴うデータの送受信を可能とする。   According to the first, second, fourth, and fifth aspects of the present invention, a data compression rule is generated based on the content of the received data and notified to the data transmission source. A compression rule is generated. In addition, by sending compression rules (including dictionary information used for compression) together with data that must be sent and received during communication procedures such as data reception notification, compression is performed without increasing the number of message processing to the communication partner. It becomes possible to share rules. Especially in the mobile communication environment, since communication is frequently disconnected, the increase in the number of messages to be transmitted increases the communication risk that causes a failure such as transmission / reception failure. Since it is possible to share compression rules without increasing the number of transmission / reception, it is possible to transmit / receive data with compression / decompression processing without degrading communication quality even in a mobile communication environment.

請求項3の発明によれば、さらに、過去に送受信したデータが無い場合でも、他の通信装置との間で送受信されたデータに基づいて圧縮規則を生成し、データの送信元へ通知するため、データの送受信を開始してから、すぐに圧縮規則を共有して、圧縮処理を行うことが可能となる。   According to the third aspect of the present invention, in order to generate a compression rule based on data transmitted / received to / from another communication apparatus and notify the data transmission source even when there is no data transmitted / received in the past. Immediately after the start of data transmission / reception, the compression rule can be shared and the compression process can be performed.

さらに、請求項4の発明によれば、受信データだけでなく、送信データに基づいて、圧縮規則を生成することも可能するため、能力差の大きい通信装置とのデータの送受信の場合に、能力の高い通信装置側で、圧縮規則を生成し通知することが可能となる。   Furthermore, according to the invention of claim 4, since it is possible to generate a compression rule not only based on received data but also based on transmission data, it is possible to transmit data with a communication device having a large capability difference. It is possible to generate and notify a compression rule on the higher communication device side.

図1は本発明の原理を説明する図である。   FIG. 1 is a diagram for explaining the principle of the present invention.

装置1及び装置2は通信網3を介して相互に通信可能となっている。説明を簡略化するために、通信網3に接続されている装置は装置1及び装置2の2台のみとなっているが、通信網3に接続される装置1及び装置2は複数あってもよい。また、通信網3も、装置1と装置2が相互に通信可能であれば、物理的、論理的に異なる複数の通信網3で構成されていてもよい。さらに、説明を簡略化するために、装置1を受信側装置、装置2を送信側装置として、それぞれに最低限必要な機能のみを記載して説明する。なお、以後の説明において、装置1を「受信側装置1」、装置2を「送信側装置2」と称する場合がある。   The devices 1 and 2 can communicate with each other via the communication network 3. In order to simplify the explanation, only two devices, the device 1 and the device 2, are connected to the communication network 3, but there may be a plurality of devices 1 and 2 connected to the communication network 3. Good. The communication network 3 may also be configured by a plurality of communication networks 3 that are physically and logically different as long as the device 1 and the device 2 can communicate with each other. Furthermore, in order to simplify the description, the apparatus 1 is assumed to be a receiving side apparatus and the apparatus 2 is assumed to be a transmitting side apparatus, and only the minimum necessary functions are described and described. In the following description, the device 1 may be referred to as “receiving device 1” and the device 2 as “transmitting device 2”.

受信側装置としての装置1は、制御部10、アプリケーション11、規則記憶部12、規則生成部13、規則通知部14、圧縮・伸長部15、データ受信部16、受信通知送信部17を有する。   The device 1 as a receiving device includes a control unit 10, an application 11, a rule storage unit 12, a rule generation unit 13, a rule notification unit 14, a compression / decompression unit 15, a data reception unit 16, and a reception notification transmission unit 17.

制御部10は、装置1の全体制御を行っている。   The control unit 10 performs overall control of the device 1.

アプリケーション11は、企業間取引や利用者へ提供するサービスの実行等に必要なプログラムであって、装置1及び装置2との間で送信するデータを生成したり、受信したデータを処理する。   The application 11 is a program necessary for inter-business transactions, execution of services provided to users, and the like, and generates data to be transmitted between the devices 1 and 2 and processes received data.

データ受信部16は、通信網3を介して他の装置2から送信されてきたデータを受信する。   The data receiving unit 16 receives data transmitted from another device 2 via the communication network 3.

圧縮・伸長部15は、データ受信部16にて受信したデータに短縮(圧縮)処理が施されていた場合に、規則記憶部12に記憶されている規則に従って、データを復元する。   The compression / decompression unit 15 restores data according to the rules stored in the rule storage unit 12 when the data received by the data reception unit 16 has been shortened (compressed).

規則生成部13では、データ受信部16で受信したデータを、所定の単位に分割し、分割した単位で、その出現回数を集計し、所定の期間、集計結果を累積しておく。累積した集計結果に基づいて、短縮(圧縮)すると送受信するデータ量の削減に効果的と判断される文字列を選定し、選定した文字列と当該文字列を短縮(圧縮)するための短縮文字列とを対応づけて、規則記憶部12に記憶しておく。これにより、受信したデータに含まれる文字列の状況に応じて、最も効果的なデータの圧縮規則(以下、圧縮規則を「規則」と称する場合がある。)が生成される。データを分割する単位としては、例えば、品詞解析を行って単語に分割する方式や、XML等の構造化文書においては、XMLパーサ等の構造化文書の解析プログラムの解析結果や解析処理中に生成される中間結果を使用して、タグとデータ部分の分離及びタグやデータの内容毎の分類を行う方式等、対象とするデータに応じた処理を行う。また、短縮の対象とする文字列の選定方式としては、出現回数の高い順に選定する、文字列の文字数の長いものから選定する、文字列の出現傾向から選定する、各選定方式を組み合わせて選定するといった方法が考えられる。   The rule generation unit 13 divides the data received by the data reception unit 16 into predetermined units, totals the number of appearances in the divided units, and accumulates the aggregation results for a predetermined period. Select a character string that is judged to be effective for reducing the amount of data to be transmitted / received based on the accumulated results, and shorten the selected character string and the shortened character to shorten (compress) the character string. The columns are associated with each other and stored in the rule storage unit 12. Thus, the most effective data compression rule (hereinafter, the compression rule may be referred to as “rule”) is generated in accordance with the state of the character string included in the received data. As a unit for dividing data, for example, a method of dividing into words by performing part-of-speech analysis, or in a structured document such as XML, generated during an analysis result of an analysis program of a structured document such as an XML parser or analysis processing The intermediate results are used to perform processing according to the target data, such as a method of separating the tag and data portion and classifying the contents of the tag and data. In addition, as a selection method of the character string to be shortened, select from the highest appearance frequency, select from the longest number of characters in the character string, select from the appearance tendency of the character string, select a combination of each selection method The method of doing is conceivable.

受信通知送信部17は、データ受信部16にてデータを受信した際に、当該データを受信したことを送信元に通知する。データを受信したことを通知するタイミングは、データを受信する度に行ってもよいし、所定の回数受信する度に行うようにしてもよい。プロトコルの規約で定められている場合は、その規約に従い、システムやアプリケーションで制御可能な場合は、運用者や利用者が所望のタイミングを設定する。さらに、本発明においては、受信通知送信部17にてデータを受信したことを送信元に通知する場合に、通知するメッセージの空き領域を利用して、規則記憶部12に格納された規則を通知する。これにより、送信元毎の短縮(圧縮)規則の通知するためのデータの送受信を新たに行う必要がなく、通信負荷を上げることなく、規則の通知を行うことが可能となる。   When the data reception unit 16 receives data, the reception notification transmission unit 17 notifies the transmission source that the data has been received. The timing of notifying that data has been received may be performed every time data is received, or may be performed every time a predetermined number of times are received. In the case where it is defined in the protocol rules, the operator or the user sets a desired timing in accordance with the rules when the system or application can control the rules. Furthermore, in the present invention, when the reception notification transmission unit 17 notifies the transmission source that the data has been received, the rule stored in the rule storage unit 12 is notified using the free space of the message to be notified. To do. Thereby, it is not necessary to newly transmit / receive data for notifying the shortening (compression) rule for each transmission source, and it is possible to notify the rule without increasing the communication load.

また、送信側装置としての装置2は、制御部20、アプリケーション21、規則記憶部22、圧縮・伸長部25、データ受信部26、規則受信部28、データ送信部29を有する。   The device 2 as a transmission side device includes a control unit 20, an application 21, a rule storage unit 22, a compression / decompression unit 25, a data reception unit 26, a rule reception unit 28, and a data transmission unit 29.

制御部20は、装置2の全体制御を行っている。   The control unit 20 performs overall control of the device 2.

アプリケーション21は、業務アプリケーションであり、データ受信部26で受信したデータを処理し、データ送信部29を介して送信されるデータを生成する。   The application 21 is a business application, processes data received by the data receiving unit 26, and generates data to be transmitted via the data transmitting unit 29.

データ受信部26は、通信網3を介して、装置1から送出されてきたデータを受信する。   The data receiving unit 26 receives data transmitted from the device 1 via the communication network 3.

規則受信部28は、データ受信部26で受信したデータが装置1から装置2に対して送信したデータの受信通知であった場合に、受信したデータに含まれる規則を取得して、規則記憶部22に記憶する。   The rule receiving unit 28 obtains a rule included in the received data when the data received by the data receiving unit 26 is a reception notification of data transmitted from the device 1 to the device 2, and the rule storage unit 22 to store.

規則記憶部22は、通信網3に送出するデータを短縮(圧縮)するための規則を格納している。規則は、前述の通り、データ受信部26、規則受信部28を介して受信する。   The rule storage unit 22 stores a rule for shortening (compressing) data sent to the communication network 3. The rule is received via the data receiving unit 26 and the rule receiving unit 28 as described above.

圧縮・伸長部25は、規則記憶部22に記憶された規則に従って、データの該当箇所を変更する。   The compression / decompression unit 25 changes the corresponding portion of the data in accordance with the rules stored in the rule storage unit 22.

データ送信部29は、圧縮・伸長部25にて短縮(圧縮)処理が施されたデータを通信網3に送出する。   The data transmission unit 29 sends the data subjected to the shortening (compression) processing by the compression / decompression unit 25 to the communication network 3.

本発明の基本的な流れを図2に基づいて説明する。   The basic flow of the present invention will be described with reference to FIG.

送信側装置2において、アプリケーション21により受信側装置1に対して送信する送信データが生成されると(図2の#21)、圧縮・伸長部25は、規則記憶部22に記憶された規則に基づいて、送信データを短縮(圧縮)する(図2の#22)。なお、データを短縮する処理は、規則記憶部22に規則が格納されていない場合など、データの短縮処理が実行できない場合は、実行しない。送信データに短縮(圧縮)処理を施した後、短縮後(圧縮後)のデータを受信側装置1に送信する(図2の#23)。   When the transmission data to be transmitted to the reception side device 1 is generated by the application 21 in the transmission side device 2 (# 21 in FIG. 2), the compression / decompression unit 25 follows the rules stored in the rule storage unit 22. Based on this, the transmission data is shortened (compressed) (# 22 in FIG. 2). Note that the data shortening process is not executed when the data shortening process cannot be executed, such as when no rule is stored in the rule storage unit 22. After performing the shortening (compression) process on the transmission data, the shortened (compressed) data is transmitted to the receiving apparatus 1 (# 23 in FIG. 2).

受信側装置1では、データ受信部16にて送信側装置2から送出されてきたデータを受信すると(図2の#11)、受信したデータに短縮(圧縮)処理が施されているか否かを判定する。受信したデータに短縮(圧縮)処理が施されている場合、圧縮・伸長部15は規則記憶部12に格納されている規則に基づいて、受信データを復元する(図2の#12)。規則生成部13は、復元した受信したデータに対して、そのデータの特性に応じて、品詞解析や文法解析、構造化文書解析等を行い、受信したデータを所定の単位(文字列)に分割し、分割した単位(文字列)に出現頻度を集計し、集計した結果を送信側装置2毎に所定の期間累積して蓄積する(図2の#13)。規則生成部13は、蓄積した所定の単位(文字列)毎の出現頻度に基づいて、短縮(圧縮)すべき所定の単位(文字列)を選定し、選定した所定の単位(文字列)と短縮後の文字列とを対応づけて、短縮(圧縮)処理を行うための規則を生成し、生成した規則を規則記憶部12に格納する(図2の#14)。受信通知送信部17は、データ受信部16にて受信した受信データに基づいて、データの受信状況を送信側装置2に通知するためのデータ受信通知メッセージを生成し、さらに、生成したデータ受信通知メッセージの空き領域に規則記憶部12に格納されている送信側装置2の規則の内容を設定し、送信側装置2の規則を含むデータ受信通知メッセージを送信側装置2に送信する(図2の#15)。   In the receiving apparatus 1, when the data receiving unit 16 receives the data transmitted from the transmitting apparatus 2 (# 11 in FIG. 2), it is determined whether or not the received data is subjected to a shortening (compression) process. judge. When the received data has been shortened (compressed), the compression / decompression unit 15 restores the received data based on the rules stored in the rule storage unit 12 (# 12 in FIG. 2). The rule generation unit 13 performs part-of-speech analysis, grammatical analysis, structured document analysis, etc. on the restored received data according to the characteristics of the data, and divides the received data into predetermined units (character strings) Then, the appearance frequencies are totalized in the divided units (character strings), and the totaled results are accumulated and accumulated for each transmitting side apparatus 2 for a predetermined period (# 13 in FIG. 2). The rule generation unit 13 selects a predetermined unit (character string) to be shortened (compressed) based on the appearance frequency of each stored predetermined unit (character string), and selects the predetermined unit (character string). A rule for performing shortening (compression) processing is generated in association with the shortened character string, and the generated rule is stored in the rule storage unit 12 (# 14 in FIG. 2). The reception notification transmission unit 17 generates a data reception notification message for notifying the transmission side device 2 of the data reception status based on the reception data received by the data reception unit 16, and further generates the generated data reception notification. The contents of the rules of the transmission side device 2 stored in the rule storage unit 12 are set in the free space of the message, and a data reception notification message including the rules of the transmission side device 2 is transmitted to the transmission side device 2 (FIG. 2). # 15).

送信側装置2では、データ受信部26がデータ受信通知メッセージを受信すると(図2の#24)、受信通知メッセージ中に含まれる送信側装置2用の規則を取得し、規則記憶部22に格納する(図2#25)。以後、受信通知メッセージを受信し、規則が更新されるまで、規則記憶部22に格納された規則に基づいて、送信データの短縮(圧縮)処理が行われる。   In the transmission side device 2, when the data reception unit 26 receives the data reception notification message (# 24 in FIG. 2), the rule for the transmission side device 2 included in the reception notification message is acquired and stored in the rule storage unit 22. (FIG. 2 # 25). Thereafter, transmission data is shortened (compressed) based on the rules stored in the rule storage unit 22 until the reception notification message is received and the rules are updated.

以上が、本願発明の基本的な構成及び処理の流れである。   The above is the basic configuration and processing flow of the present invention.

以下に、本願発明の具体的な実施例を説明する。
<第1の実施形態>
第1の実施形態では、送信側装置2が、オンラインショッピングのサービスを提供しているサーバ200であり、受信側装置1が通信網3を介してサーバ200に接続してオンラインショッピングサービスを享受する端末装置100であり、サーバ200と端末装置100の間で送受信されるデータはXMLで記述されている場合を想定して、説明する。以後の説明では、サーバ200と端末装置100との間で送受信されるXMLで記述されたデータをXMLデータと称する。図3は、第1の実施形態の構成を示す図である。
Specific examples of the present invention will be described below.
<First Embodiment>
In the first embodiment, the transmission-side apparatus 2 is a server 200 that provides an online shopping service, and the reception-side apparatus 1 connects to the server 200 via the communication network 3 to enjoy the online shopping service. Description will be made assuming that the terminal device 100 and data transmitted and received between the server 200 and the terminal device 100 are described in XML. In the following description, data described in XML transmitted / received between the server 200 and the terminal device 100 is referred to as XML data. FIG. 3 is a diagram illustrating a configuration of the first embodiment.

サーバ200と端末装置100は、通信網3を介して接続されている。前述の通り、サーバ200や端末装置100は、それぞれに複数存在することが可能であるが、説明を簡略化するために、サーバ100及び端末装置200は、それぞれ1台のみ記載する。   The server 200 and the terminal device 100 are connected via the communication network 3. As described above, there can be a plurality of servers 200 and terminal devices 100. However, in order to simplify the description, only one server 100 and one terminal device 200 are described.

端末装置100は、制御部10、オンラインショッピングクライアントプログラム11、規則記憶部12、規則生成部13、送信データ圧縮部151、受信データ復元部152、データ受信部16、受信通知送信部17、データ受信部19、通信インターフェース(I/F)1Cを有する。前述の原理図で説明した構成と同一の構成を有する部分については、同一の参照符号を付し、説明を省略する。送信データ圧縮部151及び受信データ復元部152は、図1における圧縮・伸長部15に相当する。送信データ圧縮部151は、オンラインショピングクライアントプログラム11から出力された、サーバ100への送信するXMLデータを取得し、規則記憶部12に格納されている規則に基づいて、取得したXMLデータに対して短縮(圧縮)処理を行い、データ送信部19に対して、短縮後(圧縮後)のXMLデータの送信を依頼する。受信データ復元部152は、データ受信部16にて受信したXMLデータを受け取り、受信したXMLデータに短縮(圧縮)処理が施されている場合に、規則記憶部12に格納されている規則に基づいて、XMLデータの復元処理を行う。規則生成部13は、受信データ集計部131、集計データ記憶部132、規則決定部133を有する。受信データ集計部131は、受信データ復元部152にて復元したXMLデータについて、XMLの構造解析を行い、XMLデータに含まれるタグや値を分割し、同一のタグや値毎に、その出現頻度を集計する。集計した結果は、送信元のサーバ200毎に、集計データ記憶部132に累積して記憶しておく。規則決定部133は、集計データ記憶部132に記憶されたタグや値の出現頻度から短縮(圧縮)すべきタグや値を選定し、選定したタグや値と短縮記号とを対応づけた規則を生成し、規則記憶部12に記憶する。   The terminal device 100 includes a control unit 10, an online shopping client program 11, a rule storage unit 12, a rule generation unit 13, a transmission data compression unit 151, a reception data restoration unit 152, a data reception unit 16, a reception notification transmission unit 17, and data reception Unit 19 and a communication interface (I / F) 1C. Portions having the same configuration as that described in the above principle diagram are denoted by the same reference numerals, and description thereof is omitted. The transmission data compression unit 151 and the reception data restoration unit 152 correspond to the compression / decompression unit 15 in FIG. The transmission data compression unit 151 acquires the XML data output from the online shopping client program 11 to be transmitted to the server 100, and based on the rules stored in the rule storage unit 12, the acquired XML data A shortening (compression) process is performed, and the data transmission unit 19 is requested to transmit the shortened (compressed) XML data. The reception data restoration unit 152 receives the XML data received by the data reception unit 16 and, based on the rules stored in the rule storage unit 12 when the received XML data is subjected to shortening (compression) processing. The XML data is restored. The rule generating unit 13 includes a received data totaling unit 131, a totaling data storage unit 132, and a rule determining unit 133. The received data totaling unit 131 performs XML structural analysis on the XML data restored by the received data restoring unit 152, divides the tags and values included in the XML data, and the appearance frequency for each of the same tags and values. Is counted. The tabulated results are accumulated and stored in the tabulated data storage unit 132 for each transmission source server 200. The rule determination unit 133 selects a tag or value to be shortened (compressed) from the appearance frequency of the tag or value stored in the total data storage unit 132, and associates the selected tag or value with a shortened symbol. Generated and stored in the rule storage unit 12.

サーバ200は、制御部20、オンラインショッピングプログラム21、規則記憶部22、規則生成部23、送信データ圧縮部251、受信データ復元部252、データ受信部26、受信通知送信部27、データ送信部29、通信インターフェース(I/F)2Cを有する。前述の原理図で説明した構成と同一の構成を有する部分については、同一の参照符号を付し、説明を省略する。送信データ圧縮部251と受信200復元部252は、圧縮・伸長部25に相当する。   The server 200 includes a control unit 20, an online shopping program 21, a rule storage unit 22, a rule generation unit 23, a transmission data compression unit 251, a reception data restoration unit 252, a data reception unit 26, a reception notification transmission unit 27, and a data transmission unit 29. And a communication interface (I / F) 2C. Portions having the same configuration as that described in the above principle diagram are denoted by the same reference numerals, and description thereof is omitted. The transmission data compression unit 251 and the reception 200 restoration unit 252 correspond to the compression / decompression unit 25.

サーバ200のオンラインショッピングプログラム21は、端末装置100の利用者に対して、取り扱い商品の紹介や商品の購入手続き等を行う画面を表示するためのXMLデータを生成して端末装置100に送出して端末装置100の表示装置上に表示し、端末装置100は利用者からの入力操作等に応じて、商品の紹介情報の要求や商品の購入手続きを行うためのXMLデータを生成して、サーバ200に送出する。オンラインショッピングサービスの利用については、各種周知の技術を利用する。本願発明は、オンラインショッピングサービスにおいて、各装置間で送受信されるデータの短縮(圧縮)方式に係る発明のため、オンラインショッピングサービスの実現形態については、詳細な説明を割愛すする。   The online shopping program 21 of the server 200 generates XML data for displaying a screen for introducing a handling product, purchasing a product, etc. to a user of the terminal device 100, and sends it to the terminal device 100. The data is displayed on the display device of the terminal device 100, and the terminal device 100 generates XML data for requesting product introduction information and purchasing a product according to an input operation from the user, and the server 200. To send. Various known techniques are used for using the online shopping service. Since the present invention is an invention related to a method for shortening (compressing) data transmitted and received between devices in an online shopping service, a detailed description of an implementation form of the online shopping service is omitted.

図4に基づいて、受信したXMLデータに基づいて当該XMLデータを短縮(圧縮)するための規則を生成し送信元へ通知するまでの処理の流れを説明する。   Based on FIG. 4, a flow of processing from generation of a rule for shortening (compressing) the XML data based on the received XML data to notification to the transmission source will be described.

サーバ装置200では、オンラインショッピングプログラム21により、端末装置100に対するXMLデータ61を生成し、端末装置100に送出される。サーバ装置200で生成されるXMLデータ61の例を図6(A)に示す。図6(A)に示したXMLデータ61はXformsの規約に従って記述されている例である。Xformsは、XML文書に閲覧者による入力機能をつけるためのフォーム仕様であり、2003年10月にW3C(World Wide Web Consortium)において制定された。   In the server device 200, the XML data 61 for the terminal device 100 is generated by the online shopping program 21 and sent to the terminal device 100. An example of the XML data 61 generated by the server device 200 is shown in FIG. The XML data 61 shown in FIG. 6A is an example described according to the Xforms convention. Xforms is a form specification for adding an input function by a viewer to an XML document, and was established in W3C (World Wide Web Consortium) in October 2003.

端末装置100は、データ受信部16により、サーバ200から送出されてきたXMLデータ61を受信すると(図4の#41)、受信したXMLデータ61に短縮処理(圧縮)処理が施されているか否かを判定する(図4の#42)。短縮(圧縮)処理が施されていた場合(図4の#42でYes)、受信データ復元部152は、規則記憶部12に記憶された規則に基づいて受信したXMLデータを復元する(図4の#43)。短縮(圧縮)処理が施されていない場合(図4の#42でNo)、#44へ進む。   When the terminal device 100 receives the XML data 61 sent from the server 200 by the data receiving unit 16 (# 41 in FIG. 4), whether or not the shortened processing (compression) processing is performed on the received XML data 61. Is determined (# 42 in FIG. 4). When the shortening (compression) process has been performed (Yes in # 42 of FIG. 4), the reception data restoration unit 152 restores the received XML data based on the rules stored in the rule storage unit 12 (FIG. 4). # 43). If the shortening (compression) process has not been performed (No in # 42 of FIG. 4), the process proceeds to # 44.

受信データ集計部131は、XFormsの文法規則に則って、受信したXMLデータ或いは復元後のXMLデータを、タグや値に分解する(図4の#45)。分解したタグや値毎に出現頻度をカウントし、分解したタグや値毎にカウントした回数と対応付けて、集計データ記憶部132に記憶する(図4の#46)。   The received data totaling unit 131 decomposes the received XML data or the restored XML data into tags and values in accordance with the XForms grammatical rules (# 45 in FIG. 4). The appearance frequency is counted for each decomposed tag or value, and stored in the total data storage unit 132 in association with the number of times counted for each decomposed tag or value (# 46 in FIG. 4).

集計データ記憶部132に記憶された集計テーブルの例を、図7に示す。集計テーブルは、文字列71と回数72の項目から構成される。文字列71の項目には、受信したXMLデータを分解して得られたタグや値の文字列が格納される。回数72の項目には、集計されたタグや値の出現回数が格納される。なお、集計されたタグや値の出現回数は、送信元のサーバ毎に累積していく。図7の例では、タグのみの出現回数をカウントし、タグ毎に出現回数を記憶している。   An example of the aggregation table stored in the aggregation data storage unit 132 is shown in FIG. The tabulation table is composed of a character string 71 and items of the number of times 72. In the item of the character string 71, a character string of tags and values obtained by decomposing the received XML data is stored. In the item of the number of times 72, the number of appearances of the aggregated tag and value is stored. The total number of appearances of tags and values is accumulated for each transmission source server. In the example of FIG. 7, the number of appearances of only the tag is counted, and the number of appearances is stored for each tag.

規則決定部133は、集計データ記憶部132を参照して、短縮すべき文字列を選定し、短縮後の文字列(以後の説明では、「短縮記号」と称する場合がある。)と対応づけて、規則記憶部12に格納する(図4の#46)。ここでは、短縮すべき文字列の選定方法として、集計テーブルを文字列71の文字数と出現回数72の多い順にでソートし、文字列の文字数が多く、さらに出現回数の多いものから、順に選定する。これ選定方法以外にも、出現回数の多いものから選定してもよいし、文字列の文字数の多いものから選定してもよい。また、1つの単位として認識されるXMLデータの中に、文字列が含まれる確率を算出しておき、その確率の平均値を文字列毎に累積しておき、XMLデータ中に含まれる可能性の高い文字列から選定するようにしてもよい。この場合にも、文字列の文字数の大小と組み合わせて、選定するようにしてもよい。なお、選定の基準は、送受信されるXMLデータの短縮(圧縮)効果がより望める選定方式であれば、各種統計分析手法や独自の分析手法のいずれを用いて判断してもよい。選定した文字列は、短縮記号と対応づけて、規則記憶部12の規則テーブル80に格納する。規則記憶部12に記憶された規則テーブル80の例を図8に示す。規則テーブル80は、短縮記号欄81と文字列欄82とから構成される。短縮記号欄81には、選定した文字列に対応づける短縮記号を格納する。図8の例では、短縮記号は、1桁の文字列”@(アットマーク)”と1桁の数字からなる、2桁の文字列としている。短縮記号の内容や様式は、この例に限らず、短縮記号として使用されている文字列であるか、通常のデータの内容として使用されている文字列であるかが、判別可能なように、送受信されるデータの内容には通常含まれない内容や様式になるように設定されているのが望ましい。また、データの短縮率を向上させるためには、可能な限り少ない文字列で表現されるのが望ましい。   The rule determination unit 133 refers to the total data storage unit 132, selects a character string to be shortened, and associates it with a character string after shortening (in the following description, it may be referred to as “abbreviated symbol”). And stored in the rule storage unit 12 (# 46 in FIG. 4). Here, as a method for selecting a character string to be shortened, the aggregation table is sorted in descending order of the number of characters of the character string 71 and the number of appearances 72, and the character string is selected in descending order of the number of characters and the number of appearances. . In addition to this selection method, selection may be made from those having a large number of appearances, or from those having a large number of characters in the character string. In addition, the probability that a character string is included in XML data recognized as one unit is calculated, the average value of the probability is accumulated for each character string, and may be included in the XML data. You may make it select from a high character string. Also in this case, selection may be made in combination with the number of characters in the character string. Note that the selection criteria may be determined using any of various statistical analysis methods and unique analysis methods as long as the selection method can more effectively shorten (compress) the XML data transmitted and received. The selected character string is stored in the rule table 80 of the rule storage unit 12 in association with the shortened symbol. An example of the rule table 80 stored in the rule storage unit 12 is shown in FIG. The rule table 80 includes a shortened symbol field 81 and a character string field 82. The abbreviated symbol column 81 stores abbreviated symbols associated with the selected character string. In the example of FIG. 8, the abbreviated symbol is a two-digit character string made up of a one-digit character string “@ (at mark)” and a one-digit number. The contents and style of the abbreviated symbols are not limited to this example, so that it is possible to determine whether the character string is used as the abbreviated symbol or the character string used as the content of normal data. It is desirable that the contents of the data to be transmitted / received are set so that the contents and format are not normally included. In order to improve the data shortening rate, it is desirable that the data be expressed with as few character strings as possible.

受信通知送信部17は、データ受信部16にて受信する度に、データの受信状況を送信元に通知するデータ受信通知メッセージ90を送出するタイミングであるか否かを判断する(図4の#47)。データの受信状況を通知するタイミングは、データを受信する度に行う、所定の件数を受信した後まとめて行う等、任意に設定可能であり、設定されたタイミングに応じて判断する。データ受信通知メッセージ90を送出するタイミングであると判断された場合(図4の#47でYes)、前回受信通知を行った以降に受信したデータについて、受信したデータ中に含まれるメッセージID等を使用して、データ受信通知メッセージ90を生成する。データ受信通知メッセージ90のパケットの例を図9に示す。図面の上段2段でパケットの構成を示し、3段目に設定されるデータの内容の例を示す。パケットは、大きくヘッダ部91とボディ部92に分かれている。ヘッダ部91は、使用されている通信プロトコルに応じて、送信先のアドレスや送信元のアドレス等の制御情報が設定される。ボディ部92には、通知する対象となる受信データを特定する情報を設定するメッセージID欄93と、規則記憶部12に格納されている規則を設定する規則欄94とから構成される。メッセージID欄93には、受信通知の対象となる受信データ中に含まれるメッセージIDなど、受信データを特定できる情報を設定する。規則欄94には規則記憶部12に受信通知メッセージの通知先となるサーバ200に対応づけて記憶されている規則の内容を設定する。また、データ受信通知メッセージのパケットのサイズは、通信網3に使用されている通信プロトコル等に依存して決定されるMTU(Maximum Transmission Unit)の値とする。図9の例では、Ethernet環境での最適値である1500バイトを想定している。1500バイトから、ヘッダ部91の長さ(TCPの場合、40バイト)及びメッセージID欄93の長さ(受信通知を行うデータの件数に応じて、例えば、30バイトから数十バイト)を引いた残りの長さが、規則欄94の長さとなる。規則欄94の長さに応じて、規則テーブル80に登録可能な短縮記号81の件数を設定するようにしておくことが望ましい。図9の例では、図8に例示した規則の内容を、短縮記号81と文字列82の組み合わせ毎に、区切り記号(この例では”,(カンマ)”で区切って列挙している。データ受信通知メッセージ90の生成が完了すると、送信元のサーバ200に送信する(図4の#49)。   The reception notification transmission unit 17 determines whether or not it is time to send a data reception notification message 90 for notifying the transmission source of the data reception status every time it is received by the data reception unit 16 (# in FIG. 4). 47). The timing for notifying the data reception status can be arbitrarily set, for example, every time data is received or after a predetermined number of cases are received, and is determined according to the set timing. If it is determined that it is time to send the data reception notification message 90 (Yes in # 47 in FIG. 4), for the data received after the previous reception notification, the message ID included in the received data is displayed. To generate a data reception notification message 90. An example of the packet of the data reception notification message 90 is shown in FIG. The upper two stages in the drawing show the packet structure, and an example of the contents of data set in the third stage. The packet is roughly divided into a header part 91 and a body part 92. In the header section 91, control information such as a transmission destination address and a transmission source address is set according to the communication protocol being used. The body portion 92 includes a message ID column 93 for setting information for specifying received data to be notified, and a rule column 94 for setting rules stored in the rule storage unit 12. In the message ID column 93, information that can identify received data, such as a message ID included in received data that is a target of reception notification, is set. In the rule column 94, the contents of the rules stored in the rule storage unit 12 in association with the server 200 that is the notification destination of the reception notification message are set. The packet size of the data reception notification message is an MTU (Maximum Transmission Unit) value determined depending on the communication protocol used in the communication network 3 or the like. In the example of FIG. 9, 1500 bytes, which is the optimum value in the Ethernet environment, is assumed. From 1500 bytes, the length of the header portion 91 (40 bytes in the case of TCP) and the length of the message ID column 93 (for example, 30 bytes to several tens of bytes depending on the number of data to be notified of reception) are subtracted. The remaining length becomes the length of the rule column 94. It is desirable to set the number of abbreviated symbols 81 that can be registered in the rule table 80 according to the length of the rule column 94. In the example of Fig. 9, the contents of the rules illustrated in Fig. 8 are listed for each combination of the short symbol 81 and the character string 82, separated by a delimiter (in this example, ", (comma)"). When the generation of the notification message 90 is completed, the notification message 90 is transmitted to the transmission source server 200 (# 49 in FIG. 4).

なお、図4の#41から#49までは、必ずしも一連の処理として実行される必要は無く、#41〜#46までの処理と、#47〜#49までの処理は非同期に実行されてもよい。   Note that steps # 41 to # 49 in FIG. 4 do not necessarily have to be executed as a series of processes, and the processes from # 41 to # 46 and the processes from # 47 to # 49 may be executed asynchronously. Good.

図5に基づいて、データ受信通知メッセージ90を受信してから、送信データの短縮(圧縮)処理を行うまでの流れを説明する。   Based on FIG. 5, the flow from when the data reception notification message 90 is received until the transmission data is shortened (compressed) will be described.

サーバ200は、データ受信部26にてデータを受信すると(図5の#51)、受信したデータが、データ受信通知メッセージ90であるか否かを判定する(図5の#52)。データ受信通知メッセージ90である場合、データ受信通知メッセージ90の規則欄94から規則の内容を取得し、取得した規則の内容を規則記憶部22の規則テーブル80に格納する。規則テーブル80の内容は、図8で例示したものと同様の構成となっている。規則テーブル80は、データ受信通知メッセージ90の送信元の端末装置100の識別情報と対応付けて記憶しておく。   When the data is received by the data receiving unit 26 (# 51 in FIG. 5), the server 200 determines whether or not the received data is the data reception notification message 90 (# 52 in FIG. 5). In the case of the data reception notification message 90, the rule contents are acquired from the rule column 94 of the data reception notification message 90, and the acquired rule contents are stored in the rule table 80 of the rule storage unit 22. The contents of the rule table 80 have the same configuration as that illustrated in FIG. The rule table 80 is stored in association with the identification information of the terminal device 100 that is the transmission source of the data reception notification message 90.

送信データ圧縮部251は、送信データが生成されたか否かを監視し(図5の#54)、送信データが生成された場合に(図5の#54でYes)、送信データの送信先となる端末装置100に対応づけて記憶されている規則テーブル80を規則記憶部22から取得する(図5の#55)。送信データ61に取得した規則テーブル80に登録されている文字列82が存在するか否かを判断する(図5の#56)。文字列82が存在していると判断された場合(図5の#56でYes)、検出された文字列を文字列82に対応づけられている短縮記号81に置き換える(図5の#57)。送信データに含まれる文字列が全て置き換えられたか否かを確認し、置き換えが完了していない場合は(図58でNo)、#57にもどって、文字列82を短縮記号81に置き換える処理を繰り返す。置き換えが完了すると(図5の#58でYes)、規則テーブル80に格納された文字列82が対応する短縮記号81に置き換えられた送信データ62を送信先の端末装置100に送信する(図5の#59)。   The transmission data compression unit 251 monitors whether or not transmission data is generated (# 54 in FIG. 5), and when transmission data is generated (Yes in # 54 in FIG. 5), the transmission data transmission destination The rule table 80 stored in association with the terminal device 100 is acquired from the rule storage unit 22 (# 55 in FIG. 5). It is determined whether there is a character string 82 registered in the rule table 80 acquired in the transmission data 61 (# 56 in FIG. 5). If it is determined that the character string 82 exists (Yes in # 56 in FIG. 5), the detected character string is replaced with a shortened symbol 81 associated with the character string 82 (# 57 in FIG. 5). . It is confirmed whether or not all the character strings included in the transmission data have been replaced. If the replacement has not been completed (No in FIG. 58), the process returns to # 57 to replace the character string 82 with the short symbol 81. repeat. When the replacement is completed (Yes in # 58 in FIG. 5), the transmission data 62 in which the character string 82 stored in the rule table 80 is replaced with the corresponding short symbol 81 is transmitted to the destination terminal device 100 (FIG. 5). # 59).

なお、図5の#51から#59及び#591から#593までは、必ずしも一連の処理として実行される必要は無く、#51〜#53や#591〜#593までの処理と、#54〜#59までの処理は非同期に実行されてもよい。   Note that steps # 51 to # 59 and # 591 to # 593 in FIG. 5 do not necessarily have to be executed as a series of processes, and the processes from # 51 to # 53 and # 591 to # 593 and # 54 to # 59 are not necessarily executed. The processes up to # 59 may be executed asynchronously.

以上により、端末装置100に、サーバ200から送信されてきたXMLデータを文法規則に応じて、タグや値に分解し、分解したタグや値毎に出現状況を分析し、分析した結果に基づいて、送信されるデータのデータ量が削減するための規則テーブルを生成し、生成した規則テーブルをサーバに通知することで、予め想定される変換規則を全て網羅したデータ圧縮用のプログラムを双方に用意することなく、端末装置100とサーバ200との間で送受信されるデータの内容に最適なデータの短縮処理を実現することが可能となる。また、生成した規則テーブルの送受信も、送信されてきたデータの受信通知の空き領域を利用して行われるため、規則テーブルを送受信するために余分なデータの送受信を行うことがなく、規則テーブルを通知することが可能となり、規則テーブルの送受信に伴う通信網の圧迫も回避できる。   As described above, the XML data transmitted from the server 200 to the terminal device 100 is decomposed into tags and values according to the grammatical rules, the appearance status is analyzed for each decomposed tag and value, and based on the analysis result. , Generate a rule table to reduce the amount of data to be transmitted, and notify the server of the generated rule table, so that both sides have a data compression program that covers all the expected conversion rules Without this, it is possible to realize a data shortening process that is optimal for the content of data transmitted and received between the terminal device 100 and the server 200. In addition, since the transmission / reception of the generated rule table is also performed using the empty area of the received notification of the transmitted data, the rule table is not transmitted without transmitting / receiving extra data to transmit / receive the rule table. Notification can be made, and communication network compression accompanying transmission / reception of the rule table can be avoided.

また、上述の説明では、サーバ200から端末装置100に送信されたデータに基づいて、端末装置100側でサーバ200毎に規則を生成する手順を説明したが、逆に、端末装置100からサーバ200に送信されたデータに基づいてサーバ100側で規則生成部23が端末装置100毎に規則を生成し、サーバ200から端末装置100に通知するようにしてもよい。このようにした場合、サーバ200から端末装置100に送信されるデータに含まれる文字列の出現傾向と、端末装置100からサーバ200に送信されるデータに含まれる文字列の出現傾向が異なる場合に、それぞれの出現傾向に応じた規則テーブルが生成されて通知されるため、同じ装置間のデータ送信であっても、その向きに応じて送信されるデータの特性が異なる場合にも、ぞれぞれの向きに応じた短縮(圧縮)処理を行うことが可能となる。
<第2の実施形態>
第1の実施形態では、データの受信側で規則テーブル80を生成し、データの送信元に通知するようにしていたが、能力の低い端末装置の場合、規則テーブルを生成する処理が大きな負荷となる場合が考えられる。第2の実施形態では、これを解消するために、サーバ等の能力の高い装置側で、端末装置から受信したデータの規則テーブルを作成するだけでなく、端末装置へ送出するデータに基づいて、サーバから端末装置へ送信するデータについても規則を生成し、端末装置に通知する仕組みを説明する。
In the above description, the procedure for generating a rule for each server 200 on the terminal device 100 side based on the data transmitted from the server 200 to the terminal device 100 has been described. The rule generation unit 23 may generate a rule for each terminal device 100 on the server 100 side based on the data transmitted to the server 100 and notify the terminal device 100 from the server 200. In this case, when the appearance tendency of the character string included in the data transmitted from the server 200 to the terminal device 100 is different from the appearance tendency of the character string included in the data transmitted from the terminal device 100 to the server 200. Because a rule table corresponding to each appearance tendency is generated and notified, even when data is transmitted between the same devices, even if the characteristics of the transmitted data differ depending on the direction, respectively. It is possible to perform a shortening (compression) process according to the direction of this.
<Second Embodiment>
In the first embodiment, the rule table 80 is generated on the data receiving side and notified to the data transmission source. However, in the case of a terminal device with low capability, the process of generating the rule table is a heavy load. It may be possible. In the second embodiment, in order to solve this, not only a rule table of data received from the terminal device is created on the high-capacity device side such as a server, but also based on data sent to the terminal device, A mechanism for generating a rule for data transmitted from the server to the terminal device and notifying the terminal device will be described.

第2の実施形態の例では、端末装置400からサーバ300へデータを送信する場合を「上り」と称し、サーバ300から端末装置400へデータを送信する場合を「下り」と称する。   In the example of the second embodiment, a case where data is transmitted from the terminal device 400 to the server 300 is referred to as “uplink”, and a case where data is transmitted from the server 300 to the terminal device 400 is referred to as “downlink”.

図10は、第2の実施形態におけるシステム構成を示す図である。   FIG. 10 is a diagram illustrating a system configuration according to the second embodiment.

なお、第1の実施形態と同じ機能を有する部分については、同一の参照符号を付し、詳細な説明は省略する。第1の実施形態と同様に、サーバ300と端末装置400との間で送受信されるデータは、XMLで記述されているものとする。   In addition, about the part which has the same function as 1st Embodiment, the same referential mark is attached | subjected and detailed description is abbreviate | omitted. As in the first embodiment, data transmitted / received between the server 300 and the terminal device 400 is described in XML.

第2の実施形態では、規則生成部13は、サーバ300側にのみ存在する。また、サーバ300の規則生成部13には、受信データ集計部131、集計データ記憶部132、規則決定部133以外に、送信データ集計部134が追加されている。   In the second embodiment, the rule generation unit 13 exists only on the server 300 side. In addition to the received data totaling unit 131, total data storage unit 132, and rule determining unit 133, the transmission data totaling unit 134 is added to the rule generation unit 13 of the server 300.

端末装置400から受信したデータに基づいて、規則テーブルを生成する方法は、第1の実施形態と同様のため説明を省略する。   Since the method for generating the rule table based on the data received from the terminal device 400 is the same as that in the first embodiment, the description thereof is omitted.

サーバ300から端末装置400に対して送信するデータに基づいて、規則テーブルを作成し、端末装置400に通知する例を説明する。   An example of creating a rule table based on data transmitted from the server 300 to the terminal device 400 and notifying the terminal device 400 will be described.

アプリケーション11から端末装置400に対して送信するデータが生成されると(図11の#1101[図2の#21と同様])、送信データ集計部134は、アプリケーション11で生成された送信データを文法規則等に従って解析して、タグや値等に分解し(図11の#1102)、分解したタグや値毎に出現回数をカウントし、集計データ記憶部132に記録する(図11の#1103)。集計データ記憶部132の集計テーブルの例を図13に示す。第2の実施形態では、端末装置400からサーバ300へ送信されてくるデータの集計結果だけでなく、サーバ300から端末装置400へ送信するデータについての集計結果も記録しておくため、管理テーブル1300を設けて、端末装置400毎に、端末装置400からサーバ300へ送信されてきたデータの集計テーブル1310と、サーバ300から端末装置400へ送信されるデータの集計テーブル1320とを区別可能に管理している。管理テーブル1300は、端末ID欄1310、方向欄1302、テーブルID欄1303から構成されている。端末ID欄1301は、サーバ300へ送信されてきたデータの送信先あるいはサーバ300から送信されるデータの受信元となる端末装置400を識別する識別子を格納する。識別子は、送受信されるデータに含まれるメッセージID中に端末IDが含まれている場合はその情報を取得する、あるいは、送信元或いは送信先のアドレス情報等を利用する。方向欄1302は、集計テーブルが上り/下りのいずれの方向のテーブルであるかを示す情報が格納されており、「上り」あるいは「下り」のいずれかが格納されている。テーブルID欄1303には、各テーブルが格納されている記憶装置上のアドレス等が格納される。テーブルID欄1303で指定されたアドレスに格納された集計テーブル1310、1320(図13(B)、(C))については、図7にて例示した集計テーブルと同様の構成となっている。   When data to be transmitted from the application 11 to the terminal device 400 is generated (# 1101 in FIG. 11 [similar to # 21 in FIG. 2]), the transmission data totaling unit 134 converts the transmission data generated by the application 11 into data. The analysis is performed according to the grammatical rules, etc., and is decomposed into tags and values (# 1102 in FIG. 11). The number of appearances is counted for each decomposed tag and value, and recorded in the total data storage unit 132 (# 1103 in FIG. 11). ). An example of the total table of the total data storage unit 132 is shown in FIG. In the second embodiment, the management table 1300 records not only the total result of data transmitted from the terminal device 400 to the server 300 but also the total result of data transmitted from the server 300 to the terminal device 400. For each terminal device 400, the data aggregation table 1310 transmitted from the terminal device 400 to the server 300 and the data aggregation table 1320 transmitted from the server 300 to the terminal device 400 are managed in a distinguishable manner. ing. The management table 1300 includes a terminal ID column 1310, a direction column 1302, and a table ID column 1303. The terminal ID column 1301 stores an identifier for identifying the terminal device 400 that is a transmission destination of data transmitted to the server 300 or a reception source of data transmitted from the server 300. When the terminal ID is included in the message ID included in the transmitted / received data, the identifier is acquired, or the address information of the transmission source or the transmission destination is used. The direction column 1302 stores information indicating which direction of the up / down direction the aggregation table is, and stores either “up” or “down”. The table ID column 1303 stores an address on the storage device in which each table is stored. The aggregation tables 1310 and 1320 (FIGS. 13B and 13C) stored at the address specified in the table ID column 1303 have the same configuration as the aggregation table illustrated in FIG.

規則決定部133は、集計データ記憶部132に格納された集計結果に基づいて、規則テーブルを生成し、規則記憶部12に格納する。規則テーブルの生成方法は、第1の実施形態で説明したものと同様である。規則記憶部12に格納された規則テーブルの例を図14に示す。規則テーブルについても、集計テーブルと同様に、管理テーブル1400により、上りのデータに対する規則テーブル1410(図14(B))か、下りのデータに対する規則テーブル1420(図14(C))かを識別可能に管理している。管理テーブル1400は、端末ID欄1401、方向欄1402、テーブルID欄1403、通知フラグ欄1404から構成されている。端末ID欄1401は、サーバ300へ送信されてきたデータの送信元あるいはサーバ300から送信されるデータの受信先となる端末装置400を識別する識別子を格納する。識別子は、送受信されるデータに含まれるメッセージID中に端末IDが含まれている場合はその情報を取得する、あるいは、送信元或いは受信先のアドレス情報等を利用する。方向欄1402は、規則テーブルが上り/下りのいずれの方向のテーブルであるかを示す情報が格納されており、「上り」あるいは「下り」のいずれかが格納されている。テーブルID欄1403には、各テーブルが格納されている記憶装置上のアドレス等が格納される。通知フラグ欄1404は、規則テーブルが端末装置400に通知済であるか否かを示すフラグが可能されている。図14の例では、通知済である場合に「済」であることを示す情報、まだ通知されていない場合に「未」であることを示す情報が格納されている。端末装置400への規則テーブルの通知は、端末装置400からサーバ300へデータが送信されたことに応じて、サーバ300からデータを受信したことを通知するデータ受信通知の際に行うため、特にサーバ300から端末装置400に対して送信されるデータに基づいて生成される下りの規則テーブルについては、リアルタイムに規則テーブルが端末装置400に通知されないため、新たに生成された規則テーブルが端末装置400に通知されるまで、通知済の規則テーブルと共に保持しておく必要がある。テーブルID欄1403で指定されたアドレスに格納された規則テーブル1410、1420については、図8にて例示した規則テーブルと同様の構成となっている。端末ID:Terminal−01の上りの規則テーブル1410は、端末装置400から受信したデータに基づいて決定した規則が格納されている。端末ID:Terminal−01の下りの規則テーブル1420は、サーバ300から端末装置400に送信されるデータに基づいて決定した規則が格納されている。例えば、サーバ300から端末装置400に対しては、表示のみの内容や入力項目の全てが送信されるが、端末装置400からサーバ300に送信されるデータは、入力項目に係る内容だけになっている場合に、上りと下りとで、出現回数の高い文字列は異なってくる。   The rule determining unit 133 generates a rule table based on the total result stored in the total data storage unit 132 and stores it in the rule storage unit 12. The rule table generation method is the same as that described in the first embodiment. An example of the rule table stored in the rule storage unit 12 is shown in FIG. Similarly to the aggregation table, the management table 1400 can identify whether the rule table is a rule table 1410 for upstream data (FIG. 14B) or a rule table 1420 for downstream data (FIG. 14C). To manage. The management table 1400 includes a terminal ID column 1401, a direction column 1402, a table ID column 1403, and a notification flag column 1404. The terminal ID column 1401 stores an identifier for identifying the terminal device 400 that is a transmission source of data transmitted to the server 300 or a reception destination of data transmitted from the server 300. When the terminal ID is included in the message ID included in the transmitted / received data, the identifier is acquired, or the address information of the transmission source or the reception destination is used. The direction column 1402 stores information indicating whether the rule table is an up / down direction table, and stores either “up” or “down”. The table ID column 1403 stores an address on the storage device in which each table is stored. The notification flag column 1404 can be a flag indicating whether or not the rule table has been notified to the terminal device 400. In the example of FIG. 14, information indicating “completed” when notified, and information indicating “not yet” when not notified yet are stored. Since the notification of the rule table to the terminal device 400 is performed at the time of the data reception notification for notifying that the data has been received from the server 300 in response to the data being transmitted from the terminal device 400 to the server 300, the server is particularly With respect to the downlink rule table generated based on the data transmitted from 300 to the terminal device 400, the rule table is not notified to the terminal device 400 in real time, so the newly generated rule table is sent to the terminal device 400. Until notified, it is necessary to keep it together with the notified rule table. The rule tables 1410 and 1420 stored at the address specified in the table ID column 1403 have the same configuration as the rule table illustrated in FIG. In the upstream rule table 1410 of terminal ID: Terminal-01, rules determined based on data received from the terminal device 400 are stored. The downstream rule table 1420 of terminal ID: Terminal-01 stores rules determined based on data transmitted from the server 300 to the terminal device 400. For example, all of the display-only contents and input items are transmitted from the server 300 to the terminal device 400, but the data transmitted from the terminal device 400 to the server 300 is only the contents related to the input items. If there is a character string, the character string having a high number of appearances is different between upstream and downstream.

また、端末装置400へ送信する送信データが生成されると(図11の#1101)、送信先の端末装置400の端末IDに対応づけて記憶されている規則テーブルの内、端末装置400に通知済の下りの規則テーブルの内容を、規則記憶部12から取得する(図11の#1110)。図14の例では、テーブルID”TBLD−01”の規則テーブルを取得する。取得した。取得した規則テーブルに基づいて、送信データを短縮(圧縮)する(図11の#1112)。   When transmission data to be transmitted to the terminal device 400 is generated (# 1101 in FIG. 11), the terminal device 400 is notified in the rule table stored in association with the terminal ID of the transmission destination terminal device 400. The contents of the completed down rule table are acquired from the rule storage unit 12 (# 1110 in FIG. 11). In the example of FIG. 14, the rule table with the table ID “TBLD-01” is acquired. I got it. The transmission data is shortened (compressed) based on the acquired rule table (# 1112 in FIG. 11).

次に、図12に基づいて、生成した規則テーブルを端末装置400に通知する処理を説明する。   Next, based on FIG. 12, the process which notifies the terminal device 400 of the produced | generated rule table is demonstrated.

受信通知送信部17は、データ受信通知メッセージの送信タイミングか否かを監視し、
送信タイミングであると判断された場合(図12の#1201でYes)、規則記憶部12に記憶されている規則テーブルのうち、対象となる受信データの送信元の端末装置400の端末IDに対応づけて記憶されている上りと下りの規則テーブルであり、なおかつ、通知フラグが「未」である規則テーブルの内容を取得する(図12の#1202)。取得した規則テーブルの内容を、データ受信通知メッセージ90の規則欄94に設定し、データ受信通知メッセージを生成する(図12の#1203)。データ受信通知メッセージの例を、図15に示す。データ受信通知メッセージ90の構造は図9にて例示した構造と同様の例とする。図9と同様、図面の上段2段でパケットの構成を示し、3段目に設定されるデータの内容の例を示す。図15(A)に示した例は、上りと下りの規則テーブルの内容をそのまま列挙した例である。この例では、規則欄94の前半部に上りの規則テーブルの内容が短縮記号と文字列の組みで列挙され、後半部に下りの規則テーブルの内容が短縮記号と文字列の組みで列挙されている。図15(B)に示した例は、上りと下りの規則テーブルで、共通の文字列を有する場合に、規則欄94の長さを短縮するために、上りと下りの規則テーブルを混在して列挙している。例えば、文字列”xfroms:model”は、上りの規則テーブル、下りの規則テーブルの両方にあるため、上りの規則テーブルでの短縮記号”@1”と下りの規則テーブルでの短縮記号”#1”と文字列”xfroms:model”との組みの形で列挙している。上りの規則テーブルのみ、あるいは、下り規則テーブルのみにしかない場合には、図15の(A)の例と同様、上りの規則テーブルあるいは下り規則テーブルに登録されている短縮記号と文字列の組みを列挙している。これにより、規則テーブルを端末装置に通知する際のデータ量を削減することが可能となる。
The reception notification transmission unit 17 monitors whether it is the transmission timing of the data reception notification message,
When it is determined that it is the transmission timing (Yes in # 1201 of FIG. 12), it corresponds to the terminal ID of the terminal device 400 that is the transmission source of the target received data in the rule table stored in the rule storage unit 12. Then, the contents of the rule table which is the uplink and downlink rule table stored in addition and the notification flag is “not yet” is acquired (# 1202 in FIG. 12). The contents of the acquired rule table are set in the rule column 94 of the data reception notification message 90, and a data reception notification message is generated (# 1203 in FIG. 12). An example of the data reception notification message is shown in FIG. The structure of the data reception notification message 90 is the same as the structure illustrated in FIG. Similarly to FIG. 9, the packet configuration is shown in the upper two stages of the drawing, and an example of the contents of data set in the third stage is shown. The example shown in FIG. 15A is an example in which the contents of the uplink and downlink rule tables are listed as they are. In this example, the contents of the upstream rule table are listed in the first half of the rule column 94 as a combination of a shortened symbol and a character string, and the contents of the downstream rule table are listed in the second half as a combination of a shortened symbol and a character string. Yes. The example shown in FIG. 15B is an up-and-down rule table, and in the case of having a common character string, in order to shorten the length of the rule column 94, the up-and-down rule table is mixed. It is enumerated. For example, since the character string “xfroms: model” is present in both the upstream rule table and the downstream rule table, the short symbol “@ 1” in the upstream rule table and the short symbol “# 1” in the downstream rule table. It is enumerated in the form of a combination of "and the string" xfroms: model ". When there is only an uplink rule table or only a downlink rule table, as in the example of FIG. 15A, a combination of a shortened symbol and a character string registered in the uplink rule table or the downlink rule table is used. It is enumerated. This makes it possible to reduce the amount of data when notifying the terminal device of the rule table.

図16に基づいて、端末装置400側での受信処理を説明する。   Based on FIG. 16, the reception process on the terminal device 400 side will be described.

データ受信部26は、受信データを検知すると(図16の#1601でYes)、受信したデータが自己の端末装置400が送信したデータに対するデータ受信通知メッセージ90であるか否かを判断する(図16の#1602)。データ受信通知メッセージ90であると判断した場合(図16の#1602でYes)、データ受信通知メッセージ90の規則欄94から規則テーブルの内容を取得し、上りの規則テーブルの内容か下りの規則テーブルの内容かを判断しながら、規則記憶部22に記憶する(図13の#1603)。図17に、端末装置400の規則記憶部22の規則テーブルの内容の例を示す。規則テーブルは、管理テーブル1700により、データの送受信を行うサーバ毎に、上りのデータに対する規則テーブル1710か、下りのデータに対する規則テーブル1720かを識別可能に管理している。管理テーブル1700は、サーバID欄1701、方向欄1702、テーブルID欄1703から構成されている。サーバID欄1701は、端末装置400へ送信されてくるデータの送信元あるいは端末装置400から送信されるデータの受信先となるサーバ300を識別する識別子を格納する。識別子は、送受信されるデータに含まれるメッセージID中にサーバIDが含まれている場合はその情報を取得する、あるいは、送信元或いは送信先のアドレス情報等を利用する。方向欄1402は、規則テーブルが上り/下りのいずれの方向のテーブルであるかを示す情報が格納されており、「上り」あるいは「下り」のいずれかが格納されている。テーブルID欄1403には、各テーブルが格納されている記憶装置上のアドレス等が格納される。テーブルID欄1703で指定されたアドレスに格納された規則テーブル1710、1720については、図8にて例示した規則テーブルと同様の構成となっている。受信したデータがデータ受信通知メッセージでない場合には(図16の#1602でNo)、受信したデータがXMLデータであるか否かを判断する(図16の#1610)。受信したデータがXMLデータであった場合は、受信したデータに含まれる規則テーブルIDを取得し、規則記憶部12に記憶されている内容を取得し(図16の#1611)、取得した規則の内容に基づいて短縮処理が施されている箇所を復元する(図16の#1612)。受信したデータがXMLデータでなかった場合(図16の#1610でNo)、その他の適切な処理を行う(図16の#1620)。   When the received data is detected (Yes in # 1601 in FIG. 16), the data receiving unit 26 determines whether or not the received data is a data reception notification message 90 for the data transmitted by the terminal device 400 (FIG. 16). 16 # 1602). When it is determined that the data reception notification message 90 is received (Yes in # 1602 in FIG. 16), the contents of the rule table are acquired from the rule column 94 of the data reception notification message 90, and the contents of the upstream rule table or the downstream rule table are acquired. Is stored in the rule storage unit 22 (# 1603 in FIG. 13). FIG. 17 shows an example of the contents of the rule table in the rule storage unit 22 of the terminal device 400. The rule table is managed by the management table 1700 so as to be able to identify the rule table 1710 for upstream data or the rule table 1720 for downstream data for each server that transmits and receives data. The management table 1700 includes a server ID column 1701, a direction column 1702, and a table ID column 1703. The server ID column 1701 stores an identifier for identifying the server 300 that is a transmission source of data transmitted to the terminal device 400 or a reception destination of data transmitted from the terminal device 400. When the server ID is included in the message ID included in the transmitted / received data, the identifier is acquired, or the address information of the transmission source or the transmission destination is used. The direction column 1402 stores information indicating whether the rule table is an up / down direction table, and stores either “up” or “down”. The table ID column 1403 stores an address on the storage device in which each table is stored. The rule tables 1710 and 1720 stored at the address specified in the table ID column 1703 have the same configuration as the rule table illustrated in FIG. If the received data is not a data reception notification message (No in # 1602 in FIG. 16), it is determined whether the received data is XML data (# 1610 in FIG. 16). If the received data is XML data, the rule table ID included in the received data is acquired, the contents stored in the rule storage unit 12 are acquired (# 1611 in FIG. 16), and the rule of the acquired rule is acquired. The part where the shortening process is performed is restored based on the contents (# 1612 in FIG. 16). If the received data is not XML data (No in # 1610 in FIG. 16), other appropriate processing is performed (# 1620 in FIG. 16).

図18に基づいて、端末装置300側でのデータ送信の例を説明する。送信データ圧縮部251は、アプリケーション21からサーバ300への送信データが生成されたことを検出すると(図18の#1801)、送信先のサーバ300のサーバIDに対応づけられている上りの規則テーブルを規則記憶部22から取得する(図18の#1802)。取得した規則テーブルの内容に基づいて、送信データに短縮(圧縮)処理を行う。この際、いずれの規則テーブルにて短縮(圧縮)処理が行われたかを識別可能とするために、使用した規則テーブルのテーブルIDをデータ中に埋め込んでおくのが望ましい。短縮(圧縮)処理を行ったのち、データ送信部29は、サーバ300に対して、短縮(圧縮)後のデータを送信する(図18の#1804)。   An example of data transmission on the terminal device 300 side will be described based on FIG. When the transmission data compression unit 251 detects that transmission data from the application 21 to the server 300 has been generated (# 1801 in FIG. 18), the upstream rule table associated with the server ID of the destination server 300 Is obtained from the rule storage unit 22 (# 1802 in FIG. 18). Based on the contents of the acquired rule table, the transmission data is shortened (compressed). At this time, it is desirable to embed the table ID of the used rule table in the data so that it can be identified in which rule table the shortening (compression) processing has been performed. After performing the shortening (compression) process, the data transmission unit 29 transmits the shortened (compressed) data to the server 300 (# 1804 in FIG. 18).

以上により、端末装置400の能力が低い場合であっても、端末装置400に対して負荷をかけることなく、規則の生成および短縮処理の実行を可能とする。
<第3の実施形態>
通信装置間で送受信されるデータに含まれる文字列の状況を集計して、データ圧縮・伸長のための規則テーブルを生成するため、装置間での送受信が初めてとなる装置の場合は、規則テーブルは生成されていない状況が発生する。この場合、規則テーブルが生成されるまでは、短縮(圧縮)処理が実施されないまま、データの送受信が行われることになる。
As described above, even when the capability of the terminal device 400 is low, it is possible to generate a rule and execute a shortening process without imposing a load on the terminal device 400.
<Third Embodiment>
Since the status of character strings contained in data sent and received between communication devices is aggregated and a rule table for data compression / decompression is generated, the rule table for devices that are sending and receiving data for the first time between devices The situation that is not generated occurs. In this case, data transmission / reception is performed without performing the shortening (compression) process until the rule table is generated.

第3の実施形態では、規則生成部13にデフォルト生成部135を設けることにより、データの送受信が初めての場合でも、データの短縮(圧縮)処理が行えるようにする。   In the third embodiment, the default generation unit 135 is provided in the rule generation unit 13 so that data can be shortened (compressed) even when data is transmitted and received for the first time.

図19に第3の実施形態におけるシステム構成図を示す。   FIG. 19 shows a system configuration diagram according to the third embodiment.

サーバ500の規則生成部13にデフォルト生成部135を設けている。デフォルト生成部135以外の構成は、第1あるいは第2の実施形態と同様である。   A default generation unit 135 is provided in the rule generation unit 13 of the server 500. The configuration other than the default generation unit 135 is the same as that of the first or second embodiment.

デフォルト生成部135の処理を、図20に基づいて、説明する。   The processing of the default generation unit 135 will be described with reference to FIG.

デフォルト生成部135は、デフォルトの規則テーブルを生成するタイミングになったかどうかを判断する(図20の#2001)。生成するタイミングかどうかを判断するタイミングとしては、所定時間が経過する毎に、規則記憶部22の規則テーブルに新たな登録や更新が発生する毎に、新たに送受信を行う装置が検出されたとき、と言ったタイミングが考えられる。   The default generation unit 135 determines whether it is time to generate a default rule table (# 2001 in FIG. 20). As a timing for determining whether or not it is a timing to generate, every time a predetermined time elapses, a new transmission / reception device is detected each time a new registration or update occurs in the rule table of the rule storage unit 22 I can think of the timing.

デフォルトの規則テーブルを生成するタイミングになったと判断すると(図20の#2001でYes)、規則記憶部12に記憶されている規則テーブルの内容を集計する。例えば、図21に示すように、3台の端末装置の規則テーブルが規則記憶部12に記憶されていたとする。管理テーブル2100の内容に基づいて、各端末ID2101に対応づけて記憶されている規則テーブル2110、2111、2112の内容を集計する。図22(C)に集計した結果の例を示す。図22(C)は、規則テーブル2110、2111、2112に登録されている文字列82について、各端末装置に対応づけて記憶されている集計テーブル2120、2121、2122を参照して各端末装置での出現回数を取得して文字列毎合計し、文字列毎の出現回数の多い順に並べた結果である。なお、集計テーブルを参照せず、規則テーブルのみを参照し、規則テーブルに登録されている文字列を文字列毎にカウントして文字列毎の出現回数としてもよい。集計テーブルを参照して文字列毎の出現回数を集計した場合は、送受信されるデータに含まれる文字列の出現回数の総和に近い状態での判断が可能となる。一方、規則テーブルのみを参照して文字列毎の出現回数を集計した場合は、各端末装置毎の特性を反映した規則テーブルの傾向をより大きく反映した形でマージされるため、各端末装置の通信内容のばらつきが多少大きくなっても、より実際の送受信に適合した規則テーブルが生成できる可能性が高くなる。例えば、文字列1と文字列2が各端末装置の規則テーブルに含まれていたとして、そのうちのいくつかの端末装置で、文字列2の出現頻度が文字列1の出現頻度より一定以上多ければ(例えば2倍以上)、文字列2の方を優先した規則テーブルを生成することで、システム全体として圧縮通信時の効果を高められる。   If it is determined that it is time to generate a default rule table (Yes in # 2001 in FIG. 20), the contents of the rule table stored in the rule storage unit 12 are aggregated. For example, it is assumed that the rule table for three terminal devices is stored in the rule storage unit 12 as shown in FIG. Based on the contents of the management table 2100, the contents of the rule tables 2110, 2111, and 2112 stored in association with each terminal ID 2101 are totalized. FIG. 22C shows an example of the totaled result. FIG. 22C shows the character string 82 registered in the rule tables 2110, 2111, and 1122, with reference to the aggregation tables 2120, 2121, and 2122 stored in association with the terminal devices. Is obtained as a result of totaling each character string and arranging them in descending order of appearance frequency for each character string. It is also possible to refer to only the rule table without referring to the tabulation table, and to count the character strings registered in the rule table for each character string as the number of appearances for each character string. When the number of appearances for each character string is totaled with reference to the tabulation table, it is possible to determine in a state close to the sum of the number of appearances of the character strings included in the transmitted / received data. On the other hand, when the number of appearances for each character string is tabulated with reference to only the rule table, it is merged in a form that more largely reflects the tendency of the rule table that reflects the characteristics of each terminal device. There is a high possibility that a rule table more suitable for actual transmission / reception can be generated even if the variation in communication contents becomes somewhat large. For example, if the character string 1 and the character string 2 are included in the rule table of each terminal device, the appearance frequency of the character string 2 is greater than the appearance frequency of the character string 1 in a certain number of terminal devices. By generating a rule table that gives priority to the character string 2 (for example, twice or more), the effect of compression communication as a whole system can be enhanced.

集計した結果(図22(C))に基づいて、デフォルトの規則テーブル(図22(B))を生成する(図20の#2003)。ここでは、出現回数の多い順に、文字列に対応する短縮記号を付し、規則テーブルを生成している。規則テーブルの対象とする文字列の選定方法は、前述の通り、文字列の出現回数の多い順に限らず、他の方法でもよい。   Based on the totaled result (FIG. 22C), a default rule table (FIG. 22B) is generated (# 2003 in FIG. 20). Here, a rule table is generated by adding abbreviated symbols corresponding to character strings in the order of appearance. As described above, the method for selecting the character string to be the target of the rule table is not limited to the order in which the number of appearances of the character string is large, and other methods may be used.

生成した規則テーブルを、規則記憶部12に登録する(図20の#2004)。図22(A)の例では、管理テーブル2100に、端末ID2101を”unknown”として、生成した規則テーブル(図22(C))を対応づけて登録した例を示す。端末ID2101は、”unknown”に限らず、”default”等、各端末装置毎に生成された規則テーブルと区別可能にしてあればよい。   The generated rule table is registered in the rule storage unit 12 (# 2004 in FIG. 20). In the example of FIG. 22A, an example is shown in which the generated rule table (FIG. 22C) is registered in the management table 2100 with the terminal ID 2101 set to “unknown”. The terminal ID 2101 is not limited to “unknown”, but may be distinguished from a rule table generated for each terminal device such as “default”.

以上により、デフォルトの規則テーブルを生成して登録しておくことにより、データ受信部16にてデータを受信し、受信通知送信部17にてデータ受信通知メッセージを送信するタイミングであると判断された場合に、受信通知送信部17に下記の処理を追加することにより、デフォルトの規則テーブルをデータ受信通知メッセージに設定して通知することが可能となる。   As described above, by generating and registering the default rule table, it is determined that it is time to receive the data at the data receiving unit 16 and transmit the data reception notification message at the reception notification transmitting unit 17. In this case, by adding the following processing to the reception notification transmission unit 17, it is possible to set and notify the default rule table in the data reception notification message.

受信通知送信部17は、受信したデータの送信元の端末装置の端末IDが、規則記憶部12の規則テーブルに登録されているか否かを確認し、登録されていない場合、端末ID2101が”default”の規則テーブルの内容を取得して、データ受信通知メッセージ90の規則欄94に設定し、データ送信元の端末装置にデータ受信通知メッセージを送信する。なお、受信したデータの送信元の端末装置の端末IDが登録されている場合は、前述の各実施形態で説明した手順の通り、当該端末IDに対応付けて記憶されている規則テーブルを取得して、データ受信通知メッセージの規則欄に設定し、データ受信通知メッセージをデータ送信元の端末装置に送信する。   The reception notification transmission unit 17 checks whether or not the terminal ID of the terminal device that is the transmission source of the received data is registered in the rule table of the rule storage unit 12, and if not, the terminal ID 2101 is “default”. The contents of the rule table "" are acquired and set in the rule column 94 of the data reception notification message 90, and the data reception notification message is transmitted to the terminal device that is the data transmission source. In addition, when the terminal ID of the terminal device that is the transmission source of the received data is registered, the rule table stored in association with the terminal ID is acquired as described in the above embodiments. The data reception notification message is set in the rule column of the data reception notification message, and the data reception notification message is transmitted to the terminal device of the data transmission source.

これにより、データの送受信を数回繰り返した後規則テーブルが生成されるまで、データの短縮(圧縮)処理が実行できないという問題も解消し、データの送受信を開始した直後から、送受信するデータの短縮(圧縮)処理を行うことが可能となる。
<第4の実施の形態>
前述の各実施形態では、データ受信通知を送信する際にデータ受信通知メッセージに圧縮規則を設定して通知する例を説明したが、第4の実施形態では、通信装置間で送受信されるネットワークの接続状態確認コマンドを利用して、圧縮規則を通知する例を説明する。データの送受信を行っている通信装置間では、通信相手のネットワーク接続状態を問い合わせるためのコマンドを定期的に送信し、そのコマンドに対する応答に応じて接続状態を確認するということが行われている。ネットワーク接続状態を問い合わせるコマンドとして、現在一般的に利用されているPING(Packet INternet Groper)データを例に説明する。PINGデータは所定の時間間隔(たとえば1秒)で通信相手に対して送信すると、PINGデータに対する返信(以下、PONGデータ)が戻ってくる、あるいは送信が成功することで、送信可能であることを識別する。
This eliminates the problem that the data shortening (compression) process cannot be executed until the rule table is generated after the data transmission / reception is repeated several times, and the data to be transmitted / received immediately after the data transmission / reception is started. (Compression) processing can be performed.
<Fourth embodiment>
In each of the above-described embodiments, the example in which the compression rule is set in the data reception notification message when the data reception notification is transmitted has been described. However, in the fourth embodiment, a network that is transmitted and received between communication devices is described. An example in which a compression rule is notified using a connection status confirmation command will be described. A communication device that transmits and receives data regularly transmits a command for inquiring about a network connection state of a communication partner, and confirms the connection state according to a response to the command. As a command for inquiring the network connection status, PING (Packet Internet Groper) data that is currently generally used will be described as an example. When PING data is transmitted to a communication partner at a predetermined time interval (for example, 1 second), a reply to PING data (hereinafter referred to as PONG data) is returned, or transmission is successful, indicating that transmission is possible. Identify.

PINGデータ及びPONGデータの例を図23に示す。   Examples of PING data and PONG data are shown in FIG.

通常、通信相手のネットワーク接続状態を確認する場合、PINGデータ2310のボディ部2312のコマンド識別子2313にPINGデータであることを示す文字列“PI”のみを設定し、ヘッダ部2311には通信プロトコルに則ったヘッダ情報を設定して、ネットワークの接続状態を確認したい通信相手の通信装置に送信する。PINGデータを受け取った通信装置は、PONGデータ2320のボディ部2322のコマンド識別子2323にPONGコマンドであることを示す文字列“PO”を設定し、ヘッダ部2321には通信プロトコルに則ったヘッダ情報を設定して、PINGデータ送信元の通信装置に送信する。PINGデータ2310及びPONGデータ2320共に、ボディ部2312、2322に設定されるデータはコマンド識別子2313、2323のみであり、それ以外の領域は空き領域として活用できる。前述の実施形態で説明したデータ受信通知メッセージと同様にをこの空き領域を利用して生成した圧縮規則して通知する。   Normally, when checking the network connection state of the communication partner, only the character string “PI” indicating PING data is set in the command identifier 2313 of the body part 2312 of the PING data 2310, and the communication protocol is set in the header part 2311. Set the appropriate header information and send it to the communication device of the communication partner whose network connection status you want to check. The communication device that has received the PING data sets the character string “PO” indicating that it is a PONG command in the command identifier 2323 of the body portion 2322 of the PONG data 2320, and the header portion 2321 contains header information in accordance with the communication protocol. Set and transmit to the communication device of the PING data transmission source. In both the PING data 2310 and the PONG data 2320, the data set in the body parts 2312 and 2322 are only command identifiers 2313 and 2323, and the other areas can be used as free areas. Similar to the data reception notification message described in the above embodiment, the compression rule generated using this free space is used for notification.

第4の実施形態におけるデータ受信処理の流れを図24に基づいて説明する。   The flow of data reception processing in the fourth embodiment will be described with reference to FIG.

データ受信部16は、データを受信すると(図24の#2401)、受信したデータがPINGデータであるか否かを判断する(図24の#2402)。PINGデータであるか否かは、受信したデータのボディ部2312にPINGデータであることを示す“PI”が設定されているか否かで判断する。なお、文字列“PI”は一例であって、通信装置間で取り決められた文字列であれば他の文字列であってもよい。受信したデータがPINGデータであった場合(図24の#2402でYes)、PINGデータの送信元の通信装置に対応づけて記憶されている規則テーブル80を規則記憶部12、22から取得する(図24の#2403)。PONGデータ2320のコマンド識別子2323にPONGデータであることを示す文字列“PO”を設定し、取得した規則テーブル80の内容を規則欄2324に設定し、PONGデータ2320を生成する(図24の#2404)。生成したPONGデータをPINGデータ送信元の通信装置に送信する(図24の#2405)。受信したデータがPINGデータでない場合には(図24の#2402でNo)、各実施の形態で説明した通り、データ受信通知メッセージであるか、XMLデータであるか等の判断を行い、受信したデータの内容に応じた処理を行う(図24の#2410)。   When receiving the data (# 2401 in FIG. 24), the data receiving unit 16 determines whether or not the received data is PING data (# 2402 in FIG. 24). Whether or not it is PING data is determined by whether or not “PI” indicating that it is PING data is set in the body portion 2312 of the received data. Note that the character string “PI” is an example, and may be another character string as long as it is a character string agreed between communication apparatuses. If the received data is PING data (Yes in # 2402 in FIG. 24), the rule table 80 stored in association with the communication device that is the transmission source of the PING data is acquired from the rule storage units 12 and 22 ( # 2403 in FIG. The character string “PO” indicating that the data is PONG data is set in the command identifier 2323 of the PONG data 2320, the contents of the acquired rule table 80 are set in the rule column 2324, and the PONG data 2320 is generated (# in FIG. 24). 2404). The generated PONG data is transmitted to the communication device of the PING data transmission source (# 2405 in FIG. 24). If the received data is not PING data (No in # 2402 in FIG. 24), as described in each embodiment, it is determined whether it is a data reception notification message or XML data, and the received data is received. Processing according to the content of the data is performed (# 2410 in FIG. 24).

このように、データ受信通知に限らず、このPINGデータに圧縮規則を含めて通知することで、データ受信通知と共に送信する場合と同様に、通信手順の変更や追加を行うことなく圧縮規則を通信装置間で共有できるという同様の効果を奏する。   In this way, not only the data reception notification but also the PING data is notified including the compression rule, so that the compression rule can be communicated without changing or adding the communication procedure in the same manner as when transmitting together with the data reception notification. There is a similar effect that it can be shared between devices.

また、PINGデータを送信する際に、PINGデータの空き領域を規則欄2314とし、PINGデータの送信先へPINGデータの送信元で生成した圧縮規則を設定して通知するようにしてもよい。この場合、PINGデータの送信タイミングになったと判断されると、PINGデータの送信先の通信装置に対応付けて記憶されている規則テーブル80を規則記憶部12、22から取得し、取得した規則テーブル80の内容をPINGデータ2310の規則欄2314に設定して、PINGデータを送信する。PINGデータを受信したデータ受信部26は、前述の処理以外に、PINGデータであると判断された場合に、PINGデータ中に規則テーブルの内容が含まれているか否かを判断し、規則テーブルが含まれていると判断された場合は、PINGデータの送信元の通信装置に対応づけて当該規則テーブルの内容を規則記憶部12、22に格納する。
これにより、通信装置間での通信が接続され、実際のデータ通信が開始される前に、PINGデータやPONGデータで圧縮規則を送受信することが可能となる。 なお、上述の各実施形態ではオンラインショッピングに適用した例で説明したが、本発明の適用分野は、オンラインショッピングだけに限られない。例えば、モバイル環境において営業員が営業日報をサーバに登録したり、サーバから商品情報を取得するようなSFA(Sales Force Automation)などのモバイル通信端末を使用した業務システムとの通信時にも利用できる。その場合、端末装置側は携帯電話やPDA(Personal Digital Assistance)を用いて、サーバ側のWebアプリケーションにアクセスする。サーバ側では、端末装置に対して画面情報をXFORMS(XML)で定義して送信することで、端末装置側は機種に依存しない汎用的な画面を生成できる。XFORMSで定義されたXMLデータの送受信時に本発明の圧縮通信処理を行うことで、モバイル環境において、端末・サーバ間のデータ送受信を効率化できる。
Further, when transmitting PING data, an empty area of the PING data may be used as the rule column 2314, and the compression rule generated by the PING data transmission source may be set and notified to the PING data transmission destination. In this case, when it is determined that the transmission timing of the PING data is reached, the rule table 80 stored in association with the communication device that is the transmission destination of the PING data is acquired from the rule storage units 12 and 22, and the acquired rule table is acquired. The content of 80 is set in the rule column 2314 of the PING data 2310, and the PING data is transmitted. The data receiving unit 26 that has received the PING data determines whether or not the contents of the rule table are included in the PING data when it is determined that the data is PING data in addition to the processing described above. If it is determined that it is included, the contents of the rule table are stored in the rule storage units 12 and 22 in association with the communication device that is the transmission source of the PING data.
As a result, the communication between the communication devices is connected, and before the actual data communication is started, the compression rule can be transmitted / received by the PING data or the PONG data. In each of the above-described embodiments, an example of application to online shopping has been described. However, the application field of the present invention is not limited to online shopping. For example, in a mobile environment, a sales employee can register a daily business report on a server or use it when communicating with a business system using a mobile communication terminal such as SFA (Sales Force Automation) that acquires product information from the server. In this case, the terminal device side uses a mobile phone or PDA (Personal Digital Assistance) to access the server-side Web application. On the server side, screen information is defined in XFORMS (XML) and transmitted to the terminal device, so that the terminal device side can generate a general-purpose screen independent of the model. By performing the compression communication processing of the present invention at the time of transmission / reception of XML data defined by XFORMS, data transmission / reception between a terminal and a server can be made efficient in a mobile environment.

また、SyncML(Synchronization Markup Language)のフォーマットなどを用いて、モバイル通信端末とサーバ間においてアプリケーションデータを共有する場合においても、そのモバイル通信端末とサーバ間の通信に本発明が適用できる。なお、SyncMLはモバイル通信端末とサーバ間で送受信するXMLフォーマットを規定している。   Even when application data is shared between a mobile communication terminal and a server using a SyncML (Synchronization Markup Language) format or the like, the present invention can be applied to communication between the mobile communication terminal and the server. SyncML defines an XML format that can be transmitted and received between a mobile communication terminal and a server.

あるいは、RFID(Radio Frequency Identification)のようなセンサーデバイスを用いて、商品・貨物などの物品を高速に読取り、サーバに登録するような、商品管理、在庫管理などの業務システムにおいて、RFIDタグに記録されているデータ(例えば商品名、商品IDなどの商品情報)をRFIDリーダが読み取って、そのデータをリアルタイムにサーバに登録する場合、そのRFIDリーダとサーバ間の通信に本発明を適用することで、RFIDリーダ、サーバ間のデータ送受信を効率化できる。   Or, using a sensor device such as RFID (Radio Frequency Identification), record it on an RFID tag in a business system such as product management or inventory management that reads goods such as goods and cargo at high speed and registers them on a server. When the RFID reader reads data (for example, product information such as product name and product ID) and registers the data in the server in real time, the present invention is applied to communication between the RFID reader and the server. Data transmission / reception between RFID reader and server can be made more efficient.

特に、RFIDリーダデバイスで多数の物品に付けられたRFIDタグを高速に読み取る場合に、必要な情報に変換して、あるいは必要な情報だけにフィルタリング処理を施して、サーバ側に送信することが求められている。例えば、EPC Global(Electronic Product Code(登録商標))では、RFIDリーダから読み取ったデータのフィルタリングルールを規定する標準規格(ALE: Application Level Event)を策定している。
このように、RFIDタグのデータの内容に応じて、より高速に各種フィルタリングルールを処理するためには、RFIDタグのデータを先頭から読出しながら逐次処理できる方法が好ましい。この点、単純にGZIPなどのファイル圧縮を用いたデータ通信では、一度、データを復元した後にあらためてデータを先頭から読み出して、フィルタリングルールに該当するデータが含まれているかをチェックしていかなければならない。
本願発明では、データを先頭から逐次読み出して、文字列を比較していく処理を行うため、ALEのようなフィルタリング処理と組合せることが容易にでき、かつ、処理量を小さく抑える効果がある。 また、第1の実施形態から第4の実施形態は、適宜組み合わせて実施可能である。
In particular, when RFID tags attached to a large number of articles are read at high speed with an RFID reader device, it is required to convert the information to necessary information or to filter only the necessary information and send it to the server side. It has been. For example, EPC Global (Electronic Product Code (registered trademark)) has developed a standard (ALE: Application Level Event) that defines filtering rules for data read from an RFID reader.
As described above, in order to process various filtering rules at a higher speed according to the content of the data of the RFID tag, a method capable of sequentially processing the data of the RFID tag while reading from the head is preferable. In this regard, in data communication that simply uses file compression such as GZIP, after restoring the data, it is necessary to read the data again from the beginning and check whether the data corresponding to the filtering rule is included. Don't be.
In the present invention, since the process of sequentially reading data from the head and comparing the character strings is performed, it can be easily combined with a filtering process such as ALE, and the processing amount can be reduced. Also, the first to fourth embodiments can be implemented in combination as appropriate.

また、記憶記憶部の12、22の規則テーブル80は、通信装置(サーバや端末装置)と対応づけて記憶あるいは生成している例で説明しているが、通信装置内で稼動するアプリケーション等に依存して圧縮規則が変わる場合は、さらにアプリケーション毎に対応づけて記憶あるいは生成するようにしてもよい。   Further, the rule tables 80 of the storage and storage units 12 and 22 have been described in the example of being stored or generated in association with the communication device (server or terminal device). When the compression rule changes depending on the dependency, it may be stored or generated in association with each application.

また、上述の実施形態では、全て通信網3を介してデータが送受信される例を示したが、BLUETOOTH(登録商標)やIrDA等、通信網3を介さずに直接通信装置間でデータが送信される場合であっても、本願発明は同様に実施可能である。   In the above-described embodiment, an example in which data is transmitted and received via the communication network 3 has been described. However, data is directly transmitted between communication devices such as BLUETOOTH (registered trademark) and IrDA without using the communication network 3. Even in such a case, the present invention can be similarly implemented.

以上の第1の実施形態から第4の実施形態を含む実施形態に関し、さらに以下の付記
を開示する。
(付記1)
通信機能を備えた通信装置間で送受信されるデータの圧縮処理を行うための圧縮規則を生成するための規則生成方法であって、
通信機能を介して他の通信装置から送信されてきたデータを受信した際に、当該受信したデータに含まれる文字列を抽出し、抽出した文字列の出現状況を当該文字列毎に集計し、集計した結果を送信元の他の通信装置毎に集計して記憶部に蓄積しておき、
記憶部に記憶された文字列の出現状況に応じて、データを圧縮する際の圧縮処理の対象とする文字列を選定し、選定した文字列と圧縮処理後のデータとを対応づけて圧縮規則を生成し、生成した圧縮規則を当該データの送信元である他の通信装置に対応づけて記憶部に記憶しておき、
他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応づけて記憶された圧縮規則を受信通知と共に送信する
ことを特徴とする規則生成方法。
(付記2)
前記通信装置毎に生成された圧縮規則に基づいて、新たな圧縮規則を生成して、未知の通信装置を表す識別子に対応づけて記憶部に記憶しておき、
他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応づけて記憶された圧縮規則が記憶部に記憶されていない場合に、未知の通信装置を表す識別子に対応づけて記憶されている圧縮規則を受信通知と共に送信することを特徴とする付記1に記載の規則生成方法。
(付記3)
通信機能を備えた通信装置間で送受信されるデータの圧縮処理を行うための圧縮規則を生成するための規則生成方法であって、
他の通信装置から送信されてきた第1のデータおよび他の通信装置に対して送信する第2データ毎に、当該データ中に含まれる文字列を抽出し、抽出した文字列の出現状況を第1のデータと第2のデータ毎に集計して、当該他の通信端末毎に対応づけて記憶部に記憶しておき、
記憶部に記憶された第1のデータ及び第2のデータ毎の文字列の出現状況に基づいて、第1のデータの圧縮規則と、第2のデータの圧縮規則とを、それぞれに生成し、当該他の端末装置に対応づけて記憶部に記憶しておき、
他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応付けて記憶されている第1のデータ及び第2のデータの圧縮規則を受信通知と共に送信する
ことを特徴とする規則生成方法。
(付記4)
前記通信装置毎に生成された第1の圧縮規則、第2の圧縮規則に基づいて、新たな第1の圧縮規則、第2の圧縮規則を生成して、未知の通信装置を表す識別子に対応づけて記憶部に記憶しておき、
他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応づけて記憶された第1の圧縮規則あるいは第2の圧縮規則が記憶部に記憶されていない場合に、未知の通信装置を表す識別子に対応づけて記憶されている第1の圧縮規則あるいは第2の圧縮規則を受信通知と共に送信することを特徴とする付記3に記載の規則生成方法。
(付記5)
他の通信装置と通信可能な通信機能を備えた通信装置に用いられ、通信装置間で送受信されるデータを圧縮・伸長するための圧縮通信装置であって、
他の通信装置から送信されてきたデータを受信するデータ受信手段と、
受信したデータに含まれる文字列を抽出し、抽出した文字列の出現状況を分析し、抽出した文字列毎に集計し、集計した結果を他の通信装置毎に対応づけて記憶しておく集計手段と、
前記集計した結果に基づいて、圧縮処理の対象とする文字列を選定し、選定した文字列と当該文字列に対応づける圧縮記号とを関係づける圧縮規則を生成し、前記通信装置毎に記憶しておく圧縮規則生成手段と、
前記データ受信手段にてデータを受信した際に、データ受信通知を行うか否かを判断し、データ受信通知を行うと判断した場合に、当該受信データの送信元の通信装置に対応づけて記憶されている圧縮規則を前記圧縮規則生成手段から取得し、取得した圧縮規則と共にデータ受信通知を当該送信元の通信装置に通知する受信通知手段と
を有することを特徴とする圧縮通信装置。
(付記6)
前記圧縮規則生成手段にて記憶された圧縮規則に基づいて、あらたな圧縮規則を生成し、未知の通信装置であることを示す識別子に対応づけて記憶しておく第2の圧縮規則生成手段を備え、
前記受信通知手段は、受信データの送信元の通信装置に対応づけて記憶された圧縮規則が無い場合に、前記未知の通信装置であることを示す識別子に対応づけて記憶されている圧縮規則を取得して、データ受信通知と共に通知する
ことを特徴とする付記5に記載の圧縮通信装置。
(付記7)
他の通信装置と通信可能な通信機能を備えた通信装置に用いられ、通信装置間で送受信されるデータを圧縮・伸長するための圧縮通信装置であって、
他の通信装置から送信されてきた第1のデータを受信する受信手段と、
他の通信装置に対して送信する第2のデータを受け付ける送信データ受付手段と、
受信手段にて受信した第1のデータあるいは送信データ受付手段にて受け付けた第2のデータに含まれる文字列を抽出し、抽出した文字列の出現状況を第1のデータと第2のデータ毎に集計して、当該他の通信端末毎に対応づけて記憶する集計手段と、
記憶部に記憶された第1のデータあるいは第2のデータ毎の文字列の出現状況に基づいて、第1のデータの第1の圧縮規則と第2のデータの第2の圧縮規則とをそれぞれに生成し、当該他の端末装置に対応づけて記憶する圧縮規則生成手段と、
前記データ受信手段にてデータを受信した際に、データ受信通知を行うか否かを判断し、データ受信通知を行うと判断した場合に、当該受信データの送信元の通信装置に対応づけて記憶されている第1の圧縮規則あるいは第2の圧縮規則を前記圧縮規則生成手段から取得し、取得した圧縮規則と共にデータ受信通知を当該送信元の通信装置に通知する受信通知手段と
を有することを特徴とする圧縮通信装置。
(付記8)
前記圧縮規則生成手段にて記憶された第1圧縮規則及び第2の圧縮規則に基づいて、あらたな第1の圧縮規則及び第2の圧縮規則を生成し、未知の通信装置であることを示す識別子に対応づけて記憶しておく第2の圧縮規則生成手段を備え、
前記受信通知手段は、受信データの送信元の通信装置に対応づけて記憶された第1の圧縮規則あるいは第2の圧縮規則が無い場合に、前記未知の通信装置であることを示す識別子に対応づけて記憶されている第1の圧縮規則あるいは第2の圧縮規則を取得して、データ受信通知と共に通知する
ことを特徴とする付記7に記載の圧縮通信装置。
(付記9)
他の通信装置と通信可能な通信機能を備えた通信装置に用いられ、通信装置間で送受信されるデータを圧縮・伸長するための圧縮通信装置であって、
他の通信装置からの送信されてきたデータを受信する受信手段と、
前記受信したデータが他の通信装置へ送信したデータに対する他の通信送信からのデータ受信通知であるか否かを判断し、データ受信通知であると判断した場合に、データ受信通知に含まれる圧縮規則を取得し、他の通信装置と対応づけて記憶しておく、圧縮規則取得手段と、
他の通信装置にデータを送信する際に、当該他の通信装置にデータを送信する際に、当該他の通信装置に対応づけて記憶されている圧縮規則に基づいて当該送信データの圧縮処理を行う圧縮手段と、
圧縮後のデータを送信する送信手段と
を有することを特徴とする圧縮通信装置。
(付記10)
他の通信装置と通信可能な通信機能を備えた通信装置に用いられ、通信装置間で送受信されるデータを圧縮・伸長するための圧縮通信装置であって、
他の通信装置からの送信されてきたデータを受信する受信手段と、
前記受信手段にて受信したデータが他の通信装置へ送信したデータに対する他の通信送信からのデータ受信通知であるか否かを判断し、データ受信通知であると判断した場合に、データ受信通知に含まれる第1の圧縮規則及び第2の圧縮規則を取得し、他の通信装置と対応づけて記憶しておく、圧縮規則取得手段と、
他の通信装置にデータを送信する際に、当該他の通信装置にデータを送信する際に、当該他の通信装置に対応づけて記憶されている第1の圧縮規則に基づいて当該送信データの圧縮処理を行う圧縮手段と、
圧縮後のデータを送信する送信手段と
前記受信手段にて受信したデータの送信元の通信装置に対応づけて記憶されている第2の圧縮規則に基づいてデータの内容を復元する復元手段と、
を有することを特徴とする圧縮通信装置。
(付記11)
通信機能を備えた通信装置間で送受信されるデータの圧縮処理を行うための圧縮規則を生成するための規則生成方法を実行するためのプログラムであって、
通信機能を介して他の通信装置から送信されてきたデータ受信した際に、当該受信したデータに含まれる文字列を抽出し、抽出した文字列の出現状況を当該文字列毎に集計し、集計した結果を送信元の他の通信装置毎に集計して記憶部に蓄積するステップと、
記憶部に記憶された文字列の出現状況に応じて、データを圧縮する際の圧縮処理の対象とする文字列を選定し、選定した文字列と圧縮処理後のデータとを対応づけて圧縮規則を生成し、生成した圧縮規則を当該データの送信元である他の通信装置に対応づけて記憶部に記憶するステップと、
他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応づけて記憶された圧縮規則を受信通知と共に送信するステップと
を有することを特徴とするプログラム。
(付記12) 通信機能を備えた通信装置間で送受信されるデータの圧縮処理を行うための圧縮規則を生成するための規則生成方法を実行するためのプログラムであって、
他の通信装置から送信されてきた第1のデータおよび他の通信装置に対して送信する第2データ毎に、当該データ中に含まれる文字列を抽出し、抽出した文字列の出現状況を第1のデータと第2のデータ毎に集計して、当該他の通信端末毎に対応づけて記憶部に記憶するステップと、
記憶部に記憶された第1のデータ及び第2のデータ毎の文字列の出現状況に基づいて、第1のデータの圧縮規則と、第2のデータの圧縮規則とを、それぞれに生成し、当該他の端末装置に対応づけて記憶部に記憶するステップと、
他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応付けて記憶されている第1のデータ及び第2のデータの圧縮規則を受信通知と共に送信するステップと
を有することを特徴とするプログラム。
Regarding the embodiments including the first to fourth embodiments described above, the following additional notes are further disclosed.
(Appendix 1)
A rule generation method for generating a compression rule for compressing data transmitted and received between communication devices having a communication function,
When receiving data transmitted from another communication device via the communication function, extract the character string included in the received data, and totalize the appearance status of the extracted character string for each character string, Aggregate the results for each other communication device of the transmission source and store them in the storage unit,
Select a character string to be subjected to compression processing when compressing data according to the appearance status of the character string stored in the storage unit, and associate the selected character string with the data after compression processing to compress the data And store the generated compression rule in the storage unit in association with the other communication device that is the transmission source of the data,
A rule generation method characterized in that, when a reception notification for data transmitted from another communication device is transmitted, a compression rule stored in association with the other communication device is transmitted together with the reception notification.
(Appendix 2)
Based on the compression rule generated for each communication device, a new compression rule is generated and stored in the storage unit in association with an identifier representing an unknown communication device,
When transmitting a reception notification for data transmitted from another communication device, if the compression rule stored in association with the other communication device is not stored in the storage unit, it represents an unknown communication device The rule generation method according to appendix 1, wherein the compression rule stored in association with the identifier is transmitted together with the reception notification.
(Appendix 3)
A rule generation method for generating a compression rule for compressing data transmitted and received between communication devices having a communication function,
For each of the first data transmitted from the other communication device and the second data transmitted to the other communication device, the character string included in the data is extracted, and the appearance status of the extracted character string is defined as the first data. 1 data and 2nd data are aggregated and stored in the storage unit in association with each other communication terminal,
Based on the appearance status of the character string for each of the first data and the second data stored in the storage unit, a compression rule for the first data and a compression rule for the second data are generated respectively. Store it in the storage unit in association with the other terminal device,
When a reception notification for data transmitted from another communication device is transmitted, the compression rules of the first data and the second data stored in association with the other communication device are transmitted together with the reception notification. A rule generation method characterized by the above.
(Appendix 4)
Based on the first compression rule and the second compression rule generated for each communication device, a new first compression rule and a second compression rule are generated to correspond to an identifier representing an unknown communication device. And store it in the memory
When transmitting a reception notification for data transmitted from another communication device, the first compression rule or the second compression rule stored in association with the other communication device is not stored in the storage unit. In this case, the rule generation method according to appendix 3, wherein the first compression rule or the second compression rule stored in association with the identifier representing the unknown communication device is transmitted together with the reception notification.
(Appendix 5)
A compression communication device used for a communication device having a communication function capable of communicating with other communication devices, for compressing / decompressing data transmitted / received between the communication devices,
Data receiving means for receiving data transmitted from other communication devices;
Extracts character strings included in the received data, analyzes the appearance status of the extracted character strings, aggregates the extracted character strings, and stores the aggregated results in association with other communication devices Means,
Based on the aggregated results, a character string to be subjected to compression processing is selected, a compression rule that associates the selected character string with a compression symbol associated with the character string is generated, and stored for each communication device. Compression rule generation means to be kept,
When data is received by the data receiving means, it is determined whether or not data reception notification is to be performed, and when it is determined that data reception notification is to be performed, it is stored in association with the communication device that is the transmission source of the received data A compression communication apparatus comprising: a reception notification means for acquiring a compressed compression rule from the compression rule generation means and notifying the transmission source communication apparatus of a data reception notification together with the acquired compression rule.
(Appendix 6)
A second compression rule generating means for generating a new compression rule based on the compression rule stored in the compression rule generating means and storing it in association with an identifier indicating an unknown communication device; Prepared,
The reception notifying means stores a compression rule stored in association with an identifier indicating that the communication device is an unknown communication device when there is no compression rule stored in association with the communication device that is the transmission source of received data. The compressed communication device according to appendix 5, wherein the compressed communication device is acquired and notified together with a data reception notification.
(Appendix 7)
A compression communication device used for a communication device having a communication function capable of communicating with other communication devices, for compressing / decompressing data transmitted / received between the communication devices,
Receiving means for receiving first data transmitted from another communication device;
Transmission data receiving means for receiving second data to be transmitted to another communication device;
A character string included in the first data received by the receiving unit or the second data received by the transmission data receiving unit is extracted, and the appearance status of the extracted character string is determined for each of the first data and the second data. Totaling means for counting and storing in association with each other communication terminal;
Based on the appearance status of the character string for each of the first data or the second data stored in the storage unit, the first compression rule for the first data and the second compression rule for the second data are respectively determined. And a compression rule generating means for generating and storing in association with the other terminal device,
When data is received by the data receiving means, it is determined whether or not data reception notification is to be performed, and when it is determined that data reception notification is to be performed, it is stored in association with the communication device that is the transmission source of the received data Receiving the first compression rule or the second compression rule that has been received from the compression rule generation means, and the reception notification means for notifying the transmission source communication device of the data reception notification together with the acquired compression rule. A compression communication device.
(Appendix 8)
Based on the first compression rule and the second compression rule stored in the compression rule generation means, a new first compression rule and a second compression rule are generated to indicate an unknown communication device. A second compression rule generating means for storing the information in association with the identifier;
The reception notification means corresponds to an identifier indicating the unknown communication device when there is no first compression rule or second compression rule stored in association with the communication device that is the transmission source of the received data. The compressed communication apparatus according to appendix 7, wherein the first compression rule or the second compression rule stored together is acquired and notified together with a data reception notification.
(Appendix 9)
A compression communication device used for a communication device having a communication function capable of communicating with other communication devices, for compressing / decompressing data transmitted / received between the communication devices,
Receiving means for receiving data transmitted from another communication device;
It is determined whether or not the received data is a data reception notification from another communication transmission for data transmitted to another communication device, and if it is determined that the received data is a data reception notification, the compression included in the data reception notification A compression rule acquisition means for acquiring a rule and storing the rule in association with another communication device;
When transmitting data to another communication device, when transmitting data to the other communication device, compression processing of the transmission data is performed based on a compression rule stored in association with the other communication device. Compression means to perform;
A compression communication apparatus, comprising: a transmission unit that transmits the compressed data.
(Appendix 10)
A compression communication device used for a communication device having a communication function capable of communicating with other communication devices, for compressing / decompressing data transmitted / received between the communication devices,
Receiving means for receiving data transmitted from another communication device;
It is determined whether the data received by the receiving means is a data reception notification from another communication transmission for the data transmitted to another communication device, and if it is determined that the data reception notification is received, the data reception notification A compression rule acquisition means for acquiring the first compression rule and the second compression rule included in and storing them in association with other communication devices;
When transmitting data to another communication device, when transmitting data to the other communication device, the transmission data is transmitted based on the first compression rule stored in association with the other communication device. Compression means for performing compression processing;
Transmitting means for transmitting the compressed data; and restoring means for restoring the content of the data based on a second compression rule stored in association with the communication device that is the transmission source of the data received by the receiving means;
A compression communication device comprising:
(Appendix 11)
A program for executing a rule generation method for generating a compression rule for compressing data transmitted and received between communication devices having a communication function,
When data transmitted from another communication device via the communication function is received, the character string included in the received data is extracted, and the appearance status of the extracted character string is totaled for each character string, and totalized Summing up the results obtained for each other communication device of the transmission source and storing them in the storage unit;
Select a character string to be subjected to compression processing when compressing data according to the appearance status of the character string stored in the storage unit, and associate the selected character string with the data after compression processing to compress the data And storing the generated compression rule in a storage unit in association with another communication device that is a transmission source of the data;
And a step of transmitting a compression rule stored in association with the other communication device together with the reception notification when transmitting a reception notification for the data transmitted from the other communication device.
(Supplementary note 12) A program for executing a rule generation method for generating a compression rule for performing compression processing of data transmitted and received between communication devices having a communication function,
For each of the first data transmitted from the other communication device and the second data transmitted to the other communication device, the character string included in the data is extracted, and the appearance status of the extracted character string is defined as the first data. Summing up the data for each of the first data and the second data, and storing the data in the storage unit in association with the other communication terminals;
Based on the appearance status of the character string for each of the first data and the second data stored in the storage unit, a compression rule for the first data and a compression rule for the second data are generated respectively. Storing in the storage unit in association with the other terminal device;
When a reception notification for data transmitted from another communication device is transmitted, the compression rules of the first data and the second data stored in association with the other communication device are transmitted together with the reception notification. And a program.

本発明は、通信網を介してデータの送受信を行いながら、業務の遂行あるいはサービスの享受を行う通信システムにおいて、送受信されるデータの圧縮方式を動的に設定可能とすることで、圧縮処理による端末装置への処理性能の圧迫等を回避することにより、ますます増大する送受信データのデータ量を最適に圧縮しながら、業務の遂行あるいはサービスの享受を可能とする。   According to the present invention, in a communication system that performs business or enjoys a service while performing transmission / reception of data via a communication network, it is possible to dynamically set a compression method of transmitted / received data. By avoiding the compression of processing performance on the terminal device, it is possible to perform business or enjoy services while optimally compressing the increasing amount of transmitted / received data.

本発明の原理を示す図Diagram showing the principle of the present invention 本発明の基本的な処理の流れを説明するフローチャートFlowchart explaining the basic processing flow of the present invention 第1の実施形態の構成を示す図The figure which shows the structure of 1st Embodiment. 第1の実施形態における規則生成の処理の流れを説明するフローチャートThe flowchart explaining the flow of the rule generation processing in the first embodiment 第1の実施形態における生成された規則に基づいてデータを短縮(圧縮)する処理の流れを説明するフローチャートThe flowchart explaining the flow of the process which shortens (compresses) data based on the rule produced | generated in 1st Embodiment. 送受信されるデータの内容の例を示す図 (A) 圧縮処理される前のデータの内容の例を示す図 (B) 圧縮処理された後のデータの内容の例を示す図The figure which shows the example of the content of the data transmitted / received (A) The figure which shows the example of the content of the data before compression processing (B) The figure which shows the example of the content of the data after compression processing 集計データ記憶部に記憶される集計テーブルの内容の例を示す図The figure which shows the example of the content of the total table memorize | stored in a total data storage part 規則記憶部に記憶される規則テーブルの内容の例を示す図The figure which shows the example of the content of the rule table memorize | stored in a rule memory | storage part データ受信通知メッセージの内容の例を示す図The figure which shows the example of the contents of the data reception notification message 第2の実施形態の構成を示す図The figure which shows the structure of 2nd Embodiment. 第2の実施形態における送信データに基づく規則生成の流れを説明するフローチャートThe flowchart explaining the flow of the rule production | generation based on the transmission data in 2nd Embodiment 第2の実施形態における生成された規則を通知するための処理の流れを説明するフローチャートThe flowchart explaining the flow of the process for notifying the produced | generated rule in 2nd Embodiment. 第2の実施形態における集計記憶部に記憶される集計テーブルの内容の例を示す図The figure which shows the example of the content of the total table memorize | stored in the total memory | storage part in 2nd Embodiment. 第2の実施形態における規則記憶部に記憶される規則テーブルの内容の例を示す図The figure which shows the example of the content of the rule table memorize | stored in the rule memory | storage part in 2nd Embodiment. 第2の実施形態におけるデータ受信通知メッセージの内容の例を示す図The figure which shows the example of the content of the data reception notification message in 2nd Embodiment 第2の実施形態における端末装置側の受信処理の流れを説明するフローチャートThe flowchart explaining the flow of the reception process by the terminal device side in 2nd Embodiment. 第2の実施形態における端末装置側の規則記憶部に記憶される規則テーブルの内容の例を示す図The figure which shows the example of the content of the rule table memorize | stored in the rule memory | storage part by the side of the terminal device in 2nd Embodiment. 第2の実施形態における端末装置側の送信処理の流れを説明するフローチャートThe flowchart explaining the flow of the transmission process by the terminal device side in 2nd Embodiment. 第3の実施形態の構成を示す図The figure which shows the structure of 3rd Embodiment. 第3の実施形態におけるデフォルト生成部の処理の流れを説明するフローチャートThe flowchart explaining the flow of a process of the default production | generation part in 3rd Embodiment. 第3の実施形態における規則記憶部及び集計データ記憶部の内容の例を示す図The figure which shows the example of the content of the rule memory | storage part and total data memory | storage part in 3rd Embodiment 第3の実施形態における規則記憶部及び集計データ記憶部の内容の例を示す図The figure which shows the example of the content of the rule memory | storage part and total data memory | storage part in 3rd Embodiment 第4の実施形態におけるPINGデータとPONGデータの内容の例を示す図The figure which shows the example of the content of the PING data and PONG data in 4th Embodiment 第4の実施形態におけるデータ受信部の処理の流れを説明するフローチャートThe flowchart explaining the flow of a process of the data receiver in 4th Embodiment

符号の説明Explanation of symbols

1 装置、受信側装置、(通信装置、圧縮通信装置)
2 装置、送信側装置、(通信装置、圧縮通信装置)
3 通信網
10、20 制御部
11、21 アプリケーション、業務アプリケーション
12、22 規則記憶部、(圧縮規則生成手段)
13、23 規則生成部、(圧縮規則生成手段)
131、231 受信データ集計部、(集計手段)
132、232 集計データ記憶部、(集計手段)
133、233 規則決定部、(圧縮規則生成手段)
134 送信データ集計部、(集計手段)
135 デフォルト生成部 (第2の圧縮規則生成手段)
14、24 規則通知部、(受信通知手段)
15、25 圧縮・伸長部
151、251 送信データ圧縮部
152、252 受信データ復元部
16、26 データ受信部
17、27 受信通知送信部、(受信通知手段) 19、29 データ送信部
1C,2C 通信インターフェース(通信I/F)
1 device, receiving device, (communication device, compression communication device)
2 device, transmitting device, (communication device, compression communication device)
3 communication network 10, 20 control unit 11, 21 application, business application 12, 22 rule storage unit (compression rule generation means)
13, 23 Rule generation unit (compression rule generation means)
131, 231 Received data totaling unit, (totaling means)
132, 232 Total data storage unit (Totaling means)
133, 233 Rule determining unit, (compression rule generating means)
134 Transmission data totaling unit, (totaling means)
135 Default generation unit (second compression rule generation means)
14, 24 Rule notification section (Reception notification means)
15, 25 Compression / decompression unit 151, 251 Transmission data compression unit 152, 252 Reception data restoration unit 16, 26 Data reception unit 17, 27 Reception notification transmission unit (Reception notification means) 19, 29 Data transmission unit 1C, 2C Communication Interface (communication I / F)

Claims (5)

通信機能を備えた通信装置間で送受信されるデータの圧縮処理を行うための圧縮規則を生成するための規則生成方法であって、
通信機能を介して他の通信装置から送信されてきたデータを受信した際に、当該受信したデータに含まれる文字列を抽出し、抽出した文字列の出現状況を当該文字列毎に集計し、集計した結果を送信元の他の通信装置毎に集計して記憶部に蓄積しておき、
記憶部に記憶された文字列の出現状況に応じて、データを圧縮する際の圧縮処理の対象とする文字列を選定し、選定した文字列と圧縮処理後のデータとを対応づけて圧縮規則を生成し、生成した圧縮規則を当該データの送信元である他の通信装置に対応づけて記憶部に記憶しておき、
他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応づけて記憶された圧縮規則を受信通知と共に送信する
ことを特徴とする規則生成方法。
A rule generation method for generating a compression rule for compressing data transmitted and received between communication devices having a communication function,
When receiving data transmitted from another communication device via the communication function, extract the character string included in the received data, and totalize the appearance status of the extracted character string for each character string, Aggregate the results for each other communication device of the transmission source and store them in the storage unit,
Select a character string to be subjected to compression processing when compressing data according to the appearance status of the character string stored in the storage unit, and associate the selected character string with the data after compression processing to compress the data And store the generated compression rule in the storage unit in association with the other communication device that is the transmission source of the data,
A rule generation method characterized in that, when a reception notification for data transmitted from another communication device is transmitted, a compression rule stored in association with the other communication device is transmitted together with the reception notification.
他の通信装置と通信可能な通信機能を備えた通信装置において用いられ、通信装置間で送受信されるデータを圧縮・伸長するための圧縮通信装置であって、
他の通信装置から送信されてきたデータを受信するデータ受信手段と、
受信したデータに含まれる文字列を抽出し、抽出した文字列の出現状況を分析し、抽出した文字列毎に集計し、集計した結果を他の通信装置毎に対応づけて記憶しておく集計手段と、
前記集計した結果に基づいて、圧縮処理の対象とする文字列を選定し、選定した文字列と当該文字列に対応づける圧縮記号とを関係づける圧縮規則を生成し、前記通信装置毎に記憶しておく圧縮規則生成手段と、
前記データ受信手段にてデータを受信した際に、データ受信通知を行うか否かを判断し、データ受信通知を行うと判断した場合に、当該受信データの送信元の通信装置に対応づけて記憶されている圧縮規則を前記圧縮規則生成手段から取得し、取得した圧縮規則と共にデータ受信通知を当該送信元の通信装置に通知する受信通知手段と
を有することを特徴とする圧縮通信装置。
A compression communication device that is used in a communication device having a communication function capable of communicating with other communication devices and compresses / decompresses data transmitted / received between the communication devices,
Data receiving means for receiving data transmitted from other communication devices;
Extracts character strings included in the received data, analyzes the appearance status of the extracted character strings, aggregates the extracted character strings, and stores the aggregated results in association with other communication devices Means,
Based on the aggregated results, a character string to be subjected to compression processing is selected, a compression rule that associates the selected character string with a compression symbol associated with the character string is generated, and stored for each communication device. Compression rule generation means to be kept,
When data is received by the data receiving means, it is determined whether or not data reception notification is to be performed, and when it is determined that data reception notification is to be performed, the data is stored in association with the communication device that is the transmission source of the received data A compression communication apparatus comprising: a reception notification means for acquiring a compressed compression rule from the compression rule generation means and notifying the transmission source communication apparatus of a data reception notification together with the acquired compression rule.
前記圧縮規則生成手段にて記憶された圧縮規則に基づいて、あらたな圧縮規則を生成し、未知の通信装置であることを示す識別子に対応づけて記憶しておく第2の圧縮規則生成手段を備え、
前記受信通知手段は、受信データの送信元の通信装置に対応づけて記憶された圧縮規則が無い場合に、前記未知の通信装置であることを示す識別子に対応づけて記憶されている圧縮規則を取得して、データ受信通知と共に通知する
ことを特徴とする付記5に記載の圧縮通信装置。
A second compression rule generating means for generating a new compression rule based on the compression rule stored in the compression rule generating means and storing it in association with an identifier indicating an unknown communication device; Prepared,
The reception notifying means stores a compression rule stored in association with an identifier indicating that the communication device is an unknown communication device when there is no compression rule stored in association with the communication device that is the transmission source of received data. The compressed communication device according to appendix 5, wherein the compressed communication device is acquired and notified together with a data reception notification.
他の通信装置と通信可能な通信機能を備えた通信装置に用いられ、通信装置間で送受信されるデータを圧縮・伸長するための圧縮通信装置であって、
他の通信装置から送信されてきた第1のデータを受信する受信手段と、
他の通信装置に対して送信する第2のデータを受け付ける送信データ受付手段と、
受信手段にて受信した第1のデータあるいは送信データ受付手段にて受け付けた第2のデータに含まれる文字列を抽出し、抽出した文字列の出現状況を第1のデータと第2のデータ毎に集計して、当該他の通信端末毎に対応づけて記憶する集計手段と、
記憶部に記憶された第1のデータあるいは第2のデータ毎の文字列の出現状況に基づいて、第1のデータの第1の圧縮規則と第2のデータの第2の圧縮規則とをそれぞれに生成し、当該他の端末装置に対応づけて記憶する圧縮規則生成手段と、
前記データ受信手段にてデータを受信した際に、データ受信通知を行うか否かを判断し、データ受信通知を行うと判断した場合に、当該受信データの送信元の通信装置に対応づけて記憶されている第1の圧縮規則あるいは第2の圧縮規則を前記圧縮規則生成手段から取得し、取得した圧縮規則と共にデータ受信通知を当該送信元の通信装置に通知する受信通知手段と
を有することを特徴とする圧縮通信装置。
A compression communication device used for a communication device having a communication function capable of communicating with other communication devices, for compressing / decompressing data transmitted / received between the communication devices,
Receiving means for receiving first data transmitted from another communication device;
Transmission data receiving means for receiving second data to be transmitted to another communication device;
A character string included in the first data received by the receiving unit or the second data received by the transmission data receiving unit is extracted, and the appearance status of the extracted character string is determined for each of the first data and the second data. Totaling means for counting and storing in association with each other communication terminal;
Based on the appearance status of the character string for each of the first data or the second data stored in the storage unit, the first compression rule for the first data and the second compression rule for the second data are respectively determined. And a compression rule generating means for generating and storing in association with the other terminal device,
When data is received by the data receiving means, it is determined whether or not data reception notification is to be performed, and when it is determined that data reception notification is to be performed, it is stored in association with the communication device that is the transmission source of the received data Receiving the first compression rule or the second compression rule that has been received from the compression rule generation means, and the reception notification means for notifying the transmission source communication device of the data reception notification together with the acquired compression rule. A compression communication device.
通信機能を備えた通信装置間で送受信されるデータの圧縮処理を行うための圧縮規則を生成するための規則生成方法を実行するためのプログラムであって、
通信機能を介して他の通信装置から送信されてきたデータを受信した際に、当該受信したデータに含まれる文字列を抽出し、抽出した文字列の出現状況を当該文字列毎に集計し、集計した結果を送信元の他の通信装置毎に集計して記憶部に蓄積するステップと、
記憶部に記憶された文字列の出現状況に応じて、データを圧縮する際の圧縮処理の対象とする文字列を選定し、選定した文字列と圧縮処理後のデータとを対応づけて圧縮規則を生成し、生成した圧縮規則を当該データの送信元である他の通信装置に対応づけて記憶するステップと、
他の通信装置から送信されてきたデータに対する受信通知を送信する際に、当該他の通信装置に対応づけて記憶された圧縮規則を受信通知と共に送信するステップと
を有することを特徴とするプログラム。

A program for executing a rule generation method for generating a compression rule for compressing data transmitted and received between communication devices having a communication function,
When receiving data transmitted from another communication device via the communication function, extract the character string included in the received data, and totalize the appearance status of the extracted character string for each character string, Summing up the totaled results for each other communication device of the transmission source and storing them in the storage unit;
Select a character string to be subjected to compression processing when compressing data according to the appearance status of the character string stored in the storage unit, and associate the selected character string with the data after compression processing to compress the data And storing the generated compression rule in association with another communication device that is the transmission source of the data,
And a step of transmitting a compression rule stored in association with the other communication device together with the reception notification when transmitting a reception notification for the data transmitted from the other communication device.

JP2005103536A 2005-03-31 2005-03-31 Compression rule generation method, compression communication apparatus, and program Expired - Fee Related JP4548184B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005103536A JP4548184B2 (en) 2005-03-31 2005-03-31 Compression rule generation method, compression communication apparatus, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005103536A JP4548184B2 (en) 2005-03-31 2005-03-31 Compression rule generation method, compression communication apparatus, and program

Publications (2)

Publication Number Publication Date
JP2006287518A true JP2006287518A (en) 2006-10-19
JP4548184B2 JP4548184B2 (en) 2010-09-22

Family

ID=37408962

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005103536A Expired - Fee Related JP4548184B2 (en) 2005-03-31 2005-03-31 Compression rule generation method, compression communication apparatus, and program

Country Status (1)

Country Link
JP (1) JP4548184B2 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008219264A (en) * 2007-03-01 2008-09-18 Ntt Communications Kk Data compression and transfer device, data compression and transfer system, data compressing and transferring method, and data compression and transfer program
JP2015511430A (en) * 2012-01-23 2015-04-16 フォースウォール・メディア・インコーポレーテッド User event data reduction system and method
JP2015519828A (en) * 2013-02-12 2015-07-09 コルティカ リミティド Multi-layer system for symbol space-based compression of patterns
JP2016063297A (en) * 2014-09-16 2016-04-25 日本電気株式会社 Information processor, information processing method, information processing program and network system
WO2017163896A1 (en) * 2016-03-22 2017-09-28 パナソニックIpマネジメント株式会社 Log collection device, log generation device, and log collection method
JP2018170661A (en) * 2017-03-30 2018-11-01 日本電気株式会社 Communication system

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101800781B1 (en) * 2016-09-23 2017-11-27 에스케이테크엑스 주식회사 Apparatus for transgerring data of mobile using propensity to use of mobile and method using the same

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57183179A (en) * 1981-05-07 1982-11-11 Fujitsu Ltd Compressed data processing method
JPH04266266A (en) * 1991-02-20 1992-09-22 Murata Mach Ltd Coding method for picture data
JPH08137817A (en) * 1994-11-10 1996-05-31 Nissan Motor Co Ltd Data communication method
JP2002278726A (en) * 2001-03-19 2002-09-27 Ricoh Co Ltd Printer

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS57183179A (en) * 1981-05-07 1982-11-11 Fujitsu Ltd Compressed data processing method
JPH04266266A (en) * 1991-02-20 1992-09-22 Murata Mach Ltd Coding method for picture data
JPH08137817A (en) * 1994-11-10 1996-05-31 Nissan Motor Co Ltd Data communication method
JP2002278726A (en) * 2001-03-19 2002-09-27 Ricoh Co Ltd Printer

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008219264A (en) * 2007-03-01 2008-09-18 Ntt Communications Kk Data compression and transfer device, data compression and transfer system, data compressing and transferring method, and data compression and transfer program
JP2015511430A (en) * 2012-01-23 2015-04-16 フォースウォール・メディア・インコーポレーテッド User event data reduction system and method
JP2015519828A (en) * 2013-02-12 2015-07-09 コルティカ リミティド Multi-layer system for symbol space-based compression of patterns
KR20150127101A (en) * 2013-02-12 2015-11-16 코르티카 엘티디. A multi-layer system for symbol-space based compression of patterns
KR101655835B1 (en) 2013-02-12 2016-09-08 코르티카 엘티디. A multi-layer system for symbol-space based compression of patterns
JP2016063297A (en) * 2014-09-16 2016-04-25 日本電気株式会社 Information processor, information processing method, information processing program and network system
WO2017163896A1 (en) * 2016-03-22 2017-09-28 パナソニックIpマネジメント株式会社 Log collection device, log generation device, and log collection method
US10469101B2 (en) 2016-03-22 2019-11-05 Panasonic Intellectual Property Management Co., Ltd. Log collection device, log generation device, and log collection method
JP2018170661A (en) * 2017-03-30 2018-11-01 日本電気株式会社 Communication system
US10764405B2 (en) 2017-03-30 2020-09-01 Nec Corporation Communication system

Also Published As

Publication number Publication date
JP4548184B2 (en) 2010-09-22

Similar Documents

Publication Publication Date Title
JP4548184B2 (en) Compression rule generation method, compression communication apparatus, and program
JP4982501B2 (en) Method and apparatus for compressing / decompressing data for communication with a wireless device
US9300764B2 (en) High efficiency binary encoding
JP4456554B2 (en) Data compression method and compressed data transmission method
CN102571966B (en) Network transmission method for large extensible markup language (XML) document
CN110445860B (en) Message sending method, device, terminal equipment and storage medium
CN109902274B (en) Method and system for converting json character string into thraft binary stream
CN109379326B (en) XML message rule checking method, equipment and storage medium
US9569285B2 (en) Method and system for message handling
JP5377818B2 (en) Method and system for sequentially accessing a compiled schema
US20070162479A1 (en) Compression of structured documents
GB2385755A (en) Data transfer where there is removed from a message, data which is the same as data in another message
US7530017B2 (en) Document transformation system
US20100146112A1 (en) Efficient communication techniques
US20080313291A1 (en) Method and apparatus for encoding data
US7117252B1 (en) Data transmission method, computer-readable medium, and data transmission apparatus
CN101257461A (en) Method and apparatus for filtering content based on classification
CN112822286B (en) Message pushing method and device
CN103646015B (en) Transmission, the method and system for receiving and transmitting XML message
JP2013008395A (en) Display system and method for acceptance state
CN110032432B (en) Example compression method and device and example decompression method and device
CN116109322A (en) Data acquisition method, data acquisition device, and computer-readable storage medium
JP4456574B2 (en) Compressed data transmission method
CN101330437A (en) Method and apparatus for transmitting data based on wireless network
Müldner et al. Using XML compression for WWW communication

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070531

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20070606

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080117

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20080722

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100216

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100223

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100423

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: 20100615

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: 20100628

R150 Certificate of patent or registration of utility model

Ref document number: 4548184

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130716

Year of fee payment: 3

LAPS Cancellation because of no payment of annual fees