JPH11122280A - Switching hub function - Google Patents

Switching hub function

Info

Publication number
JPH11122280A
JPH11122280A JP9280637A JP28063797A JPH11122280A JP H11122280 A JPH11122280 A JP H11122280A JP 9280637 A JP9280637 A JP 9280637A JP 28063797 A JP28063797 A JP 28063797A JP H11122280 A JPH11122280 A JP H11122280A
Authority
JP
Japan
Prior art keywords
address
switching hub
port
transfer destination
correspondence table
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
JP9280637A
Other languages
Japanese (ja)
Inventor
Hiroyuki Hayama
宏幸 葉山
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.)
Hitachi Cable Ltd
Original Assignee
Hitachi Cable 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 Hitachi Cable Ltd filed Critical Hitachi Cable Ltd
Priority to JP9280637A priority Critical patent/JPH11122280A/en
Publication of JPH11122280A publication Critical patent/JPH11122280A/en
Pending legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To decide a transfer destination port at high speed by comparing the destination address of a reception frame with a previously decided address, deciding the previously decided port as the transfer destination port when the comparison is matched, retrieving a corresponding table when they are not matched and deciding the transfer destination port. SOLUTION: An address comparison circuit 74 has plural address comparison parts to which respective addresses are previously decided. The respective address comparison parts compare the addresses with the destination addresses received through a request reception/response circuit 71. When one address is matched, the port which is previously decided for the address comparison part is decided as the transfer destination port. When all the addresses are not matched, an address registration memory retrieval circuit 72 retrieves the corresponding table of an address registration memory 73 and decides the transfer destination port. Thus, probability that the transfer destination port is decided in short time is set to be high and retrieval ability can be improved by adopting the address of high communication frequency as the address which is previously decided.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、スイッチングハブ
に係り、特に、転送先ポートの決定を高速化するスイッ
チングハブに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a switching hub, and more particularly, to a switching hub for speeding up determination of a transfer destination port.

【0002】[0002]

【従来の技術】スイッチングハブは、ネットワークの高
速化の手段として、現在最も注目を集めているネットワ
ーク機器である。図5に示されるように、スイッチング
ハブは、スイッチ部51、ポートI/F(インタフェー
ス)部521〜526、アドレス検索部53から構成さ
れている。アドレス検索部53には、スイッチングハブ
に接続されている端末のアドレスと、その端末が接続さ
れているポートとが対応付けて登録されている対応表が
設けられている。各ポートにおいて、フレームが受信さ
れたら、ポートI/F部521〜526で受信フレーム
から宛先アドレスを抽出してアドレス検索部53に送
る。アドレス検索部53では、宛先アドレスで対応表を
検索して転送先ポートを決定する。
2. Description of the Related Art A switching hub is a network device that is currently receiving the most attention as a means for speeding up a network. As shown in FIG. 5, the switching hub includes a switch unit 51, port I / F (interface) units 521 to 526, and an address search unit 53. The address search unit 53 is provided with a correspondence table in which addresses of terminals connected to the switching hub and ports to which the terminals are connected are registered in association with each other. When the frame is received at each port, the port I / F units 521 to 526 extract the destination address from the received frame and send it to the address search unit 53. The address search unit 53 determines a transfer destination port by searching a correspondence table with a destination address.

【0003】図6に対応表の例を示す。イーサネットの
場合、端末のMACアドレスは48ビットであり、対応
表にはMACアドレスが登録される。この対応表によれ
ば、アドレス“000000000001h”(hは1
6進表示を示す)の端末はポート1に、アドレス“00
0000000002h”の端末はポート2に、アドレ
ス“100000000000h”の端末はポート3に
それぞれ接続されていることになる。
FIG. 6 shows an example of a correspondence table. In the case of Ethernet, the MAC address of the terminal is 48 bits, and the MAC address is registered in the correspondence table. According to this correspondence table, the address “0000000000001h” (h is 1
(Indicating hexadecimal notation) is assigned to port 1 with address “00”.
The terminal of “0000000000h” is connected to port 2, and the terminal of address “1000000000000h” is connected to port 3.

【0004】例えば、ポート1において宛先アドレス
“000000000002h”のフレームが受信され
た場合、アドレス検索部53では対応表を検索してポー
ト2が転送先ポートであることを応答する。スイッチ部
51ではアドレス検索部からの応答を受けて受信フレー
ムをポート2に転送する。
For example, when a frame with a destination address "0000000000002h" is received at port 1, the address search unit 53 searches the correspondence table and responds that port 2 is a transfer destination port. The switch unit 51 receives the response from the address search unit and transfers the received frame to the port 2.

【0005】端末アドレスと接続ポートとの対応表は情
報量が多いので、その内容の保持にメモリ(以下、アド
レス登録メモリという)を使用するのが一般的であり、
そのアドレス登録メモリには、CAM(Content Address
Memory)と呼ばれる特殊なメモリ素子を使用する場合
と、SRAMなどの汎用メモリ素子を使用する場合との
2通りがある。いずれのメモリ素子を使用する場合で
も、1回のアドレス検索に数百ns程度の時間がかか
る。
Since the correspondence table between the terminal address and the connection port has a large amount of information, a memory (hereinafter, referred to as an address registration memory) is generally used to hold its contents.
CAM (Content Address) is stored in the address registration memory.
There are two cases, a case where a special memory element called “Memory” is used and a case where a general-purpose memory element such as an SRAM is used. Whichever memory element is used, it takes several hundred ns for one address search.

【0006】図7にアドレス検索部53の内部構成を示
す。アドレス検索部53は、要求受付・応答回路71、
アドレス登録メモリ検索回路72、アドレス登録メモリ
73から構成されている。対応表はアドレス登録メモリ
73内に設けられている。フレーム受信時、要求受付・
応答回路は71、宛先アドレスを用い、アドレス登録メ
モリ検索回路72を介してアドレス登録メモリ73内の
対応表を検索し、転送先ポートを決定する。
FIG. 7 shows the internal configuration of the address search unit 53. The address search unit 53 includes a request reception / response circuit 71,
An address registration memory search circuit 72 and an address registration memory 73 are provided. The correspondence table is provided in the address registration memory 73. When receiving a frame,
The response circuit 71 searches the correspondence table in the address registration memory 73 via the address registration memory search circuit 72 using the destination address, and determines the transfer destination port.

【0007】また、対応表の作成方法としては、受信フ
レームの送信元アドレスを元に自動的に作成するアドレ
ス自動学習という方法がある。これは、送信元アドレス
が対応表に登録されているかどうかを調べて、登録され
ていない場合に、対応表にそのアドレスを追加する方法
である。
As a method of creating a correspondence table, there is a method called address automatic learning for automatically creating a correspondence table based on a source address of a received frame. This is a method of checking whether a source address is registered in a correspondence table, and adding the address to the correspondence table if it is not registered.

【0008】図8にアドレス自動学習機能を持ったアド
レス検索部53の内部構成を示す。アドレス検索部53
は、転送先ポート検索制御部81、アドレス自動学習制
御部82、アドレス登録メモリ制御部83、アドレス登
録メモリ84から構成されている。対応表はアドレス登
録メモリ84内に設けられている。転送先ポート検索制
御部81は、宛先アドレスを用い、アドレス登録メモリ
制御部83を介してアドレス登録メモリ84内の対応表
を検索し、転送先ポートを決定する。一方、アドレス自
動学習制御部82は、送信元アドレスを用い、アドレス
登録メモリ制御部83を介してアドレス登録メモリ84
内の対応表を検索し、未登録であればその送信元アドレ
スを対応表に登録する。
FIG. 8 shows the internal configuration of an address search unit 53 having an automatic address learning function. Address search unit 53
Is composed of a destination port search control unit 81, an automatic address learning control unit 82, an address registration memory control unit 83, and an address registration memory 84. The correspondence table is provided in the address registration memory 84. The transfer destination port search control unit 81 searches the correspondence table in the address registration memory 84 via the address registration memory control unit 83 using the destination address, and determines the transfer destination port. On the other hand, the address automatic learning control unit 82 uses the transmission source address to transmit the address registration memory 84 via the address registration memory control unit 83.
Is searched, and if not registered, the source address is registered in the correspondence table.

【0009】[0009]

【発明が解決しようとする課題】現在、最も普及してい
るLANは、伝送速度10Mbpsのイーサネットであ
るが、ネットワーク高速化に対する要求に呼応して、最
近では伝送速度100Mbpsの高速イーサネットが普
及しはじめ、さらに伝送速度1Gbpsのギガビットイ
ーサネット対応のLAN機器も製品化されはじめてい
る。
At present, the most widespread LAN is Ethernet with a transmission speed of 10 Mbps, but recently, in response to the demand for higher network speed, high-speed Ethernet with a transmission speed of 100 Mbps has begun to spread. In addition, LAN devices that support Gigabit Ethernet with a transmission rate of 1 Gbps have begun to be commercialized.

【0010】単純に伝送速度が10倍になると、受信フ
レームの到着間隔が1/10になり、スイッチングハブ
はスイッチ部51ばかりでなく、アドレス検索部53も
10倍の処理能力が必要となる。例えば、高速イーサネ
ット8ポートのスイッチングハブにおいて、受信フレー
ムを100%処理するために必要なアドレス検索部53
の性能は、1受信フレーム当たりの検索時間が840n
sである。これに対して、ギガビットイーサネット8ポ
ートのスイッチングハブでは、必要なアドレス検索部5
3の性能は、1受信フレーム当たりの検索時間が84n
sとなる。
When the transmission speed is simply increased by 10 times, the arrival interval of the received frame is reduced to 1/10, and the switching hub requires not only the switch section 51 but also the address search section 53 to have 10 times the processing capacity. For example, in a switching hub with eight high-speed Ethernet ports, an address search unit 53 required to process 100% of a received frame is required.
Performance is as follows: search time per received frame is 840n
s. On the other hand, in a switching hub with 8 ports of Gigabit Ethernet, a necessary address search unit 5 is required.
The performance of No. 3 is that the search time per received frame is 84n.
s.

【0011】また、前述のようにアドレス検索部53で
は、フレーム受信時に、転送先ポートを決定するために
宛先アドレスによる検索を行い、対応表を学習するため
に送信元アドレスによる検索を行う。即ち、2回の検索
が行われる。1回の検索に必要な検索時間をtとする
と、従来技術では1受信フレームについて2回の検索が
行われるので、アドレス検索部53の性能は、単位時間
当たりの受信フレーム処理件数が1/(2t)である。
As described above, when receiving a frame, the address search unit 53 performs a search by a destination address to determine a transfer destination port, and performs a search by a source address to learn a correspondence table. That is, two searches are performed. Assuming that the search time required for one search is t, the conventional technology performs two searches for one received frame. Therefore, the performance of the address search unit 53 is 1 / (the number of received frame processes per unit time). 2t).

【0012】メモリのアクセス速度には限界があり、前
述のように1回のアドレス検索に数百ns程度の時間が
かかる。これをアドレス検索部53の性能要求に合わせ
て2倍ないし10倍にするのは困難である。従って、1
つのアドレス検索部53だけでは上記のような性能を実
現することができない。そこで、アドレス検索部53を
複数設けて並列に使用することにより、アドレス検索の
性能を向上させる方法がある。しかし、アドレス検索部
53を複数設けると、コスト高になると共に、各アドレ
ス検索部53の対応表の登録内容を同一にさせる仕組み
が新たに必要になる。
There is a limit to the memory access speed, and it takes several hundred ns for one address search as described above. It is difficult to increase this by a factor of 2 to 10 in accordance with the performance requirements of the address search unit 53. Therefore, 1
The performance described above cannot be realized with only one address search unit 53. Therefore, there is a method of improving the performance of address search by providing a plurality of address search units 53 and using them in parallel. However, when a plurality of address search units 53 are provided, the cost increases and a mechanism for making the registered contents of the correspondence table of each address search unit 53 the same is newly required.

【0013】そこで、本発明の目的は、上記課題を解決
し、転送先ポートの決定を高速化するスイッチングハブ
を提供することにある。
An object of the present invention is to provide a switching hub that solves the above-mentioned problems and speeds up the determination of a transfer destination port.

【0014】[0014]

【課題を解決するための手段】上記目的を達成するため
に本発明は、端末アドレスを接続ポートに対応付けて登
録する対応表を有し、この対応表を受信フレームの宛先
アドレスで検索して受信フレームの転送先ポートを決定
するスイッチングハブにおいて、受信フレームの宛先ア
ドレスを予め決められたアドレスと比較する比較回路を
設け、この比較が一致したら予め決められたポートを転
送先ポートに決定し、不一致のときに前記対応表を検索
して転送先ポートを決定するようにしたものである。
According to the present invention, there is provided a correspondence table for registering a terminal address in association with a connection port. The correspondence table is searched by a destination address of a received frame. In the switching hub that determines the transfer destination port of the received frame, a comparison circuit that compares the destination address of the received frame with a predetermined address is provided, and when the comparisons match, the predetermined port is determined as the transfer destination port, When there is no match, the correspondence table is searched to determine a transfer destination port.

【0015】前記予め決められたアドレスは、ブロード
キャストフレームのアドレスであってもよい。
[0015] The predetermined address may be an address of a broadcast frame.

【0016】前記予め決められたアドレスは、スイッチ
ングハブ自身のアドレスであってもよい。
The predetermined address may be an address of the switching hub itself.

【0017】前記予め決められたアドレスは、スイッチ
ングハブの動作中に変更可能であってもよい。
[0017] The predetermined address may be changeable during operation of the switching hub.

【0018】また、端末アドレスを接続ポートに対応付
けて登録する対応表を有し、この対応表を受信フレーム
の送信元アドレスで検索し、未登録であればその送信元
アドレスを前記対応表に登録するという学習を行うスイ
ッチングハブにおいて、受信フレームの送信元アドレス
を一旦保存するメモリを設け、複数の受信フレームの送
信元アドレスを同じ送信元アドレスは重複させずに保存
し、一定間隔毎に保存されている送信元アドレスをまと
めて前記学習に用いるようにしたものである。
A correspondence table for registering the terminal address in association with the connection port is provided. The correspondence table is searched by the transmission source address of the received frame, and if not registered, the transmission source address is stored in the correspondence table. In the switching hub that learns to register, a memory for temporarily storing the source address of the received frame is provided, and the source addresses of a plurality of received frames are stored without duplicating the same source address, and stored at regular intervals. The transmission source addresses are collectively used for the learning.

【0019】[0019]

【発明の実施の形態】以下、本発明の一実施形態を添付
図面に基づいて詳述する。
An embodiment of the present invention will be described below in detail with reference to the accompanying drawings.

【0020】図1に本発明によるアドレス検索部53の
内部構成を示す。アドレス検索部53は、要求受付・応
答回路71、アドレス登録メモリ検索回路72、アドレ
ス登録メモリ73、アドレス比較回路74から構成され
ている。図7の従来構成と異なるのは、要求受付・応答
回路71に接続されるアドレス比較回路74を加えたこ
とである。
FIG. 1 shows the internal configuration of the address search unit 53 according to the present invention. The address search unit 53 includes a request reception / response circuit 71, an address registration memory search circuit 72, an address registration memory 73, and an address comparison circuit 74. The difference from the conventional configuration of FIG. 7 is that an address comparison circuit 74 connected to the request reception / response circuit 71 is added.

【0021】アドレス比較回路74は、受信フレームの
宛先アドレスを予め決められたアドレスと比較するもの
である。そして、このアドレス検索部53では、アドレ
ス登録メモリ検索回路72による対応表の検索を行う前
に、まず、アドレス比較回路74による比較を行うよう
になっている。この比較が一致したら予め決められたポ
ートを転送先ポートに決定し、不一致のときにアドレス
登録メモリ検索回路72により対応表を検索して転送先
ポートを決定する。アドレス比較回路74は、1つのア
ドレスが予め決められているアドレス比較部を複数持
ち、それぞれのアドレス比較部で宛先アドレスとの比較
を行う。このうち1つが一致すれば、そのアドレス比較
部に対して予め決められているポートが転送先ポートに
決定され、全てが不一致のときに対応表の検索を行うこ
とになる。
The address comparing circuit 74 compares the destination address of the received frame with a predetermined address. Then, in the address search section 53, before the address registration memory search circuit 72 searches the correspondence table, first, the address comparison circuit 74 performs comparison. When the comparisons match, a predetermined port is determined as the transfer destination port. When the comparison does not match, the address registration memory search circuit 72 searches the correspondence table to determine the transfer destination port. The address comparison circuit 74 has a plurality of address comparison units each having a predetermined address, and each of the address comparison units compares the address with a destination address. If one of them matches, the port determined in advance for the address comparison unit is determined as the transfer destination port, and when all do not match, the correspondence table is searched.

【0022】図2に本発明によるアドレス比較回路74
の内部構成を示す。アドレス比較回路74は、複数のア
ドレス比較部21、比較アドレス設定回路22、判定回
路23から構成されている。ここではアドレス比較部2
1が3つ設けられており、それぞれの符号を21a,2
1b,21cとする。
FIG. 2 shows an address comparison circuit 74 according to the present invention.
2 shows the internal configuration of FIG. The address comparison circuit 74 includes a plurality of address comparison units 21, a comparison address setting circuit 22, and a determination circuit 23. Here, the address comparison unit 2
1 are provided, and reference numerals 21a, 2
1b and 21c.

【0023】アドレス比較部21aは、ブロードキャス
トフレームを転送するために、宛先アドレスをブロード
キャストアドレス“ffffffffffffh”と比
較するものである。アドレス比較部21bは、SNMP
フレームなどのスイッチングハブ宛てのフレームを受信
するために、宛先アドレスを自局アドレスと比較するも
のである。アドレス比較部21cは、予め決められたア
ドレスをダイナミックに変更できるように、宛先アドレ
スを比較アドレス設定回路22により設定されるアドレ
スと比較するものである。
The address comparing section 21a compares a destination address with a broadcast address "ffffffffffffh" in order to transfer a broadcast frame. The address comparison unit 21b is an SNMP
In order to receive a frame such as a frame addressed to the switching hub, the destination address is compared with its own address. The address comparing section 21c compares a destination address with an address set by the comparison address setting circuit 22 so that a predetermined address can be dynamically changed.

【0024】判定回路23は、各アドレス比較部21
a,21b,21cの比較結果をまとめて要求受付・応
答回路71に応答するようになっている。
The determination circuit 23 is provided for each of the address comparing units 21
The comparison results of a, 21b, and 21c are collectively responded to the request reception / response circuit 71.

【0025】アドレス比較回路74を含むアドレス検索
部53の動作を説明する。
The operation of the address search section 53 including the address comparison circuit 74 will be described.

【0026】要求受付・応答回路71は、フレーム受信
時に宛先アドレスを抽出したら、まず、アドレス比較回
路74で比較を行う。宛先アドレスが、ブロードキャス
トアドレス、自局アドレス、比較アドレス設定回路22
により設定されたアドレスのいずれかであった場合、要
求受付・応答回路71は、アドレス比較回路74の比較
結果に従い転送先ポートを応答し、対応表の検索は行わ
ない。
When the request reception / response circuit 71 extracts the destination address at the time of receiving the frame, the request reception / response circuit 71 first compares it with the address comparison circuit 74. If the destination address is a broadcast address, own station address, comparison address setting circuit 22
If the address is one of the addresses set in (1), the request reception / response circuit 71 responds to the transfer destination port according to the comparison result of the address comparison circuit 74, and does not search the correspondence table.

【0027】宛先アドレスがブロードキャストアドレス
の場合は、全ポートを転送先ポートにする。宛先アドレ
スが自局アドレスの場合は、転送先ポートは無く、スイ
ッチングハブ自身の内部にある自局フレーム処理部が転
送先になる。宛先アドレスが比較アドレス設定回路22
により設定されたアドレスの場合は、そのアドレスに対
応して設定されているポートを転送先ポートにする。
When the destination address is a broadcast address, all ports are set as transfer destination ports. When the destination address is the own station address, there is no transfer destination port, and the own station frame processing unit inside the switching hub itself becomes the transfer destination. The destination address is the comparison address setting circuit 22
In the case of the address set by (1), the port set corresponding to the address is set as the transfer destination port.

【0028】宛先アドレスがアドレス比較回路74の全
ての比較で不一致の場合、要求受付・応答回路71は、
従来通り対応表の検索によって転送先ポートを決定す
る。
If the destination address does not match in all comparisons of the address comparison circuit 74, the request reception / response circuit 71
The transfer destination port is determined by searching the correspondence table as before.

【0029】以上の動作において、アドレス比較回路7
4がアドレス一致の判定に要する時間は数十nsであ
り、アドレス登録メモリ73内の対応表の検索時間に比
べると約1/10である。従って、アドレス比較回路7
4によって転送先ポートが決まる場合は、所要時間を従
来の1/10に短縮することができる。アドレス比較回
路74はアドレス比較部毎に比較するアドレスを設ける
構成なので、全ての宛先アドレスに対して転送先ポート
を決めることはできないが、予め決めるアドレスとして
通信頻度の高いアドレスを採用すれば、短時間で転送先
ポートが決まる確率が高くなり、アドレス検索部53の
性能を向上させることができる。
In the above operation, the address comparison circuit 7
4 takes several tens of ns, which is about 1/10 of the time required to search the correspondence table in the address registration memory 73. Therefore, the address comparison circuit 7
If the transfer destination port is determined by 4, the required time can be reduced to 1/10 of the conventional time. Since the address comparison circuit 74 is configured to provide an address to be compared for each address comparison unit, it is not possible to determine a transfer destination port for all destination addresses. The probability that the transfer destination port is determined by the time increases, and the performance of the address search unit 53 can be improved.

【0030】なお、図2のアドレス比較回路74には、
比較アドレス設定回路22により設定されるアドレス比
較部が1つだけ設けられているが、複数設けることによ
りアドレス比較回路74によって転送先ポートが決まる
確率が高くなり、アドレス検索部53の性能をより向上
させることができる。
The address comparison circuit 74 shown in FIG.
Although only one address comparison unit set by the comparison address setting circuit 22 is provided, the provision of a plurality of address comparison units increases the probability that the destination port is determined by the address comparison circuit 74, and further improves the performance of the address search unit 53. Can be done.

【0031】また、スイッチングハブでは、同一端末か
らのフレームが連続して受信される場合が多い。このフ
レームを送信した同一端末に対して1又は複数の受信端
末から応答のフレームが送信されると、スイッチングハ
ブには前記同一端末宛てのフレームが連続して受信され
ることになる。このように、一時的にある端末の通信頻
度が高くなることもあるので、比較アドレス設定回路2
2により設定されるアドレスは、一元的に設定するので
はなく、最近の受信フレームの宛先アドレス又は送信元
アドレスにダイナミックに変更すれば、アドレス比較回
路74によって転送先ポートが決まる確率がいっそう高
くなり、アドレス検索部53の性能をより向上させるこ
とができる。
In many cases, the switching hub receives frames from the same terminal continuously. When a response frame is transmitted from one or a plurality of receiving terminals to the same terminal that transmitted the frame, the switching hub receives the frames destined for the same terminal continuously. As described above, since the communication frequency of a certain terminal may temporarily increase, the comparison address setting circuit 2
If the address set by 2 is not set centrally but is dynamically changed to the destination address or source address of the most recently received frame, the probability that the transfer destination port is determined by the address comparison circuit 74 is further increased. In addition, the performance of the address search unit 53 can be further improved.

【0032】次に、本発明の他の実施形態を添付図面に
基づいて詳述する。
Next, another embodiment of the present invention will be described in detail with reference to the accompanying drawings.

【0033】図3にアドレス自動学習機能を持った本発
明によるアドレス検索部53の内部構成を示す。アドレ
ス検索部53は、転送先ポート検索制御部81、アドレ
ス自動学習制御部82、アドレス登録メモリ制御部8
3、アドレス登録メモリ84、送信元仮格納メモリ85
から構成されている。図7の従来構成と異なるのは、ア
ドレス自動学習制御部82に接続される送信元仮格納メ
モリ85を加えたことである。
FIG. 3 shows the internal configuration of the address search unit 53 according to the present invention having an automatic address learning function. The address search unit 53 includes a transfer destination port search control unit 81, an automatic address learning control unit 82, and an address registration memory control unit 8.
3. Address registration memory 84, source temporary storage memory 85
It is composed of The difference from the conventional configuration shown in FIG. 7 is that a temporary transmission source memory 85 connected to the automatic address learning control unit 82 is added.

【0034】送信元仮格納メモリ85は、受信フレーム
の送信元アドレスを一旦保存するメモリである。そし
て、このアドレス検索部53では、フレーム受信時に直
ちにアドレス自動学習を行うのではなく、送信元アドレ
スを一旦、送信元仮格納メモリ85に保存し、一定間隔
毎、例えば一定時間毎に、送信元仮格納メモリ85に保
存されている送信元アドレスを取り出して、まとめて学
習に用いる。ただし、送信元アドレスを送信元仮格納メ
モリ85に保存する際に、同じ送信元アドレスが重複し
て保存されないようにする。学習後は、送信元仮格納メ
モリ85を空にして、次の間隔における保存に備えても
よい。
The transmission source temporary storage memory 85 is a memory for temporarily storing the transmission source address of the received frame. The address search unit 53 does not perform automatic address learning immediately upon receiving a frame, but temporarily stores the source address in the temporary source storage memory 85, and stores the source address at regular intervals, for example, at regular intervals. The source addresses stored in the temporary storage memory 85 are extracted and used collectively for learning. However, when the source address is stored in the source temporary storage memory 85, the same source address is not redundantly stored. After the learning, the transmission source temporary storage memory 85 may be emptied to prepare for storage at the next interval.

【0035】図4のフローチャートを用いてアドレス検
索部53の動作を説明する。
The operation of the address search unit 53 will be described with reference to the flowchart of FIG.

【0036】本発明によるアドレス検索部53は、図4
(a)に示すフレーム到着毎の処理と、図4(b)に示
す一定時間毎の処理とを行う。
The address search unit 53 according to the present invention is configured as shown in FIG.
The process for each frame arrival shown in FIG. 4A and the process for a fixed time shown in FIG.

【0037】まず、フレーム到着毎の処理では、受信フ
レームより送信元アドレスを抽出する(ステップS
1)。その送信元アドレスが送信元仮格納メモリ85に
既に保存されているかどうかチェックする(S2)。送
信元アドレスが送信元仮格納メモリ85に既に保存され
ていれば何もしない。送信元アドレスが送信元仮格納メ
モリ85に未だ保存されていなければ、その送信元アド
レスを送信元仮格納メモリ85に追加して保存する(S
3)。
First, in the processing for each frame arrival, the source address is extracted from the received frame (step S).
1). It is checked whether or not the source address is already stored in the temporary source memory 85 (S2). If the source address is already stored in the source temporary storage memory 85, nothing is performed. If the source address has not been stored in the temporary storage memory 85, the source address is added and stored in the temporary storage memory 85 (S
3).

【0038】一定時間毎の処理では、送信元仮格納メモ
リ85に保存されている全てのデータ(送信元アドレ
ス)を取り出し、全てのデータについて学習処理、即ち
アドレス登録メモリ84内の対応表を各データにより検
索し、未登録であればそのデータを対応表に登録する処
理を行う(S5)。取り出した全てのデータについて学
習処理が終了したら、送信元仮格納メモリ85内のデー
タをクリアして新たなデータが保存できるようにする
(S6)。
In the processing at regular time intervals, all data (source addresses) stored in the temporary storage memory 85 of the transmission source are taken out, and learning processing is performed on all the data, that is, the correspondence table in the address registration memory 84 is stored in the respective tables. The data is searched for, and if not registered, the data is registered in the correspondence table (S5). When the learning process is completed for all the extracted data, the data in the transmission source temporary storage memory 85 is cleared so that new data can be stored (S6).

【0039】以上の動作において、1回の一定時間内に
同じ送信元アドレスを持つ複数のフレームが受信された
場合、その送信元アドレスは送信元仮格納メモリ85に
重複して保存されることがないので、学習処理におい
て、その送信元アドレスによる対応表の検索は1回しか
行われないことになる。スイッチングハブでは、同一端
末からのフレームが連続して受信される場合が多いが、
従来では送信元アドレスに関係なく、1フレーム受信に
ついて宛先アドレス、送信元アドレスの2回の検索が必
要であった。本発明では、ほとんどのフレームについて
宛先アドレスだけの1回の検索ですむ。この結果、アド
レス検索部53の性能は、単位時間当たりの受信フレー
ム処理件数が1/tにかなり近くなり、従来の2倍近く
性能が向上する。
In the above operation, when a plurality of frames having the same transmission source address are received within one fixed time, the transmission source addresses may be redundantly stored in the transmission source temporary storage memory 85. Therefore, in the learning process, the search of the correspondence table by the source address is performed only once. Switching hubs often receive frames from the same terminal continuously,
Conventionally, regardless of the source address, two searches for the destination address and the source address are required for one frame reception. In the present invention, only one search for the destination address is required for most frames. As a result, the performance of the address search unit 53 is such that the number of received frame processing per unit time is considerably close to 1 / t, and the performance is improved almost twice as much as the conventional one.

【0040】[0040]

【発明の効果】本発明は次の如き優れた効果を発揮す
る。
The present invention exhibits the following excellent effects.

【0041】(1)アドレス比較回路の処理時間が短い
ので、アドレス検索性能が大幅に向上する。
(1) Since the processing time of the address comparison circuit is short, the address search performance is greatly improved.

【0042】(2)アドレス比較回路の分だけコスト増
になるが、アドレス検索部を複数設けるよりはコストを
低くすることができる。また、複数のアドレス検索部の
対応表の登録内容を同一にさせる仕組みも必要ない。
(2) Although the cost is increased by the address comparison circuit, the cost can be reduced as compared with the case where a plurality of address search units are provided. Also, there is no need for a mechanism for making the registered contents of the correspondence table of the plurality of address search units the same.

【0043】(3)送信元アドレスの検索が省かれるの
で、アドレス検索性能が大幅に向上する。
(3) Since the search for the source address is omitted, the address search performance is greatly improved.

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

【図1】本発明の一実施形態を示すスイッチングハブの
アドレス検索部の内部構成図である。
FIG. 1 is an internal configuration diagram of an address search unit of a switching hub according to an embodiment of the present invention.

【図2】図1のアドレス検索部中のアドレス比較回路の
内部構成図である。
FIG. 2 is an internal configuration diagram of an address comparison circuit in the address search unit of FIG.

【図3】本発明の他の実施形態を示すスイッチングハブ
のアドレス検索部の内部構成図である。
FIG. 3 is an internal configuration diagram of an address search unit of a switching hub according to another embodiment of the present invention.

【図4】図3のアドレス検索部におけるアドレス自動学
習の流れ図である。
FIG. 4 is a flowchart of automatic address learning in an address search unit in FIG. 3;

【図5】スイッチングハブの構成図である。FIG. 5 is a configuration diagram of a switching hub.

【図6】対応表の構成図である。FIG. 6 is a configuration diagram of a correspondence table.

【図7】従来のアドレス検索部の内部構成図である。FIG. 7 is an internal configuration diagram of a conventional address search unit.

【図8】従来のアドレス検索部の内部構成図である。FIG. 8 is an internal configuration diagram of a conventional address search unit.

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

21,21a,21b,21c アドレス比較部 22 比較アドレス設定回路 23 判定回路 53 アドレス検索部 71 要求受付・応答回路 72 アドレス登録メモリ検索回路 73,84 アドレス登録メモリ 74 アドレス比較回路 81 転送先ポート検索制御部 82 アドレス自動学習制御部 83 アドレス登録メモリ制御部 85 送信元仮格納メモリ 21, 21a, 21b, 21c Address comparison unit 22 Comparison address setting circuit 23 Judgment circuit 53 Address search unit 71 Request reception / response circuit 72 Address registration memory search circuit 73, 84 Address registration memory 74 Address comparison circuit 81 Transfer destination port search control Unit 82 address automatic learning control unit 83 address registration memory control unit 85 source temporary storage memory

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 端末アドレスを接続ポートに対応付けて
登録する対応表を有し、この対応表を受信フレームの宛
先アドレスで検索して受信フレームの転送先ポートを決
定するスイッチングハブにおいて、受信フレームの宛先
アドレスを予め決められたアドレスと比較する比較回路
を設け、この比較が一致したら予め決められたポートを
転送先ポートに決定し、不一致のときに前記対応表を検
索して転送先ポートを決定するようにしたことを特徴と
するスイッチングハブ。
1. A switching hub which has a correspondence table for registering a terminal address in association with a connection port and registers the correspondence table with a destination address of the received frame to determine a transfer destination port of the received frame. A comparison circuit is provided for comparing the destination address of the destination address with a predetermined address.If the comparison results in a match, a predetermined port is determined as the transfer destination port. A switching hub characterized in that it is determined.
【請求項2】 前記予め決められたアドレスは、ブロー
ドキャストフレームのアドレスであることを特徴とする
請求項1記載のスイッチングハブ。
2. The switching hub according to claim 1, wherein the predetermined address is an address of a broadcast frame.
【請求項3】 前記予め決められたアドレスは、スイッ
チングハブ自身のアドレスであることを特徴とする請求
項1又は2記載のスイッチングハブ。
3. The switching hub according to claim 1, wherein the predetermined address is an address of the switching hub itself.
【請求項4】 前記予め決められたアドレスは、スイッ
チングハブの動作中に変更可能であることを特徴とする
請求項1〜3いずれか記載のスイッチングハブ。
4. The switching hub according to claim 1, wherein the predetermined address can be changed during operation of the switching hub.
【請求項5】 端末アドレスを接続ポートに対応付けて
登録する対応表を有し、この対応表を受信フレームの送
信元アドレスで検索し、未登録であればその送信元アド
レスを前記対応表に登録するという学習を行うスイッチ
ングハブにおいて、受信フレームの送信元アドレスを一
旦保存するメモリを設け、複数の受信フレームの送信元
アドレスを同じ送信元アドレスは重複させずに保存し、
一定間隔毎に保存されている送信元アドレスをまとめて
前記学習に用いるようにしたことを特徴とするスイッチ
ングハブ。
5. A correspondence table for registering a terminal address in association with a connection port. The correspondence table is searched by a source address of a received frame, and if not registered, the source address is stored in the correspondence table. In a switching hub that learns to register, a memory for temporarily storing a source address of a received frame is provided, and a source address of a plurality of received frames is stored without duplicating the same source address,
A switching hub, wherein source addresses stored at regular intervals are collectively used for the learning.
JP9280637A 1997-10-14 1997-10-14 Switching hub function Pending JPH11122280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9280637A JPH11122280A (en) 1997-10-14 1997-10-14 Switching hub function

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9280637A JPH11122280A (en) 1997-10-14 1997-10-14 Switching hub function

Publications (1)

Publication Number Publication Date
JPH11122280A true JPH11122280A (en) 1999-04-30

Family

ID=17627839

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9280637A Pending JPH11122280A (en) 1997-10-14 1997-10-14 Switching hub function

Country Status (1)

Country Link
JP (1) JPH11122280A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054983B2 (en) 2001-11-21 2006-05-30 Nec Electronics Corporation USB-HUB device and its control method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7054983B2 (en) 2001-11-21 2006-05-30 Nec Electronics Corporation USB-HUB device and its control method

Similar Documents

Publication Publication Date Title
US6236658B1 (en) Method and apparatus for message routing, including a content addressable memory
EP0508886B1 (en) Filtering and disposition of messages in a bridge using a single address and protocol table
US6757279B1 (en) Method for synchronizing databases in stacked network units
CN108173691B (en) Cross-device aggregation method and device
US20050083952A1 (en) Flexible ethernet bridge
JPH0685819A (en) Computer system
CN113839862B (en) Method, system, terminal and storage medium for synchronizing ARP information between MCLAG neighbors
US7068652B2 (en) Pointer based binary search engine and method for use in network devices
US6965945B2 (en) System and method for slot based ARL table learning and concurrent table search using range address insertion blocking
US6009423A (en) Search apparatus
EP1232612B1 (en) Table lookup mechanism for address resolution in a packet network switch
US20050147111A1 (en) Updating address tables
US7010535B2 (en) Binary search engine and method
US20060274654A1 (en) Range matching
JPH11122280A (en) Switching hub function
EP1253765B1 (en) System and method for slot based ARL table learning and searching using write snoop
CN111865801B (en) Virtio port-based data transmission method and system
US20020039365A1 (en) Pipelined searches with a cache table
JP3315033B2 (en) Network frame repeater
JP3662618B2 (en) Multi-protocol address search associative memory and its search method
JP3028414B1 (en) Packet filter circuit
CN112910783B (en) Message forwarding method and device and distributed equipment
CN113364891B (en) Network communication device and operation method of network mapping table
JP3508057B2 (en) Layer 3 switch
JPH042236A (en) Bridge equipment