JP2000276422A - Method and device for communication protocol processing - Google Patents

Method and device for communication protocol processing

Info

Publication number
JP2000276422A
JP2000276422A JP7864299A JP7864299A JP2000276422A JP 2000276422 A JP2000276422 A JP 2000276422A JP 7864299 A JP7864299 A JP 7864299A JP 7864299 A JP7864299 A JP 7864299A JP 2000276422 A JP2000276422 A JP 2000276422A
Authority
JP
Japan
Prior art keywords
data
length
lengths
encoding
total value
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
JP7864299A
Other languages
Japanese (ja)
Inventor
Katsutoshi Nihei
勝敏 二瓶
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 Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP7864299A priority Critical patent/JP2000276422A/en
Publication of JP2000276422A publication Critical patent/JP2000276422A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a method and device for communication protocol processing which purpose to transfer a data structure and have a high performance. SOLUTION: These method and device for communication protocol processing are related to a data structure at the time of transmitting plural inputted data from a computer through a network as one transmission data and are provided with a storage means where data lengths of known fixed-length parts of plural data are previously summed and are stored, a data encoding part 2 which encodes plural data, a transmission data length calculation part 1 which calculates data lengths discriminated by encoding plural data, a sum total value calculation means which calculates the sum total of data lengths of plural data, an addition means which adds the stored sum total value of data lengths of fixed-length parts and that of data lengths as the calculation result, and a write means which writes the added sum total value of data lengths in the header part of transmission data, and the processing is performed by this constitution.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】この発明は、コンピュータか
らネットワークを介してデータを送信するときのデータ
構造に関する通信プロトコル処理装置および通信プロト
コル処理方法に関する。
[0001] 1. Field of the Invention [0002] The present invention relates to a communication protocol processing device and a communication protocol processing method relating to a data structure when data is transmitted from a computer via a network.

【0002】[0002]

【従来の技術】従来、複数のデータを送信するときのデ
ータ構造に関する通信プロトコル処理は、入力データの
エンコードを行い、エンコードした結果として判明した
送信データ長を送信データのヘッダ部に書き込んでから
データを送信する方法をとっていた。
2. Description of the Related Art Conventionally, communication protocol processing relating to a data structure when transmitting a plurality of data is performed by encoding input data, writing a transmission data length determined as a result of the encoding in a header portion of the transmission data, and then transmitting the data. Had to be sent.

【0003】[0003]

【発明が解決しようとする課題】ところが、上述の方法
には次のような課題があった。つまり、入力データをす
べてエンコードするまで、ヘッダに書き込まなければな
らない送信データ長が判明しないため、エンコードが終
了するまでエンコード途中の送信データをすべてメモリ
またはその他の記憶装置に貯えておかなければならな
い。このため入力データの量に比例した量のメモリ等の
記憶装置が必要であるという課題があった。
However, the above-described method has the following problems. That is, the length of the transmission data that must be written in the header is not known until all the input data is encoded. Therefore, all the transmission data in the middle of encoding must be stored in the memory or other storage device until the encoding is completed. Therefore, there is a problem that a storage device such as a memory in an amount proportional to the amount of input data is required.

【0004】その理由は、最初に送信しなければならな
いヘッダに書き込むべき送信データ長がエンコード終了
時まで判明しないため、エンコード途中で送信データを
順次送信していき、送信済みメモリまたはその他の記憶
装置の領域を解放することができないためである。この
問題に対応するための従来技術である、送信データ長計
算部とデータエンコード部を単純に分離した方法には、
すべての入力データについて送信データ長計算部とデー
タエンコード部で合計2回の走査を行うため、処理効率
が悪いという課題があった。
[0004] The reason is that the transmission data length to be written in the header which must be transmitted first is not known until the end of encoding, so that the transmission data is sequentially transmitted during encoding, and the transmitted memory or other storage device is transmitted. This is because the area cannot be released. In order to deal with this problem, the conventional technique of simply separating the transmission data length calculation unit and the data encoding unit includes:
Since the transmission data length calculation unit and the data encoding unit perform scanning twice for all the input data, the processing efficiency is low.

【0005】本発明はこのような背景の下になされたも
ので、データ構造を転送する目的の通信プロトコル処理
に当たり、処理に必要なメモリ量を削減し、全体の処理
性能を上げることができる通信プロトコル処理装置およ
び通信プロトコル処理方法を提供することを目的とす
る。
The present invention has been made in view of such a background, and in communication protocol processing for transferring a data structure, a communication amount capable of reducing the amount of memory required for processing and improving the overall processing performance. It is an object to provide a protocol processing device and a communication protocol processing method.

【0006】[0006]

【課題を解決するための手段】請求項1に記載の発明
は、入力された複数のデータをコンピュータから1つの
送信データとしてネットワークを介して送信するときの
データ構造に関する通信プロトコル処理装置であって、
前記複数のデータのうち、判明している固定長部分のデ
ータ長を予め合計して記憶する記憶手段と、前記複数の
データをエンコードするデータエンコード部と、前記複
数のデータがエンコードされて判明したデータ長を計算
する送信データ長計算部と、前記複数のデータのデータ
長の合計値を計算する合計値計算手段と、前記記憶され
た固定長部分のデータ長の合計値と前記計算結果のデー
タ長の合計値とを加算する加算手段と、前記加算された
データ長の合計値を送信データのヘッダ部に書き込む書
き込み手段とを有することを特徴とする通信プロトコル
処理装置を提供する。
According to a first aspect of the present invention, there is provided a communication protocol processing apparatus relating to a data structure when a plurality of input data are transmitted from a computer as one transmission data via a network. ,
Storage means for preliminarily summing and storing the data lengths of the fixed length portions which are known among the plurality of data, a data encoding unit for encoding the plurality of data, and the plurality of data being encoded and found A transmission data length calculation unit for calculating a data length, a total value calculation means for calculating a total value of the data lengths of the plurality of data, a total value of the stored data length of the fixed length portion, and data of the calculation result A communication protocol processing device comprising: an adding unit for adding the total value of the data length; and a writing unit for writing the total value of the added data length in a header portion of the transmission data.

【0007】また請求項2に記載の発明は、入力された
複数のデータをコンピュータから1つの送信データとし
てネットワークを介して送信するときのデータ構造に関
する通信プロトコル処理方法であって、前記複数のデー
タのうち、判明している固定長部分のデータ長を予め合
計して記憶する過程と、前記複数のデータをエンコード
する過程と、前記複数のデータがエンコードされて判明
したデータ長を計算する過程と、前記複数のデータのデ
ータ長の合計値を計算する過程と、前記記憶された固定
長部分のデータ長の合計値と前記計算結果のデータ長の
合計値とを加算する過程と、前記加算されたデータ長の
合計値を送信データのヘッダ部に書き込む過程とを有す
ることを特徴とする通信プロトコル処理方法を提供す
る。
According to a second aspect of the present invention, there is provided a communication protocol processing method relating to a data structure when a plurality of input data are transmitted from a computer as one transmission data via a network, A step of summing and storing the data lengths of the known fixed-length portions in advance, a step of encoding the plurality of data, and a step of calculating the determined data length by encoding the plurality of data. Calculating the total value of the data lengths of the plurality of data; adding the total value of the data length of the stored fixed-length portion and the total value of the data length of the calculation result; Writing the total value of the data length to the header of the transmission data.

【0008】複数の入力データを一つの送信データとし
てまとめる際に、複数の入力データをもとに送信データ
長を計算する送信データ長計算部と、複数の入力データ
を送信データとしてエンコードするデータエンコード部
より構成され、送信データ長計算部がデータエンコード
部よりも先に実行される構成において、送信データ長計
算部では、実行前に計算可能な長さが固定のデータ(固
定長データ)のサイズの合計値をあらかじめ実行前に計
算して記憶しておき、実行時にならないとサイズが確定
しないデータ(不定長データ)のみサイズを計算すること
により、処理を高速化することを特徴とする。
When combining a plurality of input data as one transmission data, a transmission data length calculation unit for calculating a transmission data length based on the plurality of input data, and a data encoding unit for encoding the plurality of input data as transmission data In the configuration in which the transmission data length calculation unit is executed before the data encoding unit, the transmission data length calculation unit has a fixed length of data (fixed length data) that can be calculated before execution. Is calculated in advance before execution and stored, and the size is calculated only for data (undefined length data) whose size is not determined until execution, thereby speeding up the processing.

【0009】送信データ長がデータエンコード前にわか
るために、送信データの先頭部分(ヘッダ)に送信デー
タ長を書き込み、即座に送信を開始することができる。
また、エンコード途中で順次データをネットワークに送
信することが可能となる。送信データ長計算部とデータ
エンコード部を分ける構成では、入力データを2度走査
することになるが、本方式では、実行前に計算できる部
分のデータ長をあらかじめ計算して送信データ長計算部
に組み込んでおくことにより、実行時の送信データ長計
算部の処理時間が短縮される。
Since the transmission data length can be known before the data encoding, the transmission data length can be written at the head (header) of the transmission data and transmission can be started immediately.
In addition, data can be sequentially transmitted to the network during encoding. In the configuration in which the transmission data length calculation unit and the data encoding unit are separated, the input data is scanned twice, but in this method, the data length of the part that can be calculated before execution is calculated in advance, and the transmission data length calculation unit By incorporating it, the processing time of the transmission data length calculation unit at the time of execution is reduced.

【0010】[0010]

【発明の実施の形態】以下、この発明の一実施形態につ
いて図を参照しながら説明する。図1はこの発明の一実
施形態による通信プロトコル処理装置の構成を示すブロ
ック図である。図1を参照すると、コンピュータ3とネ
ットワーク4からなり、コンピュータ3では、送信デー
タ長計算部1とデータエンコード部2が動作する。
DESCRIPTION OF THE PREFERRED EMBODIMENTS One embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a communication protocol processing device according to an embodiment of the present invention. Referring to FIG. 1, the computer 3 includes a computer 4 and a network 4. In the computer 3, a transmission data length calculator 1 and a data encoder 2 operate.

【0011】次に、図2のフローチャートを参照して本
実施形態の全体の動作について説明する。送信データ処
理において、まず図2(a)において、送信データ長計
算部1が動作を開始する。この送信データ長計算部1で
は、ステップS1において、入力データ11〜入力デー
タ1Nのうち、不定長データのみについて順次走査して
エンコードし、エンコードした後の送信データ長を求
め、ステップS2において、最終データか否かを判断
し、最終データまでデータ長を求める。
Next, the overall operation of this embodiment will be described with reference to the flowchart of FIG. In the transmission data processing, first, in FIG. 2A, the transmission data length calculation unit 1 starts operation. In step S1, the transmission data length calculation unit 1 sequentially scans and encodes only indefinite-length data among the input data 11 to 1N, obtains the transmission data length after encoding, and determines the final transmission data length in step S2. It is determined whether the data is data or not, and the data length is obtained up to the last data.

【0012】ステップS3において、得られたデータ長
の合計結果と、送信データ長計算部1の属性としてあら
かじめ計算してある固定長入力データのサイズの合計値
の和を計算する。すべての入力データの走査が終了した
ら、ステップS4において、送信データ長を送信データ
のヘッダ部分に記録してデータエンコード処理へ移行す
る。
In step S3, the sum of the obtained data length total result and the total value of the fixed-length input data size calculated in advance as an attribute of the transmission data length calculation unit 1 is calculated. When scanning of all the input data is completed, in step S4, the transmission data length is recorded in the header portion of the transmission data, and the process proceeds to the data encoding process.

【0013】次に、図2(b)において、データエンコ
ード部2が起動される。このデータエンコード部2で
は、ステップS5において、入力データ11〜入力デー
タ1Nを順次走査し、送信データとしてエンコードす
る。ステップS6において、入力データ11〜入力デー
タ1Nのエンコード途中で送信データがある一定の大き
さ以上になった場合には、ステップS7において、途中
までのエンコード結果をネットワークに送信する。
Next, in FIG. 2B, the data encoding unit 2 is started. In step S5, the data encoding unit 2 sequentially scans the input data 11 to 1N and encodes the data as transmission data. If the transmission data has a certain size or more in the middle of the encoding of the input data 11 to 1N in step S6, the halfway encoding result is transmitted to the network in step S7.

【0014】ステップS8において、ネットワークに送
信した後の送信データを格納していたメモリ領域は、次
の送信データ格納領域として再利用する。ステップS9
において、最終入力データのエンコードが終了したか否
かを判断し、入力データ1Nのエンコードが終了するま
で繰り返して最終入力データのエンコードが終了すると
一連の処理を終了する。
In step S8, the memory area storing the transmission data after transmission to the network is reused as the next transmission data storage area. Step S9
, It is determined whether or not encoding of the final input data has been completed. If the encoding of the final input data has been repeated until the encoding of the input data 1N has been completed, a series of processing ends.

【0015】以上、本発明の一実施形態の動作を図面を
参照して詳述してきたが、本発明はこの実施形態に限ら
れるものではなく、本発明の要旨を逸脱しない範囲の設
計変更等があっても本発明に含まれる。
The operation of one embodiment of the present invention has been described above in detail with reference to the drawings. However, the present invention is not limited to this embodiment, and a design change or the like may be made without departing from the gist of the present invention. The present invention is also included in the present invention.

【0016】[0016]

【発明の効果】これまでに説明したように、この発明に
よれば、エンコード前に送信データ長を計算するため、
エンコードを実行する前に、送信データのヘッダに送信
データ長を記録し、即座に送信データをエンコードが完
了した部分から順次送信することができるため、送信が
完了した部分の送信データを記録していたメモリまたは
その他の記憶装置の領域は解放し、別の目的に再利用が
可能なため、必要とされるメモリその他の記憶装置領域
が大幅に削減できるという効果が得られる。
As described above, according to the present invention, the transmission data length is calculated before encoding.
Before executing the encoding, the transmission data length is recorded in the header of the transmission data, and the transmission data can be transmitted immediately from the portion where the encoding is completed. Therefore, the transmission data of the portion where the transmission is completed is recorded. Since the memory or other storage device area is released and can be reused for another purpose, the required memory or other storage device area can be greatly reduced.

【0017】したがって、すべてのデータのエンコード
を待つことなく、エンコードが終了した部分から順次送
信することが可能となり、送信データの受信者は送信さ
れてきたデータを順次処理することができるようにな
り、結果として送信者と受信者が平行して動作できるた
め、全体としての処理性能が向上するという効果が得ら
れる。
Therefore, it is possible to transmit the data sequentially from the part where the encoding is completed without waiting for the encoding of all the data, and the receiver of the transmission data can sequentially process the transmitted data. As a result, since the sender and the receiver can operate in parallel, the effect of improving the overall processing performance can be obtained.

【0018】また、送信データ長計算部に、固定長デー
タについてのデータサイズの合計値をあらかじめ属性と
して与えておくことにより、上記従来装置および送信デ
ータ処理方法のメリットを持ったまま、送信データ長計
算部の処理速度を向上させることができるという効果が
得られる。
Further, by giving the total value of the data size of the fixed-length data as an attribute to the transmission data length calculation unit in advance, the transmission data length calculation unit retains the advantages of the conventional device and the transmission data processing method. The effect that the processing speed of the calculation unit can be improved is obtained.

【図面の簡単な説明】[Brief description of the drawings]

【図1】 本発明の一実施形態による通信プロトコル処
理装置の構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of a communication protocol processing device according to an embodiment of the present invention.

【図2】 本発明の一実施形態による通信プロトコル処
理方法の動作を示すフロー図。
FIG. 2 is a flowchart showing an operation of a communication protocol processing method according to an embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1…送信データ長計算部 2…データエンコード部 3…コンピュータ 4…ネットワーク 11、12、・・・1N…入力データ 21…送信データ DESCRIPTION OF SYMBOLS 1 ... Transmission data length calculation part 2 ... Data encoding part 3 ... Computer 4 ... Network 11,12 ... 1N ... Input data 21 ... Transmission data

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B089 GA04 KA11 KE01 KE08 5K030 GA03 GA06 HB18 HB28 JA05 KA01 KA03 KA05 KA13 LE12 MB11 5K034 AA02 AA11 CC01 FF01 FF02 HH05 HH12 HH13 HH63 MM14 MM35  ──────────────────────────────────────────────────続 き Continued on the front page F term (reference) 5B089 GA04 KA11 KE01 KE08 5K030 GA03 GA06 HB18 HB28 JA05 KA01 KA03 KA05 KA13 LE12 MB11 5K034 AA02 AA11 CC01 FF01 FF02 HH05 HH12 HH13 HH63 MM14 MM35

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 入力された複数のデータをコンピュータ
から1つの送信データとしてネットワークを介して送信
するときのデータ構造に関する通信プロトコル処理装置
であって、 前記複数のデータのうち、判明している固定長部分のデ
ータ長を予め合計して記憶する記憶手段と、 前記複数のデータをエンコードするデータエンコード部
と、 前記複数のデータがエンコードされて判明したデータ長
を計算する送信データ長計算部と、 前記複数のデータのデータ長の合計値を計算する合計値
計算手段と、 前記記憶された固定長部分のデータ長の合計値と前記計
算結果のデータ長の合計値とを加算する加算手段と、 前記加算されたデータ長の合計値を送信データのヘッダ
部に書き込む書き込み手段とを有することを特徴とする
通信プロトコル処理装置。
1. A communication protocol processing device relating to a data structure when a plurality of input data are transmitted from a computer as one transmission data via a network, wherein the fixed protocol which is known among the plurality of data is provided. A storage unit that previously totals and stores the data lengths of the long parts, a data encoding unit that encodes the plurality of data, a transmission data length calculation unit that calculates a data length that is determined by encoding the plurality of data, Total value calculating means for calculating the total value of the data lengths of the plurality of data, and adding means for adding the total value of the data length of the stored fixed-length portion and the total value of the data length of the calculation result, Writing means for writing the total value of the added data lengths into a header part of transmission data. apparatus.
【請求項2】 入力された複数のデータをコンピュータ
から1つの送信データとしてネットワークを介して送信
するときのデータ構造に関する通信プロトコル処理方法
であって、 前記複数のデータのうち、判明している固定長部分のデ
ータ長を予め合計して記憶する過程と、 前記複数のデータをエンコードする過程と、 前記複数のデータがエンコードされて判明したデータ長
を計算する過程と、 前記複数のデータのデータ長の合計値を計算する過程
と、 前記記憶された固定長部分のデータ長の合計値と前記計
算結果のデータ長の合計値とを加算する過程と、 前記加算されたデータ長の合計値を送信データのヘッダ
部に書き込む過程とを有することを特徴とする通信プロ
トコル処理方法。
2. A communication protocol processing method relating to a data structure when a plurality of input data are transmitted from a computer as one transmission data via a network, wherein the fixed data which is known among the plurality of data is provided. Storing the data lengths of the long parts in advance, storing the plurality of data, calculating the data length determined by encoding the plurality of data, and calculating the data length of the plurality of data. Calculating the sum of the data lengths, adding the sum of the data lengths of the stored fixed-length portions and the sum of the data lengths of the calculation results, and transmitting the sum of the added data lengths. Writing the data into a header portion of the data.
JP7864299A 1999-03-23 1999-03-23 Method and device for communication protocol processing Pending JP2000276422A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7864299A JP2000276422A (en) 1999-03-23 1999-03-23 Method and device for communication protocol processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7864299A JP2000276422A (en) 1999-03-23 1999-03-23 Method and device for communication protocol processing

Publications (1)

Publication Number Publication Date
JP2000276422A true JP2000276422A (en) 2000-10-06

Family

ID=13667531

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7864299A Pending JP2000276422A (en) 1999-03-23 1999-03-23 Method and device for communication protocol processing

Country Status (1)

Country Link
JP (1) JP2000276422A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109416669A (en) * 2016-11-07 2019-03-01 株式会社日立制作所 Computer, computer system and data volume method for limiting

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109416669A (en) * 2016-11-07 2019-03-01 株式会社日立制作所 Computer, computer system and data volume method for limiting
CN109416669B (en) * 2016-11-07 2022-04-19 株式会社日立制作所 Computer, computer system and data amount limiting method

Similar Documents

Publication Publication Date Title
US20210200437A1 (en) Neural network data processing apparatus, method and electronic device
JPH02140863A (en) Text transmission system for terminal side editor in distributed type editor
CN113641604A (en) Data transmission method and system
EP0844566A1 (en) Interface apparatus for adapting data width to system bus width
JP2000276422A (en) Method and device for communication protocol processing
CN116107959A (en) Caching method, image transmission method, electronic device and storage medium
JP4212508B2 (en) Packet generator
CN110769049B (en) Power distribution terminal and SOE data uploading method thereof
US7061649B2 (en) Page data processor, page data processing method and program
JPS6335139B2 (en)
JP4442483B2 (en) Print data processing apparatus and printer
JP3009434B2 (en) Data compression device
JP3661617B2 (en) Printing system
JPH01106573A (en) Data communication equipment
CN113490292B (en) Communication processing method and electronic equipment
US20230004533A1 (en) Hybrid intermediate stream format
JP3909730B2 (en) Server computer data transmission method, recording medium, and server computer
CN101562604B (en) Non-cache model matching method based on message flow data
JPH0918540A (en) Data transfer system
JPS634216B2 (en)
CN118012787A (en) Artificial intelligence accelerator and operation method thereof
JPH05265819A (en) Data compressing system
CN117421050A (en) Ultra-low delay data stream parallel transmission method and system based on instruction scheduling
CN117171064A (en) Hash operation system and method
JP2005141677A (en) Communication library for ic card and the ic card

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030729