JPH03162134A - Compressing/expanding system for communication data - Google Patents

Compressing/expanding system for communication data

Info

Publication number
JPH03162134A
JPH03162134A JP1303983A JP30398389A JPH03162134A JP H03162134 A JPH03162134 A JP H03162134A JP 1303983 A JP1303983 A JP 1303983A JP 30398389 A JP30398389 A JP 30398389A JP H03162134 A JPH03162134 A JP H03162134A
Authority
JP
Japan
Prior art keywords
data
compressed
communication
bytes
processing program
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.)
Pending
Application number
JP1303983A
Other languages
Japanese (ja)
Inventor
Shinichi Saka
坂 真一
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Solution Innovators 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 NEC Solution Innovators Ltd filed Critical NEC Solution Innovators Ltd
Priority to JP1303983A priority Critical patent/JPH03162134A/en
Publication of JPH03162134A publication Critical patent/JPH03162134A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Compression, Expansion, Code Conversion, And Decoders (AREA)

Abstract

PURPOSE:To shorten the data transfer time on a communication line by curtailing the communication data by using a compression processing program. CONSTITUTION:A system A is constituted by adding a compression processing program 2A and an expansion processing program 3A to a communication program 1A and a communication control mechanism 4A, and a system B is also constituted by adding a compression processing program 2B and an expansion processing program 3B to a communication control mechanism 4B and a compression processing program 2B. In such a state, in the case the same character-string of the maximum 4096 bytes in which one character or two characters in communication data are continued is compressed to 4 bytes, and the character-string is a numerical type, a different character-string of the maximum 9 bytes is compressed to 4 bytes or below, and its communication data is expanded and restored at the time of reception. In such a way, the time required for the transmission/reception processing of the communication data is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は通信データの圧縮・伸張方式に関し、特に通信
回線を介したデータ転送方式における通信データの送受
信に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a communication data compression/expansion method, and more particularly to transmission and reception of communication data in a data transfer method via a communication line.

〔従来の技術〕[Conventional technology]

従来、他システムとデータ通信を行う場合、通信データ
の内容をそのままの形式で、またはデータの属性を示す
情報を用いて圧縮した形式で送受信していた. 〔発明が解決しようとする課題〕 上述した従来の方式では、通信データ非圧縮の場合、通
信データと内容を加工することなく送受信する.その送
受信処理に必要な時間は通信データ量に依存する.その
ため連続する同一文字列などが存在しても、その処理に
必要な時間は変わらないという欠点がある。また、圧縮
する場合、通信データの種類ごとにそのデータ中の属性
を示す情報を必要とする欠点がある. 〔課題を解決するための手段〕 本発明の通信データの圧縮・伸張方式は、データ中の属
性を示す情報を必要とすることなく、通信データ中の1
文字または2文字の連続している最大4096バイトの
同一文字列を4バイト以下に圧縮することおよび文字列
が数値タイプの場合、最大9バイトの異なる文字列を5
バイト以下に圧縮する手段と、その圧縮した通信データ
を受信時に圧縮の逆の論理を用いて伸張し復元する手段
とを有している。
Conventionally, when communicating data with other systems, the content of the communication data was sent and received either in its original format or in a compressed format using information indicating data attributes. [Problem to be solved by the invention] In the conventional method described above, when communication data is uncompressed, communication data and contents are transmitted and received without being processed. The time required for the transmission and reception processing depends on the amount of communication data. Therefore, even if consecutive identical character strings exist, the time required to process them remains the same. Another disadvantage is that compression requires information indicating the attributes of each type of communication data. [Means for Solving the Problems] The communication data compression/decompression method of the present invention does not require information indicating attributes in the data,
Compressing identical character strings of up to 4096 bytes of consecutive characters or two characters into 4 bytes or less, and compressing different character strings of up to 9 bytes into 5
It has means for compressing the compressed communication data to less than a byte, and means for decompressing and restoring the compressed communication data using logic opposite to that of compression upon reception.

〔実施例〕〔Example〕

次に本発明において、図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の全体構或図を示す。第1図
において、システムAは通信プログラム(LA)と通信
制御機構(4A)とに圧縮処理プログラム(2A〉と伸
張処理プログラム(3A)を付加して楕戊される。また
、システムBも通信プログラム(IB)と通信制御機構
〈4B〉とに圧縮処理プログラム(2B)と伸張処理プ
ログラム(3B)を付加して構或される.システムAと
システムBは通信回路を介して接続される.システムA
に存在する通信プログラム(IA)がシステムBに存在
する通信プログラム(IB)とデータ通信する場合を例
として説明する。システムAに存在するプログラム(I
A)が通信データ送信要求を圧縮処理プログラム〈2A
〉に行うと、その通信データは圧縮処理プログラム(2
A)にて、後述するデータ圧縮方式によりデータ圧縮を
行ない、通信制御機構(4,A)に制御を渡す.通信制
御R構〈4A〉は通信回線を介して圧縮された通信デー
タをシステムBに送信する。システムBの通信制御機f
#(4B)は圧縮された通信データを受信して、伸張処
理プログラム(3B)にその通信データを渡す。伸張プ
ログラム〈3B)は圧縮された通信データを後述するデ
ータ伸張方式により復元して、通信プログラム(IB〉
に通信データを渡す。次に、システムAの圧縮処理プロ
グラム(2A)にて使用する圧縮方式を説明する. 第2図はある通信データ内に含まれる原始データの一部
であり、同一の1文字が連続しているデータ(IC)、
2文字が連続しているデータ(2C)、異なる数字が連
続しているデータ(3C)とこれらの3種類のいずれに
も該当しないデータ〈4C)を表している。
FIG. 1 shows the overall structure of an embodiment of the present invention. In Fig. 1, system A is simplified by adding a compression processing program (2A) and a decompression processing program (3A) to a communication program (LA) and a communication control mechanism (4A). It is constructed by adding a compression processing program (2B) and a decompression processing program (3B) to a program (IB) and a communication control mechanism <4B>.System A and system B are connected via a communication circuit. System A
An example will be explained in which a communication program (IA) residing in system B performs data communication with a communication program (IB) residing in system B. A program existing in system A (I
A) compresses the communication data transmission request <2A
>, the communication data is processed by the compression processing program (2
At A), data is compressed using the data compression method described later, and control is passed to the communication control mechanism (4, A). Communication control R structure <4A> transmits compressed communication data to system B via a communication line. System B communication controller f
# (4B) receives the compressed communication data and passes the communication data to the decompression processing program (3B). The decompression program (3B) decompresses the compressed communication data using the data decompression method described later and converts it into the communication program (IB).
Pass communication data to. Next, the compression method used in the compression processing program (2A) of system A will be explained. Figure 2 shows part of the original data contained in certain communication data, which is data (IC) in which the same single character is consecutive.
It represents data in which two characters are consecutive (2C), data in which different numbers are consecutive (3C), and data that does not correspond to any of these three types (4C).

第3図はその各データを圧縮した結果であり、第2図で
示したデータ形式は、1文字の圧縮データ(ID)と2
文字の圧縮データ(2D)と数字の圧縮データ(3D)
と非圧縮データ(4D)の4種類に対応する。この4種
類の圧縮形式について説明する。
Figure 3 shows the results of compressing each data, and the data format shown in Figure 2 is 1 character compressed data (ID) and 2 characters.
Compressed character data (2D) and compressed numerical data (3D)
and uncompressed data (4D). These four types of compression formats will be explained.

■文字の圧縮処理において、原始データ(IC)の圧縮
文字は、圧縮データ(1D〉の圧縮文字フィールド(1
3D)にて表現する。その圧縮文字数は圧縮データ(I
D〉の圧縮文字の個数フィールド(12D)にて表現す
る。また、圧縮データ形式を示すために圧縮データ(1
D)の制御コードフィールド(IID)にて表現する。
■In character compression processing, the compressed characters of original data (IC) are compressed character field (1D) of compressed data (1D).
3D). The number of compressed characters is the compressed data (I
D> is expressed in the number of compressed characters field (12D). Also, compressed data (1
D) is expressed in the control code field (IID).

圧縮文字の個数フィールド(12D)の大きさは、原始
データが16バイト以下の時は4ビット、17バイト以
上4096バイト以下の時は12ビットとなり、その識
別も制御コードフィールド(LID)にて表現する6 2文字の圧縮処理において、原始データ(2C)の圧縮
文字は、圧縮データ(2D)の圧縮文字フィールド(2
3D)にて表現する.その圧縮文字数は圧縮データ(2
D)の圧縮文字の個数フィールド(22D)にて表現す
る.また、圧縮データ形式を示すために圧縮データ(2
D)の制御コードフィールド(21D)にて表現する。
The size of the compressed character count field (12D) is 4 bits when the original data is 16 bytes or less, and 12 bits when it is 17 bytes or more and 4096 bytes or less, and its identification is also expressed in the control code field (LID). 6 In 2-character compression processing, the compressed character of the source data (2C) is the compressed character field (2D) of the compressed data (2D).
3D). The number of compressed characters is compressed data (2
D) is expressed in the number of compressed characters field (22D). Also, to indicate the compressed data format, compressed data (2
D) is expressed in the control code field (21D).

圧縮文字の個数フィールド(22D)の大きさは、原始
データが16バイト以下の時は4ビット、17ビット以
上4096バイト以下の時は12ビットとなり、その識
別も制御コードフィールド(21D)にて表現する。数
字の圧縮処理において、連続する数字タイプの原始デー
タ(3C)を10進数の数値と見なし16進数に変換す
る。その数値は圧縮データ(3D)の装置フィールド(
33D)にて表現する。その数字の個数は圧縮データ(
3D)の数字の個数フィールド(32D)にて表現する
.また、圧縮データ形式を示すために圧縮データ(3D
)の制御コードフィールド(31D)にて表現する。数
値フィールト(33D)は原始データの数字が4バイト
以下の時は2バイト、5バイト以上9バイト以下の時は
4となり、この識別も制御コードフィールド(31D)
にて表現する。
The size of the compressed character count field (22D) is 4 bits when the original data is 16 bytes or less, and 12 bits when it is 17 bits or more and 4096 bytes or less, and its identification is also expressed in the control code field (21D). do. In the numerical compression process, continuous numerical type original data (3C) is regarded as a decimal number and converted into a hexadecimal number. The numerical value is the device field of the compressed data (3D) (
33D). The number of numbers is compressed data (
3D) in the number field (32D). Also, to indicate the compressed data format, compressed data (3D
) is expressed in the control code field (31D). The numeric field (33D) is 2 bytes when the original data number is 4 bytes or less, and 4 when it is 5 bytes or more and 9 bytes or less, and this identification is also the control code field (31D).
Expressed in.

圧縮できない文字処理において、原始データ(4C〉は
そのまま圧縮データ(4D〉の非圧縮フィールド(43
D)で表現する。その非圧縮の文字数は非圧縮文字の個
数フィールド(42D)にて表示する。また、圧縮デー
タ形式を示すために圧縮データ(4D)の制御コードフ
ィールド(41D)にて表現する.非圧縮文字の個数フ
ィールド(42D>の大きさは、原始データがl6バイ
ト以下の時は4ビット、l7バイト以上4096バイト
以下の時は12ビッとなり、その識別も制御コードフィ
ールド(41D)にて表現する。
In character processing that cannot be compressed, the original data (4C) is directly used as the uncompressed field (43) of the compressed data (4D).
Expressed as D). The number of uncompressed characters is displayed in the number of uncompressed characters field (42D). Also, to indicate the compressed data format, it is expressed in the control code field (41D) of the compressed data (4D). The size of the uncompressed character count field (42D> is 4 bits when the original data is less than 16 bytes, and 12 bits when it is more than 17 bytes and less than 4096 bytes, and its identification is also in the control code field (41D). express.

上記4種類の圧縮形式から第4図の原始データ(IE)
は、圧縮後では圧縮データ(2E)で表現されることに
なる. 次に、システムBの伸張処理プログラム(3B)にて使
用する伸張方式を説明する。
Original data (IE) shown in Figure 4 from the above four types of compression formats
will be expressed as compressed data (2E) after compression. Next, the decompression method used in the decompression processing program (3B) of system B will be explained.

第3図で示した各圧縮データ(LD、2D、3D、4D
、)は伸張して第2図の各原始データ(IC、2C、3
C、4C)に復元する。それぞれの伸張形式は前述した
システムAの圧縮プログラム(2A)で使用して圧縮形
式の逆である.上記の4種類の伸張方式から第4図の圧
縮データ(2E)は、伸張後では原始データ(IE〉で
表現されることになる. 〔発明の効果〕 以上説明したように本発明は、圧縮処理プログラムによ
り通信データが削減されることで通信回線上のデータ転
送時間を短縮すること、さらに通信データの圧縮は圧縮
処理プログラムが、伸張は伸張処理プログラムが実施す
るための従来の圧縮伸張技術で必要なデータ中の属性を
示す情報が不用となる効果がある。
Each compressed data (LD, 2D, 3D, 4D
, ) are decompressed and each original data (IC, 2C, 3
C, 4C). Each decompression format is the opposite of the compression format used in the compression program (2A) of System A described above. From the above four types of decompression methods, the compressed data (2E) in Figure 4 will be expressed as original data (IE) after decompression. [Effects of the Invention] As explained above, the present invention The data transfer time on the communication line is shortened by reducing the communication data by the processing program, and the conventional compression/expansion technology is used, in which the communication data is compressed by the compression processing program and decompressed by the decompression processing program. This has the effect of eliminating the need for information indicating attributes in necessary data.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例を示すブロック図、第2図は
送信データの圧縮する前および受信データの伸張した後
の原始データを示す図、第3図は、送信データの圧縮し
た後および受信データの伸張する前の圧縮データを示す
図、第4図は圧縮データと伸張データの比較例を示す図
である.A.B・・・・・・システム、IA、1B・・
・・・・通信プログラム、2A、3B・・・・・・圧縮
プログラム、3A、3B・・・・・・伸張処理プログラ
ム、4A、4B・・・・・・通信制御装置。
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a diagram showing original data before transmission data is compressed and received data is expanded, and FIG. 3 is a diagram showing original data after transmission data is compressed. FIG. 4 is a diagram showing a comparison example of compressed data and decompressed data. A. B...System, IA, 1B...
... Communication program, 2A, 3B ... Compression program, 3A, 3B ... Decompression processing program, 4A, 4B ... Communication control device.

Claims (1)

【特許請求の範囲】[Claims] 通信回線で接続されたシステム間において、通信データ
中の1文字または2文字の連続している最大4096バ
イトの同一文字列を4バイトに圧縮および文字列が数値
タイプの場合、最大9バイトの異なる文字列を4バイト
以下に圧縮する手段と、その通信データを受信時に伸張
し復元する手段とを有することを特徴とする通信データ
の圧縮・伸張方式。
Between systems connected by a communication line, the same character string of up to 4096 bytes of one or two consecutive characters in the communication data can be compressed to 4 bytes, and if the character string is a numeric type, it can differ by up to 9 bytes. A method for compressing and decompressing communication data, comprising means for compressing a character string to 4 bytes or less, and means for decompressing and restoring the communication data upon reception.
JP1303983A 1989-11-21 1989-11-21 Compressing/expanding system for communication data Pending JPH03162134A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1303983A JPH03162134A (en) 1989-11-21 1989-11-21 Compressing/expanding system for communication data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1303983A JPH03162134A (en) 1989-11-21 1989-11-21 Compressing/expanding system for communication data

Publications (1)

Publication Number Publication Date
JPH03162134A true JPH03162134A (en) 1991-07-12

Family

ID=17927630

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1303983A Pending JPH03162134A (en) 1989-11-21 1989-11-21 Compressing/expanding system for communication data

Country Status (1)

Country Link
JP (1) JPH03162134A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100595166B1 (en) * 1999-03-05 2006-07-03 엘지전자 주식회사 Apparatus and method for acknowledgment packet data in bus system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100595166B1 (en) * 1999-03-05 2006-07-03 엘지전자 주식회사 Apparatus and method for acknowledgment packet data in bus system

Similar Documents

Publication Publication Date Title
US5179555A (en) High speed data compression and transmission for wide area network connections in LAN/bridging applications
US7627692B2 (en) Multiplexing of compressed control and user-plane messages
CA2128127A1 (en) Method and system for data compression
US5357546A (en) Multimode and multiple character string run length encoding method and apparatus
EP0204992B1 (en) Method for compressing and decompressing data
US6300885B1 (en) Dual aldc decompressors inside printer asic
US5952932A (en) Communication between master unit and slave unit with efficient protocol
CA2438794A1 (en) Method for selectively maintaining and applying ppp compression in a wireless communication system
JPH10154044A (en) Transfer data compression and expansion system and transfer data compressing and expanding device
US7054953B1 (en) Method and apparatus for sending and receiving a data structure in a constituting element occurrence frequency based compressed form
JPH03162134A (en) Compressing/expanding system for communication data
US6313763B1 (en) Variable length data packet with adjustable length indicator
JPH07146810A (en) Computer system
JP2786161B2 (en) Data transfer method
JPS62262164A (en) Virtual terminal controller
JPH036924A (en) terminal device
JPH04248618A (en) Character string transmission method
JPH04258084A (en) Code rule converter
JPH03171203A (en) Numerical controller
JPS59132281A (en) Data controlling system
KR100299039B1 (en) Apparatus and method for transmitting frame date by lossless compress algorithm in ethernet
JPS63217847A (en) Data transmission system
JPS63246952A (en) Terminal input/output processing system
HK40028293A (en) Rdma data sending and receiving method, electronic equipment and readable storage medium
JPH05257469A (en) Transmission and reception system for keyboard information between electronic musical instruments by relative value setting