JPH02125545A - Data reception control method in lan - Google Patents

Data reception control method in lan

Info

Publication number
JPH02125545A
JPH02125545A JP27901788A JP27901788A JPH02125545A JP H02125545 A JPH02125545 A JP H02125545A JP 27901788 A JP27901788 A JP 27901788A JP 27901788 A JP27901788 A JP 27901788A JP H02125545 A JPH02125545 A JP H02125545A
Authority
JP
Japan
Prior art keywords
data
lan
input
reception
lanc
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
JP27901788A
Other languages
Japanese (ja)
Inventor
Kinji Atsumi
渥見 欣士
Junji Sakurai
桜井 純二
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
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering 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 NEC Corp, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP27901788A priority Critical patent/JPH02125545A/en
Publication of JPH02125545A publication Critical patent/JPH02125545A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To reduce the loss of an input data by sending a jamming signal when an input data from a LAN transmission line exists when there is no margin in a function receiving the data. CONSTITUTION:A reception enable signal 3 is inputted with branch informing the data input start from a transmission line to a LANC to a jamming signal generator 2, and the generator 2 outputs a jamming signal 4 in the presence of an input of the reception enable signal 3 when a buffer busy 1 is set to a busy state. The same state as data collision takes place in a LAN transmission line, the LANC aborts the data not received and the data transmission side interrupts the data transmission and the interrupted data is sent again after an optional waiting time. The data reception side uses the time till the retransmission is used for the processing of the data stored in a reception data buffer.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はLANにおけるデータ受信制御方法に関し、特
にCS M A / CD (carrier sen
semultiple access/collisi
on detection)方式のLANにおけるデー
タ受信制御方式に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a data reception control method in a LAN, and particularly to a data reception control method in a LAN.
multiple access/collisi
The present invention relates to a data reception control method in a LAN (on detection) method.

〔従来の技術〕[Conventional technology]

C3MA/CD方式のLANは、論理的にバス形の伝送
路を利用し、データ同時送出時の衝突検出機能とデータ
の再送信処理機能を有するものであり、IEEE802
.3規格として、標準1ヒされている。このLANにお
いて、データは、宛先アドレスと送信元アドレスとCR
C符号等を含むフレームにより送受信される。
The C3MA/CD type LAN uses a logical bus-type transmission path and has a collision detection function when sending data simultaneously and a data retransmission processing function, and is compliant with IEEE802.
.. There are 3 standards and 1 standard. In this LAN, data consists of a destination address, a source address, and a CR.
It is transmitted and received using frames containing C codes and the like.

フレーム中のデータ長は可変であり、フレームの長さは
最小64オクテツト、最大1518オクテツトであり、
伝送路のビットレートが10μbpsのとき最小51.
2’μsec最大1214.4μsecの時間長である
The data length in a frame is variable, with a minimum frame length of 64 octets and a maximum of 1518 octets,
When the bit rate of the transmission path is 10μbps, the minimum is 51.
The maximum time length is 1214.4 μsec.

また、フレームとフレームの時間間隔(int、erf
ramegap)は最小9.6μsecである。この様
なLANを実現するための回路として専用のLSIが開
発され市販されており、これを以下LANC(loca
l  area network controlle
r)と記す。
Also, the time interval between frames (int, erf
ramegap) is a minimum of 9.6 μsec. A dedicated LSI has been developed and commercially available as a circuit for realizing such a LAN, and this is referred to as a LANC (local area network) hereafter.
area network control
r).

LANCは、マイクロコンピュータなどのCPUバスに
接続され、CPUからの動作指示に基づいて、CPUバ
スに接続された送信データバッファからLAN伝送路へ
データを送出したり、逆に、LAN伝送路からのデータ
を受信データバッファに書き込んだりといった動作を自
律的に行なう機能を持つものであり、伝送路からのデー
タ受信に際し、受信データバッファの空きの有無を自ら
確認し、もし空きの無い場合には、受信データを破棄す
る櫟になっている。このことは、LANの受信側のデー
タ処理に時間が掛かり受信データバッファが一杯になっ
てしまっている間に送られて来るデータはLAN上で消
失してしまうことを意味する。
LANC is connected to the CPU bus of a microcomputer, etc., and based on operation instructions from the CPU, sends data from the transmission data buffer connected to the CPU bus to the LAN transmission path, and conversely, sends data from the LAN transmission path. It has a function that autonomously performs operations such as writing data to the reception data buffer, and when receiving data from the transmission path, it checks whether there is space in the reception data buffer by itself, and if there is no space, It is used to discard received data. This means that data processing on the receiving side of the LAN takes time and data sent while the receive data buffer is full will be lost on the LAN.

また、この様な制御方法はLANCの様にMAC副層の
機能を提供する部分には許容されている事であり一般に
、より上位の層に位置する通信手順の部分が、フレーム
通番の利用や受信応答の利用等によってデータの伝送路
での欠損を補っている。また、上位層の通信手順により
、LANCの受信データバッファのビジー状態の回避も
可能である。
In addition, this kind of control method is allowed in parts that provide MAC sublayer functions, such as LANC, and generally, the communication procedure part located in a higher layer uses frame serial numbers or Deficiencies in the data transmission path are compensated for by using reception responses. Further, the communication procedure of the upper layer makes it possible to avoid the busy state of the LANC reception data buffer.

また、LANでは、最小フレーム長のデータが最小フレ
ーム間隔で送られた場合60.8μsecごとに1フレ
ームが受信されることになり、LANCはこの1フレー
ムの受信ごとにCPUにデータの受信を通知し、CPU
は、そのつとデータ受信に伴なう処理をする。
In addition, in the LAN, if data with the minimum frame length is sent at the minimum frame interval, one frame will be received every 60.8 μsec, and the LAN will notify the CPU of data reception every time this one frame is received. CPU
performs the processing associated with data reception.

LANCからCPUへのデータ受信の通知は、CPUに
割込み処理を実行させることで行なわれるが現在、CP
Uとして利用されている一般的なマイクロコンピュータ
では、割込み処理への処理の移動と復帰だけで数10μ
secを要し、さらに割込み処理そのものの時間が別に
必要となる。
Notification of data reception from the LANC to the CPU is performed by having the CPU execute interrupt processing;
In a typical microcomputer used as U, it takes several tens of μs just to move the process to interrupt processing and return.
sec, and additional time is required for the interrupt processing itself.

従って、最小フレームが最小時間間隔で送られて来た場
合、CPUとしては、LANCからのデータ受信割込み
の処理だけでも実行しきれないことがある。
Therefore, when the minimum frames are sent at the minimum time interval, the CPU may not be able to process the data reception interrupt from the LANC.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来のLANにおけるデータ受信制御方法は、
LANの端末が規定された通信手順をもって行なわれる
ことから、最小フレームを最小時間間隔で連続して受信
することは通常はとんどないし、万一、処理が間に合わ
ず、データの消失がまれにあったとしても、通信の手順
上再送信要求などで、十分に補える。
The data reception control method in the conventional LAN described above is as follows:
Since LAN terminals follow a specified communication procedure, it is usually rare for the minimum frame to be continuously received at the minimum time interval, and in the unlikely event that the processing is not done in time, data loss may occur. Even if there is, it can be sufficiently compensated for by requesting retransmission due to communication procedures.

しかし、LAN間を接続し、複数LANにまたがる通信
を可能とするブリッジ接続の場合には複数の通信バスが
集中し、最小フレームを連続して受信しなければならな
い状況は通常の端末のデータバッファに比べ、ビジー状
態になり易く、最小フレームが集中して送り付けられる
様な箇所では、データの消失が発生し易いという欠点が
ある。
However, in the case of a bridge connection that connects LANs and enables communication across multiple LANs, multiple communication buses are concentrated, and the situation where the minimum frame must be continuously received is limited to the data buffer of a normal terminal. It has the disadvantage that data loss is more likely to occur in areas where it is more likely to be busy and where the smallest frames are sent in a concentrated manner.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のLANにおけるデータ受信制御方法は、LAN
伝送路から入力されるデータの受信可否を判断する手段
と、前記データの受信ができないとき前記LAN伝送路
上のデータに衝突をさせるジャム信号を送出す手段とを
有している。
The data reception control method in a LAN according to the present invention is a method for controlling data reception in a LAN.
It has means for determining whether or not data input from the transmission path can be received, and means for sending out a jam signal that causes a collision with the data on the LAN transmission path when the data cannot be received.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。第1図
及び第2図は本発明の第1と第2の実施例のブロック図
、第3図及び第4図は第1と第2の実施例の動作を説明
するための流れ図である。
Next, the present invention will be explained with reference to the drawings. 1 and 2 are block diagrams of the first and second embodiments of the present invention, and FIGS. 3 and 4 are flowcharts for explaining the operations of the first and second embodiments.

第1図と第3図の第1の実施例において、バッファビジ
ー1は、CPUがLANCの受信データバッファの空の
有無を監視してバッファの空きが無いときとジーにセッ
トされ、バッファの空きが有るときクリアされる。
In the first embodiment shown in FIGS. 1 and 3, buffer busy 1 is set to ``J'' when the CPU monitors whether the receive data buffer of the LANC is empty and there is no empty buffer. Cleared when exists.

ジャム信号発生器2は、伝送路からのデータ入力開始を
LANCに知らせる受信イネーブル信号3が分岐入力さ
れ、バッファビジー1がとジーにセットされているとき
受信イネーブル信号3の入力があるとジャム信号4を出
力する。
The jam signal generator 2 receives a branch input of the reception enable signal 3 that informs the LANC of the start of data input from the transmission path, and generates a jam signal when the reception enable signal 3 is input when the buffer busy 1 is set to busy. Outputs 4.

ジャム信号4は、32ビツト長のパ1°”’o”反転連
続信号であり、この信号をLANCのデータ出力信号線
に合流させて送出することによってLAN伝送路では、
データの衝突と同じ状態になり、LANCは受信しかか
ったデータを破棄し、データの送信側では、データ送信
を中断し、任意な待ち時間の後に中断したデータの再送
信をして来る。
The jam signal 4 is a 32-bit length PA1°"'o" inverted continuous signal, and by merging this signal with the data output signal line of the LANC and sending it out, the jam signal 4 is transmitted on the LAN transmission line.
The situation is the same as a data collision, and the LANC discards the data that was about to be received, and the data sending side interrupts data transmission and retransmits the interrupted data after an arbitrary waiting time.

データの受信側では、この再送信までの時間を受信デー
タバッファに記憶されたデータの処理に用いることが出
来る。
On the data receiving side, this time until retransmission can be used to process the data stored in the received data buffer.

このようにすると、第3図に示すように、ステップS1
では伝送路からの入力データがないときはイネーブル信
号がなく待機(S2)L、入力データがあるときはイネ
ーブル信号がジャム信号発生器に入力され、ステップS
3のバッファが空いているときはLANCによってデー
タ受信しくS4〉、バッファがビジー(空きなし)のと
きはジャム信号をLAN伝送路上に送出(S5)して入
力データと衝突を起こさせる。
In this way, as shown in FIG.
Then, when there is no input data from the transmission line, there is no enable signal and standby (S2) L; when there is input data, the enable signal is input to the jam signal generator, and the process goes to step S.
When the buffer No. 3 is empty, the data is received by the LANC (S4), and when the buffer is busy (no empty space), a jam signal is sent onto the LAN transmission path (S5) to cause a collision with the input data.

第2図と第4図の第2の実施例において、とジーFFI
IにはLANCのイネーブル信号13が分岐入力されて
いる。イネーブル信号13はLANCに対し伝送路から
データ入力があることを知らせる信号で、データ入力中
は論理レベルがONになり、データ入力が無いときOF
Fとなる。ビジーFFIIは、イネーブル信号13がO
FFからONになりさらにOFFに戻るとセット状態に
なる。ビジーFFIIがセットされた状態の時に伝送路
からデータ入力があり、かつイネーブル信号13がOF
FからONになるとジャム信号発生器12はジャム信号
14を送出する。
In the second embodiment of FIGS. 2 and 4,
A branched LANC enable signal 13 is input to I. The enable signal 13 is a signal that notifies the LANC that there is data input from the transmission line.The logic level is ON during data input, and is OFF when no data is input.
It becomes F. Busy FFII indicates that the enable signal 13 is O.
When it changes from FF to ON and then returns to OFF, it becomes set state. When busy FFII is set, data is input from the transmission path, and enable signal 13 is OFF.
When F is turned ON, the jam signal generator 12 sends out a jam signal 14.

ジャム信号14は第1の実施例のジャム信号4と同様で
あり、このジャム信号14をLANCのデータ出力信号
線に合流させて送出する事で、伝送路では、データの衝
突と同じ状態になり、LANCは受信しかかったデータ
を破棄し、送信側はデータの送信を中断してランダムな
待ち時間の後、データの再送信をして来る。
The jam signal 14 is similar to the jam signal 4 of the first embodiment, and by merging this jam signal 14 with the data output signal line of the LANC and sending it out, the same state as a data collision occurs on the transmission line. , the LANC discards the data it was about to receive, and the sender interrupts data transmission and retransmits the data after a random waiting period.

CPUは、LANCからのデータ受信割込みによる割込
み処理を完了した時点でビジーFFIIをリセットし、
以降のフレームの受信を可能にする。
The CPU resets the busy FFII when it completes the interrupt processing due to the data reception interrupt from the LANC,
Enables reception of subsequent frames.

このようにすると、第4図に示すように、Slではイネ
ーブル信号13のOFF→○N→OFFが検出された時
点でビジーFF13がセット(S2)される。以降、ビ
ジーFF13がCPUによってリセットされるまでの間
にイネーブル信号13のOFF→0N(S3)があると
、ジャム信号14を送出しくS4)、LANの伝送路上
で入力データに対し衝突を起こさせる。
In this case, as shown in FIG. 4, the busy FF 13 is set (S2) at the time when the enable signal 13 is detected to change from OFF→○N→OFF. After that, if the enable signal 13 turns OFF to 0N (S3) until the busy FF 13 is reset by the CPU, the jam signal 14 is sent out (S4), causing a collision with the input data on the LAN transmission path. .

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、データ受信する機能に余
裕が無いとき、LAN伝送路からの入力データが有った
場合、ジャム信号を送出して入力データと衝突を発生さ
せて送信側にデータの送信中断とそのデータの再送を行
わせることによって、データ受信割込時間に余裕が出来
るので入力データの消失を低減出来るという効果がある
As explained above, in the present invention, when there is no margin in the data receiving function and there is input data from the LAN transmission line, a jam signal is sent out to cause a collision with the input data and the data is sent to the transmitting side. By interrupting the transmission of the data and retransmitting the data, there is an effect of reducing the loss of input data because the data reception interrupt time can be increased.

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

第1図及び第2図は本発明の第1と第2の実施例のブロ
ック図、第3図及び第4図は第1と第2の実施例の動作
を説明するための流れ図である。 1・・・バッファビジー 2,12・・・ジャム信号発
生器、3,13・・・イネーブル信号、4,14・・・
ジャム信号、11・・・ビジーFF。
1 and 2 are block diagrams of the first and second embodiments of the present invention, and FIGS. 3 and 4 are flowcharts for explaining the operations of the first and second embodiments. 1... Buffer busy 2, 12... Jam signal generator, 3, 13... Enable signal, 4, 14...
Jam signal, 11...busy FF.

Claims (1)

【特許請求の範囲】[Claims] LAN伝送路から入力されるデータの受信可否を判断す
る手段と、前記データの受信ができないとき前記LAN
伝送路上のデータに衝突をさせるジャム信号を送出す手
段とを有することを特徴とするLANにおけるデータ受
信制御方法。
means for determining whether or not data input from a LAN transmission line can be received;
1. A data reception control method in a LAN, comprising means for sending a jam signal that causes a collision with data on a transmission path.
JP27901788A 1988-11-02 1988-11-02 Data reception control method in lan Pending JPH02125545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27901788A JPH02125545A (en) 1988-11-02 1988-11-02 Data reception control method in lan

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27901788A JPH02125545A (en) 1988-11-02 1988-11-02 Data reception control method in lan

Publications (1)

Publication Number Publication Date
JPH02125545A true JPH02125545A (en) 1990-05-14

Family

ID=17605233

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27901788A Pending JPH02125545A (en) 1988-11-02 1988-11-02 Data reception control method in lan

Country Status (1)

Country Link
JP (1) JPH02125545A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07135509A (en) * 1993-11-10 1995-05-23 Nec Corp Lan controller

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59117846A (en) * 1982-12-24 1984-07-07 Nec Corp Data communicating equipment
JPS607246A (en) * 1983-06-27 1985-01-16 Toshiba Corp Converter
JPS62204639A (en) * 1986-03-04 1987-09-09 Nec Corp Local area network system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59117846A (en) * 1982-12-24 1984-07-07 Nec Corp Data communicating equipment
JPS607246A (en) * 1983-06-27 1985-01-16 Toshiba Corp Converter
JPS62204639A (en) * 1986-03-04 1987-09-09 Nec Corp Local area network system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07135509A (en) * 1993-11-10 1995-05-23 Nec Corp Lan controller

Similar Documents

Publication Publication Date Title
US6628613B1 (en) Flow control method in packet switched network
US5353287A (en) Local area network with message priority
US4494233A (en) Method and apparatus for the detection and regeneration of a lost token in a token based data communications network
US6052737A (en) Computer system, program product and method for dynamically optimizing a communication protocol for supporting more users
US6172984B1 (en) System and method for reducing the latency for time sensitive data over CSMA/CD networks
US6765878B1 (en) Selective use of transmit complete interrupt delay on small sized packets in an ethernet controller
US5717889A (en) Collison reduction algorithm for an ethernet backoff protocol
EP0893019B1 (en) Multiplex communication interface circuit and method
JPH02125545A (en) Data reception control method in lan
JP2002271334A (en) Controller and control method of network terminal
JPH0637855A (en) Resources management system for reception buffer
JPS61210740A (en) Emergency communicating control system for token bus type local network system
JPH06244898A (en) Connection setting collision avoiding system
JPH0381850A (en) Flow controlling system for computer system
JP3169720B2 (en) Signal collision prevention method
JPH06350611A (en) Communication processing system
JPH0251922A (en) Transceiver circuit for csma/cd access system local area network
JP2785868B2 (en) Basic communication transmission right inversion method
JP3463146B2 (en) Communication control method and device
JPH0918507A (en) Repeating device
JP2542461B2 (en) Collision detection transmission system
JPH07135509A (en) Lan controller
JPH0470148A (en) Power line carrier communication control equipment
JPH0385041A (en) Bridge for csma/cd system
JPH0484531A (en) Communication system for local network system