JPH07288541A - Address filtering method for connection device - Google Patents

Address filtering method for connection device

Info

Publication number
JPH07288541A
JPH07288541A JP6078474A JP7847494A JPH07288541A JP H07288541 A JPH07288541 A JP H07288541A JP 6078474 A JP6078474 A JP 6078474A JP 7847494 A JP7847494 A JP 7847494A JP H07288541 A JPH07288541 A JP H07288541A
Authority
JP
Japan
Prior art keywords
address
registered
frame
relay
cam
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
JP6078474A
Other languages
Japanese (ja)
Inventor
Masanori Horiguchi
政則 堀口
Toru Takahashi
徹 高橋
Yasuhiro Oishi
泰寛 大石
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.)
Furukawa Electric Co Ltd
Original Assignee
Furukawa Electric Co 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 Furukawa Electric Co Ltd filed Critical Furukawa Electric Co Ltd
Priority to JP6078474A priority Critical patent/JPH07288541A/en
Publication of JPH07288541A publication Critical patent/JPH07288541A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To reduce the frequency of execution of filtering by an MPU without increasing the manufacturing cost. CONSTITUTION:When a CAM 15 is not fully occupied, a control section 21 being a local hardware implements address filtering processing by using a destination address not through an MPU 22, and when the CAM 15 is fully occupied, the control section 21 implements address filtering processing based on a sender address and a destination address, and the MPU 22 takes over the address filtering processing by using a RAM 23 as to only the frame whose relay is discriminated to be required.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、複数の通信網、例えば
LAN(ローカルエリアネットワーク)間に接続された
接続装置のアドレスフィルタリング方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an address filtering method for a connection device connected between a plurality of communication networks, for example, LAN (local area network).

【0002】[0002]

【従来の技術】従来、この種のブリッジ装置では、任意
のLAN回線から受信したフレームの宛先アドレスと、
上記LAN回線から以前に受信したフレームの送信元ア
ドレス群とを比較照合し、その結果、両アドレスが一致
するものである場合に、新たに受信したフレームの中継
処理を中断することにより、無駄なデータによる回線効
率の低下を防止する機能があった。
2. Description of the Related Art Conventionally, in this type of bridge device, a destination address of a frame received from an arbitrary LAN line,
By comparing and collating with the source address group of the frame previously received from the LAN line, and as a result, when the two addresses match, the relaying process of the newly received frame is interrupted, which is wasteful. There was a function to prevent a decrease in line efficiency due to data.

【0003】この機能は、プログラム制御によるMPU
(処理装置)の処理動作によって実行されていたが、最
近では、MPUの負荷低減又は中継処理速度の向上を目
的として、CAM(連想記憶装置)を用いたハードウェ
アで処理されるようになってきた。このようなブリッジ
装置には、例えば特開平5−153125号公報に開示
されたものがあり、上記装置では、MPUを介さずに中
継フレームのアドレス比較照合を行い、一致した場合に
は、受信フレームを廃棄していた。
This function is performed by a program-controlled MPU.
It was executed by the processing operation of the (processing device), but recently, it has come to be processed by hardware using a CAM (associative storage device) for the purpose of reducing the load of the MPU or improving the relay processing speed. It was Such a bridge device is disclosed in, for example, Japanese Patent Laid-Open No. 5-153125, and in the above device, the address comparison and collation of the relay frame is performed without passing through the MPU. Had been discarded.

【0004】[0004]

【発明が解決しようとする課題】ところが、上記ブリッ
ジ装置では、完全なフィルタリングを行うためには、実
装しようとするCAMの容量が、システムに接続される
端末局の数、又はフィルタリングの対象として登録され
る送信元アドレスの数に対して、十分なものである必要
がある。このため、上記ブリッジ装置では、実装するC
AMの容量に比例して製作コストが増加するという問題
点があった。また、上記CAMの容量が、完全なフィル
タリングを行うためには充分でない場合、フィルタリン
グの漏れ、すなわち無駄なフレーム中継を行うことによ
る回線効率の低下が生じるという問題点があった。
However, in the above-mentioned bridge device, in order to perform complete filtering, the capacity of the CAM to be implemented is registered as the number of terminal stations connected to the system or as a filtering target. It must be sufficient for the number of source addresses that will be sent. Therefore, in the bridge device, the C
There is a problem that the manufacturing cost increases in proportion to the capacity of the AM. In addition, if the capacity of the CAM is not sufficient for complete filtering, there is a problem that filtering is omitted, that is, line efficiency is reduced due to useless frame relay.

【0005】本発明は、上記問題点に鑑みなされたもの
で、製作コストを増加させることなく、MPUが行うフ
ィルタリングの実行頻度を低減できる接続装置のアドレ
スフィルタリング方法を提供することを目的とする。
The present invention has been made in view of the above problems, and an object of the present invention is to provide an address filtering method for a connection device that can reduce the frequency of execution of filtering performed by the MPU without increasing the manufacturing cost.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するた
め、本発明では、中継フレームを受信すると、該中継フ
レームの宛先アドレスをアドレス検出手段である受信フ
レームアドレス検出部で検出し、該アドレスが実装され
た第1の記憶手段であるCAMに登録されているか制御
手段の制御部で検索し、未登録の場合には、前記中継フ
レームの送信元アドレスを前記第1の記憶手段に登録し
て処理手段であるMPUで中継処理を行い、また登録さ
れている場合には、制御部及びアボート発生部によって
前記中継フレームを廃棄する接続装置のアドレスフィル
タリング方法において、前記登録される送信元アドレス
の数が、前記CAMの記憶容量を越えたか制御部で監視
する監視工程と、前記送信元アドレスの数が、前記記憶
容量を越えた場合には、前記受信した中継フレームの送
信元アドレス及び宛先アドレスを前記アドレス検出部で
検出する検出工程と、該検出された送信元アドレス及び
宛先アドレスが前記CAMに登録されているか制御部で
検索する第1の検索工程と、前記送信元アドレス及び宛
先アドレスともに登録されている場合には、前記中継フ
レームを制御部及びアボート発生部で廃棄する廃棄工程
と、前記送信元アドレス及び宛先アドレスの少なくとも
1つが未登録の場合には、MPUによって該送信元アド
レスを、実装する第2の記憶手段であるRAMに登録し
て、該宛先アドレスが該RAMに登録されているか検索
する第2の検索工程と、前記第2の検索工程で該宛先ア
ドレスが登録されている場合には、MPUで前記中継フ
レームの中継処理を行わず、また該宛先アドレスが未登
録の場合には、MPUで前記中継フレームの中継処理を
行う処理工程とからなる接続装置のアドレスフィルタリ
ング方法が提供される。
In order to achieve the above object, according to the present invention, when a relay frame is received, the destination address of the relay frame is detected by a received frame address detecting section which is an address detecting means, and the address is detected. The control unit of the control unit searches for whether or not it is registered in the CAM that is the installed first storage unit. If not registered, the source address of the relay frame is registered in the first storage unit. In the address filtering method of the connection device in which the relay processing is performed by the MPU which is the processing means and when the relay processing is registered by the control unit and the abort generation unit, the number of the registered source addresses A monitoring step of monitoring by the control unit whether the storage capacity of the CAM is exceeded, and when the number of the source addresses exceeds the storage capacity. A detecting step of detecting a source address and a destination address of the received relay frame by the address detection section, and a control section searching whether the detected source address and destination address are registered in the CAM; And a discarding step of discarding the relay frame in the control unit and the abort generating unit when both the source address and the destination address are registered, and at least one of the source address and the destination address is unresolved. In the case of registration, the MPU registers the source address in the RAM, which is the second storage means to be installed, and a second searching step for searching whether the destination address is registered in the RAM; When the destination address is registered in the second search step, the MPU does not perform the relay processing of the relay frame, and the destination address is registered. If this address is not registered, the address filtering process of the connection device comprising a processing step of performing a relay processing of the relay frame MPU is provided.

【0007】[0007]

【作用】運用開始直後のフィルタリング処理負荷の大き
い場合には、MPUを介さずに、ローカルなハードウェ
アである制御部がアドレスフィルタリング処理を行い、
実装されているCAMの記憶容量を登録アドレス数が越
えた場合には、記憶容量のフル状態を認識したMPUが
アドレスフィルタリング処理を引き継ぐ。このMPUに
よるアドレスフィルタリング処理は、制御部によるフィ
ルタリングを行った結果、受信通知のあったフレームに
ついてのみ実行される。
[Function] When the filtering load is high immediately after the start of operation, the control unit, which is local hardware, performs the address filtering process without going through the MPU,
When the number of registered addresses exceeds the storage capacity of the installed CAM, the MPU that has recognized the full storage capacity takes over the address filtering process. The address filtering process by the MPU is executed only for the frame of which the reception is notified as a result of filtering by the control unit.

【0008】従って、アドレスフィルタリングの漏れが
防止されるとともに、MPUの処理負荷は低減され、か
つ、MPUが行うフィルタリングの実行頻度を低減でき
る。
Therefore, it is possible to prevent omission of address filtering, reduce the processing load of the MPU, and reduce the frequency of execution of filtering performed by the MPU.

【0009】[0009]

【実施例】本発明に係る接続装置のアドレスフィルタリ
ング方法を図1の図面に基づいて説明する。図1は、上
記アドレスフィルタリング方法を用いた接続装置の構成
を示すブロック図である。図において、接続装置は、図
示しないLAN回線と接続される回線トランシーバ11
と、回線トランシーバ11と接続される受信フレームア
ドレス検出部12と、アドレスデータを記憶するアドレ
スデータバッファ13と、CAMのメモリ操作を行うC
AMメモリインターフェース部(以下、「CAMメモリ
I/F」という。)14と、上記受信フレームの送信元
アドレスを登録するCAM15と、回線トランシーバ1
1と接続されるMAC(媒体アクセス制御)フレーム送
受信部16と、CAM15のステータス状態を保持する
CAMステータス保持部17と、受信フレームの廃棄を
行わせるためのアボート信号を発生するアボート発生部
18と、バス信号線20を介して後述するMPU22と
接続されるMPUインターフェース部(以下、「MPU
I/F」という。)19と、これら検出部12、I/F
14,19、保持部17及び発生部18と接続される制
御部21と、中継処理及びCAMフル状態時のアドレス
フィルタリングを行うMPU22と、送信元アドレスが
登録できるRAM23とから構成されている。
DESCRIPTION OF THE PREFERRED EMBODIMENTS An address filtering method for a connecting device according to the present invention will be described with reference to the drawing of FIG. FIG. 1 is a block diagram showing the configuration of a connection device using the above address filtering method. In the figure, the connection device is a line transceiver 11 connected to a LAN line (not shown).
A received frame address detection unit 12 connected to the line transceiver 11, an address data buffer 13 for storing address data, and a C for performing a CAM memory operation.
AM memory interface unit (hereinafter referred to as "CAM memory I / F") 14, CAM 15 for registering the source address of the received frame, and line transceiver 1
1, a MAC (medium access control) frame transmission / reception unit 16, a CAM status holding unit 17 that holds the status of the CAM 15, and an abort generation unit 18 that generates an abort signal for discarding a received frame. , An MPU interface unit (hereinafter, referred to as “MPU”) connected to an MPU 22 described later via the bus signal line 20.
I / F ”. ) 19, these detection unit 12, I / F
14, 19, a holding unit 17, and a control unit 21 connected to the generation unit 18, an MPU 22 that performs relay processing and address filtering in the CAM full state, and a RAM 23 that can register a source address.

【0010】回線トランシーバ11は、LAN回線と接
続され、フレーム構成のMACデータを送受信してい
る。受信フレームアドレス検出部12は、上記回線トラ
ンシーバ11で受信された受信フレーム(MACフレー
ム)から送信元アドレスデータ及び宛先アドレスデータ
を検出するシフトレジスタである。
The line transceiver 11 is connected to a LAN line and transmits / receives MAC data having a frame structure. The reception frame address detection unit 12 is a shift register that detects the source address data and the destination address data from the reception frame (MAC frame) received by the line transceiver 11.

【0011】アドレスデータバッファ13は、受信フレ
ームアドレス検出部12で検出された上記アドレスデー
タを一時記憶している。CAMメモリI/F14は、制
御部21からの命令に基づいて、データ検索、データ登
録、データ消去等の基本的なCAM15のメモリ操作を
行っている。CAM15は、1つの回線に対して登録エ
ントリ数(例えば、256の登録エントリ数)を持つメ
モリで、制御部21からの命令によって、受信フレーム
の送信元アドレスを登録しており、すでに登録したアド
レスデータに対しては、アドレス検索結果としてアクテ
ィブな一致信号をCAMステータス保持部17に出力し
ている。また、CAM15は、記憶容量がフル状態にな
ると、上記フル状態を示す信号をCAMステータス保持
部17に出力している。
The address data buffer 13 temporarily stores the address data detected by the received frame address detection unit 12. The CAM memory I / F 14 performs basic memory operations of the CAM 15, such as data search, data registration, and data deletion, based on commands from the control unit 21. The CAM 15 is a memory having the number of registration entries for one line (for example, the number of registration entries of 256), and the source address of the received frame is registered by an instruction from the control unit 21. For data, an active match signal is output to the CAM status holding unit 17 as an address search result. Further, when the storage capacity becomes full, the CAM 15 outputs a signal indicating the full state to the CAM status holding unit 17.

【0012】MACフレーム送受信部16は、フレーム
の送受信や上記送受信フレームのバッファリングやエラ
ー検出等の動作を行っている。CAMステータス保持部
17は、CAMメモリI/F14を介して入力する上記
CAMのフル状態を示すデータ及びアドレス検索結果を
一時保持するレジスタである。
The MAC frame transmission / reception section 16 performs operations such as frame transmission / reception, buffering of the transmission / reception frame, and error detection. The CAM status holding unit 17 is a register that temporarily holds the data indicating the full state of the CAM and the address search result input via the CAM memory I / F 14.

【0013】アボート発生部18は、制御部21からの
アボート判定に応じた命令によって、MACフレーム送
受信部16にアボート信号を発生している。MPUI/
F19は、MPU22に対して、上記制御部21からの
CAM15のフル状態の提示、CAMエントリの読み出
し(Read)/書き込み(Write)等のサービスを行ってい
る。
The abort generation section 18 generates an abort signal to the MAC frame transmission / reception section 16 according to an instruction from the control section 21 in response to the abort determination. MPUI /
The F19 provides the MPU 22 with services such as presentation of the full state of the CAM 15 from the control unit 21 and reading / writing of the CAM entry.

【0014】制御部21は、受信フレームアドレス検出
部12で検出された上記アドレスデータ等を取り込ん
で、フレーム受信を認識し、この認識に基づいてCAM
に対するアクセス命令を、CAMメモリI/F14に対
して発行する。また、上記制御部21は、CAMステー
タス保持部17からのデータ入力に基づいて、CAM1
5のフル状態及びアドレス検索結果を常時監視してお
り、上記検索結果により、自動的にアドレスフィルタリ
ングの検索モードのスイッチング及びアボート、すなわ
ち受信フレームを廃棄するかどうかの判定を行ってい
る。また、制御部21は、CAM15の登録エントリ数
がフル状態になった時点で、MPUI/F部19にその
旨の通知を行っている。
The control unit 21 takes in the address data and the like detected by the received frame address detection unit 12, recognizes the frame reception, and based on this recognition, the CAM.
An access instruction to the CAM memory I / F 14. Further, the control unit 21 receives the CAM1 based on the data input from the CAM status holding unit 17.
The full state of 5 and the address search result are constantly monitored, and based on the search result, switching and abort of the search mode of the address filtering, that is, whether to discard the received frame is automatically determined. Further, when the number of registered entries in the CAM 15 becomes full, the control unit 21 notifies the MPUI / F unit 19 to that effect.

【0015】MPU22は、接続装置内のプログラム制
御を行う装置プロセッサで、MACフレーム送受信部1
6からの受信通知により、受信フレームを認識し、上記
フレームを他の回線に中継する中継処理を行う。また、
MPU22は、CAM15がフル状態の場合には、MP
UI/F部19からの通知により、検索モードの切り替
えを認識し、受信フレームの宛先アドレスをRAM23
上で検索し、一致するアドレスが登録されている場合に
は、上記中継処理を行わず、一致するアドレスが未登録
の場合には、受信フレームの送信元アドレスをRAM2
3に登録し、上記フレームの中継処理を行っている。
The MPU 22 is a device processor for controlling a program in the connection device, and is a MAC frame transmitting / receiving unit 1
From the reception notification from 6, the received frame is recognized, and a relay process for relaying the frame to another line is performed. Also,
When the CAM 15 is in the full state, the MPU 22 sends MP
By the notification from the UI / F unit 19, the switching of the search mode is recognized, and the destination address of the received frame is stored in the RAM 23.
If the matching address is registered in the above search, the relay process is not performed. If the matching address is not registered, the source address of the received frame is set to the RAM 2
3 is registered and relay processing of the frame is performed.

【0016】RAM23は、CAM15の記憶容量を越
えた送信元アドレスのエントリ登録を行うもので、装置
の他の用途と共用が可能なメモリである。次に、上記接
続装置の受信フレームのフィルタリングの処理動作につ
いて説明する。なお、通常、接続装置が起動された時点
では、CAMは、空エントリになっているので、受信フ
レームの送信元アドレスは、未登録となっている。回線
からのフレーム受信に対する送信元アドレスの登録及び
アドレスフィルタリングは、装置の運用開始と同時に始
まり、時間の経過につれて登録アドレスは、蓄積してい
くが、アドレスは重複して登録されないため、処理負荷
つまりフレーム受信に対する登録処理の頻度は、次第に
低下していく。また、登録アドレスの蓄積につれて、フ
ィルタリングにより廃棄されるフレームが増加する。
The RAM 23 is used to register the entry of the source address exceeding the storage capacity of the CAM 15, and is a memory which can be shared with other uses of the apparatus. Next, a processing operation of filtering the received frame of the connection device will be described. Note that normally, when the connection device is activated, the CAM has an empty entry, so the source address of the received frame is unregistered. The registration of the source address and the address filtering for receiving the frame from the line start at the same time as the operation of the device starts, and the registered addresses accumulate as the time elapses, but the addresses are not registered in duplicate, so the processing load, The frequency of registration processing for frame reception gradually decreases. Further, as the registered addresses are accumulated, the number of frames discarded by filtering increases.

【0017】本発明に係るアドレスフィルタリング方法
は、運用開始後の処理負荷の大きい期間では、制御部2
1によるアドレスフィルタリングを行い、そして登録ア
ドレス数により実装のCAMの記憶容量がフル状態にな
った時点で、MPU22がフィルタリング処理を引き継
ぐものである。宛先アドレスが未登録の場合には、受信
フレームの廃棄を行うためのアボート信号を、上記MA
Cフレーム送受信部16に出力せず、また一致する宛先
アドレスが登録されている場合には、上記アボート信号
をMACフレーム送受信部16に出力するものとする。
In the address filtering method according to the present invention, the control unit 2 is operated during a heavy processing load period after the start of operation.
The MPU 22 takes over the filtering process when the storage capacity of the mounted CAM becomes full due to the number of registered addresses after performing the address filtering by 1. When the destination address is not registered, the abort signal for discarding the received frame is set to the above MA.
If the C-frame transmission / reception unit 16 does not output and the matching destination address is registered, the abort signal is output to the MAC frame transmission / reception unit 16.

【0018】ここでまず、現在のCAM15の登録エン
トリ数が容量以下のフル状態でない場合には、回路トラ
ンシーバ11からのフレーム受信があるたびに、受信フ
レームアドレス検出部12は、受信フレームの送信元ア
ドレス及び宛先アドレスを、アドレスデータバッファ1
3に一時的に記憶させた後に、CAMメモリI/F14
に出力する。
First, when the current number of registered entries in the CAM 15 is not full below the capacity, the received frame address detection unit 12 causes the received frame source to detect the source of the received frame each time a frame is received from the circuit transceiver 11. Address data buffer 1
3 is temporarily stored in the CAM memory I / F 14
Output to.

【0019】制御部21は、CAMメモリI/F14を
介して、上記送信元アドレスをCAM15にデータ登録
させるとともに、上記受信フレームの宛先アドレスがC
AM15に登録されているかどうか検索する。この検索
は、CAMステータス保持部17を介して入力するCA
M15からのマッチング信号の状態によって行う。すな
わち、CAM15は、受信フレームの宛先アドレスが登
録されている宛先アドレスと一致する場合には、アクテ
ィブ状態の上記マッチング信号を出力し、また受信フレ
ームの宛先アドレスが未登録の場合には、パッシブ状態
の上記マッチング信号を出力している。
The control unit 21 causes the CAM 15 to register the data of the source address via the CAM memory I / F 14, and the destination address of the received frame is C.
It is searched whether it is registered in AM15. This search is a CA input via the CAM status holding unit 17.
This is performed according to the state of the matching signal from M15. That is, the CAM 15 outputs the matching signal in the active state when the destination address of the received frame matches the registered destination address, and the passive state when the destination address of the received frame is not registered. The above matching signal of is output.

【0020】ここで、上記宛先アドレスが未登録の場合
には、制御部21は、受信フレームの廃棄を命令する制
御信号を、アボート発生部18に出力しない。これによ
り、アボート発生部18は、アボート信号をMACフレ
ーム送受信部16に出力せず、上記MACフレーム送受
信部16は、中継を行うフレームがある旨の通知及び受
信フレームを、MPU22に出力する。
Here, when the destination address is not registered, the control unit 21 does not output the control signal instructing the discard of the received frame to the abort generation unit 18. As a result, the abort generation unit 18 does not output the abort signal to the MAC frame transmission / reception unit 16, and the MAC frame transmission / reception unit 16 outputs a notification indicating that there is a frame to be relayed and a reception frame to the MPU 22.

【0021】従って、MPU22は、上記通知により、
この受信フレームを認識し、フレームの中継処理を行う
ことができる。また、上記宛先アドレスに一致するアド
レスがCAM15に登録されている場合には、制御部2
1は、この受信フレームの廃棄を命令する制御信号を、
アボート発生部18に出力する。これにより、上記アボ
ート発生部18は、アボート信号をMACフレーム送受
信部16に出力し、上記MACフレーム送受信部16
は、受信フレームの廃棄を行う。
Therefore, the MPU 22 is
The received frame can be recognized and the frame relay process can be performed. If an address matching the destination address is registered in the CAM 15, the control unit 2
1 is a control signal for instructing the discard of this received frame,
Output to the abort generation unit 18. Accordingly, the abort generation unit 18 outputs the abort signal to the MAC frame transmission / reception unit 16, and the MAC frame transmission / reception unit 16
Discards the received frame.

【0022】従って、MPU22は、この受信されたフ
レームが廃棄されるので、フィルタリング処理及び中継
処理に移ることがなくなる。次に、現在のCAMの登録
エントリ数が容量を超えたフル状態になった場合には、
CAMステータス保持部17には、CAM15からのフ
ル状態を示すデータが保持されることとなる。制御部2
1は、上記データを取り込むと、検索モードを上記宛先
アドレスの検索モードから宛先アドレス及び送信元アド
レスの検索モードに切り替え、受信フレームの宛先アド
レス及び送信元アドレスの検索処理を行わせる。そし
て、制御部21は、その検索結果をCAMステータス保
持部17から取り込み、上記検索結果に応じて受信フレ
ームを廃棄するかどうかのアボート判定を行う。また、
制御部21は、CAM15の登録エントリ数がフル状態
になった時点で、MPUI/F部19にその旨の通知を
行っている。なお、上記CAM上での検索結果は、論理
積演算されてCAMステータス保持部17に保持されて
いる。
Therefore, since the received frame is discarded, the MPU 22 does not move to the filtering process and the relay process. Next, when the current number of registered entries in the CAM exceeds the capacity and becomes full,
The CAM status holding unit 17 holds the data indicating the full state from the CAM 15. Control unit 2
1 takes in the above-mentioned data, and switches the search mode from the search mode of the destination address to the search mode of the destination address and the source address to perform the search process of the destination address and the source address of the received frame. Then, the control unit 21 fetches the search result from the CAM status holding unit 17, and determines whether or not to discard the received frame according to the search result. Also,
The control unit 21 notifies the MPUI / F unit 19 to that effect when the number of registered entries in the CAM 15 becomes full. The search result on the CAM is ANDed and held in the CAM status holding unit 17.

【0023】ここで、受信フレームの宛先アドレス及び
送信元アドレスに一致する両アドレスが、CAM15に
登録されている場合には、制御部21は、フレーム廃棄
を命令する制御信号を、アボート発生部18に出力す
る。これにより、上記アボート発生部18は、アボート
信号をMACフレーム送受信部16に出力し、上記MA
Cフレーム送受信部16は、受信フレームの廃棄を行
う。
Here, when both addresses that match the destination address and the source address of the received frame are registered in the CAM 15, the control unit 21 sends a control signal instructing frame discarding to the abort generation unit 18. Output to. As a result, the abort generation unit 18 outputs an abort signal to the MAC frame transmission / reception unit 16, and the MA signal is transmitted.
The C frame transmitting / receiving unit 16 discards the received frame.

【0024】従って、MPU22は、この受信されたフ
レームが廃棄されるので、フィルタリング処理及び中継
処理に移ることがなくなる。また、上記送信元アドレス
及び宛先アドレスの少なくとも1つが未登録の場合に
は、上記アボート信号がアボート発生部18からMAC
フレーム送受信部16に出力されなくなるので、上記M
ACフレーム送受信部16は、中継を行うフレームがあ
る旨の通知及び受信フレームを、MPU22に出力す
る。
Therefore, since the received frame is discarded, the MPU 22 does not move to the filtering process and the relay process. If at least one of the source address and the destination address is not registered, the abort signal is sent from the abort generation unit 18 to the MAC.
Since it is not output to the frame transmitting / receiving unit 16, the M
The AC frame transmission / reception unit 16 outputs to the MPU 22 a notification indicating that there is a frame to be relayed and a received frame.

【0025】従って、MPU22は、上記通知により、
この受信フレームを認識し、フレームのフィルタリング
処理及び中継処理に移ることができる。この場合、MP
U22は、送信元アドレスがRAM23に未登録の場合
は登録するとともに、上記宛先アドレスがRAM23に
登録されているかどうか検索する。ここで、MPU22
は、上記宛先アドレスがRAM23に登録されている場
合には、フレームの中継処理を行わず、また、上記宛先
アドレスが未登録の場合には、フレームの中継処理に移
る。
Therefore, the MPU 22 is
The received frame can be recognized and the frame filtering process and the relay process can be started. In this case, MP
If the source address is not registered in the RAM 23, the U 22 registers it, and also searches whether the destination address is registered in the RAM 23. Here, MPU22
When the destination address is registered in the RAM 23, the frame relay process is not performed, and when the destination address is not registered, the frame relay process is performed.

【0026】なお、CAMがフル状態の場合に、送信元
アドレス及び宛先アドレスの両アドレスの検索結果の論
理積をとるのは、以下の理由による。つまり、例えば従
来のように宛先アドレスのみによる検索では、現在CA
M上に未登録である任意の送信元アドレスからCAM上
に登録されている宛先アドレスのフレームを、接続装置
が受信した時、制御部からは、フレーム廃棄を示す命令
が出力され、MPUは、上記任意の送信元アドレスを認
識できなくなる。この結果、RAM上に新規である上記
送信元アドレスが登録できないことになり、以降の上記
送信元アドレスに宛てたフレームのフィルタリング漏れ
が生じるという不都合がある。このためCAMがフル状
態になった時点で、上記手順にアドレスフィルタリング
の検索モードを切り替える制御が必要となる。
When the CAM is in the full state, the logical product of the search results of both the source address and the destination address is taken for the following reason. That is, for example, in the conventional search using only the destination address, the current CA
When the connection device receives a frame of a destination address registered on the CAM from an arbitrary source address that is not registered on M, the control unit outputs a command indicating frame discard, and the MPU The arbitrary source address cannot be recognized. As a result, the new source address cannot be registered in the RAM, and there is an inconvenience that a subsequent frame addressed to the source address will be omitted. Therefore, when the CAM becomes full, it is necessary to perform control to switch the search mode of address filtering in the above procedure.

【0027】従って、本実施例では、運用開始後の処理
負荷の大きい場合(CAMがフル状態でない場合)は、
従来と同様の宛先アドレスのみによるアドレスフィルタ
リングの検索を行って、MPUの処理負荷を低減し、C
AMがフル状態なった場合は、MPUがフィルタリング
処理を引き継いで、送信元アドレス及び宛先アドレスに
よるアドレスフィルタリングの検索を行って、フィルタ
リングの漏れを防止するので、MPUは、必要なフレー
ムのみの中継が可能となり、フレームの中継処理を向上
できる。また、本実施例では、MPUが行うフィルタリ
ング処理において、送信元アドレスの登録を製作コスト
が安価なメモリ(RAM)に割り当てることができるの
で、装置全体の製作コストを低減できる。
Therefore, in this embodiment, when the processing load after the start of operation is large (when the CAM is not in the full state),
By performing the address filtering search using only the destination address as in the conventional method, the processing load of the MPU is reduced, and C
When the AM becomes full, the MPU takes over the filtering process and searches for address filtering by the source address and the destination address to prevent leakage of filtering. Therefore, the MPU can relay only necessary frames. This makes it possible to improve frame relay processing. Further, in the present embodiment, in the filtering process performed by the MPU, the registration of the transmission source address can be assigned to the memory (RAM) whose manufacturing cost is low, so that the manufacturing cost of the entire device can be reduced.

【0028】[0028]

【発明の効果】以上説明したように、本発明は、中継フ
レームを受信すると、該中継フレームの宛先アドレスを
アドレス検出手段で検出し、該アドレスが実装された第
1の記憶手段に登録されているか制御手段で検索し、未
登録の場合には、前記中継フレームの送信元アドレスを
前記第1の記憶手段に登録して処理手段で中継処理を行
い、また登録されている場合には、該制御手段によって
前記中継フレームを廃棄する接続装置のアドレスフィル
タリング方法において、前記登録される送信元アドレス
の数が、前記第1の記憶手段の記憶容量を越えたか前記
制御手段で監視する監視工程と、前記送信元アドレスの
数が、前記記憶容量を越えた場合には、前記受信した中
継フレームの送信元アドレス及び宛先アドレスを前記ア
ドレス検出手段で検出する検出工程と、該検出された送
信元アドレス及び宛先アドレスが前記第1の記憶手段に
登録されているか前記制御手段で検索する第1の検索工
程と、前記送信元アドレス及び宛先アドレスともに登録
されている場合には、前記中継フレームを前記制御手段
で廃棄する廃棄工程と、前記送信元アドレス及び宛先ア
ドレスの少なくとも1つが未登録の場合には、前記処理
手段によって該送信元アドレスを、実装する第2の記憶
手段に登録して、該宛先アドレスが該第2の記憶手段に
登録されているか検索する第2の検索工程と、前記第2
の検索工程で該宛先アドレスが登録されている場合に
は、前記処理手段で前記中継フレームの中継処理を行わ
ず、また該宛先アドレスが未登録の場合には、該処理手
段で該中継フレームの中継処理を行う処理工程とからな
るので、製作コストを増加させることなく、MPUが行
うフィルタリングの実行頻度を低減できる。
As described above, according to the present invention, when a relay frame is received, the destination address of the relay frame is detected by the address detecting means, and the address is registered in the first storage means in which the address is mounted. If it is not registered, the transmission source address of the relay frame is registered in the first storage means, and the processing means performs the relay processing. In the address filtering method of the connecting device for discarding the relay frame by the control means, a monitoring step of monitoring by the control means whether the number of registered source addresses exceeds the storage capacity of the first storage means, When the number of the source addresses exceeds the storage capacity, the source address and the destination address of the received relay frame are detected by the address detecting means. A detection step of issuing, a first search step of searching by the control means whether the detected source address and destination address are registered in the first storage means, and both the source address and the destination address registered If it is set, the discarding step of discarding the relay frame by the control means, and if at least one of the source address and the destination address is unregistered, the processing means implements the source address. A second search step of registering the destination address in the second storage means and searching for the destination address registered in the second storage means;
If the destination address is registered in the search step of step 1, the processing means does not perform the relay processing of the relay frame. If the destination address is not registered, the processing means does not perform the relay processing of the relay frame. Since it includes a processing step of performing relay processing, it is possible to reduce the frequency of execution of filtering performed by the MPU without increasing the manufacturing cost.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明に係るアドレスフィルタリング方法を用
いた接続装置の構成を示すブロック図である。
FIG. 1 is a block diagram showing a configuration of a connection device using an address filtering method according to the present invention.

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

11 回線トランシーバ 12 受信フレームアドレス検出部 13 アドレスデータバッファ 14 CAMメモリインターフェース部(CAMメモリ
I/F) 15 CAM 16 MACフレーム送受信部 17 CAMステータス保持部 18 アボート発生部 19 MPUインターフェース部(MPUI/F) 20 バス信号線 21 制御部 22 MPU 23 RAM
11 line transceiver 12 received frame address detection unit 13 address data buffer 14 CAM memory interface unit (CAM memory I / F) 15 CAM 16 MAC frame transmission / reception unit 17 CAM status holding unit 18 abort generation unit 19 MPU interface unit (MPUI / F) 20 bus signal line 21 control unit 22 MPU 23 RAM

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 中継フレームを受信すると、該中継フレ
ームの宛先アドレスをアドレス検出手段で検出し、該ア
ドレスが実装された第1の記憶手段に登録されているか
制御手段で検索し、未登録の場合には、前記中継フレー
ムの送信元アドレスを前記第1の記憶手段に登録して処
理手段で中継処理を行い、また登録されている場合に
は、該制御手段によって前記中継フレームを廃棄する接
続装置のアドレスフィルタリング方法において、 前記登録される送信元アドレスの数が、前記第1の記憶
手段の記憶容量を越えたか前記制御手段で監視する監視
工程と、 前記送信元アドレスの数が、前記記憶容量を越えた場合
には、前記受信した中継フレームの送信元アドレス及び
宛先アドレスを前記アドレス検出手段で検出する検出工
程と、 該検出された送信元アドレス及び宛先アドレスが前記第
1の記憶手段に登録されているか前記制御手段で検索す
る第1の検索工程と、 前記送信元アドレス及び宛先アドレスともに登録されて
いる場合には、前記中継フレームを前記制御手段で廃棄
する廃棄工程と、 前記送信元アドレス及び宛先アドレスの少なくとも1つ
が未登録の場合には、前記処理手段によって該送信元ア
ドレスを、実装する第2の記憶手段に登録して、該宛先
アドレスが該第2の記憶手段に登録されているか検索す
る第2の検索工程と、 前記第2の検索工程で該宛先アドレスが登録されている
場合には、前記処理手段で前記中継フレームの中継処理
を行わず、また該宛先アドレスが未登録の場合には、該
処理手段で該中継フレームの中継処理を行う処理工程と
からなる接続装置のアドレスフィルタリング方法。
1. When a relay frame is received, the destination address of the relay frame is detected by the address detection means, and the control means searches for whether the address is registered in the installed first storage means. In this case, the source address of the relay frame is registered in the first storage means, the processing means performs the relay processing, and if registered, the control means discards the relay frame. In the address filtering method of the device, a monitoring step of monitoring by the control means whether the number of registered source addresses exceeds the storage capacity of the first storage means, and the number of source addresses is stored in the storage When the capacity is exceeded, a detecting step of detecting the source address and the destination address of the received relay frame by the address detecting means, and the detecting step. A first search step of searching by the control means whether the source address and the destination address are registered in the first storage means, and the relay if both the source address and the destination address are registered. A discarding step of discarding the frame by the control means, and if at least one of the source address and the destination address is unregistered, the processing means registers the source address in the second storage means to be mounted. And a second search step for searching whether the destination address is registered in the second storage means, and when the destination address is registered in the second search step, the processing means When the relay processing of the relay frame is not performed and the destination address is not registered, the processing unit performs the relay processing of the relay frame by the processing device. Dress filtering method.
JP6078474A 1994-04-18 1994-04-18 Address filtering method for connection device Pending JPH07288541A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP6078474A JPH07288541A (en) 1994-04-18 1994-04-18 Address filtering method for connection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP6078474A JPH07288541A (en) 1994-04-18 1994-04-18 Address filtering method for connection device

Publications (1)

Publication Number Publication Date
JPH07288541A true JPH07288541A (en) 1995-10-31

Family

ID=13663022

Family Applications (1)

Application Number Title Priority Date Filing Date
JP6078474A Pending JPH07288541A (en) 1994-04-18 1994-04-18 Address filtering method for connection device

Country Status (1)

Country Link
JP (1) JPH07288541A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134135A (en) * 2000-01-10 2000-10-17 Switchcore, A.B. Mask arrangement for scalable CAM/RAM structures
US6330177B1 (en) 1999-05-19 2001-12-11 Switchore, A.B. CAM/RAM memory device with a scalable structure

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6330177B1 (en) 1999-05-19 2001-12-11 Switchore, A.B. CAM/RAM memory device with a scalable structure
US6134135A (en) * 2000-01-10 2000-10-17 Switchcore, A.B. Mask arrangement for scalable CAM/RAM structures

Similar Documents

Publication Publication Date Title
US5515513A (en) Disposition filtering of messages using a single address and protocol table bridge
JPH0934818A (en) Method and apparatus for shortened waiting time data reception at inside of data-processing system using packet- based architecture
JP2003092598A (en) Packet transferring processor
JPH09162922A (en) Inter-network connection device
CN112383414B (en) Dual-machine hot backup quick switching method and device
JPH07288541A (en) Address filtering method for connection device
JPH09102790A (en) High speed processing system for received frame
JPH06169312A (en) Communication controller
JP3163526B2 (en) LAN broadcast frame processing method and apparatus
JPS60246148A (en) Data transmission control system
JPH05110600A (en) Sequence control method for received packet
JP3508057B2 (en) Layer 3 switch
JPH06268650A (en) Network repeater
JP2617648B2 (en) Network configuration recognition device
JPH05191436A (en) Cell transfer system
JPH1093606A (en) Data transfer system for switching hub
JP3203371B2 (en) Interface device for data collection
JPH06350608A (en) Repeater for network
JPH05207021A (en) Frame repeater system
JP2925049B2 (en) Input buffer control method
JPH04237232A (en) Inter-lan connection equipment
JPH0669927A (en) Retrieval method for address recognition table for inter-lan repeater
JPH042236A (en) Bridge equipment
JP3225886B2 (en) Communication interface duplexer
JP2747097B2 (en) LAN connection device