JPH02190048A - Address filter - Google Patents

Address filter

Info

Publication number
JPH02190048A
JPH02190048A JP1010596A JP1059689A JPH02190048A JP H02190048 A JPH02190048 A JP H02190048A JP 1010596 A JP1010596 A JP 1010596A JP 1059689 A JP1059689 A JP 1059689A JP H02190048 A JPH02190048 A JP H02190048A
Authority
JP
Japan
Prior art keywords
address
terminal
destination
memory
register
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
JP1010596A
Other languages
Japanese (ja)
Inventor
Kinji Atsumi
渥美 欣士
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
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP1010596A priority Critical patent/JPH02190048A/en
Publication of JPH02190048A publication Critical patent/JPH02190048A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PURPOSE:To suppress the increase of time till the comparison processing end of an address filter in the case of increasing the number of terminal addresses by comparing a terminal address value with a destination address value in an address register in a way of applying a binary search in order to retrieve a registered terminal address whose value is closest to the destination address of a received data. CONSTITUTION:Terminal addresses to be compared with a destination address in a data received from a LAN(local area network) are stored in an address registration memory 1 in an ascending order. A destination address is set to an address register 2, an address comparison section 3 compares the terminal address of the address registration memory 1 with the destination address in the address register 2 and outputs the result to a memory address generating section 4 and to the external device of the address filter. The memory address generating section 4 generates a memory address so as to search a terminal address close to the destination address of the address register 2 by means of the binary searching method. Thus, the increase in the time till the end of comparison in the case of increasing the number of terminal addresses is suppressed.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はLAN (o−カルエリアネットワーク)間接
続罠用いるMAC(メディアアクセスコントロール)ブ
リッジに関し、特にデータの中継の要・不要を判断する
為のアドレスフィルタに関する。
[Detailed Description of the Invention] [Field of Industrial Application] The present invention relates to a MAC (Media Access Control) bridge that uses connection traps between LANs (O-Cal Area Networks), and in particular, to determine whether data relay is necessary or unnecessary. Regarding address filters.

〔従来の技術〕[Conventional technology]

二つ或はそれ以上のLAN間でデータを中継し、別々の
LANに接続されている端末間の通信を可能とするMA
Cブリッジに於て、LAN上の全データを中験するので
はなく、中継する必要のあるデータのみを中継するよう
にすることで、接続した各LANの回線効率が不要なデ
ータによシ低下してしまうのを防ぐために効果的である
ことが知られている。ここで、MACブリッジが中継す
る必要のあるデータとは、そのデータの送信元端末と宛
先端末とが別々のLANに接続されているもののことで
ある。第3図と第4図に、送信元端末と宛先端末の接続
位置によるMACブリ、ジでのデータ中継の要・不要の
様子を示す。第3図は送信元端末Aと宛先端末Cとが別
々のLANに接続されている場合であり、この様な端末
間のデータをMACブリ、ジが中継することで別々のL
ANの端末間の通信が可能となる。第4図は送信元端末
Aと宛先端末Bとが同一のLANに接続されている場合
であり、この様な端末間のデータはMACブリッジにて
別のLANへ中継しないようにすることで、別のLAN
に不要なデータが送信されず、よってこの様な不要デー
タの中継によるLANの回線効率低下の防止に効果があ
る。
MA that relays data between two or more LANs and enables communication between terminals connected to different LANs.
By relaying only the data that needs to be relayed instead of testing all the data on the LAN, the C-Bridge reduces the line efficiency of each connected LAN due to unnecessary data. It is known to be effective in preventing this. Here, the data that needs to be relayed by the MAC bridge is data whose source terminal and destination terminal are connected to different LANs. FIG. 3 and FIG. 4 show whether or not data relay is necessary at the MAC bridge depending on the connection position between the source terminal and the destination terminal. Figure 3 shows a case where the source terminal A and the destination terminal C are connected to different LANs, and the data between these terminals is relayed by the MAC bridge and the destination terminal C is connected to separate LANs.
Communication between AN terminals becomes possible. Figure 4 shows a case where source terminal A and destination terminal B are connected to the same LAN, and by preventing data between such terminals from being relayed to another LAN using a MAC bridge, another LAN
Therefore, unnecessary data is not transmitted, and it is therefore effective to prevent a decrease in LAN line efficiency due to relaying of such unnecessary data.

MACブリッジによる以上の様なデータ中継実行の制御
は、端末から送信するデータの中へ制御用に専用の情報
を入れておいてやる方法と、端末から送信されるデータ
の中に含まれる宛先アドレスを利用して、MACブリ、
ジ自身がデータ中継の要・不要を判断する方法とが知ら
れている。この二つの方法の内、MACブリッジ自身が
宛先アドレスを利用してデータ中継の必要を判断する方
法では、MACブリッジの中に、データの宛先アドレス
を基にして、そのデータの中継の要・不要を判断する為
の機能が必要である。この様な機能を実現する為にアド
レスフィルタが用いられる。
The above-mentioned data relay execution control by the MAC bridge can be done by inserting dedicated control information into the data sent from the terminal, and by using the destination address included in the data sent from the terminal. Using MAC Buri,
A method is known in which the operator himself determines whether data relay is necessary or unnecessary. Of these two methods, in the method in which the MAC bridge itself uses the destination address to determine whether it is necessary to relay data, the MAC bridge has a system that determines whether or not relaying the data is necessary based on the destination address of the data. A function is needed to determine the Address filters are used to implement such functions.

アドレスフィルタに求められる機能としては、予め端末
のアドレスを登録しておいて、これとLANから受けた
データの宛先アドレスとの一致の有無が検出できれば良
い。MACブリッジでは、接続されているり、ANの中
の或−つのLANに存在している端末のアドレスをアド
レスフィルタに登録しておいて、そのLANから受信し
たデータの2宛先アドレスに一致する登録端末アドレス
の有無をアドレスフィルタにより調べ、一致する端末ア
ドレスが存在していたら、そのデータは一つのLAN内
の端末同士の通信の為のデータであることが判断出来る
。よって、MACブリッジはこのデータを別のLANに
中継する必要がないことになる。逆に、一致する登録ア
ドレスが存在しなかった場合には、そのデータの宛先は
データを受信したLANとは異なるLANの端末に対す
るものであることになり、MACブリッジは受信したデ
ータを別のLANへと中継する必要がある。MACブリ
ッジは接続されている複数のI、ANの各々にアドレス
フィルタを用意し、各々のアドレスフィルタに各々のL
ANの端末アドレスを登録しておくことで、LANから
受信したデータを別のLANに中継する必要があるかど
うかを判断出来る。
The function required of the address filter is to register the address of a terminal in advance and to detect whether or not this matches the destination address of data received from the LAN. In a MAC bridge, the addresses of terminals connected or existing in a certain LAN in the AN are registered in an address filter, and registered terminals that match the two destination addresses of data received from that LAN are registered in the address filter. The presence or absence of an address is checked using an address filter, and if a matching terminal address is found, it can be determined that the data is data for communication between terminals within one LAN. Therefore, the MAC bridge does not need to relay this data to another LAN. Conversely, if there is no matching registered address, the destination of the data is a terminal on a LAN different from the LAN that received the data, and the MAC bridge transfers the received data to a different LAN. need to be relayed to. The MAC bridge prepares an address filter for each of the multiple I and ANs connected, and provides each L address filter for each address filter.
By registering the terminal address of the AN, it is possible to determine whether data received from the LAN needs to be relayed to another LAN.

第5図は上述した様な機能を有するアドレスフィルタの
構成図である。アドレス登録メモリ5にはLANに接続
されている端末のアドレスが登録されており、アドレス
レジスタ6にはLANから受信したデータの宛先アドレ
スがセットされる。
FIG. 5 is a block diagram of an address filter having the functions described above. The addresses of terminals connected to the LAN are registered in the address registration memory 5, and the destination addresses of data received from the LAN are set in the address register 6.

アドレス比較部7はアドレス登録メモリ5の端末アドレ
スの値とアドレスレジスタ6内の宛先アドレスの値とを
比較する。比較の結果、値が一致している場合には、一
致したことを外部に通知して処理を完了する。比較結果
が不一致の場合には、アドレス登録メモリ5内の次の端
末アドレスの値とアドレスレジスタ6内の宛先アドレス
の値との比較へと進む。この様に、アドレス比較部7は
アドレス登録メモリ5内の端末アドレスの値とアドレス
レジスタ6内の宛先アドレスの値とを順次比較してゆき
、値が一致したとき一致したことを外部に通知して処理
を完了する。アドレス登録メモリ5内のいずれの端末ア
ドレスもアドレスレジスタ6の宛先アドレスと一致しな
かった場合には、全ての登録されている端末アドレスと
の比較が完了した時点で一致アドレス無しが外部へ通知
される。MACブリッジは、この比較結果を用いてLA
Nから受けたデータを別のり、ANへ中継必要があるか
どうか判断する。
The address comparator 7 compares the value of the terminal address in the address registration memory 5 and the value of the destination address in the address register 6. As a result of the comparison, if the values match, the match is notified to the outside and the process is completed. If the comparison result is a mismatch, the process proceeds to a comparison between the value of the next terminal address in the address registration memory 5 and the value of the destination address in the address register 6. In this way, the address comparison unit 7 sequentially compares the value of the terminal address in the address registration memory 5 and the value of the destination address in the address register 6, and when the values match, it notifies the outside that they match. to complete the process. If any terminal address in the address registration memory 5 does not match the destination address in the address register 6, the absence of a matching address is notified to the outside when the comparison with all registered terminal addresses is completed. Ru. The MAC bridge uses this comparison result to
It separates the data received from N and determines whether it is necessary to relay it to AN.

第6図は第5図によシ説明したアドレスフィルタを用い
たMACブリッジの構成の一例を示す。
FIG. 6 shows an example of the configuration of a MAC bridge using the address filter described in FIG. 5.

アドレスフィルタ8にはLAN−Iの端末アドレスが登
録されている。LAN−Iからのデータはデータ受信部
9によシ受信され、データの宛先アドレスがアドレスフ
ィルタ8のアドレスレジスタにセットされる。アドレス
フィルタ8は登録されている端末アドレスと受信データ
中の宛先アドレスとを比較し、一致する端末アドレスが
有った場合には、一致したことをMACブリッジに通知
する。MACブリッジはこの一致の通知によシ受信デー
タを破棄する。一致する端末アドレスが無かった場合に
は、アドレスフィルタ8からMACブリッジに対して一
致アドレス無しが通知される。
LAN-I terminal addresses are registered in the address filter 8. Data from the LAN-I is received by the data receiving section 9, and the destination address of the data is set in the address register of the address filter 8. The address filter 8 compares the registered terminal address and the destination address in the received data, and if there is a matching terminal address, notifies the MAC bridge of the match. The MAC bridge discards the received data upon notification of this match. If there is no matching terminal address, the address filter 8 notifies the MAC bridge that there is no matching address.

MACブリ、ジは一致アドレス無しの通知に基づきデー
タ受信部9が受信したデータをデータ送信部10により
LAN−1へと中継する。LAN−■から受けたデータ
もLAN−1からの場合と同様であり、アドレスフィル
タ11を用いてデータ中継の必要を判断し、中継する必
要のあるデータ、すなわち宛先がLAN−1に存在する
端末に対するデータがデータ受信部12により受信され
、データ送信部13によ、9LAN−1へと中継される
Based on the notification that there is no matching address, the MAC relay relays the data received by the data receiving section 9 to the LAN-1 using the data transmitting section 10. The data received from LAN-■ is the same as the case from LAN-1, and the address filter 11 is used to determine the necessity of data relay, and the data that needs to be relayed, that is, the terminal whose destination is on LAN-1 The data for is received by the data receiving section 12, and is relayed to the 9LAN-1 by the data transmitting section 13.

以上の様なアドレスフィルタを用いることによ、9、M
ACブリ、ジは中継する必要のあるデータのみ中継し、
中継する必要のないデータは中継しないという制御が可
能になる。
By using the above address filter, 9, M
AC Bri, Ji relays only the data that needs to be relayed,
It becomes possible to control such that data that does not need to be relayed is not relayed.

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

ところで、登録されている端末アドレスの値とLANか
ら受信したデータの宛先アドレスの値との比較は、上述
の様に登録されている端末アドレスを順次比較対象とし
ていく方法でも、比較という点に関しては機能的に十分
であるが、登録可能な端末アドレスを増加させると、増
加に比例して比較完了までに時間が掛かるようになる。
By the way, the comparison between the value of the registered terminal address and the value of the destination address of the data received from the LAN can be done by sequentially comparing the registered terminal addresses as described above, but in terms of comparison, Although it is functionally sufficient, as the number of registerable terminal addresses increases, it takes longer to complete the comparison in proportion to the increase.

1特に、LANから受けたデータが別のLANK中継す
る必要のあるデータであった場合、アドレスフィルタに
は、このデータの宛先の端末アドレスは登録されてはい
ないから、アドレスフィルタに登録されている全端末ア
ドレスの値とデータの宛先アドレスの値との比較を行い
、全て不一致が確認されてから初めて一致アドレス無し
という結果が得られることKなる。つまり、中継する必
要のあるデータの場合、常に最長の比較時間を要するこ
とになシ、この様なアドレスフィルタを用いて登録可能
端末アドレスを多くすると、データ中継の必要を判断す
るのに必要な時間が長くなり、MACブリッジのデータ
中継能力が低下してしまうという問題がある。
1. In particular, if the data received from the LAN is data that needs to be relayed to another LANK, the destination terminal address of this data is not registered in the address filter, so it is registered in the address filter. The value of all terminal addresses and the value of the data destination address are compared, and the result that there is no matching address is obtained only after all mismatches are confirmed. In other words, in the case of data that needs to be relayed, the longest comparison time is always required.Using such an address filter to increase the number of terminal addresses that can be registered will reduce the time needed to determine the need for data relay. There is a problem in that the time becomes longer and the data relaying ability of the MAC bridge decreases.

また、端末アドレスの桁数としては、絶対的にある決ま
った桁数にする必要があるわけではなく、LANシステ
ム毎に自由に決めて良い性質のものであるが、現在、標
準化或は規格化されているLANでは48ビツトもの端
末アドレスを採用しているものがある。上述のアドレス
フィルタを48ビツトの端末アドレスを採用しているシ
ステムで使えるようにするには、アドレス登録メモリ、
アドレスレジスタ、アドレス比較部の各々が48ビツト
の桁数のものを作ればアドレスフィルタの機能としては
十分であるが、このように必要とされる端末アドレスの
桁数に合わせて単純に回路各部の桁数を増やしていたの
では、ノ・−ドウエアの規模をいたずらに大きくしコス
ト面で不利になる。
In addition, the number of digits in the terminal address does not have to be a certain number of digits, and can be freely determined for each LAN system, but currently there is no standardization or standardization. Some of the LANs currently available use terminal addresses as long as 48 bits. In order to use the above address filter on a system that uses 48-bit terminal addresses, address registration memory,
It would be sufficient for the address filter to function if the address register and address comparator were each made to have 48 bits of digits. Increasing the number of digits would unnecessarily increase the scale of the software and be disadvantageous in terms of cost.

例えは、アドレス登録メモリとして48ビツトの桁数の
ものを用意するには、一般的な8ビ、トのデータ入出力
のメモリを用いると、6個のメモリが必要となる。これ
は、単にメモリの個数の増加だけを意味するのではなく
、部品実装面積の増大をも招いてしまうことになる。ま
た、回路をゲートアレイなどを用いて小形化しようとし
ても、現状で得られるケートプレイでは、MACブリッ
ジのアドレスフィルタとして十分な桁数と容量のメモリ
を作り込むことは無理であり、アドレス登録メモリが外
付けになってしまう3.このため、入出力の数が多くな
ってしまい、ゲートアレイ化など事実上実現出来なくな
ってしまう場合も出て来る。
For example, in order to prepare a 48-bit address registration memory, if a general 8-bit data input/output memory is used, six memories are required. This not only means an increase in the number of memories, but also an increase in the component mounting area. Furthermore, even if we try to miniaturize the circuit using gate arrays, etc., it is impossible to create a memory with a sufficient number of digits and capacity for the address filter of the MAC bridge with the current Kate Play, and the address registration memory 3. becomes an external device. For this reason, the number of inputs and outputs increases, and there are cases where it becomes virtually impossible to realize a gate array.

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

第1の発明のアドレスフィルタは端末アドレスが値の順
番に登録されたアドレス登録メモリと、データの宛先ア
ドレスを保持するアドレスレジスタと、前記アドレス登
録メモリ内の端末アドレスト前記アドレスレジスタ内の
宛先アドレスとを入力とし値の一致或は大小の比較を行
い比較結果を出力するアドレス比較部と、前記アドレス
比較部の比較結果の出力を基にして宛先アドレスの値に
より近い端末アドレスを二分探索法を用いて捜すために
前記アドレス登録メモリに読み出しの番地を与えるメモ
リ番地発生部とを備える。
The address filter of the first invention includes an address registration memory in which terminal addresses are registered in the order of values, an address register that holds a data destination address, a terminal address in the address registration memory, and a destination address in the address register. and an address comparison section which takes as input, compares the values to see whether they match or are large and small, and outputs the comparison results; and a binary search method to find a terminal address that is closer to the destination address value based on the output of the comparison results of the address comparison section. and a memory address generation section that provides a read address to the address registration memory for searching using the address register.

第2の発明のアドレスフィルタは端末アドレスの桁数を
幾つかに分割した桁数のみを有し端末アドレスが複数の
番地に分割して登録されているアドレス登録メモリと、
受信データの宛先アドレスと等しい桁数を入力として宛
先アドレスを保持した宛先アドレスを前記アドレス登録
メモリと同様の分割数にして分割した内の一つを出力と
して選択可能なアドレスレジスタと、前記アドレス登録
メモリ及び前記アドレスレジスタの出力と等しい桁数の
アドレス比較部と、前記アドレス登録メモリ及び前記ア
ドレスレジスタに読み出し番地を与えるメモリ番地発生
部とを備える。
The address filter of the second invention includes an address registration memory having only the number of digits obtained by dividing the number of digits of the terminal address into several parts, and in which the terminal address is registered divided into a plurality of addresses;
an address register that can select as an output one of the divided destination addresses that hold the destination address with the same number of digits as the destination address of the received data as an input and the same number of divisions as the address registration memory, and the address register; The device includes a memory and an address comparing section having the same number of digits as the output of the address register, and a memory address generating section that provides a read address to the address registration memory and the address register.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は第1の発明の一実施例を示し、アドレス登録メ
モリlには、LANから受信するデータ中の宛先アドレ
スの値と比較をしたい端末アドレスが値の順番に格納さ
れているものとする。以下の説明では、このアドレスの
順番は値の小さなものから大きなものへと並んでいるも
のとするが、逆の順番であっても同等の機能は実現可能
である。
FIG. 1 shows an embodiment of the first invention, in which terminal addresses to be compared with the destination address values in data received from the LAN are stored in the order of values in the address registration memory l. do. In the following explanation, it is assumed that the addresses are arranged in order from the smallest value to the largest value, but the same function can be achieved even if the order is reversed.

また、アドレス登録メモIJ lの桁数は、接続するL
ANで用いるMACアドレスの桁数に合わせたものとす
る。さらに、アドレス登録メモリ1の記憶容量は登録可
能とする端末アドレスの個数に端末アドレスの桁数を掛
けた値のビット数を下回らないものとする。このような
アドレス登録メモリlの登録可能端末アドレスの個数に
対して実際に全て端末アドレスが登録されるとは限らな
いので、端末アドレスが登録されない空き領域には端末
アドレスの取得る値のなかの最大値を入れておくものと
する。LANに接続する端末の中には、この空き領域を
埋める為のアドレス値に等しいアドレスの端末を接続す
ることは出来ない。アドレスレジスタ2には、LANか
ら受けるデータの宛先アドレスがセットされる。アドレ
ス比較部3はアドレス登録メモリlの端末アドレスの値
とアドレスレジスタ2の宛先アドレスの値とを比較し、
その結果である一致或は大小をメモリ番地発生部4及び
アドレスフィルタ外部に出力する。アドレス登録メモリ
lの中のどの端末アドレスがアドレスレジスタ2の宛先
アドレスと比較されるかは、メモリ番地発生部4の示す
メモリ番地による。メモリ番地発生部4はアドレス登録
メモリ1の中に値の小さなものから大きなものへと並ん
でいる端末アドレスに対して、二分探索法によりアドレ
スレジスタ2の宛先アドレスの値に近いものを捜してい
く様にメモリ番地を発生する。以上のような構成のアド
レスフィルタに於て、メモリ番地発生部4は最初にアド
レス登録メモリlの中央の番地を示している。アドレス
登録メモリ1の登録可能端末アドレスの個数が偶数個の
場合は、中央の二つの番地の内の一方を示す。二つの番
地の内の倒れを示す様にしても良いが、ここでは小さい
方の番地を示しているものとする。アドレスレジスタ2
にLANからのデータの宛先アドレスがセットされると
、アドレス比較部3はメモリ番地発生部4の示している
番地によりアドレス登録メモリ1が出力している端末ア
ドレスの値と、アドレスレジスタ2に格納されている宛
先アドレスの値とを比較し、同じ値の場合には一致アド
レスが有りをアドレスフィルタ外部に通知し、比較処理
を完了する。
Also, the number of digits in the address registration memo IJl is
The number of digits should match the number of digits of the MAC address used in the AN. Further, it is assumed that the storage capacity of the address registration memory 1 is not less than the number of bits equal to the product of the number of terminal addresses that can be registered multiplied by the number of digits of the terminal address. Since not all terminal addresses are actually registered against the number of terminal addresses that can be registered in the address registration memory l, the free space where no terminal addresses are registered is filled with the values of terminal addresses that can be obtained. The maximum value shall be entered. Among the terminals connected to the LAN, it is not possible to connect a terminal with an address equal to the address value for filling this empty area. The address register 2 is set with the destination address of data received from the LAN. The address comparison unit 3 compares the value of the terminal address in the address registration memory l and the value of the destination address in the address register 2,
The resultant match or magnitude is output to the memory address generator 4 and the address filter. Which terminal address in the address registration memory 1 is compared with the destination address in the address register 2 depends on the memory address indicated by the memory address generator 4. The memory address generation unit 4 uses a binary search method to search for terminal addresses that are arranged in the address registration memory 1 from smallest to largest, for a terminal address that is close to the value of the destination address in the address register 2. Generates a memory address in the same way. In the address filter configured as described above, the memory address generator 4 first indicates the center address of the address registration memory l. If the number of registrable terminal addresses in the address registration memory 1 is an even number, one of the two addresses in the center is indicated. It may be possible to indicate the fall of two addresses, but here it is assumed that the smaller address is indicated. address register 2
When the destination address of data from the LAN is set in , the address comparison unit 3 compares the value of the terminal address output by the address registration memory 1 with the address indicated by the memory address generation unit 4 and the value stored in the address register 2. If the values are the same, the presence of a matching address is notified to the outside of the address filter, and the comparison process is completed.

値が一致していなかった場合、アドレスレジスタ2の中
の宛先アドレスの値の方が大きかったならば、この宛先
アドレスの値に最も近い端末アドレス、もしくは値の一
致する端末アドレスは、現在のメモリ番地よりも大きな
番地の側、すなわち、よシ大きな値の端末アドレスが登
録されている領域に存在していることが判断出来る。ア
ドレスレジスタ2の中の宛先アドレスの値の方が小さか
りた場合は、逆に現在より小さなメモリ番地の領域、す
なわち、より小さな端末アドレスが登録されている領域
に限定される。この様に、登録端末アドレスが値の頴番
に並んでいることにより、−回のアドレス値の比較によ
ってアドレスレジスタ2内の宛先アドレスの値に、より
近いか、もしくは−致する端末アドレスが存在するであ
ろうアドレス登録メモIJ l中の領域は全領域の半分
に限定出来る。次に、アドレス値の比較結果により、残
されたアドレス登録メモリlの領域の中の中央の番地を
メモリ番地発生部4が出力し、その番地に登録されてい
る端末アドレスの値とアドレスレジスタ2の宛先アドレ
スの値とを比較することにより、一致アドレス、或は最
も値の近い端末アドレスの存在するであろう領域は、さ
らに半分に限定される。この様な比較動作を繰り返して
いくことにより、アドレス登録メモリlの中でアドレス
レジスタ2の宛先アドレスの値に、よシ近い値の端末ア
ドレスを捜していくことが出来る。一致する端末アドレ
ス、或は最も値の近い端末アドレスを捜し出すのに必要
なアドレス値比較の最大回数は次の式で与えられる。
If the values do not match, and the value of the destination address in address register 2 is larger, the terminal address closest to this destination address value, or the terminal address with a matching value, is stored in the current memory. It can be determined that the terminal exists on the side of an address larger than the address, that is, in an area where a terminal address with a larger value is registered. If the value of the destination address in the address register 2 is smaller, conversely, the memory address is limited to an area with a smaller memory address than the current one, that is, an area where a smaller terminal address is registered. In this way, since the registered terminal addresses are arranged in the numerical order of the values, there is a terminal address that is closer to or matches the value of the destination address in the address register 2 by comparing the address values - times. The area in the address registration memo IJl that will be used can be limited to half of the total area. Next, based on the comparison result of the address values, the memory address generator 4 outputs the center address in the area of the remaining address registration memory l, and the value of the terminal address registered at that address and the address register 2 By comparing the value of the destination address with the value of the destination address, the area where a matching address or a terminal address with the closest value may exist is further limited to half. By repeating such a comparison operation, it is possible to search for a terminal address in the address registration memory l that has a value that is very close to the value of the destination address in the address register 2. The maximum number of address value comparisons required to find a matching terminal address or a terminal address with the closest value is given by the following equation.

(loglN)+1           ・・・・・
・(1)ここで、Nはアドレス登録メモリに登録可能な
端末アドレスの個数である。また、〔〕はガウス記号で
あり、小数点以下を切り捨てる事を意味する。−例とし
て登録可能端末アドレスの個数が1024個の場合は、
比較処理完了までに最高11回の比較を行う必要がある
。アドレス登録メモリlの中に、宛先アドレスと一致す
る端末アドレスが存在していた場合には、一致端末アド
レスを見つけた時点で比較処理は完了となるが、何回の
比較で完了するかは、一致している端末アドレスのアド
レス登録メモリ中での格納場所によ多異なる。
(loglN)+1 ・・・・・・
(1) Here, N is the number of terminal addresses that can be registered in the address registration memory. Also, [ ] is a Gauss symbol, which means rounding down to the decimal point. -For example, if the number of registrable terminal addresses is 1024,
It is necessary to perform a maximum of 11 comparisons until the comparison process is completed. If there is a terminal address that matches the destination address in the address registration memory l, the comparison process will be completed as soon as the matching terminal address is found, but how many comparisons will it take to complete? It varies depending on the storage location of the matching terminal address in the address registration memory.

比較回数の平均値は次の式で与えられる。The average value of the number of comparisons is given by the following formula.

(l Ogz N :]             −
−(2)登録可能端末アドレスの個数が1024個の場
合は、比較回数の平均値は10回である。二分探索法を
用いずに、アドレス登録メモIJ l中の端末アドレス
を順次比較対象としていく方法では、登録可能端末アド
レス個数Nに対して、最大比較回数がN回、平均比較回
数はN/2回である。このことから、比較処理完了まで
に必要な比較回数は、二分探索法を用いた方が、順次に
比較していくよりも最大比較回数、平均比較回数共に同
じか、より小さな値であって、特に登録可能端末アドレ
ス個数が多くなるほど二分探索法を用いた場合と順次に
比較した場合とで必要な比較回数に大きな差がでる。
(l Ogz N :] -
-(2) When the number of registrable terminal addresses is 1024, the average value of the number of comparisons is 10. In a method in which the terminal addresses in the address registration memo IJl are sequentially compared without using the binary search method, the maximum number of comparisons is N for the number of registerable terminal addresses N, and the average number of comparisons is N/2. times. From this, the number of comparisons required to complete the comparison process is the same or smaller when using the binary search method than when comparing sequentially. In particular, as the number of registrable terminal addresses increases, there is a large difference in the number of comparisons required between the case of using the binary search method and the case of sequential comparison.

第2図は第2の発明の一実施例を示す。このアドレスフ
ィルタは端末アドレスとして48ビツトの桁数のものに
対応しているものとする。アドレス登録メモリ1aには
、LANから受信するデータ中の宛先アドレスの値と比
較をしたい端末アドレスが格納されているものとする。
FIG. 2 shows an embodiment of the second invention. It is assumed that this address filter is compatible with terminal addresses of 48 bits. It is assumed that the address registration memory 1a stores a terminal address to be compared with the value of the destination address in data received from the LAN.

また、このメモリ1aの桁数は接続するLANで用いる
端末アドレスの桁数である48ビツトに対し六分の−で
ある8ビツトの桁数とする。アドレス登録メモリ1aの
記憶容量は登録可能とする端末アドレスの個数に端末ア
ドレスの桁数を掛けた値のと、ト数を下回らないものと
する。また、端末アドレスの桁数48ビツトに対してア
ドレス登録メモリ1aの桁数は、六分の−に67する8
ビツトであるから、このメモリ1aの番地数は登録可能
端末アドレスの個数の6倍以上必要である。端末アドレ
スはこのようなメモリの六つの番地に分割して登録され
ることとなる。このようなアドレス登録メモリ1aの登
録可能端末アドレスの個数に対して実際に全て端末アド
レスが登録されるとは限らないので、端末アドレスが登
録されない空き領域には端末アドレスの取り得る値のな
かの最大値を入れておくものとする。LANに接続する
端末の中には、この空き領域を埋める為のアドレス値に
等しいアドレスの端末を接続することは出来ない。次に
、アドレスレジスタ2aにはLANから受けるデータの
宛先アドレスが書き込まれその値を保持する。
The number of digits in this memory 1a is 8 bits, which is -6/6 of 48 bits, which is the number of digits in the terminal address used in the connected LAN. The storage capacity of the address registration memory 1a shall not be less than the number of terminal addresses that can be registered multiplied by the number of digits of the terminal address. Furthermore, the number of digits in the address registration memory 1a is -6/67, 8
Since it is a bit, the number of addresses in this memory 1a needs to be six times or more the number of registrable terminal addresses. The terminal address is divided into six addresses in the memory and registered. Since not all terminal addresses are actually registered in the number of registrable terminal addresses in the address registration memory 1a, the free space where no terminal address is registered is filled with possible values of the terminal address. The maximum value shall be entered. Among the terminals connected to the LAN, it is not possible to connect a terminal with an address equal to the address value for filling this empty area. Next, the destination address of the data received from the LAN is written into the address register 2a and holds the value.

また、アドレスレジスタ2aは保持している宛先アドレ
ス48ビツトを8ビツトづつ六つに分割し、その内いず
れかの8ビツトをメモリ番地発生部4aの指示に基づい
て出力する。アドレス比較部3aはアドレス登録メモリ
1aの端末アドレスの値とアドレスレジスタ2aの宛先
アドレスの値とを比較する。但し、アドレス比較部3a
はアドレス登録メモリlaやアドレスレジスタ2aの出
力と同じ8ビツトの桁数であるとする。よって、アドレ
ス比較部3aはアドレス登録メモリ1aに登録されてい
る端末アドレスの値とアドレスレジスタ2aの宛先アド
レスの値とを一度には比較出来ない。
Further, the address register 2a divides the 48 bits of the destination address held into six parts of 8 bits each, and outputs any 8 bits of the divided parts based on an instruction from the memory address generator 4a. The address comparator 3a compares the value of the terminal address in the address registration memory 1a and the value of the destination address in the address register 2a. However, the address comparison section 3a
is assumed to be the same number of 8-bit digits as the output of address registration memory la and address register 2a. Therefore, the address comparison unit 3a cannot compare the value of the terminal address registered in the address registration memory 1a and the value of the destination address in the address register 2a at the same time.

アドレス登録メモリHaとアドレスレジスタ2aとから
48ビツトの桁のアドレス値が8と、トづつに分割して
出力されるので、アドレス比較部3aは8ビツトづつ比
較しては、一致あるいは不一致をその都度出力する。こ
のことから、従来のアドレスフィルタの様にアドレス比
較部の一致出力をもって、直ちに一致端末アドレス有り
とすることは出来ない。メモリ番地発生部4aはアドレ
ス登録メモリlaとアドレスレジスタ2aとに読み出し
位置を指示するわけであるが、端末アドレスの値及び宛
先アドレスの値は、8ビツトづつ六分割して読み出す必
要がある。従って、メモリ番地発生部4aは六つに分割
されたアドレス値のうち、相対応する位置の8ビツトが
読み出される様に、アドレス登録メモリ1aに読み出し
番地を出し、アドレスレジスタ2aに出力選択信号を出
す。メモリ番地発生部4aは、またアドレス比較部3a
の比較の結果によシ、次に発生するメモリ番地と出力選
択信号の値を制御し、さらに比較処理が完了した時点で
比較処理結果である一致端末アドレスの有無をアドレス
フィルタ外部に出力する。このアドレスフィルタは48
ビツトの端末アドレスと宛先アドレスとを8と、トづつ
に六分割して比較していくわけであるが、この六分割し
た端末アドレスと宛先アドレスとをアドレス比較部3a
によシ順次比較してゆき、もし六分割した全ての値が一
致してい友場合には、アドレス登録メモ’Jla中にア
ドレスレジスタlaの宛先アドレスと一致する端末アド
レスが見つかったことになるので、その時点で一致アド
レス有りをアドレスフィルタの外部に通知し比較処理を
完了する。もし、六分割して順次比較していく途中でア
ドレス比較部3aよシネ一致の結果が出力されたならば
、その時比較していた端末アドレスと宛先アドレスとは
不一致であったことになるので、直ちにその端末アドレ
スとの比較動作を止めて次の端末アドレスとの比較動作
に移る。アドレス登録メモリla内の端末アドレスに対
してこのような比較動作を順次行っていき、宛先アドレ
スの値に一致する端末アドレスが見つかった時点で、ア
ドレスフィルタの外部に一致アドレス有りを通知して比
較処理を完了する。アドレス登録メモIJ l a内の
いずれの端末アドレスもアドレスレジスタ2aの宛先ア
ドレスと一致しなかった場合には、全ての登録されてい
る端末アドレスとの比較が完了した時点で一致アドレス
無しを外部へ通知して比較処理を完了する。
Since the address value of the 48-bit digit is divided into 8 bits and outputted from the address registration memory Ha and the address register 2a, the address comparator 3a compares the 8 bits at a time and determines whether they match or do not match. Output each time. For this reason, unlike conventional address filters, it is not possible to immediately determine that a matching terminal address exists based on a matching output from the address comparing section. The memory address generation section 4a instructs the address registration memory la and the address register 2a to read out positions, but it is necessary to read out the terminal address value and the destination address value by dividing them into six parts of 8 bits each. Therefore, the memory address generator 4a outputs a read address to the address registration memory 1a and outputs an output selection signal to the address register 2a so that 8 bits at corresponding positions among the six divided address values are read out. put out. The memory address generation section 4a also includes an address comparison section 3a.
Based on the result of the comparison, the value of the next generated memory address and output selection signal is controlled, and when the comparison process is completed, the presence or absence of a matching terminal address, which is the result of the comparison process, is output to the outside of the address filter. This address filter is 48
The terminal address and the destination address of bits are divided into 6 parts, 8 each, and compared.
Compare them one by one, and if all the six divided values match, it means that a terminal address has been found in the address registration memo 'Jla that matches the destination address in the address register la. , at that point, the existence of a matching address is notified to the outside of the address filter, and the comparison process is completed. If the address comparison unit 3a outputs a cine match result while dividing into six parts and sequentially comparing them, it means that the terminal address and destination address being compared at that time do not match. The comparison operation with that terminal address is immediately stopped and the comparison operation with the next terminal address is started. This kind of comparison operation is performed sequentially for the terminal addresses in the address registration memory la, and when a terminal address that matches the destination address value is found, the presence of a matching address is notified to the outside of the address filter and the comparison is performed. Complete the process. If any terminal address in the address registration memo IJ l a does not match the destination address in the address register 2a, when the comparison with all registered terminal addresses is completed, the no matching address is sent to the outside. Notify and complete the comparison process.

尚、このアドレスフィルタでは、比較処理に要する時間
は従来のアドレスフィルタに比べて六分割したときで最
悪6倍であるが、アドレス比較部3aの比較結果が不一
致の時点で直ちに次の端末アドレスとの比較動作に移る
ことで、平均では3倍の時間増加である。
In addition, in this address filter, the time required for comparison processing is at worst six times longer than in the conventional address filter when divided into six, but when the comparison result of the address comparison section 3a does not match, the time required for comparison processing is immediately changed to the next terminal address. Moving to the comparison operation increases the time by three times on average.

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

以上説明したように、第1の発明によれば、端末アドレ
スが値の順に登録されているアドレス登録メモリを用い
、受信データの宛先アドレスと端末アドレスの値が一致
するか或は最も値が近い登録端末アドレスを捜し出すた
めに二分探索を行うようにアドレス登録メモリの番地を
発生するメモリ番地発生部を用いて、アドレス登録メモ
リ内の端末アドレスの値とアドレスレジスタ内の宛先ア
ドレスの値とをアドレス比較部によって比較していくこ
とで、アドレス登録メモリ内の端末アドレスを順次比較
対象とすることに比べて、アドレス登録メモリに登録可
能な端末アドレスの個数を増やしたときにアドレスフィ
ルタの比較処理完了までの時間が増大するのを大幅に抑
える事が出来る。
As explained above, according to the first invention, an address registration memory in which terminal addresses are registered in the order of values is used, and the destination address of the received data and the terminal address value match or are closest in value. Using a memory address generator that generates an address in the address registration memory to perform a binary search to find the registered terminal address, the value of the terminal address in the address registration memory and the value of the destination address in the address register are combined into an address. Compared to comparing terminal addresses in the address registration memory sequentially, the comparison process of the address filter is completed when the number of terminal addresses that can be registered in the address registration memory is increased. This can significantly reduce the increase in time required.

また、第2の発明によれは、アドレス登録メモリの複数
の番地に端末アドレスを分割して登録し、読み出しも分
割ごとに行うこととし、更にアドレスレジスタからの宛
先アドレスの読み出しもアドレス登録メモリからの読み
出しと同様に分割して読み出し、端末アドレスと宛先ア
ドレスとを分割して比較するようにすることで、アドレ
ス登鎌メモリは端末アドレスの桁数と等しい桁数のもの
を用いる必要がなく、よシ小さな桁数のものですむよう
になる。
Further, according to the second invention, the terminal address is divided and registered at a plurality of addresses in the address registration memory, and readout is also performed for each division, and furthermore, the destination address is also read out from the address register from the address registration memory. By dividing and reading the terminal address and the destination address in the same manner as in the reading of , by dividing and comparing the terminal address and destination address, it is not necessary to use an address entry memory with the same number of digits as the terminal address. You will be able to get away with things with a much smaller number of digits.

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

第1図は第1の発明の一実施例を示す構成図、第2図は
第2の発明の一実施例を示す構成図、第3図及び第4図
は端末の接続位置による端末間のデータ経路とMACブ
リッジによるデータ中継の要・不要の様子を示す図、第
5図は従来のアドレスフィルタの一例を示す構成図、第
6図はアドレスフィルタを用いたMAeブリッジの一例
を示す構成図である。 1.1a・・・・・・アドレス登録メモリ、2,2a・
・パ°゛アドレスレジスタ、3,3a・・・・・・アド
レス比較部、4,4a・・・・・・メモリ番地発生部。 代理人 弁理士  内 原   昔 年 回 第 Ja木Aヤ゛I7塙永Cへのr−7嘱沼参茅3凹 ぢ昧Aカ゛う焉未εへ0デ′−y羽寸番井4M 箒 ゴ 竿 を 圀
Fig. 1 is a block diagram showing an embodiment of the first invention, Fig. 2 is a block diagram showing an embodiment of the second invention, and Figs. A diagram showing the data route and the necessity/unnecessity of data relay using a MAC bridge. Figure 5 is a block diagram showing an example of a conventional address filter. Figure 6 is a diagram showing an example of an MAe bridge using an address filter. It is. 1.1a...Address registration memory, 2,2a.
- Address register, 3, 3a...address comparison section, 4, 4a...memory address generation section. Agent Patent Attorney Uchihara Uchihara Old Year's Annual Ja Tree A Ya I7 Hanaga C to r-7 Tsunuma Sankyo 3 Concave A to Unknown ε to 0 de'-y Hasunbanai 4M Houki The fishing rod

Claims (2)

【特許請求の範囲】[Claims] (1)端末アドレスが値の順番に登録されたアドレス登
録メモリと、データの宛先アドレスを保持するアドレス
レジスタと、前記アドレス登録メモリ内の端末アドレス
と前記アドレスレジスタ内の宛先アドレスとを入力とし
値の一致或は大小の比較を行い比較結果を出力するアド
レス比較部と、前記アドレス比較部の比較結果の出力を
基にして宛先アドレスの値により近い端末アドレスを二
分探索法を用いて捜すために前記アドレス登録メモリに
読み出しの番地を与えるメモリ番地発生部とを備えるこ
とを特徴とするアドレスフィルタ。
(1) An address registration memory in which terminal addresses are registered in the order of values, an address register that holds the destination address of data, a terminal address in the address registration memory and a destination address in the address register are input, and the value is an address comparison unit that compares the match or size of the address comparison unit and outputs the comparison result; and a binary search method to search for a terminal address that is closer to the destination address value based on the output of the comparison result of the address comparison unit. An address filter comprising: a memory address generation unit that provides a read address to the address registration memory.
(2)端末アドレスの桁数を幾つかに分割した桁数のみ
を有し端末アドレスが複数の番地に分割して登録されて
いるアドレス登録メモリと、受信データの宛先アドレス
と等しい桁数を入力として宛先アドレスを保持し保持し
た宛先アドレスを前記アドレス登録メモリと同様の分割
数にして分割した内の一つを出力として選択可能なアド
レスレジスタと、前記アドレス登録メモリ及び前記アド
レスレジスタの出力と等しい桁数のアドレス比較部と、
前記アドレス登録メモリ及び前記アドレスレジスタに読
み出し番地を与えるメモリ番地発生部とを備えることを
特徴とするアドレスフィルタ。
(2) Enter the address registration memory, which has only the number of digits obtained by dividing the number of digits of the terminal address into several numbers, and the terminal address is registered divided into multiple addresses, and the number of digits equal to the destination address of the received data. an address register that holds a destination address and can select one of the divided destination addresses as an output by dividing the held destination address into the same number of divisions as the address registration memory, and an address register that is equal to the output of the address registration memory and the address register. a digit address comparison section;
An address filter comprising: the address registration memory; and a memory address generator that provides a read address to the address register.
JP1010596A 1989-01-18 1989-01-18 Address filter Pending JPH02190048A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1010596A JPH02190048A (en) 1989-01-18 1989-01-18 Address filter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1010596A JPH02190048A (en) 1989-01-18 1989-01-18 Address filter

Publications (1)

Publication Number Publication Date
JPH02190048A true JPH02190048A (en) 1990-07-26

Family

ID=11754625

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1010596A Pending JPH02190048A (en) 1989-01-18 1989-01-18 Address filter

Country Status (1)

Country Link
JP (1) JPH02190048A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62175099A (en) * 1986-01-28 1987-07-31 Toshiba Corp Private branch exchange
JPS6386632A (en) * 1986-09-30 1988-04-18 Nec Corp Address filtering method
JPS6418333A (en) * 1987-07-14 1989-01-23 Nec Corp Address filter system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62175099A (en) * 1986-01-28 1987-07-31 Toshiba Corp Private branch exchange
JPS6386632A (en) * 1986-09-30 1988-04-18 Nec Corp Address filtering method
JPS6418333A (en) * 1987-07-14 1989-01-23 Nec Corp Address filter system

Similar Documents

Publication Publication Date Title
EP1634198A1 (en) Method and system for comparing multiple bytes of data to stored string segments
JPH0897844A (en) Method and equipment for setting data passage
US5146560A (en) Apparatus for processing bit streams
JPH0213040A (en) System for registering/searching address information in network system
US11683039B1 (en) TCAM-based not logic
JP3604548B2 (en) Address match detection device, communication control system, and address match detection method
JPH02190048A (en) Address filter
CA2064957A1 (en) Method and apparatus for performing pattern search functions
JP2853652B2 (en) Packet transmitting method and apparatus in inter-processor communication
JPS58169264A (en) Memory access system
JPS6320626A (en) Classifying system for symbol string
JPS59116992A (en) Associative memory
JPS61198351A (en) Direct memory access control circuit
JPS62229335A (en) Address comparator
JPH0748309B2 (en) Symbol string matching memory and its cascade connection method
EP0344915A2 (en) Apparatus for processing bit streams
RU2037215C1 (en) Storage device
KR100479589B1 (en) Apparatus for Composing Content Addressable Memory
JP2913702B2 (en) Access reception control method of multiprocessor system
JPH09190390A (en) Cyclic transmission system
JPH11191784A (en) Switching hub
JPS61288261A (en) Multiprocessor system
JPH11220483A (en) Path information retrieval system
JPS6320627A (en) Group number generating mechanism
JPS616746A (en) Partial writing control system