JPH04352534A - Address comparing system for communication control equipment - Google Patents

Address comparing system for communication control equipment

Info

Publication number
JPH04352534A
JPH04352534A JP3126415A JP12641591A JPH04352534A JP H04352534 A JPH04352534 A JP H04352534A JP 3126415 A JP3126415 A JP 3126415A JP 12641591 A JP12641591 A JP 12641591A JP H04352534 A JPH04352534 A JP H04352534A
Authority
JP
Japan
Prior art keywords
address
register
communication control
control device
terminal
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
JP3126415A
Other languages
Japanese (ja)
Inventor
Masahiko Kokado
正彦 古門
Hidekazu Tsutsui
英一 筒井
Hiroyuki Nakano
裕之 中野
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 JP3126415A priority Critical patent/JPH04352534A/en
Publication of JPH04352534A publication Critical patent/JPH04352534A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To efficiently execute the reception of frames and stripping with a little hardwares even when an equipment has plural terminal addresses concerning the address comparing system for a communication control equipment used for the data reception processing of a local area network. CONSTITUTION:One address register 2 stores a common address part Acom among terminal addresses A1-An set to plural terminal equipments 1-1 to 1-n, and the value of the address register 2 is compared with a part corresponding to the common address part Acom for the terminal of a reception address RA. Concretely, a control register 4 is provided with a mask bit to set the existence of address comparison for the unit of a bit and based on the mask bit of the control register 4, a comparison part 3 compares the value of the address register 2 with the reception address RA.

Description

【発明の詳細な説明】 【0001】 【産業上の利用分野】本発明は、ローカルエリアネット
ワークのデータ受信処理に用いられる通信制御装置のア
ドレス比較方式に関する。ローカルエリアネットワーク
(以下「LAN」という)に接続された端末装置は固有
の端末アドレスとしてMACアドレスをもっており、こ
の端末装置は通信制御装置を介してLANの伝送路に接
続される。通信制御装置は受信アドレスとMACアドレ
スを比較し、アドレス一致が得られると受信データ(受
信フレーム)を取り込むフィルタリングを行って端末装
置に送り、データ処理を行なわせる。またトークンリン
グ等では受信アドレスとMACアドレスの一致を判別し
た際には、自己が送信したフレームを伝送路から消去す
るためのストリッピング処理を行う。 【0002】更に通信制御装置に複数の端末装置を接続
する場合があり、この場合には複数のMACアドレスを
通信制御装置に設定してアドレス比較を行う。通信速度
が高速化してくると、ソフトウェアによるアドレス比較
処理では時間がかかりすぎるので、ハードウェアによる
アドレス比較を行う。しかし、MACアドレスを格納す
るレジスタ数が端末の数に応じて増加し、アドレスレジ
スタの数に対応したアドレス比較回路も複雑となり、こ
の点の改善が望まれる。 【0003】 【従来の技術】従来、図7に示すLANにあっては、伝
送路4に通信処理装置5を接続しており、1つの通信処
理装置5では通常1つのMACアドレス(端末アドレス
)を持ち、送信データの中に自己のMACアドレスと相
手先のMACアドレスとを設定することにより相互通信
を行っている。 【0004】このような通信アドレスの設定により複数
の通信処理装置5が接続されているネットワークの環境
の中で、目的の装置への送信が実現できる。一般には図
8のようなフレームを通信に使用する。図8において、
ディストネーションアドレスDAの領域には通信先のM
ACアドレスを格納する。このディストネーションアド
レスDAの領域は、自己のMACアドレスとの比較によ
りアドレス一致が得られた際に受信フレームを装置に取
り込むフィルタリングの対象となる。 【0005】ソースアドレスSAの領域には通信元のM
ACアドレスを格納する。このソースアドレスSAの領
域は、自己のMACアドレスとの比較によりアドレス一
致が得られた際に、トークンリング等では受信フレーム
を伝送路から消去するストリッピングの対象となる。一
方、通信処理装置5として図9に示すように、通信制御
モジュール6に例えば端末装置として3台の通信処理プ
ロセッサ1−1,1−2,1−3を接続し、1つの通信
処理装置5で複数の通信要求を一括して処理する場合が
ある。 【0006】この場合、1つの通信要求元に対し1つの
アドレスを割り当てるとすると、通信制御モジュール6
には通信処理プロセッサ1−1〜1−3の数だけのMA
Cアドレスを記憶し、記憶したMACアドレスと受信フ
レームのディストネーションアドレスDAが等しい通信
データのみを受信する必要がある。このアドレス比較の
処理方式としてソフトウェアによる方式と、ハードウェ
アによる方式がある。 【0007】ソフトウェアによるアドレス比較方式では
、送信されてくる全てのデータを一旦受信し、各データ
の宛先アドレスDAを調べて自己のMACアドレスに一
致しないものは破棄し、一致したものは対応する装置へ
データを転送する。一般的な低速の伝送路ではソフトウ
ェアによるアドレス比較方式のみで充分である。 【0008】 【課題を解決するための手段】しかしながら、ソフトウ
ェアによるアドレス比較方式では、通信処理におけるソ
フトウェアの処理時間が大きくなり、伝送路が高速にな
ると処理時間が長くなる。例えばFDDI(ファイバー
・ディスクトリビューテッド・デジタル・インタフェー
ス)等の高速伝送路をもつシステムにおいては、ソフト
ウェアによる処理時間がネックとなり、高速な伝送路を
充分に活用できないこともありうる。 【0009】その場合、必然的に何らかのハードウェア
による処理を行い、ソフトウェアの処理時間を減らさな
ければならない。ハードウェアによるアドレス比較方式
では処理性能は十分であるが、通信処理プロセッサの数
に対応した多くのMACアドレスを記憶及び比較する必
要があり、ハードウェア量が増加し、コストも高くなる
。 【0010】更にLANの一形態であるトークンリング
の場合、自装置が送信したフレームが伝送路から戻って
きた時にフレームのソースアドレスSAと自己のMAC
アドレスを比較し、等しければフレームをストリッピン
グ(消去)する必要がある。ストリッピングを行わない
とデータは永久に伝送路を回り続け、他の送信が出来な
くなるからである。 【0011】フレームのストリッピングはソフトウェア
での処理は不可能で、ハードウェアで行わなければなら
ない。このためトークンリングにおけるアドレス比較方
式は必然的にハードウェアとなり、通信処理プロセッサ
の数に対応した多くのMACアドレスを記憶及び比較す
る必要があり、ハードウェア量が増加し、コストも高く
なるという問題が生ずる。 【0012】本発明は、このような従来の問題点に鑑み
てなされたもので、複数の端末アドレスをもつ装置であ
っても、データの受信及びストリッピングを少ないハー
ドウェアで効率よく行うようにした通信制御装置のアド
レス比較方式を提供することを目的とする。 【0013】 【課題を解決するための手段】図1は本発明の原理説明
図である。まず本発明は、アドレスA1,A2,・・・
Anを有する複数の端末装置1−1,1−2,・・・1
−nを接続し、伝送路4からの受信アドレスRAと端末
アドレスA1,A2,・・・Anとの比較結果に基づき
受信データを取込んで対応する端末装置に出力する受信
処理、又は受信フレームを伝送路4から消去するストリ
ッピング処理を行う通信制御装置のアドレス比較方式を
対象とする。 【0014】このような通信制御装置のアドレス比較方
式として本発明にあっては、図1(a)に示すように、
複数の端末装置1−1〜1−nに設定した端末アドレス
A1〜Anのアドレス共通部Acom を格納したアド
レスレジスタ2と、アドレスレジスタ2の値と受信アド
レスRAの端末アドレス共通部Acom に対応する部
分とを比較する比較部3とを設けたことを特徴とする。 【0015】具体的には、比較部3によるアドレス比較
の有無をビット単位に設定するマスクビットを備えた図
1(b)に示すコントロールレジスタ4を設け、コント
ロールレジスタ4のマスクビットに基づいて比較部3で
アドレスレジスタ2の値と受信アドレスRAとを比較す
ることを特徴とする。またアドレスレジスタ2は、端末
アドレスが2進数の連続アドレスの場合、全ての端末ア
ドレスA1〜Anに共通するアドレス共通部Acom 
を格納した単一のレジスタで構成する。 【0016】一方、端末アドレスが2n の連続アドレ
スでない場合には、アドレスレジスタ2を、複数の端末
装置1−1〜1−nの中の1又は複数の端末アドレス毎
に求めたアドレス共通部Acom を格納した複数のレ
ジスタで構成する。更に、図1(b)に示すように、フ
レームの受信処理を指示する受信指示ビットとフレーム
のストリッピング処理を指示する消去指示ビットを備え
たコントロールレジスタ4を設け、受信指示ビットが有
効であればフレーム中の送信先アドレスDAとの比較を
比較部3に指示してアドレス一致が得られた際にフレー
ムの受信処理を実行し、一方、消去指示ビットが有効で
あれば、フレームの送信元アドレスSAとの比較を比較
部3に指示してアドレス一致が得られた際にストリッピ
ング処理を実行することを特徴とする。 【0017】 【作用】このような構成を備えた本発明による通信制御
装置のアドレス比較方式によれば次の作用が得られる。 まず複数の端末装置1−1〜1−nのMACアドレスは
、ハードウェア上では2進数で表わされる。MACアド
レスが8ビットであるとすると、 (0000  0000)2 〜(1111  111
1)2までの256アドレスを割り当てることができる
。 【0018】いま仮に(0000  0000)2 か
ら(0000  0011)2 まで4つのMACアド
レスを通信制御装置に接続している4台の端末装置1−
1〜1−4に割り当てたとする。この4つのMACアド
レスにおける共通点は「上位6ビットが0である」とい
うことである。従って、通信制御装置に4つのアドレス
レジスタを設けて4つのアドレスを記憶しておく必要は
なくなり、オール0の上位6ビットをアドレス共通部と
して格納した1台のアドレスレジスタ2のみを設け、比
較部3で対応する受信アドレスの部分とを比較すればよ
いことになる。 【0019】また、比較部3でアドレス一致が得られて
フィルタリングされた受信フレームを端末装置1−1〜
1−4に振り分ける処理はファームウェアが行う必要が
あるが、この振り分けは比較部3でアドレス比較を行わ
なかった受信アドレスの下位2ビットをMACアドレス
の下位2ビットと比較して判別すればよく、上位6ビッ
トの端末の区別には関係のないアドレスデータの処理を
行う必要がなくなり、ファームウェアの負荷が減少する
。 【0020】更に、アドレスにおける比較しないビット
位置をマスクビットにより指定できるようにすれば、端
末アドレスの総数よりは少ない複数のレジスタを用いて
2nでない端末アドレスでもムダなく処理できるように
なる。例えば8ビットのMACアドレスの場合、(00
00  0001)2 〜(0000  1001)2
の9種類のアドレスを設定した場合、 レジスタ                     
   マスクビット0000  0001      
        0000 00000000  00
1x              0000 0001
0000  01xx              0
000 00110000  100x       
       0000 0001とすることで、本来
9台のアドレスレジスタを必要としたものが、半分以下
の4台のアドレスレジスタで済ますことができる。 【0021】更に、コントロールレジスタ4に受信指示
ビットと消去処理ビットを設けておくことで、同一のア
ドレスレジスタ2を使用してフレームのフィルタリング
処理(受信処理)とフレームストリッピング処理(消去
処理)ができ、MACアドレスを記憶するレジスタのハ
ードウェア量を低減できる。  【0022】 【実施例】図2は本発明のアドレス比較が行われる通信
制御装置の一実施例を端末装置と共に示した実施例構成
図である。図2において、通信制御装置としての通信制
御モジュール6は端末装置としての通信処理プロセッサ
1−1〜1−3と共に通信処理装置を構成し、図7に示
したように伝送路4に接続される。通信処理プロセッサ
1−1〜1−3のいずれかより通信要求が行われると、
図8に示した送信フレームを作成して伝送路4に送り出
す。 【0023】通信制御モジュール6は、モデム60、ア
ドレス比較回路61、MPU(マイクロプロセッサ)6
2及びMPX(マルチプレクサ)63を備える。モデム
60は伝送路4との間でフレームデータの変復調を行う
。アドレス比較回路61は本発明のアドレス比較方式を
実現するハードウェアであり、受信フレームのディスト
ネーションアドレス(宛先アドレス)DAとMACアド
レスとの一致時にDA一致出力を生じ、フレームのソー
スアドレス(送信元アドレス)SAとMACアドレスと
の一致時にSA一致出力を生ずる。 【0024】MPU62はアドレス比較回路61からの
DA一致出力に応じて受信フレームのデータを端末側に
出力するフィルタリング処理を実行し、またSA一致出
力に基づき受信フレームを伝送路4から消去するストリ
ッピング処理を実行する。MPX63は、MPU62に
より切替制御され、MACアドレスが判別された通信処
理プロセッサ1−1〜1−3のいずれかを選択して受信
フレームのデータを送る。勿論、送信時には通信要求を
行った通信処理プロセッサ1−1〜1−3のいずれかを
MPU62に接続する。 【0025】図3は図2のアドレス比較回路61に設け
られるアドレスレジスタ2の実施例構成図であり、通常
、MACアドレスには48ビットが割り当てられること
から、16ビット単位に上位、中位及び下位に分け、3
つのMACアドレスレジスタMAR0〜2で構成してい
る。図4は図2のアドレス比較回路61に設けられるコ
ントロールレジスタ(CCR)4の実施例構成図であり
、例えば16ビットレジスタを使用している。 【0026】図4において、コントロールレジスタ4の
ビット00は受信指示ビットに使用され、またビット0
1はストリッピング指示ビットに使用される。受信指示
ビット00にビット1がセットされると受信指示が有効
となり、MACアドレスとソースアドレスSAとの一致
に基づきSA一致出力を行わせる。またストリッピング
指示ビット01にビット1がセットされるとストリッピ
ング指示が有効となり、MACアドレスとディストネー
ションアドレスDAとの一致に基づきDA一致出力を行
わせる。 【0027】コントロールレジスタ4のビット08〜1
5はマスクビットに使用される。この実施例では、例え
ば図3に示したMACアドレスレジスタ2のビット40
〜47の下位8ビットをMACアドレスに使用しており
、従って、コントロールレジスタ4のマスクビットもM
ACアドレスのビット40〜47に対応した8ビットが
準備されている。 【0028】図5は図3に示したアドレス比較回路61
の主要部を示した実施例回路図である。図5において、
10−1〜10−6は比較回路であり、フレームのMA
Cアドレスデータが1バイト(8ビット)単位に順次受
信されることから、48ビットのMACアドレスに対し
1バイト単位に分けて6つの比較回路10−1〜10−
6で構成している。 【0029】比較回路10−1〜10−6の一方の入力
端子には、受信したMACアドレス、具体的にはディス
ティネーションアドレスDA又はソースアドレスSAが
共通に入力される。比較回路10−1〜10−6の他方
の入力には、図3に示したMACアドレスレジスタ2に
記憶したアドレス値が同じく1バイト単位に入力されて
いる。 【0030】比較回路10−1〜10−5の出力には、
それぞれFF11,13,15,17,19,21と、
AND回路12,14,16,18,20,22が設け
られる。FF11,13,15,17,21は受信アド
レスビットに同期したクロックにより駆動される。即ち
、比較回路10−1の一致出力はFF11にラッチされ
、AND回路12を許容状態とする。この状態で次に比
較回路10−2が一致出力を生ずるとAND回路12を
介してFF13にラッチされる。 【0031】以下同様に、最後の6バイト目の比較回路
10−6の一致出力のラッチがFF21で行われる。最
後の6バイト目のアドレス比較を行う比較回路10−6
とAND回路20との間には、マスクビットに基づいて
アドレス比較を実行させるためのOR回路22−1〜2
2−8と、AND回路23が設けられる。 【0032】8つのOR回路22−1〜22−8の一方
の入力端子には、比較回路10−6の比較出力が共通に
入力される。またOR回路22−1〜22−8の他方の
入力端子には、図4に示したコントロールレジスタ4の
ビット08〜15に設定したマスクビットが入力される
。ここで4台の通信処理プロセッサ1−1〜1−4のM
ACアドレスとして、 (0000  0000)2 〜(0000  001
1)2まで4つを割り当てたとする。 【0033】この4つのMACアドレスにおける共通点
は「上位6ビットが0である」ということである。この
場合には図3のMACアドレスレジスタ2の下位8ビッ
トの中の上位6ビット、即ちビット40〜45をビット
0とし、ビット46,47はX(don´t  car
e)とする。同時に図4のコントロールレジスタ4のビ
ット08〜15のマスクビットを「00000011」
とし、下位2ビットを強制的にアドレス一致状態とする
。 【0034】このため図5の比較回路10−6より下位
8ビットの内の上位6ビットの一致出力がビット単位に
得られれば、下位2ビットの一致の有無に関わらず、マ
スクビットにより強制的にビット1にセットされ、その
結果、上位6ビットが一致していればOR回路22−1
〜22−8の出力は全て1となり、AND回路23の出
力も1となってAND回路20を介してFF21にアド
レス一致結果がラッチされる。 【0035】最終段のAND回路21の出力はAND回
路25、26に入力される。AND回路25はDA一致
出力を生ずる。即ち、図4のコントロールレジスタ4の
受信指示ビットが1にセットされている際に、受信フレ
ームの中のディストネーションアドレス(宛先アドレス
)DAの一致出力が比較回路10−1〜10−6から得
られると、このときビット1にセットした受信指示ビッ
ト、即ちストリッピング有効信号がAND回路25に入
力され、且つディストネーションアドレスDAの受信タ
イミングを示す宛先アドレス位置信号が入力されている
ことから、MACアドレスの一致出力が得られた次のク
ロックのタイミングでAND回路25よりDA一致出力
が行われる。 【0036】AND回路26はSA一致出力を生ずる。 即ち、図4のコントロールレジスタ4のストリッピング
指示ビットが1にセットされている際に、受信フレーム
の中のソースアドレス(宛先アドレス)SAの一致出力
が比較回路10−1〜10−6から得られると、このと
きビット1にセットしたストリッピング指示ビット、即
ち宛先アドレス有効信号がAND回路26に入力され、
且つソースアドレスSAの受信タイミングを示す宛先ア
ドレス位置信号が入力されていることから、MACアド
レスの一致出力が得られた次のクロックのタイミングで
AND回路26よりSA一致出力が行われる。 【0037】図6は本発明の他の実施例におけるMAC
アドレスとマスクビットの対応関係を示した説明図であ
る。この実施例では、図2の通信制御モジュール6に9
台の通信処理プロセッサ1−1〜1−9を接続した場合
であり、MACアドレスとして下位8ビットを使用し、
2n でない端末アドレスとして、図6のアドレスに示
す(0000  0001)2 〜(0000  10
01)2の9種類のアドレスを設定している。 【0038】この場合には、通信処理プロセッサ10−
1を次の4つのグループA〜Dに分け、各グループ毎に
図6に示すようにマスクビットを設定する。 グループA;  1−1        (1台)グル
ープB;  1−2,1−3(2台)グループC;  
1−4〜1−7(4台)グループD;  1−8,1−
9(2台)具体的には、各グループA〜D毎に図3及び
図4に示したMACアドレスレジスタ2及びコントロー
ルレジスタ4を設け、且つ図5における比較回路10−
6、OR回路22−1〜22−8、及びAND回路23
の構成をグループA〜D毎に設け、OR回路でまとめて
AND回路20に入力すればよい。 【0039】この実施例によれば、本来9台のMACア
ドレスレジスタ、コントロールレジスタ及び比較回路部
を必要としたものが、半分以下の4台分で済ますことが
できる。尚、上記の実施例では説明を簡潔にするため8
ビットのMACアドレスを例にとるものであったが、本
発明はこれに限定されず、システムに適合した適宜のビ
ット数のMACアドレスでもよい。 【0040】 【発明の効果】以上説明したように本発明によれば、1
つの通信制御装置で複数のMACアドレスを管理する場
合、2n の連続アドレスであれば、1つのアドレスレ
ジスタで複数のアドレスを指定でき、また簡単な比較回
路のみで実現できるため、ハードウェア量を低減し、大
幅なコストアップを伴うことなく高速通信に適合したア
ドレス比較ができる。 【0041】また2n の連続アドレスでなくとも、1
又は複数アドレス毎に共通アドレス部分を持っていれば
、実際の端末アドレス数より少ないアドレスレジスタの
数で済み、同様に、ハードウェア量を低減し大幅なコス
トアップを伴うことなく高速通信に適合したアドレス比
較ができる。
Description: BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an address comparison method for a communication control device used for data reception processing in a local area network. A terminal device connected to a local area network (hereinafter referred to as "LAN") has a MAC address as a unique terminal address, and this terminal device is connected to a transmission path of the LAN via a communication control device. The communication control device compares the received address and the MAC address, and if the addresses match, filters the received data (received frame) and sends it to the terminal device for data processing. Further, in a token ring or the like, when it is determined that the received address and the MAC address match, a stripping process is performed to erase the frame transmitted by itself from the transmission path. Furthermore, there are cases where a plurality of terminal devices are connected to the communication control device, and in this case, a plurality of MAC addresses are set in the communication control device and the addresses are compared. As communication speeds increase, address comparison processing using software takes too much time, so address comparison processing is performed using hardware. However, the number of registers that store MAC addresses increases in accordance with the number of terminals, and the address comparison circuit corresponding to the number of address registers also becomes complex, so improvements in this point are desired. [0003] Conventionally, in the LAN shown in FIG. 7, a communication processing device 5 is connected to a transmission path 4, and one communication processing device 5 usually uses one MAC address (terminal address). It carries out mutual communication by setting its own MAC address and the other party's MAC address in the transmitted data. [0004] By setting such a communication address, transmission to a target device can be realized in a network environment in which a plurality of communication processing devices 5 are connected. Generally, a frame as shown in FIG. 8 is used for communication. In Figure 8,
The destination address DA area contains the communication destination M.
Stores the AC address. This area of the destination address DA becomes a filtering target in which the received frame is taken into the device when an address match is obtained by comparison with the own MAC address. [0005] In the area of source address SA, communication source M
Stores the AC address. When the source address SA area is compared with its own MAC address and an address match is found, it becomes a stripping target for erasing the received frame from the transmission path in a token ring or the like. On the other hand, as the communication processing device 5, as shown in FIG. may process multiple communication requests at once. In this case, if one address is assigned to one communication request source, the communication control module 6
There are MAs equal to the number of communication processing processors 1-1 to 1-3.
It is necessary to memorize the C address and receive only communication data whose destination address DA of the received frame is equal to the stored MAC address. Processing methods for this address comparison include a software method and a hardware method. [0007] In the address comparison method using software, all transmitted data is once received, the destination address DA of each data is checked, and those that do not match the own MAC address are discarded, and those that match are sent to the corresponding device. Transfer data to. For general low-speed transmission lines, a software-based address comparison method is sufficient. [Means for Solving the Problems] However, in the software-based address comparison method, the software processing time in communication processing increases, and as the transmission path becomes faster, the processing time becomes longer. For example, in a system having a high-speed transmission line such as FDDI (Fiber Distributed Digital Interface), the software processing time becomes a bottleneck, and the high-speed transmission line may not be fully utilized. In that case, it is necessary to perform some kind of processing using hardware to reduce the software processing time. Although the hardware-based address comparison method has sufficient processing performance, it is necessary to store and compare a large number of MAC addresses corresponding to the number of communication processors, which increases the amount of hardware and costs. Furthermore, in the case of token ring, which is a form of LAN, when a frame transmitted by the own device returns from the transmission path, the source address SA of the frame and the own MAC
The addresses must be compared and if they are equal, the frame must be stripped (erased). This is because if stripping is not performed, the data will continue to circulate on the transmission path forever and no other transmission will be possible. [0011] Frame stripping cannot be processed by software and must be performed by hardware. For this reason, the address comparison method in Token Ring is inevitably hardware-based, and it is necessary to store and compare a large number of MAC addresses corresponding to the number of communication processors, which increases the amount of hardware and costs. occurs. The present invention has been made in view of these conventional problems, and it is possible to efficiently receive and strip data with less hardware even in a device having multiple terminal addresses. The purpose of this invention is to provide an address comparison method for a communication control device. [Means for Solving the Problems] FIG. 1 is a diagram illustrating the principle of the present invention. First, the present invention addresses addresses A1, A2,...
A plurality of terminal devices 1-1, 1-2,...1 having An
-n is connected, and reception processing or reception frames that captures reception data and outputs it to the corresponding terminal device based on the comparison result of the reception address RA from the transmission path 4 and the terminal addresses A1, A2, . . . An The present invention is directed to an address comparison method for a communication control device that performs a stripping process to erase data from the transmission path 4. In the present invention, as an address comparison method for such a communication control device, as shown in FIG. 1(a),
An address register 2 that stores an address common part Acom of terminal addresses A1 to An set in a plurality of terminal devices 1-1 to 1-n, and a value of the address register 2 and a terminal address common part Acom of the reception address RA correspond to each other. The feature is that a comparing section 3 is provided for comparing the two parts. Specifically, a control register 4 shown in FIG. 1B is provided which is equipped with a mask bit for setting whether or not the address comparison is to be performed by the comparison unit 3 on a bit-by-bit basis, and the comparison is performed based on the mask bit of the control register 4. The feature is that the value of the address register 2 and the received address RA are compared in the section 3. In addition, when the terminal address is a continuous binary number address, the address register 2 contains an address common part Acom common to all terminal addresses A1 to An.
It consists of a single register that stores . On the other hand, if the terminal address is not 2n consecutive addresses, the address register 2 is stored in the address common part Acom obtained for each one or more terminal addresses among the plurality of terminal devices 1-1 to 1-n. It consists of multiple registers that store . Furthermore, as shown in FIG. 1(b), a control register 4 is provided which includes a reception instruction bit for instructing frame reception processing and an erasure instruction bit for instructing frame stripping processing. For example, the comparator 3 is instructed to compare the destination address DA in the frame, and when an address match is obtained, the frame reception process is executed.On the other hand, if the erasure instruction bit is valid, the frame transmission source is It is characterized in that it instructs the comparator 3 to compare with the address SA and executes the stripping process when an address match is obtained. [0017] According to the address comparison method of the communication control device according to the present invention having such a configuration, the following effects can be obtained. First, the MAC addresses of the plurality of terminal devices 1-1 to 1-n are represented by binary numbers on hardware. Assuming that the MAC address is 8 bits, (0000 0000)2 ~ (1111 111
1) Up to 256 addresses can be assigned. [0018] Now, hypothetically, there are four terminal devices 1- whose MAC addresses from (0000 0000) 2 to (0000 0011) 2 are connected to the communication control device.
Suppose that it is assigned to 1 to 1-4. The common point among these four MAC addresses is that "the upper 6 bits are 0." Therefore, it is no longer necessary to provide four address registers in the communication control device to store four addresses, but to provide only one address register 2 that stores the upper 6 bits of all 0s as a common part of the address. 3, it is sufficient to compare the corresponding reception address part. [0019] Also, the comparison unit 3 outputs the filtered received frames whose addresses have been matched to the terminal devices 1-1 to 1-1.
Firmware must perform the process of distributing addresses 1 to 4, but this distribution can be determined by comparing the lower two bits of the received address for which no address comparison was performed in the comparison unit 3 with the lower two bits of the MAC address. There is no need to process address data unrelated to terminal distinction in the upper 6 bits, and the load on firmware is reduced. Furthermore, if the bit positions in the address that are not to be compared can be designated by mask bits, even terminal addresses other than 2n can be processed without waste by using a plurality of registers smaller than the total number of terminal addresses. For example, in the case of an 8-bit MAC address, (00
00 0001)2 ~(0000 1001)2
When 9 types of addresses are set, the register
Mask bits 0000 0001
0000 00000000 00
1x 0000 0001
0000 01xx 0
000 00110000 100x
0000 0001, what originally required nine address registers can be reduced to just four address registers, which is less than half the number. Furthermore, by providing a reception instruction bit and an erasure processing bit in the control register 4, frame filtering processing (reception processing) and frame stripping processing (erasure processing) can be performed using the same address register 2. It is possible to reduce the amount of hardware required for registers that store MAC addresses. Embodiment FIG. 2 is a block diagram showing an embodiment of a communication control device in which address comparison according to the present invention is performed together with a terminal device. In FIG. 2, a communication control module 6 as a communication control device constitutes a communication processing device together with communication processing processors 1-1 to 1-3 as terminal devices, and is connected to a transmission line 4 as shown in FIG. . When a communication request is made from any of the communication processors 1-1 to 1-3,
The transmission frame shown in FIG. 8 is created and sent to the transmission path 4. The communication control module 6 includes a modem 60, an address comparison circuit 61, and an MPU (microprocessor) 6.
2 and MPX (multiplexer) 63. The modem 60 modulates and demodulates frame data with the transmission line 4. The address comparison circuit 61 is hardware that realizes the address comparison method of the present invention, and produces a DA match output when the destination address (destination address) DA of the received frame matches the MAC address, and outputs a DA match output when the destination address (destination address) DA of the received frame matches Address) Generates an SA match output when the SA and MAC address match. The MPU 62 executes filtering processing to output the data of the received frame to the terminal side in response to the DA matching output from the address comparison circuit 61, and stripping processing to erase the received frame from the transmission path 4 based on the SA matching output. Execute processing. The MPX 63 is controlled by the MPU 62 to select one of the communication processors 1-1 to 1-3 whose MAC address has been determined, and sends the received frame data. Of course, at the time of transmission, one of the communication processors 1-1 to 1-3 that made the communication request is connected to the MPU 62. FIG. 3 is a block diagram of an embodiment of the address register 2 provided in the address comparison circuit 61 of FIG. Divided into lower parts, 3
It consists of two MAC address registers MAR0 to MAR2. FIG. 4 is a block diagram of an embodiment of the control register (CCR) 4 provided in the address comparison circuit 61 of FIG. 2, and uses, for example, a 16-bit register. In FIG. 4, bit 00 of control register 4 is used as a reception instruction bit, and bit 0
1 is used for the stripping indication bit. When bit 1 is set in reception instruction bit 00, the reception instruction becomes valid, and SA match output is performed based on the match between the MAC address and the source address SA. Further, when bit 1 is set in the stripping instruction bit 01, the stripping instruction becomes valid, and a DA match output is performed based on the match between the MAC address and the destination address DA. Bits 08-1 of control register 4
5 is used for mask bits. In this embodiment, for example, bit 40 of MAC address register 2 shown in FIG.
The lower 8 bits of ~47 are used for the MAC address, so the mask bit of control register 4 is also M
Eight bits corresponding to bits 40 to 47 of the AC address are prepared. FIG. 5 shows the address comparison circuit 61 shown in FIG.
FIG. 2 is an embodiment circuit diagram showing the main parts of the system. In Figure 5,
10-1 to 10-6 are comparison circuits, and MA of the frame.
Since C address data is received sequentially in units of 1 byte (8 bits), six comparison circuits 10-1 to 10- are divided into units of 1 byte for a 48-bit MAC address.
It consists of 6. The received MAC address, specifically, the destination address DA or source address SA, is commonly input to one input terminal of the comparison circuits 10-1 to 10-6. The address value stored in the MAC address register 2 shown in FIG. 3 is similarly input in 1-byte units to the other inputs of the comparison circuits 10-1 to 10-6. The outputs of the comparison circuits 10-1 to 10-5 are as follows:
FF11, 13, 15, 17, 19, 21 respectively,
AND circuits 12, 14, 16, 18, 20, and 22 are provided. FFs 11, 13, 15, 17, and 21 are driven by a clock synchronized with the received address bit. That is, the coincidence output of the comparator circuit 10-1 is latched by the FF 11, and the AND circuit 12 is placed in an allowable state. In this state, when the comparison circuit 10-2 next generates a coincidence output, it is latched into the FF 13 via the AND circuit 12. Similarly, the FF 21 latches the coincidence output of the comparator circuit 10-6 for the sixth and final byte. Comparison circuit 10-6 that compares the address of the last 6th byte
and the AND circuit 20, there are OR circuits 22-1 to 22-2 for performing address comparison based on the mask bits.
2-8 and an AND circuit 23 are provided. The comparison output of the comparison circuit 10-6 is commonly input to one input terminal of the eight OR circuits 22-1 to 22-8. Further, the mask bits set in bits 08 to 15 of the control register 4 shown in FIG. 4 are input to the other input terminals of the OR circuits 22-1 to 22-8. Here, four communication processing processors 1-1 to 1-4 M
As an AC address, (0000 0000)2 ~ (0000 001
1) Assume that you have assigned 4 items up to 2. [0033] A common feature among these four MAC addresses is that "the upper six bits are 0." In this case, the upper 6 bits of the lower 8 bits of the MAC address register 2 in FIG.
e). At the same time, set the mask bits of bits 08 to 15 of control register 4 in Figure 4 to "00000011".
and forces the lower two bits to match the address. Therefore, if a match output of the upper 6 bits of the lower 8 bits is obtained from the comparator circuit 10-6 in FIG. is set to bit 1, and as a result, if the upper 6 bits match, the OR circuit 22-1
The outputs of 22-8 to 22-8 all become 1, and the output of the AND circuit 23 also becomes 1, and the address match result is latched into the FF 21 via the AND circuit 20. The output of the final-stage AND circuit 21 is input to AND circuits 25 and 26. AND circuit 25 produces a DA match output. That is, when the reception instruction bit of the control register 4 in FIG. At this time, the reception instruction bit set to bit 1, that is, the stripping enable signal, is input to the AND circuit 25, and since the destination address position signal indicating the reception timing of the destination address DA is also input, the MAC A DA match output is performed from the AND circuit 25 at the timing of the next clock after the address match output is obtained. AND circuit 26 produces an SA match output. That is, when the stripping instruction bit of the control register 4 in FIG. When the stripping instruction bit set to bit 1 at this time, that is, the destination address valid signal, is input to the AND circuit 26,
In addition, since the destination address position signal indicating the reception timing of the source address SA is input, the SA coincidence output is performed from the AND circuit 26 at the timing of the next clock after the MAC address coincidence output is obtained. FIG. 6 shows a MAC in another embodiment of the present invention.
FIG. 2 is an explanatory diagram showing the correspondence between addresses and mask bits. In this embodiment, the communication control module 6 in FIG.
This is a case where communication processing processors 1-1 to 1-9 are connected, and the lower 8 bits are used as the MAC address,
As terminal addresses other than 2n, (0000 0001) 2 to (0000 10
01) 2, nine types of addresses are set. In this case, the communication processor 10-
1 is divided into the following four groups A to D, and mask bits are set for each group as shown in FIG. Group A; 1-1 (1 unit) Group B; 1-2, 1-3 (2 units) Group C;
1-4 to 1-7 (4 units) Group D; 1-8, 1-
9 (two units) Specifically, the MAC address register 2 and control register 4 shown in FIGS. 3 and 4 are provided for each group A to D, and the comparison circuit 10- in FIG.
6, OR circuits 22-1 to 22-8, and AND circuit 23
It is sufficient to provide the configuration for each group A to D, and input them together to the AND circuit 20 using an OR circuit. According to this embodiment, what originally required nine MAC address registers, control registers, and comparison circuit units can be reduced to four units, which is less than half of the total. In addition, in the above embodiment, in order to simplify the explanation, 8
Although a bit MAC address has been taken as an example, the present invention is not limited thereto, and may be a MAC address with an appropriate number of bits suitable for the system. Effects of the Invention As explained above, according to the present invention, 1
When managing multiple MAC addresses with one communication control device, multiple addresses can be specified with one address register as long as they are 2n consecutive addresses, and this can be achieved with only a simple comparison circuit, reducing the amount of hardware. This enables address comparisons suitable for high-speed communication without significantly increasing costs. [0041]Also, even if it is not 2n consecutive addresses, 1
Alternatively, if multiple addresses have a common address part, the number of address registers is smaller than the actual number of terminal addresses, and similarly, the amount of hardware can be reduced and high-speed communication can be achieved without a significant increase in cost. You can compare addresses.

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

【図1】本発明の原理説明図[Figure 1] Diagram explaining the principle of the present invention

【図2】本発明のアドレス比較を行う通信制御装置の実
施例構成図
[Fig. 2] Embodiment configuration diagram of a communication control device that performs address comparison according to the present invention.

【図3】図2のアドレス比較回路に設けるMACアドレ
スレジスタの実施例構成図
[Figure 3] Example configuration diagram of a MAC address register provided in the address comparison circuit in Figure 2

【図4】図2のアドレス比較回路に設けるコントロール
レジスタの実施例構成図
[Figure 4] Example configuration diagram of a control register provided in the address comparison circuit in Figure 2

【図5】図2のアドレス比較回路の主要部の実施例回路
[Fig. 5] Example circuit diagram of the main part of the address comparison circuit shown in Fig. 2.

【図6】本発明の他の実施例におけるMACアドレスと
マスクビットの対応説明図
FIG. 6 is an explanatory diagram of the correspondence between MAC addresses and mask bits in another embodiment of the present invention.

【図7】LANの説明図[Figure 7] Explanatory diagram of LAN

【図8】LANの送信フレームの説明図[Fig. 8] Explanatory diagram of LAN transmission frame

【図9】複数の
通信処理プロセッサを備えた通信処理装置の説明図
FIG. 9 is an explanatory diagram of a communication processing device including a plurality of communication processing processors.

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

1−1〜1−n:端末装置(通信処理プロセッサ)2:
アドレスレジスタ(MACアドレスレジスタ)3:比較
部 4:伝送路 6:通信制御モジュール 60:モデム 61:アドレス比較回路 62:マイクロプロセッサ(MPU) 63:マルチプレクサ(MPX) 10−1〜10−6:比較回路 11,13,15,17,19,21:FF12,14
,16,18,20,23,25,26:AND回路 22−1〜22−8:OR回路
1-1 to 1-n: Terminal device (communication processing processor) 2:
Address register (MAC address register) 3: Comparison unit 4: Transmission line 6: Communication control module 60: Modem 61: Address comparison circuit 62: Microprocessor (MPU) 63: Multiplexer (MPX) 10-1 to 10-6: Comparison Circuits 11, 13, 15, 17, 19, 21: FF12, 14
, 16, 18, 20, 23, 25, 26: AND circuits 22-1 to 22-8: OR circuits

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】固有の端末アドレス(A1,A2,・・・
An)を有する複数の端末装置(1−1,1−2,・・
・1−n)を接続し、伝送路(4)からの受信アドレス
(RA)と前記端末アドレス(A1,A2,・・・An
)との比較結果に基づき受信フレームを取込んで対応す
る端末装置に出力する受信処理又は受信フレームを伝送
路(4)から消去するストリッピング処理を行う通信制
御装置のアドレス比較方式に於いて、前記複数の端末装
置(1−1〜1−n)に設定した端末アドレス(A1〜
An)のアドレス共通部(Acom )を格納したアド
レスレジスタ(2)と、該アドレスレジスタ(2)の値
と前記受信アドレス(RA)の端末アドレス共通部(A
com )に対応する部分とを比較する比較部(3)と
を設けたことを特徴とする通信制御装置のアドレス比較
方式。
Claim 1: Unique terminal address (A1, A2,...
A plurality of terminal devices (1-1, 1-2,...) having
・1-n) is connected, and the reception address (RA) from the transmission path (4) and the terminal address (A1, A2,...An
) In an address comparison method of a communication control device that performs a reception process that captures a received frame and outputs it to a corresponding terminal device or a stripping process that deletes the received frame from the transmission path (4), Terminal addresses (A1 to 1-n) set to the plurality of terminal devices (1-1 to 1-n)
An address register (2) that stores the address common part (Acom) of the address register (2), and the terminal address common part (Acom) of the received address (RA) and the value of the address register (2).
An address comparison method for a communication control device, characterized in that a comparison unit (3) is provided for comparing a portion corresponding to a portion corresponding to com).
【請求項2】請求項1記載の通信制御装置のアドレス比
較方式に於いて、前記比較部(3)によるアドレス比較
の有無をビット単位に設定するマスクビットを備えたコ
ントロールレジスタ(4)を設け、該コントロールレジ
スタ(4)のマスクビットに基づいて前記比較部(3)
でアドレスレジスタ(2)の値と受信アドレス(RA)
とを比較することを特徴とする通信制御装置のアドレス
比較方式。
2. The address comparison method of a communication control device according to claim 1, further comprising a control register (4) having a mask bit for setting whether or not the comparison section (3) compares addresses on a bit-by-bit basis. , the comparison unit (3) based on the mask bit of the control register (4).
The value of the address register (2) and the receiving address (RA) are
An address comparison method for a communication control device characterized by comparing.
【請求項3】請求項1記載の通信制御装置のアドレス比
較方式に於いて、前記アドレスレジスタ(2)は、全て
の端末アドレス(A1〜An)に共通するアドレス共通
部(Acom )を格納した単一のレジスタで構成した
ことを特徴とする通信制御装置のアドレス比較方式。
3. In the address comparison method of a communication control device according to claim 1, the address register (2) stores an address common part (Acom) common to all terminal addresses (A1 to An). An address comparison method for a communication control device characterized by being configured with a single register.
【請求項4】請求項1記載の通信制御装置のアドレス比
較方式に於いて、前記アドレスレジスタ(2)は、通信
制御装置に接続された複数の端末装置(1−1〜1−n
)の中の1又は複数の端末アドレス毎に求めたアドレス
共通部(Acom )を格納した複数のレジスタで構成
したことを特徴とする通信制御装置のアドレス比較方式
4. In the address comparison method for a communication control device according to claim 1, the address register (2) is configured to compare a plurality of terminal devices (1-1 to 1-n) connected to the communication control device.
1. An address comparison method for a communication control device characterized by comprising a plurality of registers storing an address common part (Acom) obtained for each one or a plurality of terminal addresses in ).
【請求項5】請求項1記載の通信制御装置のアドレス比
較方式に於いて、フレームの受信処理を指示する受信指
示ビットとフレームのストリッピング処理を指示する消
去指示ビットを備えたコントロールレジスタ(4)を設
け、受信指示ビットが有効であればフレーム中の宛先ア
ドレス(DA)との比較を比較部(3)に指示してアド
レス一致が得られた際にフレームの受信処理を実行し、
前記消去指示ビットが有効であればフレームの送信元ア
ドレス(SA)との比較を比較部3に指示してアドレス
一致が得られた際にストリッピング処理を実行すること
を特徴とする通信制御装置のアドレス比較方式。
5. An address comparison method for a communication control device according to claim 1, wherein the control register (4) includes a reception instruction bit for instructing frame reception processing and an erasure instruction bit for instructing frame stripping processing. ), and if the reception instruction bit is valid, instructs the comparison unit (3) to compare with the destination address (DA) in the frame, and when an address match is obtained, executes frame reception processing,
A communication control device characterized in that, if the erasure instruction bit is valid, the comparison unit 3 is instructed to compare the frame with a source address (SA), and when an address match is obtained, a stripping process is executed. address comparison method.
JP3126415A 1991-05-30 1991-05-30 Address comparing system for communication control equipment Pending JPH04352534A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3126415A JPH04352534A (en) 1991-05-30 1991-05-30 Address comparing system for communication control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3126415A JPH04352534A (en) 1991-05-30 1991-05-30 Address comparing system for communication control equipment

Publications (1)

Publication Number Publication Date
JPH04352534A true JPH04352534A (en) 1992-12-07

Family

ID=14934604

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3126415A Pending JPH04352534A (en) 1991-05-30 1991-05-30 Address comparing system for communication control equipment

Country Status (1)

Country Link
JP (1) JPH04352534A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6314099B1 (en) 1997-11-28 2001-11-06 Mitsubishi Electric System Lsi Design Corporation Address match determining device, communication control system, and address match determining method
US6452908B1 (en) 1997-12-25 2002-09-17 Nec Corporation Route searching circuit and communication apparatus using the same

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6314099B1 (en) 1997-11-28 2001-11-06 Mitsubishi Electric System Lsi Design Corporation Address match determining device, communication control system, and address match determining method
US6452908B1 (en) 1997-12-25 2002-09-17 Nec Corporation Route searching circuit and communication apparatus using the same

Similar Documents

Publication Publication Date Title
US5764895A (en) Method and apparatus for directing data packets in a local area network device having a plurality of ports interconnected by a high-speed communication bus
US6157641A (en) Multiprotocol packet recognition and switching
US5218603A (en) Node unit and communications method for local area network
US5752076A (en) Dynamic programming of bus master channels by intelligent peripheral devices using communication packets
US5058109A (en) Exclusionary network adapter apparatus and related method
JPH02131048A (en) Packet transfer method between adapter, contention eliminating device and token-ring device
JPH08265270A (en) Transfer line assignment system
WO1997033230B1 (en) Asynchronous data pipe for automatically managing asynchronous data transfers between an application and a bus structure
GB2608979A (en) Real-time control sequencer with state matrix logic
JPH11503280A (en) Window comparator
JPH06259352A (en) Device for connection of data terminal to communication network
US5146560A (en) Apparatus for processing bit streams
US5793764A (en) LAN switch with distributed copy function
US6266336B1 (en) Apparatus and method for setting A/C bits in token ring frames for switches
US20030093595A1 (en) Apparatus and method for distribution of signals from a high level data link controller to multiple digital signal processor cores
JPH04352534A (en) Address comparing system for communication control equipment
EP0520116A1 (en) Method and apparatus for performing pattern search functions
US20030126342A1 (en) System to optimally order cycles originating from a single physical link
US6178462B1 (en) Protocol for using a PCI interface for connecting networks
EP1476986B1 (en) Information communication controller interface apparatus and method
EP0344915B1 (en) Apparatus and method for processing bit streams
JPH0738605A (en) Digital data packet switching module
US20240152477A1 (en) Distributed arbitration for shared data path
EP1408417A1 (en) Efficient messaging in a parallel processing system
JPH05324545A (en) Bus controller