JPS6119145B2 - - Google Patents

Info

Publication number
JPS6119145B2
JPS6119145B2 JP53109355A JP10935578A JPS6119145B2 JP S6119145 B2 JPS6119145 B2 JP S6119145B2 JP 53109355 A JP53109355 A JP 53109355A JP 10935578 A JP10935578 A JP 10935578A JP S6119145 B2 JPS6119145 B2 JP S6119145B2
Authority
JP
Japan
Prior art keywords
received
character
communication control
block
reception buffer
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
Application number
JP53109355A
Other languages
Japanese (ja)
Other versions
JPS5535571A (en
Inventor
Yoshihiko Fujii
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP10935578A priority Critical patent/JPS5535571A/en
Publication of JPS5535571A publication Critical patent/JPS5535571A/en
Publication of JPS6119145B2 publication Critical patent/JPS6119145B2/ja
Granted legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Description

【発明の詳細な説明】 本発明は通信制御方式に関し、特に伝送ブロツ
クを連続して転送する伝送制御手順を用いたシス
テムにおける通信制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a communication control method, and more particularly to a communication control method in a system using a transmission control procedure for continuously transferring transmission blocks.

通信制御システムにおいては、一般に回線から
のデータを受信し文字組立、文字処理を行なう通
信制御装置と、通信制御装置から転送されてきた
伝送ブロツクデータを格納する主記憶装置と、主
記憶装置内の伝送ブロツクデータを処理する中央
処理装置をそなえている。
A communication control system generally consists of a communication control device that receives data from a line and performs character assembly and character processing, a main storage device that stores transmission block data transferred from the communication control device, and a main storage device that stores transmission block data transferred from the communication control device. It is equipped with a central processing unit that processes transmission block data.

ここで、主記憶装置には伝送ブロツク毎に受信
バツフアが用意され、通信制御装置で受信組立て
られた受信文字はこの受信バツフアに順次格納さ
れていくようにされる。本発明はこの受信バツフ
アを有効に利用しようとするものである。
Here, a reception buffer is prepared for each transmission block in the main memory, and the received characters received and assembled by the communication control device are sequentially stored in this reception buffer. The present invention attempts to utilize this reception buffer effectively.

第1図は順次、伝送される伝送ブロツク列の1
例を示し、いま第2ブロツクにおいて誤りが発生
しているものとする。
Figure 1 shows one of the transmission block sequences that are transmitted sequentially.
As an example, assume that an error has now occurred in the second block.

第2図は従来の受信バツフアの使用法を示す図
である。各伝送ブロツク毎に受信バツフアが割当
てられ、受信バツフア1,2,3,4……に伝送
データブロツク1,2,3,4……が順次、格納
されていく。第1図に示すようにブロツク2に誤
りが発生している場合でも、ブロツク2は受信バ
ツフア2に格納されていくことになる。ここで、
誤りの発生したデータブロツクは無効なブロツク
であり廃棄されるべきものである。そこで従来は
ソフトウエアが介入し誤りデータブロツクを検知
し、誤りデータブロツクを格納していた受信バツ
フアを無効化するようにし、これによりこの受信
バツフアを空きバツフアとして再使用可としてい
た。
FIG. 2 is a diagram showing how to use a conventional receive buffer. A reception buffer is assigned to each transmission block, and transmission data blocks 1, 2, 3, 4, . . . are sequentially stored in reception buffers 1, 2, 3, 4, . Even if an error occurs in block 2 as shown in FIG. 1, block 2 will be stored in reception buffer 2. here,
A data block in which an error has occurred is an invalid block and should be discarded. Conventionally, software intervenes to detect the erroneous data block and invalidate the receive buffer that had stored the erroneous data block, thereby making the receive buffer available for reuse as an empty buffer.

すなわち、従来の方式においては、誤りのある
ブロツクを受信した場合にもそのまま受信バツフ
アに格納していたため、ソフトウエアの介入によ
り当該バツフアが無効化されるまでは誤りのある
ブロツクが受信バツフアを無効に占有していた。
また誤りブロツクを受信したため中央処理装置へ
無効な割込みが行なわれていた。
In other words, in the conventional system, even if a block with an error was received, it was stored as is in the reception buffer, so the block with the error invalidates the reception buffer until the buffer is invalidated by software intervention. was occupied by
Also, since an error block was received, an invalid interrupt was made to the central processing unit.

本発明は上記欠点を解決し、受信バツフアを有
効に利用するとともに、中央処理装置への無効な
割込みを減少することを目的とし、そのため本発
明は、 文字組立回路と、文字処理回路と、文字転送制
御回路を含む通信制御装置において回線から受信
した受信文字を、通信制御装置とは別にもうけら
れる記憶装置内の受信バツフア領域へ転送する通
信制御システムにおいて、通信制御装置内に上記
受信バツフア領域の先頭アドレス保持手段と、上
記受信バツフア領域の受信文字格納先アドレス指
示手段とをそなえ、通信制御装置において受信し
た受信文字を上記受信文字格納先アドレス指示手
段の指示する受信バツフアアドレスに順次格納し
つつ、受信文字ブロツク組立てを行なうととも
に、該受信文字ブロツク組立途上または受信文字
ブロツク組立後、当該受信ブロツクに誤りを検出
したとき、上記先頭アドレス保持手段の内容を上
記受信文字格納先アドレス指示手段に転送し、次
に受信する受信文字を再度、同一の受信バツフア
領域に格納するようにしたことを特徴とする。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned drawbacks, make effective use of the reception buffer, and reduce invalid interruptions to the central processing unit. In a communication control system in which a communication control device including a transfer control circuit transfers received characters received from a line to a reception buffer area in a storage device provided separately from the communication control device, the communication control device includes a buffer area in the reception buffer area. The apparatus comprises a head address holding means and a received character storage destination address indicating means in the receiving buffer area, and sequentially stores the received characters received by the communication control device in the receiving buffer address specified by the received character storage destination address indicating means. At the same time, when a received character block is assembled, and an error is detected in the received block during or after the received character block is assembled, the contents of the first address holding means are transferred to the received character storage destination address indicating means. The present invention is characterized in that the received characters that are transferred and then received are stored again in the same receiving buffer area.

すなわち、本発明による受信バツフアの使用方
法は第3図のようになり、受信中のデータブロツ
クに誤りを検出した時点で、当該ブロツクの受信
は中断され、受信バツフア2の先頭へもどされ
る。したがつて次の正常なブロツク3を受信した
場合には受信バツフア2へ格納されることにな
る。
That is, the method of using the reception buffer according to the present invention is as shown in FIG. 3. When an error is detected in the data block being received, the reception of the block is interrupted and the data is returned to the beginning of the reception buffer 2. Therefore, when the next normal block 3 is received, it will be stored in the reception buffer 2.

次に本発明を図面により詳細に説明する。第4
図は本発明による実施例の通信制御システムのブ
ロツク図である。第4図において、1は通信制御
装置、2は主記憶装置、3は中央処理装置、4は
共通バス、5は文字組立回路、6は文字処理回
路、4は文字転送制御回路、8はモニタ回路、9
はCCWアドレスレジスタ(CCWA)、10はア
ンセブリバツフア(AB)、11はキヤラクタバツ
フア(CB)、12はバツフア・スタート・アドレ
ス保持レジスタ(BSA)、13はアンド回路、1
4は受信文字格納先バツフアアドレス保持レジス
タ(BCA)、15はバツフア終了アドレス保持レ
ジスタ(BEA)、16は受信コマンド保持レジス
タ(READ)、17はデータバツフア、18はチ
ヤネルコマンド語(CCW)、19は受信バツフア
である。
Next, the present invention will be explained in detail with reference to the drawings. Fourth
The figure is a block diagram of a communication control system according to an embodiment of the present invention. In FIG. 4, 1 is a communication control device, 2 is a main storage device, 3 is a central processing unit, 4 is a common bus, 5 is a character assembly circuit, 6 is a character processing circuit, 4 is a character transfer control circuit, and 8 is a monitor. circuit, 9
is the CCW address register (CCWA), 10 is the assembly buffer (AB), 11 is the character buffer (CB), 12 is the buffer start address holding register (BSA), 13 is the AND circuit, 1
4 is a received character storage destination buffer address holding register (BCA), 15 is a buffer end address holding register (BEA), 16 is a receiving command holding register (READ), 17 is a data buffer, 18 is a channel command word (CCW), 19 is the receiving buffer.

第4図の動作は以下の通りである。 The operation of FIG. 4 is as follows.

中央処理装置3のソフトウエアは主記憶装置2
上に、チヤネルコマンド語(CCW)18および
CCWに付随する受信バツフア19を作成する。
The software of the central processing unit 3 is stored in the main memory 2
Above, channel command word (CCW) 18 and
A reception buffer 19 accompanying CCW is created.

CCWは入出力コマンドの種類、コマンドチエ
イン、データチエイン等の指定、受信バツフアの
開始アドレスおよび終了アドレス等を含むが、第
4図においては代表的にリード(READ)コマン
ド、受信バツフア開始アドレス(BSA)、受信バ
ツフア終了アドレス(BEA)のみ図示してい
る。次に中央処理装置3は主記憶装置2上の
CCWアドレスを通信制御装置1内のCCWアドレ
スレジスタ(CCWA)9に格納した後、通信制
御装置1に起動をかける。通信制御装置1はモニ
タ回路8で中央処理装置3からの起動を受信す
る。起動を受けたモニタ回路8はCCWA9に示
される主記憶装置アドレス上のCCWをフエツチ
して、その内容を文字転送制御回路7の該当する
レジスタに格納する。すなわち主記憶装置18上
のCCW18のうち、READコマンドはREAD1
6に格納され、BSAはBSA12に格納され、
BEAはBEA15に格納される。このときBCA1
4にはBSAの内容が格納される。この後、モニ
タ回路8は文字処理回路6にコマンドを送り起動
する。いまコマンドはREADコマンドであるか
ら、文字処理回路6は文字受信処理を行なう。文
字組立回路5のAB10で組立てられた受信文字
はCB11に一時蓄積された後、文字処理回路6
に送られる。文字処理回路6においては受信文字
について、伝送制御文字の検出、ブロツク・チエ
ツク加算などを行なうとともに、受信文字を文字
転送制御回路7内のDB17に格納し、受信文字
を主記憶装置2上の受信バツフア19へ転送する
よう文字転送制御回路7へ依頼する。文字転送制
御回路7はBCA14の指示する受信バツフアア
ドレスにDB17内の受信文字を格納する。BCA
14は受信文字を受信バツフアアドレスに格納す
るごとに、プラス1され加算されていく。そして
正常にブロツクの最終文字まで受信した場合は、
文字処理回路6はモニタ回路8に対してコマンド
の終結および次のコマンドのフエツチを依頼す
る。モニタ回路8はコマンド終結時、主記憶装置
2上のBEAをBCA14の値に更新するととも
に、中央処理3へ割込ステータスを通知する。こ
れによに中央処理装置3のソフトウエアは再び
CCWおよびこれに付随する受信バツフアを作成
し、上記と同様な動作が繰返されていく。
The CCW includes the type of input/output command, designation of the command chain, data chain, etc., and the start and end addresses of the receive buffer. ), only the receiving buffer end address (BEA) is shown. Next, the central processing unit 3 stores data on the main memory 2.
After storing the CCW address in the CCW address register (CCWA) 9 in the communication control device 1, the communication control device 1 is activated. The communication control device 1 receives the activation from the central processing device 3 through the monitor circuit 8 . The activated monitor circuit 8 fetches the CCW on the main memory address indicated by CCWA 9 and stores its contents in the corresponding register of the character transfer control circuit 7. In other words, among the CCWs 18 on the main memory 18, the READ command is READ1.
BSA is stored in BSA12,
BEA is stored in BEA15. At this time, BCA1
4 stores the contents of the BSA. Thereafter, the monitor circuit 8 sends a command to the character processing circuit 6 to start it up. Since the current command is a READ command, the character processing circuit 6 performs character reception processing. The received characters assembled in AB10 of the character assembly circuit 5 are temporarily stored in CB11, and then transferred to the character processing circuit 6.
sent to. The character processing circuit 6 detects transmission control characters, performs block check addition, etc. on the received characters, stores the received characters in the DB 17 in the character transfer control circuit 7, and stores the received characters in the main storage 2. The character transfer control circuit 7 is requested to transfer the text to the buffer 19. The character transfer control circuit 7 stores the received characters in the DB 17 at the reception buffer address indicated by the BCA 14. BCA
14 is incremented by 1 each time a received character is stored in the reception buffer address. If the last character of the block is successfully received,
The character processing circuit 6 requests the monitor circuit 8 to terminate the command and fetch the next command. At the end of the command, the monitor circuit 8 updates the BEA on the main memory 2 to the value of the BCA 14, and notifies the central processing 3 of the interrupt status. As a result, the software of central processing unit 3 is activated again.
A CCW and an accompanying receive buffer are created, and the same operations as above are repeated.

以上は正常に受信動作が実行された場合である
が、一方、文字処理回路6において伝送ブロツク
誤りを検出した場合は次のようになる。
The above is a case where the receiving operation is executed normally, but on the other hand, when a transmission block error is detected in the character processing circuit 6, the following happens.

文字処理回路6は誤り検出信号を文字転送制御
回路7に送出する。これにより、文字転送制御回
路7内のアンド回路(AND)13が開きBSA1
2に保持されていたバツフア・スタート・アドレ
ス(BSA)がBCA14に移された、BCA14は
更新され以前の状態に戻る。文字処理回路6は現
在の状態をリセツトして次の正しいブロツクの受
信にそなえる。これにより次の受信ブロツクは中
央処理装置の介入なしに自動的に、誤りブロツク
を格納していたブロツクに再度格納されていく。
Character processing circuit 6 sends an error detection signal to character transfer control circuit 7. As a result, the AND circuit (AND) 13 in the character transfer control circuit 7 opens and the BSA1
The buffer start address (BSA) held in BCA 2 is moved to BCA 14, and BCA 14 is updated to return to its previous state. Character processing circuit 6 resets its current state to prepare for reception of the next correct block. As a result, the next received block is automatically stored again in the block in which the error block was stored, without intervention from the central processing unit.

以上の説明は伝送ブロツク誤り時の動作に関す
るものであるが、本発明はハイレベルデータリン
ク制御手順における32ビツト未満フレームの処理
にも適用できる。ハイレベルデータリンク制御手
順においては正常なフレームは少なくとも32ビツ
ト長であるため、従来は32ビツト分のバツフアを
通信制御装置内にそなえ、32ビツト未満のフレー
ムを検出し、無効処理を行なつていた。これに対
し、1バイト受信するごとに歩進し4までカウン
ト可能なバイトカウントをもうけ、カウント値が
3またはそれ以下のフレームを受信したとき、第
4図の誤り検出信号線を1状態とし、前記実施例
同様に主記憶装置2上の受信バツフア19を無効
化し、再使用するようにすれば、通信制御装置1
内に従来の如く32ビツト分のバツフアをもうける
必要がなくなり、ハードウエア量の減少がはかれ
る。
Although the above description relates to the operation in the event of a transmission block error, the present invention is also applicable to the processing of frames of less than 32 bits in high-level data link control procedures. In high-level data link control procedures, a normal frame is at least 32 bits long, so conventionally a buffer for 32 bits was provided in the communication control equipment to detect and invalidate frames shorter than 32 bits. Ta. On the other hand, each time a byte is received, a byte count that can be counted up to 4 is created, and when a frame with a count value of 3 or less is received, the error detection signal line in FIG. 4 is set to 1 state, Similarly to the above embodiment, if the reception buffer 19 on the main storage device 2 is invalidated and reused, the communication control device 1
It is no longer necessary to provide a 32-bit buffer as in the past, and the amount of hardware can be reduced.

以上、説明したように本発明は受信バツフアの
先頭アドレスを通信制御装置内に保持しておき、
正しい伝送ブロツクが受信された場合には新たな
受信バツフアに次の伝送ブロツクを格納するが、
誤つたまたは無効な伝送ブロツクを受信した場合
には初めに保持していた受信バツフアの先頭アド
レスから次の伝送ブロツクを格納するようにした
ので、受信バツフアの有効利用が可能である。
As explained above, the present invention holds the start address of the reception buffer in the communication control device,
If the correct transmission block is received, the next transmission block is stored in a new reception buffer, but
When an erroneous or invalid transmission block is received, the next transmission block is stored from the head address of the reception buffer that was originally held, so the reception buffer can be used effectively.

また誤りブロツク受信による中央処理装置への
無効な割込みを少なくできる利点をも有してい
る。
It also has the advantage of reducing invalid interruptions to the central processing unit due to reception of erroneous blocks.

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

第1図は伝送ブロツク列の1例、第2図は従来
の受信バツフアの使用法を示す図、第3図は本発
明はによる受信バツフア使用法を示す図、第4図
は本発明はよよる実施例の通信制御システムのブ
ロツク図を示す。 第4図において、1は通信制御装置、2は主記
憶装置、3は中央処理装置、7は文字転送制御回
路、12はバツフア・スタート・アドレス保持レ
ジスタ、14は受信文字格納先バツフアアドレス
保持レジスタ、19は受信バツフアである。
FIG. 1 is an example of a transmission block sequence, FIG. 2 is a diagram showing how to use a conventional receiving buffer, FIG. 3 is a diagram showing how to use a receiving buffer according to the present invention, and FIG. 4 is a diagram showing how to use a receiving buffer according to the present invention. 1 shows a block diagram of a communication control system according to an embodiment. In FIG. 4, 1 is a communication control device, 2 is a main memory, 3 is a central processing unit, 7 is a character transfer control circuit, 12 is a buffer start address holding register, and 14 is a buffer address holding destination for storing received characters. Register 19 is a receiving buffer.

Claims (1)

【特許請求の範囲】[Claims] 1 文字組立回路と、文字処理回路と文字転送制
御回路を含む通信制御装置において回線から受信
した受信文字を、通信制御装置とは別にもうけら
れる記憶装置内の受信バツフア領域へ転送する通
信制御システムにおいて、通信制御装置内に上記
受信バツフア領域の先頭アドレス保持手段と、上
記受信バツフア領域の受信文字格納先アドレス指
示手段とをそなえ、通信制御装置において受信し
た受信文字を上記受信文字格納先アドレス指示手
段の指示する受信バツフアアドレスに順次格納し
つつ、受信文字ブロツク組立てを行なうととも
に、該受信文字ブロツク組立途上または受信文字
ブロツク組立後、当該受信ブロツクに誤りを検出
したとき、上記先頭アドレス保持手段の内容を上
記受信文字格納先アドレス指示手段に転送し、次
に受信する受信文字を再度、同一の受信バツフア
領域に格納するようにしたことを特徴とする通信
制御方式。
1. In a communication control system that transfers received characters received from a line in a communication control device including a character assembly circuit, a character processing circuit, and a character transfer control circuit to a reception buffer area in a storage device that is provided separately from the communication control device. , the communication control device includes means for holding the start address of the reception buffer area, and means for indicating a received character storage destination address in the reception buffer area, and the received character storage destination address instruction means for transmitting the received characters received in the communication control device. While assembling a received character block while sequentially storing it in the receiving buffer address indicated by the above, when an error is detected in the received block during or after assembling the received character block, the start address holding means is A communication control system characterized in that the content is transferred to the received character storage destination address indicating means, and the next received character is stored again in the same reception buffer area.
JP10935578A 1978-09-06 1978-09-06 Communication control system Granted JPS5535571A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP10935578A JPS5535571A (en) 1978-09-06 1978-09-06 Communication control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP10935578A JPS5535571A (en) 1978-09-06 1978-09-06 Communication control system

Publications (2)

Publication Number Publication Date
JPS5535571A JPS5535571A (en) 1980-03-12
JPS6119145B2 true JPS6119145B2 (en) 1986-05-15

Family

ID=14508116

Family Applications (1)

Application Number Title Priority Date Filing Date
JP10935578A Granted JPS5535571A (en) 1978-09-06 1978-09-06 Communication control system

Country Status (1)

Country Link
JP (1) JPS5535571A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63222549A (en) * 1987-03-11 1988-09-16 Nec Corp Reception buffer management equipment
JPH01109837A (en) * 1987-10-23 1989-04-26 Nec Corp Fifo device for frame reception

Also Published As

Publication number Publication date
JPS5535571A (en) 1980-03-12

Similar Documents

Publication Publication Date Title
EP0260693B1 (en) Program mode access control system
US4365296A (en) System for controlling the duration of the time interval between blocks of data in a computer-to-computer communication system
US5311510A (en) Data storing system for a communication control circuit
JPS6119145B2 (en)
US6907503B2 (en) Dual port RAM communication protocol
JP2924783B2 (en) Remote read processing method and device
EP0682307A1 (en) Method and apparatus for enabling pipelining of buffered data
JP3162459B2 (en) Data processing device
JPH0115100B2 (en)
JPH0414378B2 (en)
JP2707770B2 (en) Data chain control method for remote channel system
JPS6156541B2 (en)
JPS605367A (en) Communication control processor
JPH0740240B2 (en) Information processing apparatus and information processing system
JP2870200B2 (en) Data processing device
JP2823625B2 (en) Data processing device
JPH0476148B2 (en)
JP2681273B2 (en) Retransmission display setting control device
JPS6294042A (en) Communication control equipment
JP3146864B2 (en) Unidirectional loop transmission circuit
JP2552025B2 (en) Data transfer method
JPH0235500B2 (en)
JPS5972533A (en) Direct memory access system
JPS63187943A (en) Communication control equipment
JPS6159944A (en) Sequence number check system