JP3347387B2 - LAN control processor - Google Patents

LAN control processor

Info

Publication number
JP3347387B2
JP3347387B2 JP05566293A JP5566293A JP3347387B2 JP 3347387 B2 JP3347387 B2 JP 3347387B2 JP 05566293 A JP05566293 A JP 05566293A JP 5566293 A JP5566293 A JP 5566293A JP 3347387 B2 JP3347387 B2 JP 3347387B2
Authority
JP
Japan
Prior art keywords
data
lan
transmission
cpu
control processor
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.)
Expired - Fee Related
Application number
JP05566293A
Other languages
Japanese (ja)
Other versions
JPH06268690A (en
Inventor
秀夫 宮城
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP05566293A priority Critical patent/JP3347387B2/en
Publication of JPH06268690A publication Critical patent/JPH06268690A/en
Application granted granted Critical
Publication of JP3347387B2 publication Critical patent/JP3347387B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明は、送受信されるデータを
記憶するメモリのデータ領域の先頭アドレスおよびサイ
ズを示すコマンドがCPUから通知されるとLANを介
してデータを送受信するLAN制御プロセッサのうち、
特に、LANとのデータの送受信におけるCPUの負荷
を軽減してシステムの処理速度を向上するLAN制御プ
ロセッサに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a LAN control processor for transmitting and receiving data via a LAN when a command indicating a head address and a size of a data area of a memory for storing data to be transmitted and received is notified from a CPU. ,
In particular, the present invention relates to a LAN control processor that reduces the load on a CPU in transmitting and receiving data to and from a LAN and improves the processing speed of the system.

【0002】[0002]

【従来の技術】従来、コンピュータがLANと通信する
場合を図5のブロック図を用いて説明する。
2. Description of the Related Art Conventionally, a case where a computer communicates with a LAN will be described with reference to a block diagram of FIG.

【0003】まず、LAN101を介して他の端末にデ
ータを送信する場合は、CPU103がLAN制御プロ
セッサ105に送信命令を通知するとLAN制御プロセ
ッサ105により主メモリ109からデータが取り出さ
れ、パケットにセットされてLAN101に送信され
る。データの送信後、LAN制御プロセッサ105は、
CPU103にデータの入出力命令の完了通知を出力す
ることによりデータの送信動作をパケット単位に送信す
るものであった。
First, when transmitting data to another terminal via the LAN 101, when the CPU 103 notifies the LAN control processor 105 of a transmission command, the data is taken out from the main memory 109 by the LAN control processor 105 and set in a packet. Transmitted to the LAN 101. After transmitting the data, the LAN control processor 105
By transmitting a completion notification of the data input / output command to the CPU 103, the data transmission operation is transmitted in packet units.

【0004】一方、LAN101を介して他の端末から
データを受信する場合は、CPU103からLAN制御
プロセッサ105に受信命令が通知される。受信命令が
通知されるとLAN制御プロセッサ105は、LAN1
01から受信されるパケットのデータを内部バス107
を介して主メモリ109の所定アドレスに記憶する。記
憶後、LAN制御プロセッサ105は、CPU103に
入出力命令の完了通知を出力することによりデータの受
信動作をパケット単位に受信するものであった。
On the other hand, when data is received from another terminal via the LAN 101, a reception command is notified from the CPU 103 to the LAN control processor 105. When the reception command is notified, the LAN control processor 105
01 from the internal bus 107
At a predetermined address in the main memory 109. After the storage, the LAN control processor 105 outputs the completion notification of the input / output command to the CPU 103 to receive the data reception operation in packet units.

【0005】[0005]

【発明が解決しようとする課題】しかしながら、従来
は、パケット単位に送受信する度にCPU103からL
AN制御プロセッサ105に送信命令または受信命令を
通知するため、当該送信命令または受信命令の通知の処
理によるCPU103の負荷が増加することによりシス
テムの処理速度の遅延を招来する問題があった。
However, in the prior art, each time a packet is transmitted or received, the CPU 103
Since the transmission instruction or the reception instruction is notified to the AN control processor 105, the load of the CPU 103 due to the processing of the notification of the transmission instruction or the reception instruction increases, thereby causing a problem that the processing speed of the system is delayed.

【0006】本発明は、このような従来の課題に鑑みて
なされたものであり、その目的は、LANとのデータの
送受信におけるCPUの負荷を軽減してシステムの処理
速度を向上するLAN制御プロセッサを提供することに
ある。
The present invention has been made in view of such conventional problems, and has as its object to reduce the load on the CPU in transmitting and receiving data to and from a LAN, thereby improving the processing speed of the system. Is to provide.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するた
め、本発明は、CPUと、送信データを記憶する送信デ
ータ格納領域及び受信データを記憶する受信データ格納
領域を有するメモリとに接続され、LANを介してデー
タを送受信制御するLAN制御プロセッサにおいて、
記CPUから送信コマンドが通知されたとき前記メモリ
送信データ格納領域の先頭アドレスから指定されたサ
イズ分のデータを取り込んでパケットにセットしてデー
タの取り込みが終了すると前記CPUに送信完了通知を
送信し、前記データのセットされたパケットを前記LA
Nを介して送信する送信制御手段と、前記CPUから
コマンドが通知されると前記LANを介して受信した
パケットを前記メモリの受信データ格納領域に記憶する
受信制御手段とを備えたことを要旨とする。
In order to achieve the above object, the present invention provides a CPU and a transmission data storing transmission data.
Data storage area and received data storage for storing received data
Connected to a memory having an
In a LAN control processor that controls transmission and reception of data, when a transmission command is notified from the CPU , a specified server starts from a head address of a transmission data storage area of the memory.
Data for the size
When the data capture is completed, a transmission completion notification is sent to the CPU.
And transmits the packet with the data set to the LA.
A transmission control means for transmitting via a N, received from the CPU
Received via the LAN and the signal command is notified
Storing a packet in a reception data storage area of the memory
The gist of the invention is to provide a reception control means .

【0008】[0008]

【作用】上述の如く構成すれば、LAN制御プロセッサ
は、CPUから送信コマンドが通知されLANを介し
てデータを送信する場合、メモリの送信データ格納領域
の先頭アドレスからサイズ分のデータを取り込んでパケ
ットにセットしてデータの取り込みが終了すると当該C
PUに送信完了通知を送信し、前記データのセットされ
たパケットを前記LANを介して送信する。一方、CP
Uから受信コマンドが通知されてLANを介してデータ
を受信する場合、前記LANを介して受信されるパケッ
トを前記メモリの受信データ格納領域に記憶するので、
CPUの負荷を軽減してシステムの処理速度を向上でき
る。
With the above configuration, a LAN control processor is provided.
, If the notification transmission command from the CPU to transmit data via a LAN, the transmission data storage area of the memory
Data of the size from the start address of
When data loading is completed by setting
Send a transmission completion notification to the PU, and set the data
The transmitted packet is transmitted via the LAN. Meanwhile, CP
When receiving a reception command from U and receiving data via the LAN, a packet received via the LAN is received.
Is stored in the reception data storage area of the memory ,
The processing speed of the system can be improved by reducing the load on the CPU.

【0009】[0009]

【実施例】以下、本発明の−実施例を図面に基づいて説
明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The embodiments of the present invention will be described below with reference to the drawings.

【0010】図1は本発明のLAN制御プロセッサの一
実施例に係る制御を示すブロック図である。
FIG. 1 is a block diagram showing control according to an embodiment of the LAN control processor of the present invention.

【0011】図中LAN制御プロセッサ1は、LAN3
に接続されているとともに、内部バス5を介してCPU
7および主メモリ9に接続されている。
In the figure, a LAN control processor 1
And via the internal bus 5
7 and the main memory 9.

【0012】上記LAN制御プロセッサ1は、カーネル
部11、LANインターフェース13、アクセス処理部
15および内部バスインターフェース17を備えて、L
AN3に対するデータの送受信を制御する。
The LAN control processor 1 includes a kernel unit 11, a LAN interface 13, an access processing unit 15, and an internal bus interface 17,
Controls transmission and reception of data to and from AN3.

【0013】上記カーネル部11は、マイクロプロセッ
サのオペレーティングシステムであり、アクセス処理部
15等の処理を実行する各タスクを制御するものであ
る。LANインターフェース13は、LAN3の手順で
データの通信を行う。アクセス処理部15は、CPU7
から入出力命令が通知されてLAN3にデータを送信す
る場合に後述するユーザコマンドにより主メモリ9の後
述する送信データ格納領域21の先頭アドレスからサイ
ズ分のデータを取り出してLAN3に送信する。LAN
3へのデータ送信が終了するとアクセス処理部15は、
CPU7に完了通知を送信する。一方、アクセス処理部
15は、CPU7から入出力命令が通知されてLAN3
からデータを受信する場合に後述するユーザコマンドに
より主メモリ9の後述する受信データ格納領域23の先
頭アドレスからLAN3を介して受信されるデータを記
憶する。LAN3からの受信が終了するとアクセス処理
部15は、CPU7に完了通知を送信する。内部バスイ
ンターフェース17は、内部バス5の手順の処理、例え
ば、入出力命令等の通知を行う。
The kernel unit 11 is an operating system of a microprocessor, and controls each task for executing processing of the access processing unit 15 and the like. The LAN interface 13 performs data communication according to the procedure of LAN3. The access processing unit 15 includes the CPU 7
When data is transmitted to the LAN 3 upon notification of an input / output command from the CPU, data corresponding to the size is extracted from the head address of a transmission data storage area 21 of the main memory 9 described later and transmitted to the LAN 3 by a user command described later. LAN
When the data transmission to the communication processing unit 3 is completed, the access processing unit 15
A completion notification is transmitted to the CPU 7. On the other hand, the access processing unit 15 receives the input / output
When the data is received from the server 3, the data received via the LAN 3 from the head address of the later-described received data storage area 23 of the main memory 9 is stored by a user command described later. When the reception from the LAN 3 is completed, the access processing unit 15 sends a completion notification to the CPU 7. The internal bus interface 17 performs processing of the procedure of the internal bus 5, for example, notification of an input / output command or the like.

【0014】上記内部バス5を介してLAN制御プロセ
ッサ1に接続されているCPU7はシステム全体を制御
し、主メモリ9はCPU7の動作のプログラムおよびア
クセス処理部15によるLAN3に対して送受信される
データを所定アドレスに記憶する。
A CPU 7 connected to the LAN control processor 1 via the internal bus 5 controls the entire system, and a main memory 9 stores a program for operating the CPU 7 and data transmitted to and received from the LAN 3 by the access processing unit 15. Is stored at a predetermined address.

【0015】ここで、主メモリ9のメモリ領域19を図
2を用いて説明する。図中送信データ格納領域21は、
LAN3に送信するデータを記憶する。上記送信データ
格納領域21の先頭アドレスおよびサイズは後述するア
プリケーションプログラムによりLAN制御プロセッサ
1に通知される。受信データ格納領域23は、LAN3
から受信されるパケットにセットされているデータをア
クセス処理部15によりパケット単位に記憶されるもの
である。上記受信データ格納領域23の先頭のフラグ2
5aは、データが記憶されると「1」がセットされ、ア
プリケーションプログラムによりデータが取り出される
と「0」がセットされる。なお、上記フラグは25a〜
25nまで備えられている。
Here, the memory area 19 of the main memory 9 will be described with reference to FIG. In the figure, the transmission data storage area 21 is
The data to be transmitted to the LAN 3 is stored. The start address and size of the transmission data storage area 21 are notified to the LAN control processor 1 by an application program described later. The reception data storage area 23 is a LAN3
The data set in the packet received from the access processor 15 is stored by the access processing unit 15 in packet units. Flag 2 at the beginning of the received data storage area 23
In 5a, "1" is set when data is stored, and "0" is set when data is taken out by the application program. Note that the flags are 25a-
Up to 25n are provided.

【0016】次に、本実施例の作用を図3および図4の
フローチャートを用いて説明する。まず、装置に電源投
入後、アプリケーションプログラムは、予め、主メモリ
9の送信データ格納領域21および受信データ格納領域
23をそれぞれ確保して当該送信データ格納領域21の
先頭アドレスおよびサイズと受信データ格納領域23の
先頭アドレスおよびサイズとをユーザコマンドにセット
してCPU7に通知する。CPU7は、ユーザコマンド
を受けると入出力命令をLAN制御プロセッサ1に通知
する。通知によりLAN制御プロセッサ1は、ユーザコ
マンドを内部バスインターフェース17により処理し、
送信データ格納領域21の先頭アドレスおよびサイズと
受信データ格納領域23の先頭アドレスおよびサイズと
を記憶する。
Next, the operation of this embodiment will be described with reference to the flowcharts of FIGS. First, after the apparatus is powered on, the application program secures the transmission data storage area 21 and the reception data storage area 23 of the main memory 9 in advance, respectively, and secures the start address and size of the transmission data storage area 21 and the reception data storage area. The start address and the size of H.23 are set in the user command and notified to the CPU 7. When receiving the user command, the CPU 7 notifies the LAN control processor 1 of an input / output command. Upon notification, the LAN control processor 1 processes the user command through the internal bus interface 17, and
The start address and size of the transmission data storage area 21 and the start address and size of the reception data storage area 23 are stored.

【0017】次に、ユーザプログラムがLAN3からデ
ータを送信する場合を図3のフローチャートを用いて説
明する。
Next, the case where the user program transmits data from the LAN 3 will be described with reference to the flowchart of FIG.

【0018】まず、ユーザプログラムからCPU7にデ
ータの送受信を示すコマンドを通知するとCPU7は、
内部バス5を介してLAN制御プロセッサ1に通知する
(ステップ100)。送受信を示すコマンドが通知され
るとLAN制御プロセッサ1は、命令コードを取り込み
主メモリ9の送信データ格納領域21の先頭アドレスか
らサイズ分のデータを取り込んでパケットにセットする
(ステップ110〜120)。データの取り込みが終了
するとアクセス処理部15は、CPU7に送信完了通知
を送信して、CPU7からの命令待ち状態になる(ステ
ップ130〜150)。一方、データの取り込みが終了
していなければアクセス処理部15は、セットされたパ
ケットをLAN3から送信する(ステップ160)。
First, when the user program notifies the CPU 7 of a command indicating transmission and reception of data, the CPU 7
The LAN control processor 1 is notified via the internal bus 5 (step 100). When a command indicating transmission / reception is notified, the LAN control processor 1 takes in the instruction code, takes in data of the size from the head address of the transmission data storage area 21 of the main memory 9, and sets it in a packet (steps 110 to 120). When the data capture is completed, the access processing unit 15 transmits a transmission completion notification to the CPU 7 and waits for an instruction from the CPU 7 (steps 130 to 150). On the other hand, if the data capture has not been completed, the access processing unit 15 transmits the set packet from the LAN 3 (step 160).

【0019】更に、ユーザプログラムがLAN3からデ
ータを受信する場合を図4のフローチャートを用いて説
明する。
Further, the case where the user program receives data from the LAN 3 will be described with reference to the flowchart of FIG.

【0020】LAN制御プロセッサ1は、LAN3から
フレームを受信すると当該フレームを主メモリ9のデー
タ受信格納領域23にフレームに含まれているパケット
を記憶させる。記憶後、主メモリ9の受信データ格納領
域23の先頭のフラグを「1」にセットしてフレーム受
信のステップ170に戻り、CPU7からのサイズ分の
データの受信を繰り返す(ステップ170〜190)。
When the LAN control processor 1 receives a frame from the LAN 3, the LAN control processor 1 stores the packet contained in the frame in the data reception storage area 23 of the main memory 9. After the storage, the head flag of the reception data storage area 23 of the main memory 9 is set to "1", and the process returns to the step 170 of frame reception, and the reception of the data of the size from the CPU 7 is repeated (steps 170 to 190).

【0021】これにより、従来、パケット単位に送受信
する度にCPU7からLAN制御プロセッサ1に命令を
通知する処理を省略したので、CPUの負荷を軽減して
システムの処理速度を向上できる。
As a result, conventionally, the process of notifying the LAN control processor 1 of an instruction from the CPU 7 every time a packet is transmitted or received is omitted, so that the load on the CPU can be reduced and the processing speed of the system can be improved.

【0022】[0022]

【発明の効果】以上説明したように、本発明では、CP
Uからコマンドが通知されると送受信されるデータを記
憶するメモリのデータ領域から当該コマンドの示すサイ
ズ分のデータを取り出してLANを介して送信し、CP
Uからコマンドが通知されるとLANを介して受信され
るデータの当該コマンドの示すサイズ分をメモリのデー
タ領域に記憶するので、LANとのデータの送受信にお
けるCPUの負荷を軽減してシステムの処理速度の向上
を実現できる。
As described above, according to the present invention, the CP
When a command is notified from U, data of a size indicated by the command is taken out from a data area of a memory for storing data to be transmitted / received and transmitted via the LAN.
When a command is notified from U, the size indicated by the command of the data received via the LAN is stored in the data area of the memory, so that the load on the CPU in data transmission / reception to / from the LAN is reduced to reduce the processing of the system. Speed can be improved.

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

【図1】本発明のLAN制御プロセッサに係る一実施例
の制御を示すブロック図である。
FIG. 1 is a block diagram showing control of an embodiment according to a LAN control processor of the present invention.

【図2】主メモリのメモリ領域を示す図である。FIG. 2 is a diagram showing a memory area of a main memory.

【図3】本発明の動作を示すフローチャートである。FIG. 3 is a flowchart showing the operation of the present invention.

【図4】本発明の動作を示すフローチャートである。FIG. 4 is a flowchart showing the operation of the present invention.

【図5】従来例を示すブロック図である。FIG. 5 is a block diagram showing a conventional example.

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

1 LAN制御プロセッサ 3 LAN 7 CPU 9 主メモリ 11 カーネル部 15 アクセス処理部 DESCRIPTION OF SYMBOLS 1 LAN control processor 3 LAN 7 CPU 9 Main memory 11 Kernel part 15 Access processing part

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 CPUと、送信データを記憶する送信デ
ータ格納領域及び受信データを記憶する受信データ格納
領域を有するメモリとに接続され、LANを介してデー
タを送受信制御するLAN制御プロセッサにおいて、 前記CPUから送信コマンドが通知されたとき前記メモ
リの送信データ格納領域の先頭アドレスから指定された
サイズ分のデータを取り込んでパケットにセットしてデ
ータの取り込みが終了すると前記CPUに送信完了通知
を送信し、前記データのセットされたパケットを前記L
ANを介して送信する送信制御手段と、 前記CPUから受信コマンドが通知されると前記LAN
を介して受信したパケットを前記メモリの受信データ格
納領域に記憶する受信制御手段と、 を備えたことを特徴とするLAN制御プロセッサ。
1. A transmission data storage device for storing transmission data.
Data storage area and received data storage for storing received data
Connected to a memory having an
In a LAN control processor for controlling transmission and reception of data, when a transmission command is notified from the CPU , a LAN control processor designated from a head address of a transmission data storage area of the memory
Capture the data of the size, set it in the packet, and
When the data capture is completed, a transmission completion notification is sent to the CPU.
And transmits the packet with the data set to the L
Wherein the transmission control means for transmitting via the AN, and the reception command is notified from the CPU LAN
The packet received via the
And a reception control means for storing in a storage area .
JP05566293A 1993-03-16 1993-03-16 LAN control processor Expired - Fee Related JP3347387B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05566293A JP3347387B2 (en) 1993-03-16 1993-03-16 LAN control processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05566293A JP3347387B2 (en) 1993-03-16 1993-03-16 LAN control processor

Publications (2)

Publication Number Publication Date
JPH06268690A JPH06268690A (en) 1994-09-22
JP3347387B2 true JP3347387B2 (en) 2002-11-20

Family

ID=13005066

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05566293A Expired - Fee Related JP3347387B2 (en) 1993-03-16 1993-03-16 LAN control processor

Country Status (1)

Country Link
JP (1) JP3347387B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2321827B (en) 1997-01-31 2001-06-13 Ericsson Telefon Ab L M Telecommunications system
JP3356110B2 (en) 1999-04-21 2002-12-09 日本電気株式会社 Function expansion system and data transfer method used therefor

Also Published As

Publication number Publication date
JPH06268690A (en) 1994-09-22

Similar Documents

Publication Publication Date Title
US20040064607A1 (en) Electronic apparatus and startup control method of storage device
JP2001160041A (en) System for reducing cpu load of on-line system
JP3347387B2 (en) LAN control processor
US7080189B1 (en) USB device communication
JPS622747A (en) Reception control system
JPH0410658B2 (en)
JP3230339B2 (en) Communication control device
JP2835487B2 (en) Printer buffer
JPH0312768A (en) I/o controller
JP3007404B2 (en) Printing apparatus and printing method
JP3350699B2 (en) Programmable controller
JP2925049B2 (en) Input buffer control method
JP3292447B2 (en) Multi-function parallel processing type information processing device
JPS62190544A (en) Higher link unit for programmable controller
JP2817535B2 (en) HDLC frame reception control method
JPH06243069A (en) Communication control system and bus control circuit
JPH09307718A (en) Image processor and storage medium
JP2870200B2 (en) Data processing device
JP2778633B2 (en) Key signal communication method
JPH04248735A (en) Communication control processing system
JPH05244217A (en) Communication control system
JPH0660208A (en) Bar-code reader
JPH03250968A (en) Input output device
JPH0713921A (en) Dma controller
JPS60126949A (en) Communication controller

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20070906

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20080906

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees