JPH11187057A - Repeating hub and network management device - Google Patents

Repeating hub and network management device

Info

Publication number
JPH11187057A
JPH11187057A JP9351590A JP35159097A JPH11187057A JP H11187057 A JPH11187057 A JP H11187057A JP 9351590 A JP9351590 A JP 9351590A JP 35159097 A JP35159097 A JP 35159097A JP H11187057 A JPH11187057 A JP H11187057A
Authority
JP
Japan
Prior art keywords
address
mac address
source
combination
port
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
JP9351590A
Other languages
Japanese (ja)
Inventor
Kiyonobu Terada
清伸 寺田
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 JP9351590A priority Critical patent/JPH11187057A/en
Publication of JPH11187057A publication Critical patent/JPH11187057A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To recognize a network configuration in more detail by recognizing an overlapped MAC address as a MAC address of a router when a combination whose MAC address is equal to that of a combination to add and whose IP address is different from that of the combination to add exists. SOLUTION: At the time of receiving a frame at ports 241 to 244, a repeating hub 261 reads a transmission source MAC address and a transmission source IP address of the frame. When address registering memories 271 to 274 do not hold a combination of the addresses yet at this time, the combination of the addresses is added to the memories 271 to 274. When a combination, whose MAC address is equal to that of a combination to add and whose IP address is different from that of the combination to add, exists among already held combinations, its overlapped MAC address is recognized a MAC address of a router.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、ポートで受信する
フレームのアドレス情報からネットワーク構成を認識す
るリピーティングハブ及びネットワーク管理装置に係
り、特に、ネットワーク構成をより詳しく認識できるリ
ピーティングハブ及びネットワーク管理装置に関するも
のである。
The present invention relates to a repeating hub and a network management device for recognizing a network configuration from address information of a frame received at a port, and more particularly to a repeating hub and a network management device capable of recognizing a network configuration in more detail. Things.

【0002】[0002]

【従来の技術】図2は、本発明及び従来技術におけるリ
ピーティングハブ101を用いたネットワークを示す。
リピーティングハブ101として、図7に示す従来のリ
ピーティングハブ361を用いた場合について従来の技
術を説明する。このリピーティングハブ361は、ポー
ト141〜144(図7では341〜344)の4つの
ポートを持ち、これらのポートにはリピーティングハブ
102、ルータ121、通信端末137、通信端末13
8が接続されている。IEEE802.3で規定される
イーサネットにおいて、ネットワークプロトコルとして
IPを使用した場合、図2の通信端末131〜138
は、それぞれMACアドレス、IPアドレスの2つのア
ドレスを持っている。
2. Description of the Related Art FIG. 2 shows a network using a repeating hub 101 according to the present invention and the prior art.
A conventional technique in a case where the conventional repeating hub 361 shown in FIG. 7 is used as the repeating hub 101 will be described. The repeating hub 361 has four ports 141 to 144 (341 to 344 in FIG. 7), and these ports include the repeating hub 102, the router 121, the communication terminal 137, and the communication terminal 13
8 are connected. When IP is used as a network protocol in Ethernet defined by IEEE802.3, the communication terminals 131 to 138 in FIG.
Has two addresses, a MAC address and an IP address.

【0003】従来のリピーティングハブ361は、図7
に示されるように、受信したフレームの送信元MACア
ドレスを1つだけ保持することのできるメモリ(MAC
アドレス登録メモリ)371〜374を各ポート毎に持
っている。また、リピーティングハブ361は、各ポー
ト341〜344において、フレームを受信すると、そ
のフレームの送信元MACアドレスを読み込み、読み込
んだMACアドレスをMACアドレス登録メモリ371
〜374に保持させる機能を備えている。
A conventional repeating hub 361 is shown in FIG.
, A memory (MAC) that can hold only one source MAC address of a received frame.
Address registration memories) 371 to 374 are provided for each port. When receiving a frame at each of the ports 341 to 344, the repeating hub 361 reads the source MAC address of the frame, and stores the read MAC address in the MAC address registration memory 371.
To 374.

【0004】リピーティングハブ361は、MACアド
レス登録メモリ371〜374に保持されている値が一
定時間経過しても変更されないポートについて、そのポ
ートにはルータ又は通信端末が接続されていることを認
識し、MACアドレス登録メモリ371〜374に保持
されている値が一定時間内に変更されたポートについ
て、そのポートにはブリッジ又はリピーティングハブが
接続されていることを認識する。
[0004] The repeating hub 361 recognizes that a router or a communication terminal is connected to a port whose value stored in the MAC address registration memories 371 to 374 does not change even after a certain period of time. For a port whose value held in the MAC address registration memories 371 to 374 has been changed within a predetermined time, it recognizes that a bridge or a repeating hub is connected to the port.

【0005】例えば、ポート142(342)におい
て、リピーティングハブ361が通信端末135,13
6から送信されたフレームを受信した場合、それぞれの
フレームの送信元MACアドレスをMACアドレス登録
メモリ372に保持する。このとき、これらのフレーム
の送信元MACアドレスは、ルータ121によってルー
タ121のMACアドレスに書き替えられているため、
MACアドレス登録メモリ372に保持される内容はル
ータ121のMACアドレスのみであり、常に同じ値が
上書きされる。
For example, at the port 142 (342), the repeating hub 361 is connected to the communication terminals 135, 13
6, the source MAC address of each frame is stored in the MAC address registration memory 372. At this time, since the source MAC addresses of these frames have been rewritten by the router 121 to the MAC addresses of the routers 121,
The content held in the MAC address registration memory 372 is only the MAC address of the router 121, and the same value is always overwritten.

【0006】また、ポート143,144(343,3
44)においては、通信端末137及び通信端末138
から受信したフレームの送信元MACアドレスが、それ
ぞれのMACアドレス登録メモリ373,374に保持
される。このときもMACアドレス登録メモリ373,
374には常に同じ値が上書きされる。
The ports 143, 144 (343, 3
44), the communication terminals 137 and 138
The source MAC address of the frame received from is stored in the respective MAC address registration memories 373 and 374. Also at this time, the MAC address registration memory 373,
374 is always overwritten with the same value.

【0007】一方、ポート141(341)において
は、受信するフレームの送信元MACアドレスには通信
端末131、通信端末132及びルータ122のMAC
アドレスがある。このためMACアドレス登録メモリ3
71の内容は、これら3つのMACアドレスの値で変更
される。
On the other hand, in the port 141 (341), the MAC address of the communication terminal 131, the communication terminal 132 and the router 122 is added to the source MAC address of the frame to be received.
There is an address. Therefore, the MAC address registration memory 3
The contents of 71 are changed by the values of these three MAC addresses.

【0008】従って、リピーティングハブ361は、ポ
ート141にはリピーティングハブ又はブリッジが接続
されており、ポート142〜144にはルータ又は通信
端末が接続されていると認識する。
Accordingly, the repeating hub 361 recognizes that a repeating hub or bridge is connected to the port 141, and a router or a communication terminal is connected to the ports 142 to 144.

【0009】また、従来のリピーティングハブには、図
8に示されるように、受信したフレームの送信元MAC
アドレスを1つだけ保持するMACアドレス登録メモリ
401〜404の他に、初期値0のMACアドレス変更
カウンタ411〜414を各ポート毎に持っているもの
がある。
As shown in FIG. 8, a conventional repeating hub has a source MAC of a received frame.
In addition to the MAC address registration memories 401 to 404 that hold only one address, some have MAC address change counters 411 to 414 with an initial value of 0 for each port.

【0010】リピーティングハブ461は、各ポートに
おいて、まず1つ目のフレームを受信すると、そのフレ
ームの送信元MACアドレスを読み込み、そのMACア
ドレスをMACアドレス登録メモリ401〜404に保
持させる。このとき、MACアドレス変更カウンタ41
1〜414の値を1にする。次に、同じポートでフレー
ムを受信すると、再び送信元MACアドレスを読み込
む。このとき読み込んだ送信元MACアドレスと保持し
ていたMACアドレスとが異なっていれば、MACアド
レス登録メモリの値を読み込んだ送信元MACアドレス
の値に書き替えると共に、MACアドレス変更カウンタ
の値に1を加算する。読み込んだ送信元MACアドレス
と保持していたMACアドレスとが同じときは何もしな
い。リピーティングハブ461は、フレームを受信した
それぞれのポートについて、この処理を繰り返し行う。
[0010] Upon receiving the first frame at each port, the repeating hub 461 reads the source MAC address of the frame and causes the MAC address registration memories 401 to 404 to hold the MAC address. At this time, the MAC address change counter 41
The value of 1 to 414 is set to 1. Next, when a frame is received at the same port, the source MAC address is read again. If the read source MAC address is different from the held MAC address at this time, the value of the MAC address registration memory is rewritten to the read source MAC address value and the value of the MAC address change counter is set to 1 Is added. If the read source MAC address is the same as the held MAC address, nothing is performed. The repeating hub 461 repeats this process for each port that has received the frame.

【0011】MACアドレス変更カウンタ411〜41
4の値が2以上になるポートは、複数の送信元からフレ
ームを受信していることになるから、ブリッジ又はリピ
ーティングハブが接続されていると推測できる。図2で
はポート141がこれに当たる。ただし、MACアドレ
ス変更カウンタの値が2以上であっても小さい場合に
は、接続先の通信端末が変更されたことも考えられる。
[0011] MAC address change counters 411-41
Since the port where the value of 4 is 2 or more is receiving frames from a plurality of transmission sources, it can be estimated that a bridge or a repeating hub is connected. In FIG. 2, the port 141 corresponds to this. However, if the value of the MAC address change counter is smaller than 2 even if it is small, the communication terminal of the connection destination may have been changed.

【0012】リピーティングハブ101及びネットワー
ク管理装置(ここでは通信端末138がネットワーク管
理装置とする)がネットワーク管理プロトコル(SNM
P)を搭載している場合、リピーティングハブ101が
SNMPエージェントとして動作し、ネットワーク管理
装置138がSNMPマネージャとして動作することが
可能となる。
The repeating hub 101 and the network management device (here, the communication terminal 138 is a network management device) are connected to a network management protocol (SNM).
When P) is installed, the repeating hub 101 operates as an SNMP agent, and the network management device 138 can operate as an SNMP manager.

【0013】ネットワーク管理者は、ネットワーク管理
装置(SNMPマネージャ)137からSNMPを使用
してリピーティングハブ(SNMPエージェント)10
1のMACアドレス変更カウンタの値を取得することに
より、ブリッジやリピーティングハブの接続形態を把握
し、ネットワーク管理に役立てることができる。
The network administrator sends a repeating hub (SNMP agent) 10 from a network management device (SNMP manager) 137 using SNMP.
By acquiring the value of the MAC address change counter of 1, it is possible to grasp the connection form of the bridge or the repeating hub and to use it for network management.

【0014】[0014]

【発明が解決しようとする課題】図7の構成を持つ従来
技術において、リピーティングハブ361は、一定時間
内にMACアドレス登録メモリ371〜374の内容が
変更されないポートにはルータ又は通信端末が接続され
ていることを認識できるが、ポートの接続先がルータか
通信端末かを識別することができない。
In the prior art having the configuration shown in FIG. 7, the repeating hub 361 is connected to a router or a communication terminal at a port where the contents of the MAC address registration memories 371 to 374 are not changed within a predetermined time. It cannot recognize whether the connection destination of the port is a router or a communication terminal.

【0015】図8の構成を持つ従来技術において、リピ
ーティングハブ461は、MACアドレス変更カウンタ
411〜414の値により、ポートの接続先が通信端末
かブリッジ又はリピーティングハブかを推測できるが、
ルータであるかどうかを認識することができない。
In the prior art having the configuration shown in FIG. 8, the repeating hub 461 can guess whether the connection destination of the port is a communication terminal, a bridge or a repeating hub based on the values of the MAC address change counters 411 to 414.
I can't tell if it's a router.

【0016】そこで、本発明の目的は、上記課題を解決
し、ネットワーク構成をより詳しく認識できるリピーテ
ィングハブ及びネットワーク管理装置を提供することに
ある。
It is an object of the present invention to solve the above-mentioned problems and to provide a repeating hub and a network management device capable of recognizing a network configuration in more detail.

【0017】[0017]

【課題を解決するための手段】上記目的を達成するため
に第1の発明のリピーティングハブは、複数のポートを
持ち、各ポート間でフレームの転送を行うリピーティン
グハブにおいて、各ポート毎に、受信したフレームの送
信元MACアドレス及び送信元IPアドレスを検出する
機能とこれら検出した送信元MACアドレス及び送信元
IPアドレスの組み合わせを保持するアドレス登録メモ
リとを備え、あるポートでフレームを受信したとき、検
出した送信元MACアドレス及び送信元IPアドレスの
組み合わせが当該ポートのアドレス登録メモリに保持さ
れていなければ、その組み合わせをアドレス登録メモリ
に追加すると共に、既に保持されている組み合わせの中
に、追加する組み合わせとMACアドレスが同じでIP
アドレスが異なる組み合わせがある場合には、その重複
しているMACアドレスをルータのMACアドレスであ
ると認識する機能を備えたものである。
According to a first aspect of the present invention, there is provided a repeating hub which has a plurality of ports and transfers a frame between the ports. A function for detecting the source MAC address and the source IP address of the detected frame and an address registration memory for holding a combination of the detected source MAC address and the source IP address, and when a frame is received at a certain port, If the detected combination of the source MAC address and the source IP address is not held in the address registration memory of the port, the combination is added to the address registration memory and added to the already held combinations. Combination and MAC address are the same and IP
When there is a combination having a different address, a function is provided for recognizing the overlapping MAC address as the MAC address of the router.

【0018】前記認識したルータのMACアドレスを用
いて逆アドレス解決プロトコル(RARP)サーバにR
ARPフレームを送信することにより、ルータのIPア
ドレスを取得する機能を備えてもよい。
Using the MAC address of the recognized router, a reverse address resolution protocol (RARP) server
A function of acquiring an IP address of a router by transmitting an ARP frame may be provided.

【0019】また、第2の発明のリピーティングハブ
は、複数のポートを持ち、各ポート間でフレームの転送
を行うリピーティングハブにおいて、各ポート毎に、受
信したフレームの送信元MACアドレス及び送信元IP
アドレスを検出する機能と、検出した送信元MACアド
レスを保持するMACアドレス登録メモリと、検出した
送信元IPアドレスを保持するIPアドレス登録メモリ
と、検出した送信元MACアドレスが既に保持していた
MACアドレスと異なるときに計数値を増加するMAC
アドレス変更カウンタと、検出した送信元IPアドレス
が既に保持していたIPアドレスと異なるときに計数値
を増加するIPアドレス変更カウンタとを備えたもので
ある。
The repeating hub of the second invention has a plurality of ports, and transfers a frame between the ports. In the repeating hub, a source MAC address and a source IP of a received frame are provided for each port.
An address detection function, a MAC address registration memory for storing the detected source MAC address, an IP address registration memory for storing the detected source IP address, and a MAC that the detected source MAC address already holds MAC that increases the count when it is different from the address
It has an address change counter and an IP address change counter that increases the count value when the detected source IP address is different from the already held IP address.

【0020】ネットワーク管理プロトコル(SNMP)
を搭載し、各ポート毎の前記カウンタ値をSNMPマネ
ージャに通知する機能を備えてもよい。
Network Management Protocol (SNMP)
And a function of notifying the SNMP manager of the counter value for each port.

【0021】また、ネットワーク管理装置は、SNMP
を搭載し、リピーティングハブから各ポート毎の前記カ
ウンタ値が通知されたとき、MACアドレス変更カウン
タ値よりもIPアドレス変更カウンタ値が大きいときに
は、当該ポートの先にルータが接続されていることを認
識するものである。
Also, the network management device is an SNMP
When the counter value for each port is notified from the repeating hub and the IP address change counter value is larger than the MAC address change counter value, it is recognized that the router is connected to the end of the port. Is what you do.

【0022】[0022]

【発明の実施の形態】以下、本発明の第1の実施形態を
添付図面に基づいて詳述する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, a first embodiment of the present invention will be described in detail with reference to the accompanying drawings.

【0023】図2のリピーティングハブ101に本発明
のリピーティングハブ261を用い、通信端末138は
逆アドレス解決プロトコル(RARP)サーバ機能を備
えているものとする。図1に、本発明のリピーティング
ハブ261のハードウェア構成を示す。
It is assumed that the repeating hub 261 of the present invention is used for the repeating hub 101 shown in FIG. 2, and the communication terminal 138 has a reverse address resolution protocol (RARP) server function. FIG. 1 shows a hardware configuration of a repeating hub 261 of the present invention.

【0024】図1に示されるように、本発明のリピーテ
ィングハブは、各ポート241〜244毎に、受信した
フレームの送信元MACアドレス及び送信元IPアドレ
スを検出する機能とこれら検出した送信元MACアドレ
ス及び送信元IPアドレスの組み合わせを保持するアド
レス登録メモリ271〜274とを備え、あるポートで
フレームを受信したとき、検出した送信元MACアドレ
ス及び送信元IPアドレスの組み合わせが当該ポートの
アドレス登録メモリに保持されていなければ、その組み
合わせをアドレス登録メモリに追加すると共に、既に保
持されている組み合わせの中に、追加する組み合わせと
MACアドレスが同じでIPアドレスが異なる組み合わ
せがある場合には、その重複しているMACアドレスを
ルータのMACアドレスであると認識する機能を備えて
いる。
As shown in FIG. 1, the repeating hub of the present invention has a function of detecting a source MAC address and a source IP address of a received frame for each of the ports 241 to 244, and a function of detecting the detected source MAC. Address registration memories 271 to 274 for holding a combination of an address and a source IP address. When a frame is received at a certain port, the detected combination of the source MAC address and the source IP address is stored in the address registration memory of the port. If not, the combination is added to the address registration memory, and if there is a combination having the same MAC address as the combination to be added but a different IP address among the combinations already stored, the combination is added. MAC address of the router It has a function of recognizing that the less.

【0025】リピーティングハブ261は、ポート24
1〜244においてフレームを受信すると、そのフレー
ムの送信元MACアドレス及び送信元IPアドレスを読
み込む。このとき、アドレス登録メモリ271〜274
がまだそのアドレスの組み合わせを保持していなかった
場合には、アドレス登録メモリ271〜274にそのア
ドレスの組み合わせを追加する。
The repeating hub 261 is connected to the port 24
When a frame is received in 1 to 244, the source MAC address and source IP address of the frame are read. At this time, the address registration memories 271 to 274
If the address combination has not been held yet, the address combination is added to the address registration memories 271 to 274.

【0026】図2において、既に通信端末131,13
2,133からリピーティングハブ261がフレームを
受信している場合、アドレス登録メモリ271は図3に
示されるように、3つのアドレスの組み合わせを保持し
ている。
In FIG. 2, the communication terminals 131, 13
When the repeating hub 261 is receiving a frame from 2, 133, the address registration memory 271 holds a combination of three addresses, as shown in FIG.

【0027】ここで、リピーティングハブ261が通信
端末134からフレームを受信したとする。このフレー
ムは、ルータ122によって送信元MACアドレスがル
ータ122のMACアドレスに書き替えられている。リ
ピーティングハブ261は、このフレームの送信元MA
Cアドレス及び送信元IPアドレスを読み込む。即ち、
ルータ122のMACアドレス及び通信端末134が得
られる。図3に示されるように、まだこの組み合わせが
アドレス登録メモリ271に保持されていないので、追
加する。そして、既に保持されている組み合わせの中
に、追加する組み合わせとMACアドレスが同じでIP
アドレスが異なる組み合わせがあるので、その重複して
いるMACアドレスをルータのMACアドレスであると
認識する。
Here, it is assumed that repeating hub 261 has received a frame from communication terminal 134. In this frame, the source MAC address is rewritten by the router 122 by the MAC address of the router 122. The repeating hub 261 determines that the source MA of this frame is
The C address and the source IP address are read. That is,
The MAC address of the router 122 and the communication terminal 134 are obtained. As shown in FIG. 3, this combination is not yet held in the address registration memory 271 and is therefore added. Then, among the combinations already held, the combination to be added has the same MAC address as the combination to be added.
Since there are combinations having different addresses, the MAC address that is duplicated is recognized as the MAC address of the router.

【0028】アドレス登録メモリ271の内容は、最終
的に図4のようになる。なお、図3と図4とでは、欄の
順序が変更されているが問題はない。
The contents of the address registration memory 271 finally become as shown in FIG. Although the order of the columns is changed between FIG. 3 and FIG. 4, there is no problem.

【0029】リピーティングハブ261は、ルータ12
2のMACアドレスを認識すると、このMACアドレス
を用いて図5に示すRARPメッセージを作成し、イー
サネットヘッダを付けてRARPフレームを作成する。
このRARPフレームは、ネットワークにブロードキャ
ストされ、ネットワーク上に存在するRARPサーバ
(ここでは通信端末138)が受信する。RARPサー
バは、TARGET IPフィールドにルータのIPア
ドレスを記述した応答フレームをリピーティングハブ2
61に返す。これによりリピーティングハブ261はル
ータ122のIPアドレスを取得する。
The repeating hub 261 is connected to the router 12
When the MAC address 2 is recognized, the RARP message shown in FIG. 5 is created using this MAC address, and an RARP frame is created with an Ethernet header attached.
This RARP frame is broadcast to the network and received by the RARP server (here, the communication terminal 138) existing on the network. The RARP server sends a response frame describing the router IP address in the TARGET IP field to the repeating hub 2.
Return to 61. Thereby, the repeating hub 261 obtains the IP address of the router 122.

【0030】なお、リピーティングハブ261は、ネッ
トワークのトポロジが変更された場合を考慮して、アド
レス登録メモリの内容を一定時間経過すると消去する。
The repeating hub 261 deletes the contents of the address registration memory after a certain period of time in consideration of a case where the topology of the network is changed.

【0031】このようにしてリピーティングハブ261
が取得したルータ121,122のIPアドレスはネッ
トワーク管理を行うための有用な情報となる。
In this way, the repeating hub 261
The obtained IP addresses of the routers 121 and 122 are useful information for performing network management.

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

【0033】図6に示されるように、本発明のリピーテ
ィングハブ261は、各ポート毎に、受信したフレーム
の送信元MACアドレス及び送信元IPアドレスを検出
する機能と、検出した送信元MACアドレスを保持する
MACアドレス登録メモリ201〜204と、検出した
送信元IPアドレスを保持するIPアドレス登録メモリ
221〜224と、検出した送信元MACアドレスが既
に保持していたMACアドレスと異なるときに計数値を
増加するMACアドレス変更カウンタ211〜214
と、検出した送信元IPアドレスが既に保持していたI
Pアドレスと異なるときに計数値を増加するIPアドレ
ス変更カウンタ231〜234とが設けられている。M
ACアドレス変更カウンタ211〜214及びIPアド
レス変更カウンタ231〜234は初期状態で0を保持
している。
As shown in FIG. 6, the repeating hub 261 of the present invention has a function of detecting a source MAC address and a source IP address of a received frame for each port and a function of detecting the detected source MAC address. The stored MAC address registration memories 201 to 204, the IP address registration memories 221 to 224 for storing the detected source IP address, and the counter value when the detected source MAC address is different from the already stored MAC address. Increasing MAC address change counters 211 to 214
And the I that the detected source IP address already holds
There are provided IP address change counters 231 to 234 which increase the count value when the address is different from the P address. M
The AC address change counters 211 to 214 and the IP address change counters 231 to 234 hold 0 in an initial state.

【0034】図2において、まず、通信端末133から
通信端末137にフレームを送信する場合を考える。通
信端末133が送信するフレームには、送信元IPアド
レスとして通信端末133のIPアドレス、送信元MA
Cアドレスとして通信端末133のMACアドレス、宛
先MACアドレスとしてルータ122のMACアドレ
ス、宛先IPアドレスとして通信端末137のIPアド
レスが記述されている。
In FIG. 2, first, a case where a frame is transmitted from communication terminal 133 to communication terminal 137 will be considered. The frame transmitted by the communication terminal 133 includes the IP address of the communication terminal 133 as the source IP address and the source MA
The MAC address of the communication terminal 133 is described as the C address, the MAC address of the router 122 is described as the destination MAC address, and the IP address of the communication terminal 137 is described as the destination IP address.

【0035】このフレームは、リピーティングハブ10
3からルータ122に中継される。ルータ122は、こ
のフレームの宛先MACアドレスを通信端末137のM
ACアドレスに、送信元MACアドレスをルータ122
のMACアドレスに変更してリピーティングハブ102
に中継する。リピーティングハブ102は、このフレー
ムをリピーティングハブ261に中継する。
This frame is connected to the repeating hub 10
3 to the router 122. The router 122 sets the destination MAC address of this frame to the M of the communication terminal 137.
The source MAC address is replaced by the router 122 in the AC address.
To the MAC address of the repeating hub 102
Relay to The repeating hub 102 relays the frame to the repeating hub 261.

【0036】リピーティングハブ261は、このフレー
ムを通信端末137に中継するが、同時に、このフレー
ムの送信元MACアドレスと送信元IPアドレスとを検
出し、これらのアドレスを図6に示すMACアドレス登
録メモリ201及びIPアドレス登録メモリ221に保
持する。さらに、MACアドレス変更カウンタ211及
びIPアドレス変更カウンタ231の値をそれぞれ1に
する。
The repeating hub 261 relays the frame to the communication terminal 137. At the same time, the repeating hub 261 detects the source MAC address and the source IP address of the frame, and stores these addresses in the MAC address registration memory shown in FIG. 201 and the IP address registration memory 221. Further, the values of the MAC address change counter 211 and the IP address change counter 231 are set to 1 respectively.

【0037】次に、通信端末134から通信端末137
にフレームを送信する場合を考える。通信端末134が
送信するフレームには、送信元IPアドレスとして通信
端末134のIPアドレス、送信元MACアドレスとし
て通信端末134のMACアドレス、宛先MACアドレ
スとしてルータ122のMACアドレス、宛先IPアド
レスとして通信端末137のIPアドレスが記述されて
いる。前記と同様に、ルータ122がこのフレームを受
信すると、ルータ122は宛先MACアドレスと送信元
MACアドレスとを変更してリピーティングハブ102
に中継し、リピーティングハブ102は、このフレーム
をリピーティングハブ261に中継する。
Next, from the communication terminal 134 to the communication terminal 137
Let us consider a case where a frame is transmitted. The frame transmitted by the communication terminal 134 includes the IP address of the communication terminal 134 as the source IP address, the MAC address of the communication terminal 134 as the source MAC address, the MAC address of the router 122 as the destination MAC address, and the communication terminal as the destination IP address. 137 are described. As described above, when the router 122 receives this frame, the router 122 changes the destination MAC address and the source MAC address to
, And the repeating hub 102 relays the frame to the repeating hub 261.

【0038】リピーティングハブ261は、このフレー
ムを通信端末137に中継するが、同時に、このフレー
ムの送信元MACアドレスと送信元IPアドレスとを検
出する。検出した送信元IPアドレスとIPアドレス登
録メモリ221に保持されているIPアドレスとは異な
るため、IPアドレス登録メモリ221には検出した送
信元IPアドレスを書き換え、IPアドレス変更カウン
タ231の値には1を加算して2にする。検出した送信
元MACアドレスとMACアドレス登録メモリ201に
保持されているMACアドレスとは等しいので、MAC
アドレスについては何もしない。
The repeating hub 261 relays the frame to the communication terminal 137, and at the same time, detects the source MAC address and the source IP address of the frame. Since the detected source IP address is different from the IP address stored in the IP address registration memory 221, the detected source IP address is rewritten in the IP address registration memory 221, and the value of the IP address change counter 231 is set to 1 And add to 2. Since the detected source MAC address is equal to the MAC address held in the MAC address registration memory 201, the MAC address
Does nothing about addresses.

【0039】次に、通信端末131から通信端末137
にフレームを送信する場合を考える。通信端末131が
送信するフレームには、送信元IPアドレスとして通信
端末131のIPアドレス、送信元MACアドレスとし
て通信端末131のMACアドレスが記述され、ルータ
を通らないので、このフレームがリピーティングハブ2
61に中継される。
Next, from the communication terminal 131 to the communication terminal 137
Let us consider a case where a frame is transmitted. In the frame transmitted by the communication terminal 131, the IP address of the communication terminal 131 is described as the source IP address, and the MAC address of the communication terminal 131 is described as the transmission source MAC address.
It is relayed to 61.

【0040】リピーティングハブ261は、このフレー
ムを通信端末137に中継するが、同時に、このフレー
ムの送信元MACアドレスと送信元IPアドレスとを検
出する。検出した送信元IPアドレスとIPアドレス登
録メモリ221に保持されているIPアドレスとは異な
り、かつ、検出した送信元MACアドレスとMACアド
レス登録メモリ201に保持されているMACアドレス
とは異なるため、IPアドレス登録メモリ221及びM
ACアドレス登録メモリ201は共に書き換えられ、I
Pアドレス変更カウンタ231及びMACアドレス変更
カウンタ211の値には1ずつ加算される。
The repeating hub 261 relays this frame to the communication terminal 137, and at the same time, detects the source MAC address and source IP address of this frame. Since the detected source IP address is different from the IP address stored in the IP address registration memory 221, and the detected source MAC address is different from the MAC address stored in the MAC address registration memory 201, Address registration memory 221 and M
The AC address registration memory 201 is rewritten together,
The value of the P address change counter 231 and the value of the MAC address change counter 211 are incremented by one.

【0041】以上のような、フレームの送受信が繰り返
し行われた場合、MACアドレス変更カウンタ211の
値M及びIPアドレス変更カウンタ231の値Nは、M
<Nの関係を満たす。なお、これらのカウンタ値は、一
定時間が経過した場合に初期状態(値0)に戻す。
When the transmission and reception of frames as described above are repeated, the value M of the MAC address change counter 211 and the value N of the IP address change counter 231 become M
Satisfies the relationship of <N. Note that these counter values are returned to the initial state (value 0) after a certain time has elapsed.

【0042】ここで、通信端末138がネットワーク管
理装置とする。ネットワーク管理装置138において、
SNMPを用いてリピーティングハブ261のポート1
41(241)のMACアドレス変更カウンタ211の
値M及びIPアドレス変更カウンタ231の値Nを取得
する。このときM<Nの関係を満たすので、ネットワー
ク管理者はポート141(241)の先にルータが存在
することが認識できる。同様にして、ポート142〜1
44(242〜244)のMACアドレス変更カウンタ
212〜214の値M及びIPアドレス変更カウンタ2
32〜234の値Nを取得する。M=1かつN=1であ
るポートには1台の通信端末が接続されていると認識で
きる。M=N(M,Nは1以外)であるポートにはリピ
ーティングハブ又はブリッジが接続されていると認識で
きる。M>Nの関係を満たすことはない。
Here, the communication terminal 138 is a network management device. In the network management device 138,
Port 1 of the repeating hub 261 using SNMP
41, the value M of the MAC address change counter 211 and the value N of the IP address change counter 231 are acquired. At this time, since the relationship of M <N is satisfied, the network administrator can recognize that the router exists beyond the port 141 (241). Similarly, ports 142-1
44 (242 to 244), the value M of the MAC address change counters 212 to 214 and the IP address change counter 2
The value N of 32 to 234 is obtained. It can be recognized that one communication terminal is connected to the port where M = 1 and N = 1. It can be recognized that a repeating hub or bridge is connected to a port where M = N (M and N are other than 1). The relationship of M> N is not satisfied.

【0043】リピーティングハブ261のポート142
(242)においては、通信端末135,136から他
の通信端末へフレームの送受信が繰り返されると、MA
Cアドレス変更カウンタ212の値Mは1であり、IP
アドレス変更カウンタ232の値NはMより大きくな
る。ネットワーク管理者は、ポート142(242)に
直接、ルータ121が接続されていることを認識でき
る。
Port 142 of repeating hub 261
In (242), when transmission and reception of frames from the communication terminals 135 and 136 to other communication terminals are repeated, MA
The value M of the C address change counter 212 is 1,
The value N of the address change counter 232 becomes larger than M. The network administrator can recognize that the router 121 is directly connected to the port 142 (242).

【0044】[0044]

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

【0045】(1)ポートの先にルータが存在している
ことがわかり、そのルータのMACアドレス、IPアド
レスも得られ、ネットワーク管理に有用な情報となる。
(1) It is found that a router exists at the end of the port, and the MAC address and IP address of the router are also obtained, which is useful information for network management.

【0046】(2)受信するフレームの送信元MACア
ドレス個数と送信元IPアドレス個数とから、ポートの
先の接続機器が推定でき、ネットワーク管理に有用な情
報となる。
(2) From the number of source MAC addresses and the number of source IP addresses of the frame to be received, the connected device at the end of the port can be estimated, which is useful information for network management.

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

【図1】本発明の第1の実施形態によるリピーティング
ハブのハードウェア構成図である。
FIG. 1 is a hardware configuration diagram of a repeating hub according to a first embodiment of the present invention.

【図2】本発明及び従来技術におけるリピーティングハ
ブを用いたネットワークの構成図である。
FIG. 2 is a configuration diagram of a network using a repeating hub according to the present invention and the prior art.

【図3】本発明のアドレス登録メモリの内容を示す図で
ある。
FIG. 3 is a diagram showing contents of an address registration memory of the present invention.

【図4】本発明のアドレス登録メモリの内容を示す図で
ある。
FIG. 4 is a diagram showing the contents of an address registration memory of the present invention.

【図5】RARPメッセージのフォーマット図である。FIG. 5 is a format diagram of a RARP message.

【図6】本発明の第2の実施形態によるリピーティング
ハブのハードウェア構成図である。
FIG. 6 is a hardware configuration diagram of a repeating hub according to a second embodiment of the present invention.

【図7】従来のリピーティングハブのハードウェア構成
図である。
FIG. 7 is a hardware configuration diagram of a conventional repeating hub.

【図8】従来のリピーティングハブのハードウェア構成
図である。
FIG. 8 is a hardware configuration diagram of a conventional repeating hub.

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

101〜104,261 リピーティングハブ 121,122 ルータ 131〜138 通信端末 141〜144,241〜244 ポート 201〜204 MACアドレス登録メモリ 211〜214 MACアドレス変更カウンタ 221〜224 IPアドレス登録メモリ 231〜234 IPアドレス変更カウンタ 271〜274 アドレス登録メモリ 101-104,261 Repeating hub 121,122 Router 131-138 Communication terminal 141-144,241-244 Port 201-204 MAC address registration memory 211-214 MAC address change counter 221-224 IP address registration memory 231-234 IP address Change counter 271-274 Address registration memory

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数のポートを持ち、各ポート間でフレ
ームの転送を行うリピーティングハブにおいて、各ポー
ト毎に、受信したフレームの送信元MACアドレス及び
送信元IPアドレスを検出する機能とこれら検出した送
信元MACアドレス及び送信元IPアドレスの組み合わ
せを保持するアドレス登録メモリとを備え、あるポート
でフレームを受信したとき、検出した送信元MACアド
レス及び送信元IPアドレスの組み合わせが当該ポート
のアドレス登録メモリに保持されていなければ、その組
み合わせをアドレス登録メモリに追加すると共に、既に
保持されている組み合わせの中に、追加する組み合わせ
とMACアドレスが同じでIPアドレスが異なる組み合
わせがある場合には、その重複しているMACアドレス
をルータのMACアドレスであると認識する機能を備え
たことを特徴とするリピーティングハブ。
In a repeating hub having a plurality of ports and transferring frames between the ports, a function for detecting a source MAC address and a source IP address of a received frame for each port, and a function for detecting these An address registration memory for holding a combination of a source MAC address and a source IP address, wherein when a frame is received at a certain port, the detected combination of the source MAC address and the source IP address is stored in an address registration memory of the port; If not, the combination is added to the address registration memory, and if there is a combination having the same MAC address as the combination to be added but a different IP address among the combinations already stored, the combination is added. MAC address of the router A repeating hub that has the function of recognizing a dress.
【請求項2】 前記認識したルータのMACアドレスを
用いて逆アドレス解決プロトコル(RARP)サーバに
RARPフレームを送信することにより、ルータのIP
アドレスを取得する機能を備えたことを特徴とする請求
項1記載のリピーティングハブ。
2. transmitting a RARP frame to a Reverse Address Resolution Protocol (RARP) server using the MAC address of the recognized router,
The repeating hub according to claim 1, further comprising a function of acquiring an address.
【請求項3】 複数のポートを持ち、各ポート間でフレ
ームの転送を行うリピーティングハブにおいて、各ポー
ト毎に、受信したフレームの送信元MACアドレス及び
送信元IPアドレスを検出する機能と、検出した送信元
MACアドレスを保持するMACアドレス登録メモリ
と、検出した送信元IPアドレスを保持するIPアドレ
ス登録メモリと、検出した送信元MACアドレスが既に
保持していたMACアドレスと異なるときに計数値を増
加するMACアドレス変更カウンタと、検出した送信元
IPアドレスが既に保持していたIPアドレスと異なる
ときに計数値を増加するIPアドレス変更カウンタとを
備えたことを特徴とするリピーティングハブ。
3. A function of detecting a source MAC address and a source IP address of a received frame for each port in a repeating hub having a plurality of ports and transferring a frame between the ports. A MAC address registration memory that holds a source MAC address, an IP address registration memory that holds a detected source IP address, and a count value is increased when the detected source MAC address is different from the MAC address already held. A repeating hub, comprising: a MAC address change counter for performing the operation, and an IP address change counter that increases a count value when the detected source IP address is different from the IP address already held.
【請求項4】 ネットワーク管理プロトコル(SNM
P)を搭載し、各ポート毎の前記カウンタ値をSNMP
マネージャに通知する機能を備えたことを特徴とする請
求項3記載のリピーティングハブ。
4. A network management protocol (SNM)
P) is installed, and the counter value for each port is SNMP
4. The repeating hub according to claim 3, further comprising a function of notifying a manager.
【請求項5】 SNMPを搭載し、リピーティングハブ
から各ポート毎の前記カウンタ値が通知されたとき、M
ACアドレス変更カウンタ値よりもIPアドレス変更カ
ウンタ値が大きいときには、当該ポートの先にルータが
接続されていることを認識することを特徴とするネット
ワーク管理装置。
5. When an SNMP is installed and the counter value for each port is notified from a repeating hub, M
When the IP address change counter value is larger than the AC address change counter value, the network management device recognizes that a router is connected to the end of the port.
JP9351590A 1997-12-19 1997-12-19 Repeating hub and network management device Pending JPH11187057A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9351590A JPH11187057A (en) 1997-12-19 1997-12-19 Repeating hub and network management device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9351590A JPH11187057A (en) 1997-12-19 1997-12-19 Repeating hub and network management device

Publications (1)

Publication Number Publication Date
JPH11187057A true JPH11187057A (en) 1999-07-09

Family

ID=18418308

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9351590A Pending JPH11187057A (en) 1997-12-19 1997-12-19 Repeating hub and network management device

Country Status (1)

Country Link
JP (1) JPH11187057A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005134961A (en) * 2003-10-28 2005-05-26 Hitachi Ltd Storage device and its access control method
JP2009017605A (en) * 2002-07-01 2009-01-22 Nec Corp Device and method for detecting network information
US7724679B2 (en) 2002-07-01 2010-05-25 Nec Corporation Device and method for automatically detecting network information
JP2010268318A (en) * 2009-05-15 2010-11-25 Optim Corp Device, method and program for detecting repeater
JP2015073335A (en) * 2010-03-19 2015-04-16 ヤマハ株式会社 Communication system, switching hub and router

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009017605A (en) * 2002-07-01 2009-01-22 Nec Corp Device and method for detecting network information
US7724679B2 (en) 2002-07-01 2010-05-25 Nec Corporation Device and method for automatically detecting network information
JP2005134961A (en) * 2003-10-28 2005-05-26 Hitachi Ltd Storage device and its access control method
JP4512179B2 (en) * 2003-10-28 2010-07-28 株式会社日立製作所 Storage apparatus and access management method thereof
JP2010268318A (en) * 2009-05-15 2010-11-25 Optim Corp Device, method and program for detecting repeater
JP2015073335A (en) * 2010-03-19 2015-04-16 ヤマハ株式会社 Communication system, switching hub and router

Similar Documents

Publication Publication Date Title
JPH11187057A (en) Repeating hub and network management device
Cisco debug apple - debug ip
Cisco
Cisco
Cisco
Cisco
Cisco
Cisco
Cisco
Cisco debug apple - debug ip
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco Debug Commands
Cisco debug serial - debug x25

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees