JPH04150244A - Communication processor - Google Patents
Communication processorInfo
- Publication number
- JPH04150244A JPH04150244A JP2271126A JP27112690A JPH04150244A JP H04150244 A JPH04150244 A JP H04150244A JP 2271126 A JP2271126 A JP 2271126A JP 27112690 A JP27112690 A JP 27112690A JP H04150244 A JPH04150244 A JP H04150244A
- Authority
- JP
- Japan
- Prior art keywords
- data
- reception buffer
- buffer
- reception
- 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.)
- Pending
Links
- 238000004891 communication Methods 0.000 title claims description 15
- 238000012545 processing Methods 0.000 claims description 18
- 230000003247 decreasing effect Effects 0.000 abstract 1
- 230000005540 biological transmission Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 4
- 230000007423 decrease Effects 0.000 description 2
- 239000003795 chemical substances by application Substances 0.000 description 1
Abstract
Description
【発明の詳細な説明】
産業上の利用分野
本発明(よ データの送受信を行なう通信処理装置に関
するものであり、特にデータを受信する場合のバッファ
管理に関するものであも
従来の技術
従来 通信処理装置でデータを受信すると叡データをす
べて受信しないとデータ長がわからない場合にC友
実際に受信するデータ長にかがゎら哄 受信する可能性
のある最大長のデータに対応した受信バッファ領域を用
意し 最大長の受信バッファを用いてデータを受信して
処理しなければならなt〜
たとえは 受信データのフレーム構成として第3図に示
すCCITT(国際電信電話諮問委員会)勧告Q 92
1で規定されているデータリンク相互間通信のためのフ
レーム構成があも この7L/−ム構成では情報フィー
ルドの長さが最大260オクテツトとなっていて、可能
なフレームの最大長は268オクテツトとなム また
データ長が最小の場合は情報フィールドがない場合があ
り、フレーム長は7オクテツトとなも
このように受信するデータ長が最大268オクテツトで
最小フオクテットのようへ 受信データ長に大小の差が
ある場合で&友 7オクテツトのデータの場合でも26
8オクテツトの受信バッファを用いてデータを受信り、
268オクテツトの受信バッファでデータを処理し
なければならな1.%このようく 268オクテツトの
バッファに7オクテツトのデータを受信した場合でJ友
バッファ内に261オクテツトの未使用領域が発生
することになも
以上のように 受信する可能性のある最大長のデータに
対応した受信バッファを用いて処理を行なう通信処理装
置では 受信バッファ内に多くの未使用領域が発生し
バッファ領域の使用効率が低下してしまう。[Detailed Description of the Invention] Industrial Field of Application The present invention relates to a communication processing device for transmitting and receiving data, and in particular relates to buffer management when receiving data. If you receive data with
Concerning the actual data length to be received, you must prepare a receive buffer area that corresponds to the maximum length of data that may be received, and use the maximum length receive buffer to receive and process the data. ~ For example, the frame structure of received data is shown in Figure 3 as CCITT (International Telegraph and Telephone Consultative Committee) Recommendation Q92.
In this 7L/- frame configuration, the maximum length of the information field is 260 octets, and the maximum possible frame length is 268 octets. Namu again
When the data length is the minimum, there may be no information field, and the frame length is 7 octets.In this way, the maximum received data length is 268 octets, and the minimum octet.There are differences in the received data length. In the case & friend Even in the case of 7 octets of data 26
Receive data using an 8-octet receive buffer,
1. Data must be processed in a 268-octet receive buffer. %If 7 octets of data are received in a 268 octet buffer, there will be 261 octets of unused space in the buffer.As shown above, the maximum length of data that can be received is In communication processing equipment that performs processing using a receive buffer that supports
Buffer area usage efficiency decreases.
発明が解決しようとする課題
上記のようく 従来の通信処理装置では受信する可能性
のある最大長の受信バッファを用いて処理を行なうた数
実際の受信データ長が短い場合に3表 受信バッファ
内に多くの未使用領域が存在するのでバッファ領域の使
用効率が低下し 多くのバッファ領域を必要としていた
本発明法 従来の通信処理装置が有していた問題点に鑑
へ 受信するデータの種別によって、受信に使用するバ
ッファをデータ種別に対応したデータ長の受信バッファ
に切り換え 受信バッファ内の未使用領域を減少させて
受信バッファ領域の使用効率を上げることが可能な装置
を提供することを目的とするものであa
課題を解決するための手段
本発明は 前記の目的を達成するためへ 受信するデー
タの種別を判断するデータ種別判断部と、データ種別に
対応した受信バッファの情報を記憶する受信バッファ情
報記憶部と、前記データ種別判断部によって判断された
データ種別と前記受信バッファ情報記憶部に記憶されて
いるデータ種別および受信バッファの情報によって受信
データを格納するバッファを切り換える受信バッファ切
り換え部とを備えたことを特徴とする通信処理装置を構
成すム
作用
本発明の通信処理装置は前記の構成により、データを受
信した場合、データ種別判断部によって受信したデータ
の種別を判断し この情報を受信バッファ切り換え部で
受は取り、受信バッファアドレス情報記憶部に記憶され
ているデータ種別とデータ種別に対応する受信バッファ
の情報を参照することによって、データ種別に対応した
受信バッファを決定すム
以上のようにして、受信するデータの種別によって受信
に使用するバッファデータ種別に対応したデータ長の受
信バッファに切り換えることが可能となも
実施例
以下く 本発明の一実施例を図面を参照しながら示す。Problems to be Solved by the Invention As stated above, the number of songs that can be processed using the maximum length reception buffer that can be received by a conventional communication processing device Table 3 When the actual reception data length is short The method of the present invention takes into account the problems that conventional communication processing devices have, and the efficiency of using the buffer area decreases due to the presence of a large amount of unused area in the area. , an object of the present invention is to provide a device that can switch the buffer used for reception to a reception buffer with a data length corresponding to the data type, reduce the unused area in the reception buffer, and increase the usage efficiency of the reception buffer area. A Means for Solving the Problems The present invention has the following features: A data type determining section that determines the type of data to be received; and a receiving section that stores receive buffer information corresponding to the data type. a buffer information storage unit; and a reception buffer switching unit that switches a buffer for storing received data based on the data type determined by the data type determination unit, the data type stored in the reception buffer information storage unit, and information on the reception buffer. The communication processing device of the present invention has the above-described configuration, and when data is received, the data type determining section determines the type of the received data, and this information is The reception buffer switching unit receives the data, and determines the reception buffer corresponding to the data type by referring to the data type stored in the reception buffer address information storage unit and the information of the reception buffer corresponding to the data type. According to the type of data to be received, it is possible to switch to a reception buffer with a data length corresponding to the type of buffer data used for reception. show.
第1図は本実施例の概略構成を示すもので、通信処理装
置1は実際のデータ送受信を行なうデータ送受信インタ
フェース部11、受信したデータを調べてデータ種別を
判断するデータ種別判断部12、データ種別とデータ種
別に対応したバッファの情報を記憶している受信バッフ
ァ情報記憶部13、前記データ種別判断部12によって
決められたデータ種別情報と前記受信バッファ情報記憶
部13に記憶されているデータ種別とデータ種別に対応
したバッファの情報を参照して受信したデータを格納す
る受信バッファを決定する受信バッファ切り換え部14
、前記データ送受信インタフェース部11で受信したデ
ータを前記受信バッファ切り換え部14によって決定さ
れた受信バッファへ格納して受信データに対する処理を
行なI−\また受信バッファの使用状況によって前記受
信バッファ情報記憶部13にデータ種別に対応した受信
バッファのアドレスを記憶させるデータ送受信処理部1
5から構成されも
次善へ 本実施例の動作について説明すも 受信バッフ
ァ情報記憶部13にζよ データ送受信処理部15によ
ってデータ種別に対応する受信バッファの情報が記憶さ
れていも データ送受信インタフェース部11でデータ
を受信し始めると データ種別判断部12では受信デー
タを調べてデータ種別を判断し 受信バッファ切り換え
部14に通知すも 受信バッファ切り換え部14ではデ
ータ種別判断部12から受は取ったデータ種別と受信バ
ッファ情報記憶部13に記憶されているデータ。FIG. 1 shows a schematic configuration of this embodiment, in which a communication processing device 1 includes a data transmission/reception interface unit 11 that performs actual data transmission and reception, a data type determination unit 12 that examines received data and determines the data type, and a data type determination unit 12 that examines received data and determines the data type. A reception buffer information storage unit 13 that stores information on the buffer corresponding to the type and data type, and data type information determined by the data type determination unit 12 and the data type stored in the reception buffer information storage unit 13. and a reception buffer switching unit 14 that determines a reception buffer in which the received data is to be stored by referring to buffer information corresponding to the data type.
, the data received by the data transmission/reception interface section 11 is stored in the reception buffer determined by the reception buffer switching section 14, and the reception data is processed. Data transmission/reception processing unit 1 that causes unit 13 to store the address of the reception buffer corresponding to the data type
Although the operation of this embodiment will be explained below, even if the receive buffer information corresponding to the data type is stored in the receive buffer information storage section 13 by the data transmit/receive processing section 15, the data transmit/receive interface section When data is started to be received in step 11, the data type determining unit 12 examines the received data, determines the data type, and notifies the receiving buffer switching unit 14.The receiving buffer switching unit 14 receives the received data from the data type determining unit 12. Type and data stored in the reception buffer information storage unit 13.
種別とデータ種別に対応した受信バッファの情報を参照
して受信バッファを決定し データ送受信処理部15に
通知すム データ送受信処理部15では受信バッファ切
り換え部14によって決定された受信バッファの領域に
データ送受信インタフェース部11から受は取った受信
データを格納す次!ζ 本実施例の具体的な動作につい
て説明すも 第2図は本実施例の通信処理装置で受信す
るデータのフレーム構成の一例を示すものであもここで
はオクテツト2の制御フィールドを調べることによって
データの種別が判定でき、データ種別としては情報フレ
ームと監視フレームがあり、情報フレームのデータ長は
最大260オクテツトで監視フレームのデータ長は最大
8オクテツトであも また データ送受信処理部15は
データ長が8オクテツトの受信バッファとデータ長が2
60オクテツトの受信バッファを有していて、受信バッ
ファ情報記憶部13には監視フレームには8オクテツト
の受信バッファのアドレス 情報フレームには260オ
クテツトの受信バッファのアドレスを対応させて記憶さ
れていも データ送受信インタフェース部11でデータ
を受信し始めるとデータ種別判断部12は受信データの
オクテツト2を調べることによってデータ種別が監視フ
レームであるか情報フレームであるかを判断し 受信バ
ッファ切り換え部14に通知すも 受信バッファ切り換
え部14ではデータ種別判断部12がら受は取ったデー
タ種別と受信バッファ情報記憶部13に記憶されている
情報か収 データ受信に使用するバッファを受信データ
のデータ種別が監視フレームであれば8オクテツトの受
信バッファ、データ種別が情報フレームであれば260
オクテツトの受信バッファに決定し データ送受信処理
部15に通知すム データ送受信処理部15では受信バ
ッファ切り換え部14から受は取った受信バッファの領
域へデータ送受信インタフェース部11から受は取った
受信データを格納し 受信データに対する処理を行なう
。The data transmission and reception processing section 15 stores the data in the reception buffer area determined by the reception buffer switching section 14. Next, the received data received from the sending/receiving interface section 11 is stored. ζ Although the specific operation of this embodiment will be explained, Figure 2 shows an example of the frame structure of data received by the communication processing device of this embodiment. The data type can be determined, and the data types include information frames and monitoring frames, and the data length of the information frame is up to 260 octets and the data length of the monitoring frame is up to 8 octets. has a receive buffer of 8 octets and a data length of 2
It has a 60-octet reception buffer, and the reception buffer information storage unit 13 stores the address of the 8-octet reception buffer for the monitoring frame and the address of the 260-octet reception buffer for the information frame. When the transmitting/receiving interface unit 11 starts receiving data, the data type determining unit 12 determines whether the data type is a monitoring frame or an information frame by examining octet 2 of the received data, and notifies the receiving buffer switching unit 14 of the data type. Also, the reception buffer switching unit 14 determines whether the data type determination unit 12 receives the received data and the information stored in the reception buffer information storage unit 13. 8 octet reception buffer if available, 260 octets if data type is information frame
The data transmission/reception processing section 15 transfers the received data from the data transmission/reception interface section 11 to the area of the received buffer from the reception buffer switching section 14. Store and process received data.
上記のようにして、本実施例の通信処理装置でζ友 受
信したデータのフレーム種別を調べ 受信データを格納
する受信バッファとしてフレーム種別に対応したデータ
長の受信バッファを用いるので、受信バッファの未使用
領域を減少させ、受信バッファ領域を有効に使用するこ
とが可能となもな耘 本実施例においてはデータ種別を
判断するためへ 通信データのフレーム種別を示す制御
フィールドを用いている力(通信データのあて先を表わ
すアドレス情報など受信データに含まれるその他の情報
を使用することも可能であ本発明の詳細
な説明したように本発明の通信処理装置で(′!、。As described above, the communication processing device of this embodiment checks the frame type of the received data and uses the receive buffer with the data length corresponding to the frame type as the receive buffer to store the received data. It is possible to reduce the usage area and use the reception buffer area effectively.In this embodiment, the power (communication It is also possible to use other information included in the received data, such as address information representing the destination of the data, and as described in detail, the communication processing device of the present invention ('!,.
データを受信した場会 受信したデータの種別を調べ
受信データのデータ種別に対応した受信バッファを選択
して受信データを格納し 処理を行なう。このようへ
受信するデータの種別によって受信に使用するバッファ
をデータ種別に適したものに切り換えるた八 受信バッ
ファ内の未使用領域を減少させて受信バッファ領域の使
用効率を上げることかで叡 処理を行なう上で必要なメ
モリ量を削減することが可能となもWhen data was received Check the type of received data
Selects the receive buffer corresponding to the data type of the received data, stores and processes the received data. like this
Depending on the type of data to be received, it is possible to switch the buffer used for reception to one suitable for the data type, or to reduce the unused area in the receive buffer and increase the efficiency of use of the receive buffer area. It is possible to reduce the amount of memory required.
M1図は本発明の一実施例における通信処理装置の概略
構成医 第2図は本発明の一実施例における受信データ
のフレーム構成を示す模式図 第3図は実際の通信処理
で使用されている通信データのフレーム構成の一例を示
す模式図であも1・・・通信処理装[11・・・データ
送受信インタフェース臥12・・・データ種別判断眼1
3・・・受信バッファ情報記憶K 14・・・受信バ
ッファ切り換え区15・・・データ送受信処理a
代理人の氏名 弁理士 小鍜治 明
ほか2名
箆
図
/
第
図
第
図Figure M1 is a schematic diagram showing the frame structure of a communication processing device according to an embodiment of the present invention. Figure 2 is a schematic diagram showing the frame structure of received data according to an embodiment of the present invention. Figure 3 is a diagram showing the frame structure of received data in an embodiment of the present invention. This is a schematic diagram showing an example of a frame structure of communication data.Mono 1...Communication processing unit [11...Data transmission/reception interface 茥12...Data type judgment eye 1
3... Receive buffer information storage K 14... Receive buffer switching section 15... Data transmission/reception processing a Name of agent Patent attorney Akira Kokaji and two others / Figure Figure
Claims (1)
部と、データ種別に対応した受信バッファの情報を記憶
する受信バッファ情報記憶部と、前記データ種別判断部
によって判断されたデータ種別と前記受信バッファ情報
記憶部に記憶されているデータ種別および受信バッファ
の情報によって受信データを格納するバッファを切り換
える受信バッファ切り換え部とを備えたことを特徴とす
る通信処理装置。(1) A data type determining unit that determines the type of data to be received; a receiving buffer information storage unit that stores information on a receiving buffer corresponding to the data type; and the data type determined by the data type determining unit and the received data. 1. A communication processing device comprising: a reception buffer switching unit that switches a buffer for storing received data according to data type and reception buffer information stored in a buffer information storage unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2271126A JPH04150244A (en) | 1990-10-09 | 1990-10-09 | Communication processor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2271126A JPH04150244A (en) | 1990-10-09 | 1990-10-09 | Communication processor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH04150244A true JPH04150244A (en) | 1992-05-22 |
Family
ID=17495693
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2271126A Pending JPH04150244A (en) | 1990-10-09 | 1990-10-09 | Communication processor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH04150244A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002091838A (en) * | 2000-09-18 | 2002-03-29 | Toshiba Corp | Data processing system and storage medium |
JP2012010339A (en) * | 2010-06-18 | 2012-01-12 | Samsung Sds Co Ltd | Anti-malware system and operating method thereof |
US8365287B2 (en) | 2010-06-18 | 2013-01-29 | Samsung Sds Co., Ltd. | Anti-malware system and operating method thereof |
-
1990
- 1990-10-09 JP JP2271126A patent/JPH04150244A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2002091838A (en) * | 2000-09-18 | 2002-03-29 | Toshiba Corp | Data processing system and storage medium |
JP2012010339A (en) * | 2010-06-18 | 2012-01-12 | Samsung Sds Co Ltd | Anti-malware system and operating method thereof |
US8365287B2 (en) | 2010-06-18 | 2013-01-29 | Samsung Sds Co., Ltd. | Anti-malware system and operating method thereof |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4841373A (en) | Facsimile transmission control method in which a frame of stored image data is transmitted when either a predetermined time has elapsed or a predetermined amount of image data has been stored | |
JPH04150244A (en) | Communication processor | |
JPH1098470A (en) | Incoming call transfer method for atm network | |
JPH11150757A (en) | Device and method for allocating signal channel | |
JP2000349808A (en) | Electronic mail system | |
KR20020036356A (en) | Short message service method using control channel in mobile communication system | |
JPH1021164A (en) | Electronic mail system | |
CA2230233A1 (en) | Atm network switch having enhanced call setup capability | |
JPS5811146B2 (en) | Communication method using polling emulator | |
JP2879945B2 (en) | Incoming call display method for wireless telephone system | |
JPH088932A (en) | Congestion control method | |
JP3073843B2 (en) | Digital cordless telephone and base station status information transmission method | |
JP3159244B2 (en) | Data compression device | |
KR100248574B1 (en) | Method for managing sscop transmitting/receiving buffer using single frame structure | |
JPH11289442A (en) | Internet facsimile equipment | |
JPH11298664A (en) | Communication equipment | |
KR20000038380A (en) | Method for connecting at gateway and transferring voice data | |
JPH03124145A (en) | Packet exchange | |
EP0666675A2 (en) | Apparatus and method for sending signalling data in a cordless telephone system | |
JPS62235845A (en) | File transmission and reception system using electronic mail | |
JPH01226246A (en) | Method and device for controlling terminal identifier | |
JPH02239751A (en) | Packet multiplexer | |
JPH0537557A (en) | Facsimile store and forward exchange | |
JPS63292846A (en) | Data communication system | |
JPH04130836A (en) | Data communication equipment |