JP2004048398A - Lan interface device - Google Patents

Lan interface device Download PDF

Info

Publication number
JP2004048398A
JP2004048398A JP2002203361A JP2002203361A JP2004048398A JP 2004048398 A JP2004048398 A JP 2004048398A JP 2002203361 A JP2002203361 A JP 2002203361A JP 2002203361 A JP2002203361 A JP 2002203361A JP 2004048398 A JP2004048398 A JP 2004048398A
Authority
JP
Japan
Prior art keywords
transmission
data
priority signal
lan interface
interface device
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
JP2002203361A
Other languages
Japanese (ja)
Inventor
Toshiyuki Shimizu
清水 俊行
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 Engineering Ltd
Original Assignee
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 Engineering Ltd filed Critical NEC Engineering Ltd
Priority to JP2002203361A priority Critical patent/JP2004048398A/en
Publication of JP2004048398A publication Critical patent/JP2004048398A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an LAN interface device capable of preventing a deterioration in transmission efficiency due to repetition of data collision. <P>SOLUTION: A transmitting part 11 transmits transmission data from terminal equipment 100 through a priority signal superimposing part 15 to a transmission path X. A collision detecting part 13 detects the collision of the transmission data on a transmission path. A collision count part 14 counts the number of times of the collision of the transmission data transmitted by its own node device 1. A priority signal superimposing part 15 superimposes a priority signal on re-transmission data when the count reaches the predetermined number of times of collision. When detecting a priority signal from other node devices 200, 300, and 400, a priority signal detecting part 16 inhibits the transmission of the transmission data of the transmitting part. A priority signal removing part 17 removes the priority signal from the reception data on which the priority signal is superimposed. A receiving part 12 outputs the reception data to the destination of its own node device from which the priority signal is removed to the terminal equipment. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
本発明は、LANインタフェース装置、特に、CSMA/CD(Carrier Sense Multiple Access/Collision Detection)方式を採用したLANにおけるデータ衝突時の伝送制御に好適なLANインタフェース装置に関する。
【0002】
【従来の技術】
複数のノードがバス接続されているLANシステムにおいて、データ伝送のための一方式としてCSMA/CDが知られている。CSMA/CD方式では、複数のノードが同時にデータを送信すると、伝送路上でデータが衝突する。この場合、通常は、衝突した各ノードはデータの送出を中止し、ランダムな時間経過後に再度データの送信を試みている。その結果、再びデータの衝突が発生する場合は、データの送信を何度か繰り返す(従来技術1)。
【0003】
しかし、この従来技術1では、各ノードから送信されるデータのタイミングがランダムであることから、衝突が無く1回でデータの送受ができるノードや、何度も衝突を繰り返してデータの送受が確立できないノードがあるという不公平が発生するという問題がある。
【0004】
この種の問題の解決を図った技術の一例が、特開平7−307759に「網間接続装置」(従来技術2)として記載されている。この装置は、他の通信ノードが送信した通信パケットが有ることをセンスした後の送信タイミング、およびデータ衝突検出後の再送タイミングを取る場合の送信遅延時間を簡単なメンバシップ関数を用いて最適な値に設定するというものである。送信遅延時間を決定する要素としては、前回データパケットを送信したから現在までの待機時間と、単位時間当りの衝突回数が採用される。
【0005】
【発明が解決しようとする課題】
しかしながら、上述した従来技術2では、知識ベースの有するメンバーシップ関数を用いてファジー推論して送信遅延時間を決定するため、従来技術1が有する上述の問題を緩和するが、データの衝突が発生した場合に再送を繰り返すことには変わりはないので、根本的な問題の解消にはならない。
【0006】
そこで、本発明の目的は、連続衝突回数を制限してデータ衝突の繰返しによる伝送効率の低下を防ぐことができるLANインタフェース装置を提供することにある。
【0007】
【課題を解決するための手段】
本発明のLANインタフェース装置は、同一LAN伝送路を介した端末装置間の通信をCSMA/CD方式で制御するLANインタフェース装置において、端末装置からの送信データがLAN伝送路上で衝突した場合には、その連続衝突回数を計数し、計数回数が予め定めた回数に達すると、優先信号を送出することにより他の端末装置からのデータ送信を阻止するようにしたことを特徴とするものである。
【0008】
より詳しくは、本発明のLANインタフェース装置(図1のノード装置1〜4)は、同一LAN伝送路を介した端末装置(図1の100,200,300,400)間の通信をCSMA/CD方式で制御する端末装置と1対1対応のLANインタフェース装置において、端末装置からの送信データを伝送路に送出するための送信部(図1の11)と、伝送路上で送信データが衝突したことを検出する衝突検出部(図1の13)と、自LANインタフェース装置から送出した送信データの衝突の連続回数をカウントする衝突カウント部(図1の14)と、カウントが予め定めた衝突回数に達した場合には再送信データに優先信号を重畳する優先信号重畳部(図1の15)と、他のLANインタフェース装置からの優先信号を検出すると送信部の送信データの送出を禁止する優先信号検出部(図1の16)と、優先信号が重畳されている受信データから優先信号を除去する優先信号除去部(図1の17)と、優先信号が除去された自LANインタフェース装置宛の受信データを端末装置へ出力する受信部(図1の12)とから構成されることを特徴とする。
【0009】
このように、本発明では、伝送路上においてノード装置間の送信データが衝突した場合に連続衝突回数をカウントし、予め定められた衝突回数に達した場合には、優先して伝送路上にデータを再送信し、他のノード装置において優先信号を検出すると送信データの伝送路への送出を禁止する構成としたため、衝突した各ノード装置がランダムな時間だけ待機した後、データを出力するような従来の方法で発生するデータ衝突の多数回の繰り返しが無くなり、データの衝突が繰り返されることによる伝送効率の低下を防ぐことができるようになる。
【0010】
【発明の実施の形態】
次に、本発明の実施例について図面を参照して詳細に説明する。
【0011】
【実施例の構成】
図1は、本発明のLANインタフェース装置の一実施例を示すブロック図である。図1参照すると、このLANインタフェース装置は、LAN伝送路と端末装置の間に介在するノード装置として具現化されている。図1では、4つの同構成のノード装置1,2,3,4が、1対1対応の端末装置100,200,300,400を伝送路Xに接続している。
【0012】
この実施例におけるノード装置1〜4は、ネットワーク上の分岐ポイントとしてではなく、中継ポイントとして位置付けられる。従って、ノード装置1〜4を端末装置100〜400に内蔵させることも可能であるが、このような外置きのノード装置1〜4は、ノード装置1〜4の機能を備えていない既存の端末装置100〜400を伝送路Xに接続する場合に意義がある。
【0013】
図1において、ノード装置1は、送信部11,受信部12,衝突検出部13,衝突カウント部14,優先信号重畳部15,優先信号検出部16および優先信号除去部17で構成されている。
【0014】
送信部11は、端末装置100において送信するべきデータが有る場合、または再送信データが有る場合に、送信許可信号11cに応答して端末装置100から送信データ100aが送られてくると、送信データ11aとして優先信号重畳部15に送出する。但し、送信許可信号11cは、受信部12からの受信通知信号12b、または優先信号検出部16からの送信禁止信号16a、または他のノード装置2〜4からの送信データに対する衝突検出信号13aが入力が入力している場合には、送信許可信号11cを端末装置100への送出は阻止される。
【0015】
送信データ11aは、優先信号重畳部15から送信データ15aとして伝送路Xへ送出されるが、この送信データ15aが伝送路X上で他の送信データと衝突した場合には、衝突検出部13から衝突検出信号13aが送信部11に入力する。送信部11は、衝突検出信号13aの入力に応答して、上述のように、再送信データのために送信許可信号11cを端末装置100に出力する。
【0016】
自ノード装置1から送出した送信データの連続衝突が所定回数に達すると、衝突カウント部14から優先通知信号14aが送信部11に入力する。この場合には、送信部11が送信許可信号11cを端末装置100に出力するタイミングを少しだけ遅延させる。これは、後述のように、優先信号重畳部15において、送信データに優先信号を重畳するための準備が必要となるからである。
【0017】
衝突検出部13は、伝送路X上で発生したデータの衝突を検出すると、送信部11と衝突カウント部14に衝突検出信号13aを出力する。その衝突は、ノード装置1が送出した送信データ15aについてのものに限られず、他のノード装置2〜4からの送信データについて発生したものをも含む。
【0018】
衝突カウント部14は、送信通知信号11bと衝突検出信号13aの両方が入力することにより、送信データ15aの連続衝突検出回数をカウントする。送信通知信号11bおよび衝突検出信号13aの入力により、衝突検出信号13aはノード装置1からの送信データ15aについてのものであったことを認識するからである。また、送信通知信号11bのみが入力した場合は、データ送信時に衝突が発生していないことになるので、衝突検出回数を0にリセットする。
【0019】
衝突カウント部14において連続衝突回数が予め定められた回数に達した場合、ノード装置1の送信データをノード装置2〜4からの送信データに優先して伝送路X上に送出させるために、送信部11と優先信号重畳部15に対して優先通知信号14aを出力する。
【0020】
優先信号重畳部15は、優先通知信号14aの入力がない場合には、送信データ11aをそのまま送信データ15aとし、優先通知信号14aの入力がある場合には、送信データ11aに優先信号を重畳させたものを送信データ15aとする。優先信号は、例えば、一定の直流バイアス電圧とすることができる。
【0021】
優先信号検出部16は、ノード装置1が優先ではないときに、ノード装置2〜4のいずれかが優先信号を重畳した送信データを伝送路X上に送出した場合、優先信号を検出して、送信部11に送信禁止信号16aを出力する。
【0022】
優先信号除去部17は、ノード装置1〜4のいずれかが優先信号を重畳した送信データを伝送路X上に送出している場合、その送信データから優先信号を除去し、受信データ17aとして受信部12に出力する。なお、優先信号が重畳されていないときは、伝送路X上のデータをそのまま受信データ17aとして受信部12に出力する。
【0023】
受信部12は、受信データ17aが入力すると、それがノード装置1宛てのものかを判断する。その結果、受信データ17aがノード装置1宛てのものである場合には受信データ12aとして端末装置100へ出力するとともに、受信通知信号11bを送信部11へ出力する。また、受信データ17aがノード装置1宛てのものでない場合には、受信データ17aを破棄する。
【0024】
【実施例の動作】
次に、以上のように構成された本実施例の動作について説明する。
【0025】
LANの伝送路Xに接続されたノード装置1〜4は、それぞれ端末装置100〜400からのデータを相互に送受信することができる。ここでは、ノード装置1が端末装置100からの送信データ100aを送信データ15aとして伝送路Xへ送信し、また受信するものとする。
【0026】
[送信動作]
先ず、送信動作について、図2に示すフローチャートと、図3に示すタイムチャートを参照しながら説明する。
【0027】
送信部11は、端末装置100から送信要求が有るか否かをチェックする(図2のステップA1)。その結果、送信要求が有る場合は(ステップA1でYES)、更に、受信通知信号12bまたは送信禁止信号16aの入力が無いことを確認の上で(ステップA4でNO)、送信許可信号11cを端末装置100に出力する(ステップA7)。ノード装置1が受信中であったり、他のノード装置2〜4に送信の優先権が有る場合には、ノード装置1からのデータ送信を阻止しなければならないからである。
【0028】
ステップA1で送信要求が無い場合でも(ステップA1でNO)、衝突検出信号13aの入力が有り(ステップA2でYES)、かつ、それがノード装置1からの送信データに対するものである場合は(ステップA3でYES)、受信通知信号12bまたは送信禁止信号16aの入力が無いことを確認の上で(ステップA4でNO)、送信データの再送信のため、送信許可信号11cを端末装置100に出力する(ステップA7)。
【0029】
いずれにせよ、送信許可信号11cを出力するときに、優先通知信号14aが入力していれば(ステップA5でYES)、送信許可信号11cを遅延させる(ステップA6)。
【0030】
一方、衝突検出信号13aの入力が有り(ステップA2でYES)、かつ、それがノード装置2〜4からの送信データに対するものである場合は(ステップA3でNO)、送信許可信号11cは出力されず、ノード装置1からのデータ送信は阻止される。これは、既に伝送路Xにおいてデータの衝突が発生しているからである。
【0031】
いま、端末装置100では、5つの送信データであるデータ1〜データ5を送信しようとしているとする。送信許可信号11cを受けた端末装置100から送信データ100a(データ1)がノード装置1に入力すると、送信部11は送信データ11aを優先信号重畳部15に出力するとともに、送信通知信号11bを衝突カウント部14に出力する(ステップA8)。このとき、優先信号重畳部15に優先通知信号14aが入力していなければ(ステップA9でNO)、優先信号重畳部15は送信データ11aをそのまま送信データ15aとして伝送路Xへ送出する(ステップA10)。
【0032】
ノード装置1〜4から伝送路Xに対しては、送信データが非同期に送出されてくるので、複数のノード装置が同時にデータの送信を行った場合には、伝送路X上でデータの衝突が起きる。伝送路Xにおいてデータの衝突が発生すると(ステップA11でYES)、衝突検出部13はデータの衝突が発生したことを検出して衝突検出信号13aを衝突カウント部14および送信部11に出力する(ステップA12)。ノード装置2〜4のデータ送信による送信部11への衝突検出信号13aの入力による効果は、前述したように、データの送信を一時中止することである(ステップA3でNO)。
【0033】
衝突カウント部14には、送信通知信号11bが既に入力しているので(ステップA8)、衝突検出信号13aが入力すると、衝突検出回数をカウントする(ステップA13)。これは、送信通知信号11bの入力により、衝突検出信号13aがノード装置1からの送信データ15aについてのものであることが確認できたからであり、送信通知信号11bの入力がない状態では、衝突検出信号13aが入力しても衝突検出回数をカウントすることはない。
【0034】
一方、衝突カウント部14は、送信通知信号11bが入力している状態で(ステップA8)、衝突検出信号13aが入力しない場合には、データ送信時に衝突が発生していないことになるので、衝突カウント部14の検出回数を0にリセットする(ステップA16)。これは、衝突検出回数が所定の回数だけ連続してカウントされたときにのみ優先通知信号14aを出力することとし、衝突検出信号13aを受けた送信部11がデータを再送信した結果、正常に送信できて衝突が連続しない場合には優先的な取扱をしないようにしたからである。
【0035】
衝突カウント部14において連続衝突回数があらかじめ定められた回数に達した場合(ステップA14でYES)、ノード装置1の送信データを優先的に伝送路X上に送出させるために、衝突カウント部14送信部11と優先信号重畳部15に対して優先通知信号14aを出力する(ステップA15)。優先通知信号14aが存在する場合の特別な処理はステップA6およびステップA17である。
【0036】
ステップA6は、送信部11が優先通知信号14aを受け取った場合に(ステップA5でYES)実行される。送信部11は、端末装置100に送信許可信号11cを出力する場合に、前述のように、そのタイミングを少しだけ遅延させ、優先信号重畳部15における送信データへの優先信号の重畳処理に便宜を与える。
【0037】
ステップA17は、優先信号重畳部15が優先通知信号14aを受け取った場合に(ステップA9でYES)実行される。優先信号重畳部15は、送信部11からの送信データ11aに優先データであることを示す、一定の直流バイアス電圧を優先信号として重畳する。その上で、送信データ15aとしてを伝送路Xに送出する(ステップA10)。
【0038】
図3は、ノード装置1が端末装置100からの送信データ100aを送信データ15aとして伝送路Xへ送出する場合のタイムチャートの例を示す。この例では、端末装置100は5つの送信データ100aとして、データ1〜データ5を伝送路Xへ送信しようとしており、衝突カウント部14に設定される連続衝突回数は5回としている。
【0039】
図3において、タイミングT1で送信部11から端末装置100へ出力された送信要求信号11cに応答して、端末装置100からデータ1が送信データ15aとしてノード装置1経由で伝送路Xへ送出されたところ、衝突検出信号13aが発生している。そこで、ノード装置1は再び端末装置100へ送信要求信号11cを出力して、端末装置100から再送信されてきたデータ1を伝送路Xへ送出することを繰り返したが(タイミングT2〜T5)、その都度、衝突検出信号13aが発生し、ついには優先通知信号14aが出力されるに到っている(タイミングT5)。
【0040】
この場合、送信部11は、上述のように、少し遅らせた送信許可信号11cを端末装置100aに出力する(タイミングT6)。また、送信データ15aは、データ1に一定の直流バイアス電圧が重畳されたものとなっている。この直流バイアス電圧は優先信号として機能する。
【0041】
優先信号が重畳された送信データ15aは、ノード装置2〜4からの送信データより優先的に取り扱われる。図3ではタイミングT6以後は衝突検出信号13aが発生していない。従って、当初予定していたデータ2〜データ5をタイミングT7〜T10において送信できるようになったことが示されている。
【0042】
[受信動作]
次に、受信動作について、図4に示すフローチャートと、図5に示すタイムチャートを参照しながら説明する。
【0043】
伝送路X上のデータに優先信号が重畳されていない場合(図4のステップB1でNO)、優先信号除去部17は、そのデータをそのまま受信データ17aとして受信部12に出力する(ステップB2)。受信部12は、受信データ17aがノード装置1宛のデータであるときは(ステップB3でYES)、受信データ12aとして端末装置100に出力するとともに、受信通知信号12bを送信部11に出力する(ステップB4)。受信通知信号12bを受けた送信部11は送信を差し控える。なお、受信データ17aがノード装置1宛のデータでないときは(ステップB3でNO)、受信部12は受信データ17aを破棄する(ステップB5)。
【0044】
一方、伝送路X上のデータに優先信号が重畳されている場合(ステップB1でYES)、優先信号除去部17は、一定の直流バイアス電圧である優先信号を除去し(ステップB6)、その後の受信信号17aを受信部12に出力する(ステップB2)。また、優先信号検出部16は、ノード装置1が優先ではないときには(ステップB7でNO)、優先信号を検出して送信部11に送信禁止信号16aを出力する(ステップB8)。これにより、送信部11は送信を見合わせる。なお、ノード装置1が優先でないことは、優先信号検出部16がノード装置2〜4からの送信データ15aに優先信号を検出することによって判明する。
【0045】
図5は、優先信号が重畳された他ノード宛の5つの送信データ(データa〜データe)と、優先信号が重畳された自ノード宛の5つの送信データ(データf〜データj)を優先でないノード装置1が受信した場合のタイムチャートを示す。データa〜データeと、データf〜データjのいずれにも優先信号が重畳されており、かつノード装置1は優先でないとされているため、いずれのデータ群に対しても送信禁止信号16aが優先信号検出部16から出力されている。
【0046】
また、送信データ17aから優先信号を除去したデータa〜データeおよびデータf〜データjが優先信号除去部17から出力されている。しかし、データa〜データeはノード装置1宛でないため受信部12で破棄され、ノード装置1宛のデータf〜データjのみが受信データ12として端末装置100aへ出力されている。
【0047】
なお、以上に説明したデータ送信方法およびデータ受信方法は、ノード装置を構成するコンピュータにおいてプログラムを実行させることによっても行うことができる。そのプログラムは、コンピュータを制御して、図2および図4に示した処理と同様な処理を行わせる。
【0048】
【発明の効果】
本発明は、伝送路上においてノード装置間の送信データが衝突した場合に連続衝突回数をカウントし、予め定められた衝突回数に達した場合には、優先して伝送路上にデータを再送信し、他のノード装置において優先信号を検出すると送信データの伝送路への送出を禁止する構成とした。このため、本発明によれば、衝突した各ノード装置がランダムな時間だけ待機した後、データを出力するような従来の方法で発生するデータ衝突の多数回の繰り返しが無くなり、データの衝突が繰り返されることによる伝送効率の低下を防ぐことができるようになる。
【図面の簡単な説明】
【図1】本発明のLANインタフェース装置の一実施例を示すブロック図
【図2】図1に示した実施例の送信動作を示すフローチャート
【図3】図1に示した実施例の送信動作の一例を示すタイムチャート
【図4】図1に示した実施例の受信動作を示すフローチャート
【図5】図1に示した実施例の受信動作の一例を示すタイムチャート
【符号の説明】
1〜4   ノード装置
11    送信部
12    受信部
13    衝突検出部
14    衝突カウント部
15    優先信号重畳部
16    優先信号検出部
17    優先信号除去部
100   端末装置
200   端末装置
300   端末装置
400   端末装置
X     伝送路
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a LAN interface device, and more particularly to a LAN interface device suitable for transmission control at the time of data collision in a LAN employing a CSMA / CD (Carrier Sense Multiple Access / Collision Detection) system.
[0002]
[Prior art]
In a LAN system in which a plurality of nodes are connected by a bus, CSMA / CD is known as one method for data transmission. In the CSMA / CD system, when a plurality of nodes transmit data at the same time, the data collide on a transmission path. In this case, usually, the colliding nodes stop sending data and try to send data again after a random time has elapsed. As a result, if data collision occurs again, data transmission is repeated several times (prior art 1).
[0003]
However, in the prior art 1, since the timing of data transmitted from each node is random, a node that can transmit and receive data at one time without collision or a data transmission and reception is established by repeating collision many times. There is a problem that unfairness occurs because there is a node that cannot.
[0004]
An example of a technique for solving this kind of problem is described in Japanese Patent Application Laid-Open No. 7-307759 as "inter-network connection apparatus" (prior art 2). This device optimizes the transmission timing after sensing that there is a communication packet transmitted by another communication node and the transmission delay time when taking the retransmission timing after detecting data collision using a simple membership function. It is set to a value. As the factors for determining the transmission delay time, the standby time from the previous transmission of the data packet to the present and the number of collisions per unit time are employed.
[0005]
[Problems to be solved by the invention]
However, in the above-described related art 2, since the transmission delay time is determined by fuzzy inference using the membership function of the knowledge base, the above-described problem of the related art 1 is alleviated, but data collision occurs. Repetition of retransmission in this case is still the same, so it does not solve the fundamental problem.
[0006]
Therefore, an object of the present invention is to provide a LAN interface device that can limit the number of continuous collisions and prevent a decrease in transmission efficiency due to repetition of data collision.
[0007]
[Means for Solving the Problems]
The LAN interface device according to the present invention is a LAN interface device for controlling communication between terminal devices via the same LAN transmission line by the CSMA / CD method. When transmission data from the terminal device collides on the LAN transmission line, The number of continuous collisions is counted, and when the counted number reaches a predetermined number, a priority signal is transmitted to prevent data transmission from another terminal device.
[0008]
More specifically, the LAN interface devices (node devices 1 to 4 in FIG. 1) of the present invention perform communication between terminal devices (100, 200, 300, and 400 in FIG. 1) via the same LAN transmission line. The transmission unit (11 in FIG. 1) for transmitting the transmission data from the terminal device to the transmission line in the LAN interface device corresponding to the terminal device controlled according to the one-to-one method, and the transmission data colliding on the transmission line. A collision detecting unit (13 in FIG. 1) for detecting a collision, a collision counting unit (14 in FIG. 1) for counting the number of consecutive collisions of transmission data transmitted from the own LAN interface device, The priority signal superimposing unit (15 in FIG. 1) that superimposes the priority signal on the retransmission data when the priority signal is reached, and the transmission unit that detects the priority signal from another LAN interface device. A priority signal detecting unit (16 in FIG. 1) for inhibiting transmission of transmission data; a priority signal removing unit (17 in FIG. 1) for removing a priority signal from received data on which the priority signal is superimposed; And a receiving unit (12 in FIG. 1) for outputting the received data addressed to the own LAN interface device to the terminal device.
[0009]
As described above, in the present invention, the number of continuous collisions is counted when transmission data between the node devices collides on the transmission path, and when the number of collisions reaches a predetermined number, the data is preferentially transmitted on the transmission path. Since the transmission is re-transmitted and the transmission of transmission data to the transmission path is prohibited when a priority signal is detected in another node device, a data output is performed after each of the conflicting node devices waits for a random time. This eliminates the multiple repetitions of data collisions that occur in the method described above, thereby preventing a reduction in transmission efficiency due to repeated data collisions.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Next, embodiments of the present invention will be described in detail with reference to the drawings.
[0011]
[Configuration of the embodiment]
FIG. 1 is a block diagram showing one embodiment of the LAN interface device of the present invention. Referring to FIG. 1, the LAN interface device is embodied as a node device interposed between a LAN transmission line and a terminal device. In FIG. 1, four node devices 1, 2, 3, and 4 having the same configuration connect terminal devices 100, 200, 300, and 400 corresponding to one-to-one to a transmission line X.
[0012]
The node devices 1 to 4 in this embodiment are positioned not as branch points on the network but as relay points. Therefore, the node devices 1 to 4 can be built in the terminal devices 100 to 400. However, such external node devices 1 to 4 are the same as existing terminal devices that do not have the functions of the node devices 1 to 4. It is significant when the devices 100 to 400 are connected to the transmission line X.
[0013]
In FIG. 1, the node device 1 includes a transmitting unit 11, a receiving unit 12, a collision detecting unit 13, a collision counting unit 14, a priority signal superimposing unit 15, a priority signal detecting unit 16, and a priority signal removing unit 17.
[0014]
When there is data to be transmitted in the terminal device 100 or when there is retransmission data, the transmission unit 11 transmits the transmission data 100a from the terminal device 100 in response to the transmission permission signal 11c. The signal is sent to the priority signal superimposing unit 15 as 11a. However, as the transmission permission signal 11c, the reception notification signal 12b from the reception unit 12, the transmission inhibition signal 16a from the priority signal detection unit 16, or the collision detection signal 13a for transmission data from the other node devices 2 to 4 is input. Is input, the transmission of the transmission permission signal 11c to the terminal device 100 is blocked.
[0015]
The transmission data 11a is transmitted from the priority signal superimposing unit 15 to the transmission line X as transmission data 15a. When the transmission data 15a collides with other transmission data on the transmission line X, the collision detection unit 13 The collision detection signal 13a is input to the transmission unit 11. In response to the input of the collision detection signal 13a, the transmission unit 11 outputs the transmission permission signal 11c to the terminal device 100 for the retransmission data as described above.
[0016]
When the continuous collision of the transmission data transmitted from the own node device 1 reaches a predetermined number, a priority notification signal 14 a is input from the collision counting unit 14 to the transmission unit 11. In this case, the timing at which the transmission unit 11 outputs the transmission permission signal 11c to the terminal device 100 is slightly delayed. This is because preparation for superimposing a priority signal on transmission data is required in the priority signal superimposing unit 15 as described later.
[0017]
When detecting a collision of data generated on the transmission path X, the collision detection unit 13 outputs a collision detection signal 13a to the transmission unit 11 and the collision counting unit 14. The collision is not limited to the transmission data 15a transmitted by the node device 1, but also includes the transmission data from the other node devices 2 to 4.
[0018]
The collision count unit 14 counts the number of continuous collision detections of the transmission data 15a by inputting both the transmission notification signal 11b and the collision detection signal 13a. This is because the input of the transmission notification signal 11b and the collision detection signal 13a recognizes that the collision detection signal 13a was for the transmission data 15a from the node device 1. If only the transmission notification signal 11b is input, it means that no collision has occurred at the time of data transmission, so the number of times of collision detection is reset to zero.
[0019]
When the number of continuous collisions reaches a predetermined number in the collision counting unit 14, the transmission data of the node device 1 is transmitted over the transmission path X in order to transmit the transmission data from the node devices 2 to 4 in preference to the transmission data. The priority notification signal 14a is output to the unit 11 and the priority signal superimposing unit 15.
[0020]
When there is no input of the priority notification signal 14a, the priority signal superimposing unit 15 uses the transmission data 11a as it is as the transmission data 15a, and when there is an input of the priority notification signal 14a, superimposes the priority signal on the transmission data 11a. This is referred to as transmission data 15a. The priority signal can be, for example, a constant DC bias voltage.
[0021]
The priority signal detection unit 16 detects the priority signal when any of the node devices 2 to 4 transmits the transmission data on which the priority signal is superimposed on the transmission path X when the node device 1 is not in priority, The transmission unit 11 outputs a transmission prohibition signal 16a.
[0022]
When any one of the node devices 1 to 4 transmits transmission data on which a priority signal is superimposed on the transmission line X, the priority signal removal unit 17 removes the priority signal from the transmission data and receives the data as reception data 17a. Output to the unit 12. When the priority signal is not superimposed, the data on the transmission path X is output to the receiving unit 12 as received data 17a as it is.
[0023]
When receiving data 17a is input, receiving unit 12 determines whether the received data 17a is addressed to node device 1. As a result, when the reception data 17a is addressed to the node device 1, the reception data 17a is output to the terminal device 100 as the reception data 12a, and the reception notification signal 11b is output to the transmission unit 11. If the received data 17a is not addressed to the node device 1, the received data 17a is discarded.
[0024]
[Operation of the embodiment]
Next, the operation of the present embodiment configured as described above will be described.
[0025]
The node devices 1 to 4 connected to the transmission path X of the LAN can mutually transmit and receive data from the terminal devices 100 to 400, respectively. Here, it is assumed that the node device 1 transmits and receives transmission data 100a from the terminal device 100 to the transmission line X as transmission data 15a.
[0026]
[Sending operation]
First, the transmission operation will be described with reference to the flowchart shown in FIG. 2 and the time chart shown in FIG.
[0027]
The transmitting unit 11 checks whether there is a transmission request from the terminal device 100 (Step A1 in FIG. 2). As a result, if there is a transmission request (YES in step A1), it is further confirmed that there is no input of the reception notification signal 12b or the transmission prohibition signal 16a (NO in step A4), and the transmission permission signal 11c is transmitted to the terminal. Output to the device 100 (step A7). This is because the data transmission from the node device 1 must be prevented when the node device 1 is receiving or when the other node devices 2 to 4 have a transmission priority.
[0028]
Even if there is no transmission request in step A1 (NO in step A1), if the collision detection signal 13a is input (YES in step A2) and it is for transmission data from the node device 1 (step (YES in A3), after confirming that there is no input of the reception notification signal 12b or the transmission prohibition signal 16a (NO in step A4), outputs the transmission permission signal 11c to the terminal device 100 for retransmission of transmission data. (Step A7).
[0029]
In any case, when the transmission permission signal 11c is output, if the priority notification signal 14a is input (YES in step A5), the transmission permission signal 11c is delayed (step A6).
[0030]
On the other hand, if there is an input of collision detection signal 13a (YES in step A2) and it is for transmission data from node devices 2 to 4 (NO in step A3), transmission permission signal 11c is output. Therefore, data transmission from the node device 1 is blocked. This is because data collision has already occurred on the transmission line X.
[0031]
Now, it is assumed that the terminal device 100 is going to transmit data 1 to data 5, which are five transmission data. When transmission data 100a (data 1) is input to the node device 1 from the terminal device 100 that has received the transmission permission signal 11c, the transmission unit 11 outputs the transmission data 11a to the priority signal superimposition unit 15 and collides with the transmission notification signal 11b. Output to the counting section 14 (step A8). At this time, if the priority notification signal 14a is not input to the priority signal superimposing section 15 (NO in step A9), the priority signal superimposing section 15 sends the transmission data 11a as it is to the transmission path X as the transmission data 15a (step A10). ).
[0032]
Since transmission data is asynchronously transmitted from the node devices 1 to 4 to the transmission line X, if a plurality of node devices transmit data at the same time, data collision on the transmission line X may occur. Get up. If a data collision occurs on the transmission path X (YES in step A11), the collision detection unit 13 detects that a data collision has occurred and outputs a collision detection signal 13a to the collision counting unit 14 and the transmission unit 11 ( Step A12). The effect of the input of the collision detection signal 13a to the transmission unit 11 by the data transmission of the node devices 2 to 4 is that the data transmission is temporarily stopped as described above (NO in step A3).
[0033]
Since the transmission notification signal 11b has already been input to the collision counter 14 (step A8), when the collision detection signal 13a is input, the number of times of collision detection is counted (step A13). This is because the input of the transmission notification signal 11b has confirmed that the collision detection signal 13a is for the transmission data 15a from the node device 1. In the absence of the transmission notification signal 11b, the collision detection signal 13a was detected. Even if the signal 13a is input, the number of times of collision detection is not counted.
[0034]
On the other hand, if the collision detection signal 13a is not input while the transmission notification signal 11b is being input (step A8), the collision counting unit 14 determines that no collision has occurred during data transmission. The number of detections of the counting section 14 is reset to 0 (step A16). This means that the priority notification signal 14a is output only when the number of times of collision detection is counted continuously for a predetermined number of times. As a result of the transmission unit 11 receiving the collision detection signal 13a retransmitting the data, This is because priority handling is not performed when transmission is possible and collision does not continue.
[0035]
When the number of continuous collisions reaches a predetermined number in the collision counting unit 14 (YES in step A14), the transmission of the collision counting unit 14 is performed in order to preferentially transmit the transmission data of the node device 1 onto the transmission path X. The priority notification signal 14a is output to the unit 11 and the priority signal superimposing unit 15 (step A15). Special processing when the priority notification signal 14a exists is step A6 and step A17.
[0036]
Step A6 is executed when the transmission unit 11 receives the priority notification signal 14a (YES in step A5). When outputting the transmission permission signal 11c to the terminal device 100, as described above, the transmission unit 11 delays the timing by a small amount, so that the priority signal superimposition unit 15 performs the process of superimposing the priority signal on the transmission data. give.
[0037]
Step A17 is executed when the priority signal superposition section 15 receives the priority notification signal 14a (YES in step A9). The priority signal superimposing unit 15 superimposes, as a priority signal, a fixed DC bias voltage indicating transmission data 11a from the transmission unit 11 as priority data. Then, the transmission data 15a is transmitted to the transmission path X (step A10).
[0038]
FIG. 3 shows an example of a time chart when the node device 1 sends out transmission data 100a from the terminal device 100 to the transmission line X as transmission data 15a. In this example, the terminal device 100 is going to transmit data 1 to data 5 to the transmission line X as five transmission data 100a, and the number of continuous collisions set in the collision counting unit 14 is five.
[0039]
In FIG. 3, in response to the transmission request signal 11c output from the transmission unit 11 to the terminal device 100 at the timing T1, data 1 is transmitted from the terminal device 100 to the transmission path X via the node device 1 as transmission data 15a. However, the collision detection signal 13a has been generated. Therefore, the node device 1 repeatedly outputs the transmission request signal 11c to the terminal device 100 and sends the data 1 retransmitted from the terminal device 100 to the transmission path X (at timings T2 to T5). Each time, the collision detection signal 13a is generated, and finally the priority notification signal 14a is output (timing T5).
[0040]
In this case, the transmission unit 11 outputs the transmission permission signal 11c slightly delayed to the terminal device 100a as described above (timing T6). The transmission data 15a is obtained by superimposing a constant DC bias voltage on the data 1. This DC bias voltage functions as a priority signal.
[0041]
The transmission data 15a on which the priority signal is superimposed is handled with higher priority than the transmission data from the node devices 2 to 4. In FIG. 3, the collision detection signal 13a is not generated after the timing T6. Accordingly, it is shown that data 2 to data 5 that were originally planned can be transmitted at timings T7 to T10.
[0042]
[Reception operation]
Next, the reception operation will be described with reference to the flowchart shown in FIG. 4 and the time chart shown in FIG.
[0043]
When the priority signal is not superimposed on the data on the transmission path X (NO in step B1 in FIG. 4), the priority signal removing unit 17 outputs the data as it is to the receiving unit 12 as the reception data 17a (step B2). . When the reception data 17a is data addressed to the node device 1 (YES in step B3), the reception unit 12 outputs the reception notification signal 12b to the transmission unit 11 while outputting the reception data 12a to the terminal device 100 (YES in step B3). Step B4). The transmitting unit 11 receiving the reception notification signal 12b refrain from transmitting. If the received data 17a is not data addressed to the node device 1 (NO in step B3), the receiving unit 12 discards the received data 17a (step B5).
[0044]
On the other hand, when the priority signal is superimposed on the data on the transmission path X (YES in step B1), the priority signal removing unit 17 removes the priority signal that is a constant DC bias voltage (step B6), and thereafter, The received signal 17a is output to the receiving unit 12 (Step B2). When the node device 1 has no priority (NO in step B7), the priority signal detection unit 16 detects the priority signal and outputs the transmission inhibition signal 16a to the transmission unit 11 (step B8). Thereby, the transmission unit 11 suspends transmission. Note that the fact that the node device 1 is not prioritized is determined by the priority signal detection unit 16 detecting a priority signal in the transmission data 15a from the node devices 2 to 4.
[0045]
FIG. 5 shows a case where five transmission data (data a to data e) destined for another node on which the priority signal is superimposed and five transmission data (data f to data j) destined for the own node on which the priority signal is superimposed. 3 shows a time chart when the node device 1 receives a message. Since the priority signal is superimposed on any of data a to data e and data f to data j and the node device 1 is not prioritized, the transmission prohibition signal 16a is output for any data group. It is output from the priority signal detector 16.
[0046]
Further, data a to data e and data f to data j obtained by removing the priority signal from the transmission data 17 a are output from the priority signal removing unit 17. However, since the data a to data e are not destined for the node device 1, they are discarded by the receiving unit 12, and only the data f to data j destined for the node device 1 are output to the terminal device 100 a as the reception data 12.
[0047]
The data transmission method and the data reception method described above can also be performed by causing a computer constituting a node device to execute a program. The program controls the computer to perform the same processing as the processing shown in FIGS.
[0048]
【The invention's effect】
The present invention counts the number of continuous collisions when transmission data between node devices collides on a transmission path, and when a predetermined number of collisions is reached, preferentially retransmits data on the transmission path, When another node device detects a priority signal, transmission of transmission data to the transmission path is prohibited. Therefore, according to the present invention, after each of the colliding node devices waits for a random time, the data collision that occurs in a conventional method such as outputting data is not repeated many times, and the data collision is repeated. , It is possible to prevent the transmission efficiency from being degraded.
[Brief description of the drawings]
1 is a block diagram showing an embodiment of a LAN interface device according to the present invention; FIG. 2 is a flowchart showing a transmission operation of the embodiment shown in FIG. 1; FIG. 3 is a flowchart showing a transmission operation of the embodiment shown in FIG. FIG. 4 is a flowchart showing a receiving operation of the embodiment shown in FIG. 1; FIG. 5 is a time chart showing an example of a receiving operation of the embodiment shown in FIG. 1;
1-4 Node device 11 Transmitting unit 12 Receiving unit 13 Collision detecting unit 14 Collision counting unit 15 Priority signal superimposing unit 16 Priority signal detecting unit 17 Priority signal removing unit 100 Terminal device 200 Terminal device 300 Terminal device 400 Terminal device X Transmission path

Claims (6)

同一LAN伝送路を介した端末装置間の通信をCSMA/CD方式で制御するLANインタフェース装置において、前記端末装置からの送信データが前記LAN伝送路上で衝突した場合には、その連続衝突回数を計数し、計数回数が予め定めた回数に達すると、優先信号を送出することにより他の端末装置からのデータ送信を阻止するようにしたことを特徴とするLANインタフェース装置。In a LAN interface device for controlling communication between terminal devices via the same LAN transmission line by the CSMA / CD method, when transmission data from the terminal device collides on the LAN transmission line, the number of continuous collisions is counted. When the count reaches a predetermined number, a LAN interface device transmits a priority signal to prevent data transmission from another terminal device. 同一LAN伝送路を介した端末装置間の通信をCSMA/CD方式で制御する前記端末装置と1対1対応のLANインタフェース装置において、
前記端末装置からの送信データを前記伝送路に送出するための送信部と、
前記伝送路上で送信データが衝突したことを検出する衝突検出部と、
自LANインタフェース装置から送出した送信データの前記衝突の連続回数をカウントする衝突カウント部と、
前記カウントが予め定めた衝突回数に達した場合には再送信データに優先信号を重畳する優先信号重畳部と、
他のLANインタフェース装置からの前記優先信号を検出すると前記送信部の送信データの送出を禁止する優先信号検出部と、
前記優先信号が重畳されている受信データから優先信号を除去する優先信号除去部と、
前記優先信号が除去された自LANインタフェース装置宛の受信データを前記端末装置へ出力する受信部とから構成されることを特徴とするLANインタフェース装置。
In a LAN interface device corresponding to the terminal device for controlling communication between terminal devices via the same LAN transmission line by the CSMA / CD method,
A transmission unit for transmitting transmission data from the terminal device to the transmission path,
A collision detection unit that detects that transmission data has collided on the transmission path,
A collision counting unit for counting the number of consecutive collisions of transmission data transmitted from the own LAN interface device;
A priority signal superimposing unit that superimposes a priority signal on retransmission data when the count reaches a predetermined number of collisions,
A priority signal detection unit for prohibiting transmission of transmission data of the transmission unit when detecting the priority signal from another LAN interface device;
A priority signal removing unit that removes a priority signal from the received data on which the priority signal is superimposed,
A receiving unit for outputting, to the terminal device, reception data addressed to the own LAN interface device from which the priority signal has been removed.
前記優先信号は、一定の直流バイアス電圧であることを特徴とする請求項1または請求項2に記載のLANインタフェース装置。3. The LAN interface device according to claim 1, wherein the priority signal is a constant DC bias voltage. 前記LANインタフェース装置は、前記端末装置と前記LAN伝送路との間に介在するノード装置であることを特徴とするっ請求項1ないし請求項3のいずれかに記載のLANインタフェース装置。4. The LAN interface device according to claim 1, wherein the LAN interface device is a node device interposed between the terminal device and the LAN transmission line. 同一LAN伝送路を介する端末装置間の通信をCSMA/CD方式で制御するLANインタフェース方法であって、
前記端末装置からの送信データを前記LAN伝送路に送出する手順と、
前記伝送路上で送信データが衝突したことを検出する手順と、
自LANインタフェース装置から送出した送信データの前記衝突の連続回数をカウントする手順と、
前記カウントが予め定めた衝突回数に達した場合には再送信データに優先信号を重畳する手順と、
他のLANインタフェース装置からの前記優先信号を検出すると前記送信データの送出を禁止する手順と、
前記優先信号が重畳されている受信データから優先信号を除去する手順と、
前記優先信号が除去された自LANインタフェース装置宛の受信データを前記端末装置へ出力する手順とを有することを特徴とするLANインタフェース方法。
A LAN interface method for controlling communication between terminal devices via the same LAN transmission line by a CSMA / CD method,
Transmitting the transmission data from the terminal device to the LAN transmission path;
A procedure for detecting that transmission data has collided on the transmission path,
A step of counting the number of continuous collisions of transmission data transmitted from the own LAN interface device;
When the count reaches a predetermined number of collisions, a procedure for superimposing a priority signal on retransmission data,
Prohibiting transmission of the transmission data upon detecting the priority signal from another LAN interface device;
Removing the priority signal from the received data on which the priority signal is superimposed,
Outputting to the terminal device the received data addressed to the own LAN interface device from which the priority signal has been removed.
同一LAN伝送路を介する端末装置間の通信をCSMA/CD方式で制御するLANインタフェース装置を構成するコンピュータで実行されるプログラムであって、
前記端末装置からの送信データを前記LAN伝送路に送出する機能と、
前記伝送路上で送信データが衝突したことを検出する機能と、
自LANインタフェース装置から送出した送信データの前記衝突の連続回数をカウントする機能と、
前記カウントが予め定めた衝突回数に達した場合には再送信データに優先信号を重畳する機能と、
他のLANインタフェース装置からの前記優先信号を検出すると前記送信データの送出を禁止する機能と、
前記優先信号が重畳されている受信データから優先信号を除去する機能と、
前記優先信号が除去された自LANインタフェース装置宛の受信データを前記端末装置へ出力する機能とを前記コンピュータに行わせることを特徴とするプログラム。
A program executed by a computer constituting a LAN interface device for controlling communication between terminal devices via the same LAN transmission line by a CSMA / CD method,
A function of transmitting transmission data from the terminal device to the LAN transmission path;
A function of detecting that transmission data has collided on the transmission path,
A function of counting the number of continuous collisions of transmission data transmitted from the own LAN interface device;
A function of superimposing a priority signal on retransmission data when the count reaches a predetermined number of collisions,
A function of prohibiting transmission of the transmission data upon detecting the priority signal from another LAN interface device;
A function of removing the priority signal from the reception data on which the priority signal is superimposed,
A program for causing the computer to perform a function of outputting to the terminal device reception data addressed to the own LAN interface device from which the priority signal has been removed.
JP2002203361A 2002-07-12 2002-07-12 Lan interface device Pending JP2004048398A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002203361A JP2004048398A (en) 2002-07-12 2002-07-12 Lan interface device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002203361A JP2004048398A (en) 2002-07-12 2002-07-12 Lan interface device

Publications (1)

Publication Number Publication Date
JP2004048398A true JP2004048398A (en) 2004-02-12

Family

ID=31709241

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002203361A Pending JP2004048398A (en) 2002-07-12 2002-07-12 Lan interface device

Country Status (1)

Country Link
JP (1) JP2004048398A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006033391A (en) * 2004-07-15 2006-02-02 Auto Network Gijutsu Kenkyusho:Kk Device and method for communication
KR100884620B1 (en) 2007-05-02 2009-02-23 충북대학교 산학협력단 A Signal collision prevention circuit

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006033391A (en) * 2004-07-15 2006-02-02 Auto Network Gijutsu Kenkyusho:Kk Device and method for communication
JP4574256B2 (en) * 2004-07-15 2010-11-04 株式会社オートネットワーク技術研究所 Communication apparatus and communication method
KR100884620B1 (en) 2007-05-02 2009-02-23 충북대학교 산학협력단 A Signal collision prevention circuit

Similar Documents

Publication Publication Date Title
US5353287A (en) Local area network with message priority
US6996074B2 (en) Receiver-initiated multiple access for ad-hoc networks (RIMA)
EP0344212A1 (en) Random multiple-access communication system
EP0877511B1 (en) System and method for improving CSMA/CD network performance during a collision
US5717889A (en) Collison reduction algorithm for an ethernet backoff protocol
KR100281138B1 (en) How to improve fairness in network use
JP2004048398A (en) Lan interface device
US20040233927A1 (en) Method of controlling communications
JPH11261609A (en) Data preferential transmission method/device in csma/cd system
JPH1056470A (en) Network communication control equipment
KR20010039385A (en) Backoff algorithm in consideration of the communication priority and collision protection protocol using thereof
JP3030831B2 (en) Interrupt reset type packet communication method
JPH04361447A (en) Inter-network connector and its control method
JP3087695B2 (en) COMMUNICATION TERMINAL, COMMUNICATION SYSTEM USING THE SAME, AND RECORDING MEDIUM CONTAINING COMMUNICATION CONTROL PROGRAM BY THE SYSTEM
JP3154626B2 (en) Serial transmission device
JPS62126735A (en) Emergency communication system
JP2004222019A (en) Semiconductor device
JP4033108B2 (en) CSMA data communication method and broadcast transmission node device and slave node device using the same method
JP3010254B2 (en) Switching hub
JPS61208942A (en) Network access method
JP2742158B2 (en) Traffic control method
JPH01119146A (en) Local area network of csma/cd system
JPH04117040A (en) Communication controller
Ma et al. Prioritized protocols for multi-bus local area networks
JPS59107666A (en) Multi-access communicating device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050609

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070413

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070424

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070625

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20070719