JP2008203959A - Serialization method in data transfer, data format and data transfer device - Google Patents
Serialization method in data transfer, data format and data transfer device Download PDFInfo
- Publication number
- JP2008203959A JP2008203959A JP2007036363A JP2007036363A JP2008203959A JP 2008203959 A JP2008203959 A JP 2008203959A JP 2007036363 A JP2007036363 A JP 2007036363A JP 2007036363 A JP2007036363 A JP 2007036363A JP 2008203959 A JP2008203959 A JP 2008203959A
- Authority
- JP
- Japan
- Prior art keywords
- data
- unit
- serialization
- communication
- storage unit
- 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
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
Description
本発明は、データの集合体であるデータオブジェクトをシリアライズしてデータ転送する場合におけるシリアライズ方法、データフォーマット及びデータ転送装置に関する。 The present invention relates to a serialization method, a data format, and a data transfer apparatus in a case where a data object that is an aggregate of data is serialized and data is transferred.
一般に、データ転送装置においては、データの集合体であるデータオブジェクト(例えばソフトウエアで処理可能なデータ形式で記憶部に格納されている)をシリアライズ(通信路で送受信可能なデータ形式にする処理)して送信側装置から通信データを通信路を介して受信側装置に送信し、受信側装置にてストラクチャ(デシリアライズ:通信データをソフトウエアで処理可能なデータ形式にする処理)してデータオブジェクトを復元する。そして、このようなデータ転送装置において通信時間を短縮化することが求められている。 In general, in a data transfer device, a data object that is a collection of data (for example, stored in a storage unit in a data format that can be processed by software) is serialized (processing that converts the data format into a data format that can be transmitted and received via a communication path) Then, the communication data is transmitted from the transmission side device to the reception side device via the communication path, and the reception side device has a structure (deserialization: processing for converting the communication data into a data format that can be processed by software) and the data object. To restore. In such a data transfer device, it is required to shorten the communication time.
そこで、下記特許文献1ではシリアライズ後の通信データを圧縮することでクライアント端末とサーバとの間のデータ転送のレスポンスを向上させるデータ転送方法が開示されている。
Therefore,
そこで、本発明は、データ転送の際にシリアライズの対象となる各データについて、省略可否情報に基づいて省略が指示されたデータ自体のシリアライズを省略することにより、通信データに含まれる情報量を削減することで、通信データサイズを縮小し、通信時間を短縮化できるデータ転送におけるシリアライズ方法、データフォーマット及びデータ転送装置を提供することを目的とする。 Therefore, the present invention reduces the amount of information included in communication data by omitting serialization of the data itself that has been instructed to be omitted based on omission availability information for each data to be serialized during data transfer. Thus, an object of the present invention is to provide a serialization method, a data format, and a data transfer device in data transfer that can reduce the communication data size and shorten the communication time.
本発明のその他の目的や新規な特徴は後述の実施の形態において明らかにする。 Other objects and novel features of the present invention will be clarified in embodiments described later.
上記目的を達成するために、本発明のある態様のシリアライズ方法は、データの集合体であるデータオブジェクトのデータ転送の際に、シリアライズの対象となる各データに対し、省略可否情報に基づいて省略が指示されたデータを省略してシリアライズすることを特徴としている。 In order to achieve the above object, the serialization method according to an aspect of the present invention omits each data to be serialized based on omission availability information when transferring data of a data object that is an aggregate of data. Is characterized by omitting data instructed to serialize.
この態様のシリアライズ方法によれば、省略が指示されたデータ自体のシリアライズを省略して、通信データに含まれる情報量を削減することで、通信データサイズを縮小可能であり、ひいては通信時間の短縮を図ることができる。 According to the serialization method of this aspect, it is possible to reduce the communication data size by omitting serialization of the data itself instructed to be omitted and reducing the amount of information included in the communication data, thereby reducing the communication time. Can be achieved.
本発明の別の態様のデータフォーマットは、データの集合体であるデータオブジェクトのシリアライズの際に、各データについて省略の有無を省略フラグビットで識別することを特徴としている。 A data format according to another aspect of the present invention is characterized in that, when serializing a data object that is a collection of data, whether or not each data is omitted is identified by an omitted flag bit.
この態様のデータフォーマットによれば、データ転送の際にシリアライズの対象となる各データについて省略の有無をそれぞれ省略フラグビット(例えば1ビット)として送信側が付加することで、受信側で各データが転送されてきたのか、あるいは省略されたのかを判断することが可能である。 According to the data format of this aspect, each data is transferred on the receiving side by adding, as the abbreviated flag bit (for example, 1 bit), whether the data to be serialized at the time of data transfer is omitted or not. It is possible to determine whether it has been done or omitted.
本発明の別の態様のデータフォーマットは、データの集合体であるデータオブジェクトのシリアライズの際に、各データをN個(N:2以上の整数)単位に区切り、それぞれの区切りの先頭にN個のデータに関する省略フラグビットの集合である省略フラグブロックを付加することを特徴としている。 In the data format of another aspect of the present invention, when serializing a data object that is a collection of data, each data is divided into units of N (N: an integer of 2 or more), and N pieces are prefixed to each piece. An omission flag block, which is a set of omission flag bits for the data, is added.
本発明の別の態様のデータ転送装置は、データの集合体であるデータオブジェクトを記憶した送信側記憶部と、前記送信側記憶部のデータオブジェクトをシリアライズするシリアライズ部と、前記シリアライズ部で作成された通信データを送信するデータ送信部とを有する送信側装置と、
通信路を介して前記データ送信部から送信された通信データを受信するデータ受信部と、前記データ受信部で受信された通信データをストラクチャするストラクチャ部と、前記ストラクチャ部でスクラクチャされたデータオブジェクトを記憶する受信側記憶部とを有する受信側装置とを備え、
前記シリアライズ部は、前記送信側記憶部から各データとももに総データリスト及び省略可否情報を受け、前記省略可否情報に基づいて省略が指示されたデータを省略してシリアライズし、
前記ストラクチャ部は、前記送信側記憶部の総データリストと同じ総データリストを前記受信側記憶部から受けて前記総データリストのデータ項目に関連付けてスクラクチャした各データを前記受信側記憶部に出力することを特徴としている。
A data transfer device according to another aspect of the present invention is created by a transmission-side storage unit that stores data objects that are aggregates of data, a serialization unit that serializes data objects in the transmission-side storage unit, and the serialization unit A transmission side device having a data transmission unit for transmitting the communication data,
A data receiving unit that receives communication data transmitted from the data transmitting unit via a communication path, a structure unit that structures communication data received by the data receiving unit, and a data object that is structured by the structure unit. A receiving side device having a receiving side storage unit for storing,
The serialization unit receives a total data list and omissibility information for each data from the transmission side storage unit, omits data instructed to be omitted based on the omission availability information, and serializes,
The structure unit receives the same total data list as the total data list of the transmission-side storage unit from the reception-side storage unit, and outputs each data structured in association with the data items of the total data list to the reception-side storage unit It is characterized by doing.
本発明によって、通信データサイズを縮小することができ、通信時間を短縮化することが可能となる。 According to the present invention, the communication data size can be reduced, and the communication time can be shortened.
シリアライズは、例えばN個のデータを1つの単位としてその先頭に省略フラグブロックを付加するため、通信データの転送が全部完了しなくても、受信側は受信が完了した部分から随時ストラクチャ処理を行うことができる。 In serialization, for example, N data is used as one unit and an abbreviated flag block is added to the head of the data. Therefore, even if the transfer of communication data is not completely completed, the receiving side performs structure processing as needed from the part where reception has been completed. be able to.
以下、本発明を実施するための最良の形態として、データ転送におけるシリアライズ方法、データフォーマット及びデータ転送装置の実施の形態を図面に従って説明する。 Hereinafter, as a best mode for carrying out the present invention, embodiments of a serialization method, a data format, and a data transfer device in data transfer will be described with reference to the drawings.
図1は、本発明の実施の形態であって、データ転送装置の全体構成を示し、図2はその場合におけるシリアライズ方法のデータフォーマットの例を示す。 FIG. 1 shows an overall configuration of a data transfer apparatus according to an embodiment of the present invention, and FIG. 2 shows an example of a data format of a serialization method in that case.
データ転送装置は、送信側装置1と受信側装置5とを備え、送信側装置1のデータ送信部4と、受信側装置5のデータ受信部8はデジタル通信が可能な通信路(ネットワーク)を介して接続されている。データ送信部4とデータ受信部8の間の通信は、TCP/IP等の信頼性のあるプロトコルを用いて通信内容にエラーが生じないものとする。
The data transfer device includes a transmission-
送信側装置1は、データの集合体であるデータオブジェクトをソフトウエアで処理可能なデータ形式で記憶した送信側記憶部2と、送信側記憶部2のデータオブジェクトの各データを、通信路で送受信可能なデータ形式にシリアライズするシリアライズ部3と、シリアライズ部3で作成された通信データを送信するデータ送信部4とを有している。
The
ここで、送信側記憶部2からは、データオブジェクト内でシリアライズの対象となる全てのデータ項目をリスト化した総データリスト11と実際にシリアライズする各データ12(総データリストの各データ項目に対応した数値情報や文字記号情報)と総データリスト11に対する省略可否情報13をシリアライズ部3に出力して、シリアライズ部3に送信を依頼する。シリアライズ部3は図2のデータフォーマットにしたがって、各データ12を直列に並べる。シリアライズ部3はシリアライズした結果を通信データ14としてデータ送信部4に送る。
Here, from the transmission
図2に本発明の実施の形態におけるシリアライズ方法のデータフォーマットを示す。このデータフォーマットは、シリアライズ部3でのシリアライズの際に各データを8個単位に区切り、それぞれの区切りの先頭に8個のデータに関する省略フラグビットとして、1バイト(8ビット)の省略フラグブロックを付加する。すなわち、図1の送信側記憶部2はシリアライズ部3に総データリスト11及び省略可否情報13を送り、各データ12についてシリアライズを省略するかしないかの指定を付加する。データのシリアライズを省略する場合は、対応する1ビットの省略フラグビットを1に設定し、データのシリアライズを省略しない場合は、データを直列に並べて対応する省略フラグビットを0に設定する。この省略フラグビットの設定の仕方は図3のフローチャートに従うものとする。なお、図3のフローチャートの「通信データ列の後尾に省略フラグブロックを追加する」ステップは、1回目は前に通信データ列が無いので省略フラグブロックが先頭になる。また、Nは自然数であって、8個のデータからなる通信データ列の何番目のデータであるかを示す。
FIG. 2 shows a data format of the serialization method according to the embodiment of the present invention. In this data format, each data is divided into 8 units at the time of serialization in the
受信側装置5は、通信路を介してデータ送信部4から送信された通信データを受信するデータ受信部8と、データ受信部8で受信された通信データ15をストラクチャ(デシリアライズ)して通信データ15をソフトウエアで処理可能なデータ形式にする処理するストラクチャ部7と、ストラクチャ部7でスクラクチャ(復元)されたデータオブジェクトを記憶する受信側記憶部6とを有している。
The receiving-
受信側記憶部6はストラクチャ部7に総データリスト16(総データリスト11と同じものを受信側でも共有している)を送り、ストラクチャ部7にストラクチャ処理を依頼する。ストラクチャ部7は、受信した通信データ15を先頭から読み取り、対応する省略フラグビットが1であればそのデータのストラクチャを行わず(省略フラグビットが1のデータは送信側で省略されているのでストラクチャされない)、対応する省略フラグビットが0であればそのデータのストラクチャを行い、各データ17を総データリスト16のデータ項目と関連付けてストラクチャして受信側記憶部6にソフトウエアで処理可能なデータ形式のデータオブジェクトとして格納する。その省略フラグビットの判断方法は図4のフローチャートに従うものとする。但し、図4のMは自然数であって、総データのうちの何番目であるかを示す。また、Nは自然数であって、8個のデータからなる通信データ列の何番目のデータであるかを示す。
The receiving
図5にデータを10個持つデータオブジェクトをシリアライズする場合の具体例を示す。D1からD10の10個のデータのうち、D3,D4,D5,D9の省略が可能な場合、図5のようにD3,D4,D5,D9のデータを含まない通信データが生成される。つまり、シリアライズの際に、8個単位で区切られたデータD1〜D8のうち、D3,D4,D5を省略してシリアライズ処理を行う。但し、省略フラグブロックには8個のデータについての省略有無がそれぞれ1ビットの省略フラグビットで表示されている。 FIG. 5 shows a specific example in the case of serializing a data object having 10 pieces of data. In the case where it is possible to omit D3, D4, D5, and D9 among the ten pieces of data from D1 to D10, communication data that does not include the data of D3, D4, D5, and D9 is generated as shown in FIG. That is, during serialization, D3, D4, and D5 are omitted from the data D1 to D8 divided in units of eight, and serialization processing is performed. However, in the omission flag block, whether or not omission is performed for the eight data is indicated by a 1-bit omission flag bit.
図5のようにD1からD10の10個のデータを持つデータオブジェクトの総データリストの具体例を図6に示す。総データリストはD1からD10のデータ項目を順番にリストしたものである。同じ総データリストを送信側装置と受信側装置で共用することで、受信側装置では省略されたデータがどのデータ項目に対応するかを認識し、かつストラクチャされたデータがどのデータ項目に対応するかを認識することができる。つまり、転送が必要とされるデータD1,D2,D6,D7,D8,D10を有するデータオブジェクトが生成されて受信側記憶部に格納されることになる。 FIG. 6 shows a specific example of the total data list of data objects having 10 data items D1 to D10 as shown in FIG. The total data list is a list of data items D1 to D10 in order. By sharing the same total data list between the sending device and the receiving device, the receiving device recognizes which data item corresponds to the omitted data, and the structured data corresponds to which data item. Can be recognized. That is, a data object having data D1, D2, D6, D7, D8, and D10 that needs to be transferred is generated and stored in the receiving-side storage unit.
この実施の形態によれば、次の通りの効果を得ることができる。 According to this embodiment, the following effects can be obtained.
(1) データオブジェクトを送信側装置1のシリアライズ部3でシリアライズする際にデータオブジェクトに含まれる全てのデータを直列に並べて通信データ列を作成するのではなく、必ずしも送る必要のないデータは省略して並べている。この省略の有無を示す省略フラグビットを各データ毎に有する省略フラグブロックを付加した通信データとすることで、受信側装置5が正しく通信データをストラクチャできるようにしている。
(1) When a data object is serialized by the
(2) この結果、送信側装置1と受信側装置5とからなるデータ転送装置において、データオブジェクトのシリアライズ時の通信データサイズを縮小し、通信時間を短縮化することが可能となる。
(2) As a result, in the data transfer device composed of the
(3) 送信側装置1におけるシリアライズは、N個(本例では8個)のデータを1つの単位としてその先頭に省略フラグブロックを付加するため、通信データの転送が全部完了しなくても、受信側装置5においては受信が完了した部分からストラクチャ部7により随時ストラクチャ処理を行うことができる。
(3) The serialization in the
以上本発明の実施の形態について説明してきたが、本発明はこれに限定されることなく請求項の記載の範囲内において各種の変形、変更が可能なことは当業者には自明であろう。 Although the embodiments of the present invention have been described above, it will be obvious to those skilled in the art that the present invention is not limited to these embodiments, and various modifications and changes can be made within the scope of the claims.
1 送信側装置
2 送信側記憶部
3 シリアライズ部
4 データ送信部
5 受信側装置
6 受信側記憶部
7 ストラクチャ部
8 データ受信部
11,16 総データリスト
12,17 各データ
13 省略可否情報
14,15 通信データ
DESCRIPTION OF
Claims (4)
通信路を介して前記データ送信部から送信された通信データを受信するデータ受信部と、前記データ受信部で受信された通信データをストラクチャするストラクチャ部と、前記ストラクチャ部でスクラクチャされたデータオブジェクトを記憶する受信側記憶部とを有する受信側装置とを備え、
前記シリアライズ部は、前記送信側記憶部から各データとももに総データリスト及び省略可否情報を受け、前記省略可否情報に基づいて省略が指示されたデータを省略してシリアライズし、
前記ストラクチャ部は、前記送信側記憶部の総データリストと同じ総データリストを前記受信側記憶部から受けて前記総データリストのデータ項目に関連付けてスクラクチャした各データを前記受信側記憶部に出力することを特徴とするデータ転送装置。 A transmission-side storage unit that stores data objects that are aggregates of data, a serialization unit that serializes data objects in the transmission-side storage unit, and a data transmission unit that transmits communication data created by the serialization unit A transmitting device;
A data receiving unit that receives communication data transmitted from the data transmitting unit via a communication path, a structure unit that structures communication data received by the data receiving unit, and a data object that is structured by the structure unit. A receiving side device having a receiving side storage unit for storing,
The serialization unit receives a total data list and omissibility information for each data from the transmission side storage unit, omits data instructed to be omitted based on the omission availability information, and serializes,
The structure unit receives the same total data list as the total data list of the transmission-side storage unit from the reception-side storage unit, and outputs each data structured in association with the data items of the total data list to the reception-side storage unit A data transfer device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007036363A JP2008203959A (en) | 2007-02-16 | 2007-02-16 | Serialization method in data transfer, data format and data transfer device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2007036363A JP2008203959A (en) | 2007-02-16 | 2007-02-16 | Serialization method in data transfer, data format and data transfer device |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2008203959A true JP2008203959A (en) | 2008-09-04 |
Family
ID=39781437
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2007036363A Pending JP2008203959A (en) | 2007-02-16 | 2007-02-16 | Serialization method in data transfer, data format and data transfer device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2008203959A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016121403A1 (en) * | 2015-01-30 | 2016-08-04 | Ricoh Company, Ltd. | Information processing apparatus, image processing system, and program |
WO2022230809A1 (en) | 2021-04-30 | 2022-11-03 | 株式会社ソフトギア | Serializing method, deserializing method, information processing program, information processing device, and communication system |
-
2007
- 2007-02-16 JP JP2007036363A patent/JP2008203959A/en active Pending
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016121403A1 (en) * | 2015-01-30 | 2016-08-04 | Ricoh Company, Ltd. | Information processing apparatus, image processing system, and program |
WO2022230809A1 (en) | 2021-04-30 | 2022-11-03 | 株式会社ソフトギア | Serializing method, deserializing method, information processing program, information processing device, and communication system |
JP2022171464A (en) * | 2021-04-30 | 2022-11-11 | 株式会社ソフトギア | Serialization method, deserialization method, information processing program, information processing apparatus, and communication system |
JP7253172B2 (en) | 2021-04-30 | 2023-04-06 | 株式会社ソフトギア | Serialization method, deserialization method, information processing program, information processing apparatus, and communication system |
KR20230086802A (en) | 2021-04-30 | 2023-06-15 | 소프트기어 가부시키가이샤 | Serialization method, reverse realization method, information processing program, information processing device and communication system |
KR102628135B1 (en) * | 2021-04-30 | 2024-01-23 | 소프트기어 가부시키가이샤 | Serialization method, counter-realization method, information processing program, information processing device, and communication system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9996488B2 (en) | I3C high data rate (HDR) always-on image sensor 8-bit operation indicator and buffer over threshold indicator | |
CN108512785B (en) | Data transmission protocol method | |
TW201005541A (en) | Transmission device and data extended transmission method | |
US20210089492A1 (en) | Rdma data sending and receiving methods, electronic device, and readable storage medium | |
WO2021147050A1 (en) | Pcie-based data transmission method and apparatus | |
CN114499993A (en) | High-reliability safe transmission and control system and method based on one-way optical gate | |
KR20110121597A (en) | Apparatus and method of encoding and decoding control information in a medium access control protocol data unit | |
JP2008203959A (en) | Serialization method in data transfer, data format and data transfer device | |
US11636061B2 (en) | On-demand packetization for a chip-to-chip interface | |
US8750423B2 (en) | Receiving apparatus, data transfer apparatus, data receiving method and non-transitory computer readable recording medium | |
WO2022062946A1 (en) | Data coding method, data decoding method, and communication device | |
WO2018133415A1 (en) | Method and device for coding and decoding data of physical coding sublayer and storage medium | |
CN109600795B (en) | Processing method of A-MSDU subframe and wireless network access device | |
KR100966925B1 (en) | Packet signal processing architecture | |
JP4581925B2 (en) | Data transfer apparatus and data transfer method | |
JPH02262747A (en) | Data communication system | |
JP6398241B2 (en) | Packet generating apparatus and program | |
WO2020232683A1 (en) | Pipeline hardware compression-based system and method | |
US8175171B2 (en) | Transmitter, receiver, transmitting method, receiving method, variable-length serial burst data transfer system, semiconductor device and hybrid semiconductor device | |
CN114172897B (en) | Method and system for transmitting files of PC (personal computer) end and Android end | |
WO2017189206A1 (en) | I3c high data rate (hdr) always-on image sensor 8-bit operation indicator and buffer over threshold indicator | |
WO2023238205A1 (en) | Communication device, communication method, and program | |
JP2013219601A (en) | Serial data transmission system | |
CN109213710A (en) | HSSI High-Speed Serial Interface device and its data transmission method | |
CN117118563A (en) | Low-overhead wireless transmission adaptation method based on serial port communication and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20090601 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20090610 |
|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20091021 |