JP2007089030A - Mac study correction system - Google Patents

Mac study correction system Download PDF

Info

Publication number
JP2007089030A
JP2007089030A JP2005277987A JP2005277987A JP2007089030A JP 2007089030 A JP2007089030 A JP 2007089030A JP 2005277987 A JP2005277987 A JP 2005277987A JP 2005277987 A JP2005277987 A JP 2005277987A JP 2007089030 A JP2007089030 A JP 2007089030A
Authority
JP
Japan
Prior art keywords
learning
frame
mac address
learning correction
switch
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.)
Granted
Application number
JP2005277987A
Other languages
Japanese (ja)
Other versions
JP4709623B2 (en
Inventor
Hiroshi Kinoshita
博 木下
Shingo Suzumori
信吾 鈴森
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2005277987A priority Critical patent/JP4709623B2/en
Publication of JP2007089030A publication Critical patent/JP2007089030A/en
Application granted granted Critical
Publication of JP4709623B2 publication Critical patent/JP4709623B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a MAC study correction system capable of properly transferring a frame to a switch of a moving destination without waiting for an aging timeout time (usually 5 minutes) by correcting the study information of each switch in the time of terminal movement relating to the MAC study correction system. <P>SOLUTION: The system is configured by providing a study correction frame transmitting means 3 for performing the Unicast transmission of a study correction frame to a port corresponding to old study information when a transmission destination MAC address of a received frame is already studied and a transmission source MAC address is re-studied in a network providing a LAN service via a switch 1, and a study correcting means 4 for transmitting the study correction frame to the port corresponding to the old study information after re-studying a reception port when a transmission source MAC address is already studied and the study port is different at the time of receiving the study correction frame. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明はMAC学習補正システムに関する。本発明は、一般の企業内LANはもとより、近年注目を集めている広域LANサービス等を提供するスイッチに適用する。特に広域LANサービスは、主に企業のLANを接続するため、企業内LANよりもトラヒックロスを極力抑制しなければならない。   The present invention relates to a MAC learning correction system. The present invention is applied not only to a general corporate LAN but also to a switch that provides a wide area LAN service that has been attracting attention in recent years. In particular, the wide area LAN service mainly connects a corporate LAN, and therefore, the traffic crossing must be suppressed as much as possible as compared with the corporate LAN.

通常、レイヤ2(データリンク層)スイッチでは、パケットを受信した際に、送信元MACアドレスと受信ポートを記憶するためのMACアドレス学習テーブルを持つ。パケットを中継する際に、宛先MACアドレスにて本テーブルを検索し、エントリがない場合は全ポートに転送するが、エントリがある場合は、対応ポートにのみ転送する。これにより、不必要なパケットの転送を防いでいる。また、それぞれのエントリは、一定時間参照されないとエージング(MACアドレス学習テーブルから削除)される。この時間をエージングタイムという。エージングタイムは、MACアドレス学習テーブルで、一定時間参照されないと学習情報が削除されるが、この時の一定時間のことをいう。   Usually, a layer 2 (data link layer) switch has a MAC address learning table for storing a transmission source MAC address and a reception port when a packet is received. When relaying a packet, this table is searched with the destination MAC address, and if there is no entry, it is transferred to all ports, but if there is an entry, it is transferred only to the corresponding port. This prevents unnecessary packet transfer. Each entry is aged (deleted from the MAC address learning table) if it is not referenced for a certain period of time. This time is called aging time. In the MAC address learning table, the aging time means that the learning information is deleted unless it is referred to for a certain period of time.

図17は従来システムの構成例を示すブロック図である。図において、1はスイッチであり、図ではスイッチ1〜スイッチ6まで配列されている。2はスイッチ1と接続される端末であり、図では端末Aと端末Bと端末Cとが接続されている。3は各スイッチ1に設けられている学習テーブルである。該学習テーブル3は、MACアドレスと出力先ポートから構成されている。   FIG. 17 is a block diagram showing a configuration example of a conventional system. In the figure, reference numeral 1 denotes a switch. In the figure, switches 1 to 6 are arranged. Reference numeral 2 denotes a terminal connected to the switch 1, and terminal A, terminal B, and terminal C are connected in the figure. Reference numeral 3 denotes a learning table provided in each switch 1. The learning table 3 includes a MAC address and an output destination port.

図18は従来のスイッチの構成例を示すブロック図である。図において、11は受信フレームを受けて受信フレームを識別し、学習テーブル制御部12に受信フレームを渡す受信フレーム制御部、12は受信フレームを受けてフレームの送信元MACアドレスと受信ポートをMACアドレス学習テーブルに登録する学習テーブル制御部、14は学習テーブル制御部12の出力を受けて送信フレームを送出する送信フレーム制御部、13は学習テーブル制御部12と接続され、学習情報を記憶するMACアドレス学習テーブルである。   FIG. 18 is a block diagram showing a configuration example of a conventional switch. In the figure, 11 is a reception frame control unit that receives a reception frame and identifies the reception frame, and passes the reception frame to the learning table control unit 12, and 12 receives the reception frame and sets the transmission source MAC address and reception port of the frame as a MAC address. A learning table control unit to be registered in the learning table, 14 is a transmission frame control unit that receives the output of the learning table control unit 12 and sends out a transmission frame, and 13 is a MAC address that is connected to the learning table control unit 12 and stores learning information It is a learning table.

スイッチ2の場合を例にとると、MACアドレスAにはポート1が接続されており、MACアドレスBにはポート2が接続されている。今、スイッチ1配下に接続されている端末A(MACアドレス:A)をスイッチ4配下に移動した場合を示す。この時、端末Aと端末B(MACアドレス:B)間では、既にフレームの送受信を行なっており、スイッチ1,スイッチ2,スイッチ3は既にMACアドレスA及びMACアドレスBについて学習済みであるものとする。   Taking the case of switch 2 as an example, port 1 is connected to MAC address A, and port 2 is connected to MAC address B. Now, a case where the terminal A (MAC address: A) connected under the switch 1 is moved under the switch 4 is shown. At this time, frames are already transmitted and received between the terminal A and the terminal B (MAC address: B), and the switch 1, the switch 2, and the switch 3 have already learned about the MAC address A and the MAC address B. To do.

端末Aをスイッチ4配下に移動した場合であっても、端末Bが送信した端末A宛のフレームは、各スイッチの学習情報に従って転送される。スイッチ2では、端末A宛の出力先ポート番号は図に示すように1となっているため、ポート1に転送してしまい、実際に端末Aが存在するポート3には、転送されない。この問題は、エージングタイムアウト(初期値:5分間)が発生するか、又は端末Aが自律的にスイッチ2を経由した通信を開始しない限り解決しない。   Even when the terminal A is moved under the switch 4, the frame addressed to the terminal A transmitted by the terminal B is transferred according to the learning information of each switch. In the switch 2, since the output destination port number addressed to the terminal A is 1, as shown in the figure, it is transferred to the port 1 and is not transferred to the port 3 where the terminal A actually exists. This problem is not solved unless an aging timeout (initial value: 5 minutes) occurs or the terminal A starts communication via the switch 2 autonomously.

このような問題を解決するために、以下に示すような先行技術が存在する。
(a)端末移動時、該移動端末が、ユーザデータの存在しない同報フレームを送信し、同報フレームを受信したスイッチが送信元アドレスによりアドレス学習を行なうものである(例えば特許文献1参照)。
(b)端末移動時、該移動端末が根拠のないARPパケットを送信し、受信したスイッチが送信元MACアドレスによりアドレス学習を行なうものである(例えば特許文献2参照)。
(c)受信したフレームの送信元MACアドレスが未登録であれば、送信先MACアドレスに予め決められた特定のMACアドレス(アドレス管理装置のMACアドレスを意味する)を設定した制御用MACフレームを生成し、これを送信することで、受信したスイッチが送信元MACアドレスによりアドレス学習を行なうものである(例えば特許文献3参照)。
(d)受信フレームの送信先MACアドレスが学習済みで、かつ送信元MACアドレスが未登録であれば、受信したフレームに学習用識別子を付与し、ブロードキャストすることで、受信したスイッチは学習用識別子が付いたフレームについては転送せず、アドレス学習のみを行なうものである(例えば特許文献4参照)。
特開平10−41971号公報(段落0015〜0017、図10) 特開2000−341339号公報(段落0020〜0030、図2、図3) 特開平11−122286号公報(段落0010〜0024、図2〜図4) 特開平11−122287号公報(段落0010〜0020、図1)
In order to solve such a problem, the following prior art exists.
(A) When a terminal moves, the mobile terminal transmits a broadcast frame in which no user data exists, and a switch that receives the broadcast frame performs address learning using a transmission source address (see, for example, Patent Document 1). .
(B) When the terminal moves, the mobile terminal transmits an unfounded ARP packet, and the received switch performs address learning using the source MAC address (see, for example, Patent Document 2).
(C) If the source MAC address of the received frame is unregistered, a control MAC frame in which a specific MAC address (meaning the MAC address of the address management device) set in advance is set as the destination MAC address By generating and transmitting this, the received switch performs address learning based on the source MAC address (see, for example, Patent Document 3).
(D) If the transmission destination MAC address of the received frame has been learned and the transmission source MAC address has not been registered, a learning identifier is assigned to the received frame and broadcasted, so that the received switch has the learning identifier. Frames marked with are not transferred and only address learning is performed (see, for example, Patent Document 4).
JP-A-10-41971 (paragraphs 0015 to 0017, FIG. 10) JP 2000-341339 A (paragraphs 0020 to 0030, FIGS. 2 and 3) Japanese Patent Laid-Open No. 11-122286 (paragraphs 0010 to 0024, FIGS. 2 to 4) Japanese Patent Laid-Open No. 11-122287 (paragraphs 0010 to 0020, FIG. 1)

前述した従来の技術には、以下に示すような問題があった。
課題1)特許文献1記載の発明は、同報フレームを送信するため、ネットワーク全体に無駄なトラヒックが流れるという問題がある。
課題2)特許文献1,2記載の発明は、端末が自律的にフレームを送信しなければならないため、全端末に本技術を適用しなければならないという問題がある。
課題3)特許文献3,4記載の発明は、送信元MACアドレスが未登録の場合には対応しているが、送信元MACアドレスが学習済みの場合には対応していないので、端末移動時の問題は解決していないという問題がある。
The prior art described above has the following problems.
Problem 1) The invention described in Patent Document 1 has a problem in that useless traffic flows through the entire network because a broadcast frame is transmitted.
Problem 2) The inventions described in Patent Documents 1 and 2 have a problem that the present technology must be applied to all terminals since the terminals must autonomously transmit frames.
Problem 3) The inventions described in Patent Documents 3 and 4 are compatible when the source MAC address is not registered, but not when the source MAC address has been learned. There is a problem that the problem is not solved.

本発明は、このような課題に鑑みてなされたものであって、端末移動時において、各スイッチの学習情報を補正することにより、エージングタイムアウト時間(通常5分)を待つことなく適切に移動先のスイッチにフレームを転送することが可能なMAC学習補正システムを提供することを目的としている。   The present invention has been made in view of such a problem. When the terminal moves, the learning information of each switch is corrected to appropriately move the destination without waiting for the aging timeout time (usually 5 minutes). It is an object of the present invention to provide a MAC learning correction system that can transfer a frame to a switch.

(1)請求項1記載の発明は、LANサービスをスイッチを介して提供するネットワークにおいて、受信フレームの送信先MACアドレスが学習済みで、かつ送信元MACアドレスを再学習した場合、旧学習情報の該当ポートへ学習補正フレームをユニキャスト送信する学習補正フレーム送信手段と、学習補正フレームを受信時に送信元MACアドレスが学習済みで、かつ学習ポートが異なる場合、受信ポートを再学習し、学習補正フレームを旧学習情報の該当ポートへ送信する学習補正手段とを具備することを特徴とする。
(2)請求項2記載の発明は、前記学習補正フレーム送信手段を具備するスイッチにおいて、受信フレームの送信先MACアドレスが学習済みで、かつ送信元MACアドレスを再学習した場合、旧学習情報の該当ポートへ学習補正フレームの送信を依頼する学習テーブル制御部と、該学習補正フレームの編集を行なう学習補正フレーム編集部とを具備することを特徴とする。
(3)請求項3記載の発明は、前記学習補正手段を具備するスイッチにおいて、学習補正フレームを受信時に学習補正フレームを認識する受信フレーム制御部と、送信元MACアドレスが学習済みで、かつ学習ポートが異なる場合、受信ポートを再学習し、学習補正フレームを旧学習情報の該当ポートへ学習補正フレームの送信を依頼する学習補正フレーム制御部とを具備することを特徴とする。
(4)請求項4記載の発明は、前記学習補正手段を具備するスイッチにおいて、学習補正フレームを送信元MACアドレスが未学習の場合、学習補正フレームをブロードキャストする学習補正フレーム制御部とを具備することを特徴とする。
(1) According to the first aspect of the present invention, when the destination MAC address of the received frame has been learned and the source MAC address is relearned in the network that provides the LAN service via the switch, the old learning information Learning correction frame transmitting means for unicasting the learning correction frame to the corresponding port, and when the learning correction frame is received, when the transmission source MAC address has been learned and the learning port is different, the receiving port is re-learned, and the learning correction frame is transmitted. Learning correction means for transmitting to the corresponding port of the old learning information.
(2) In the invention according to claim 2, in the switch including the learning correction frame transmitting means, when the transmission destination MAC address of the received frame has been learned and the transmission source MAC address is relearned, the old learning information A learning table control unit that requests transmission of a learning correction frame to a corresponding port and a learning correction frame editing unit that edits the learning correction frame are provided.
(3) The invention according to claim 3 is the switch including the learning correction unit, the reception frame control unit that recognizes the learning correction frame when receiving the learning correction frame, the transmission source MAC address has been learned, and learning A learning correction frame control unit that re-learns the reception port when the ports are different and requests the learning correction frame to be transmitted to the corresponding port of the old learning information;
(4) The invention according to claim 4 includes a learning correction frame control unit that broadcasts the learning correction frame when the transmission source MAC address of the switch having the learning correction means is not learned. It is characterized by that.

(1)請求項1記載の発明によれば、学習情報を瞬時に補正することができる。
(2)請求項2記載の発明によれば、スイッチの学習情報を補正し、該補正を他スイッチにも働きかけることができる。
(3)請求項3記載の発明によれば、他スイッチからのトリガで学習情報を補正することができる。
(4)請求項4記載の発明によれば、必要時のみ学習補正フレームの中継を行なうことができる。
(1) According to the first aspect of the present invention, the learning information can be instantaneously corrected.
(2) According to the invention described in claim 2, the learning information of the switch can be corrected and the correction can be applied to other switches.
(3) According to the invention described in claim 3, the learning information can be corrected by a trigger from another switch.
(4) According to the invention of claim 4, the learning correction frame can be relayed only when necessary.

以下、図面を参照して本発明の実施の形態例を詳細に説明する。
図1は本発明の原理ブロック図である。図17と同一のものは、同一の符号を付して示す。図において、5はスイッチ1内に設けられた学習補正フレーム送信手段であり、受信フレームの送信先MACアドレスが学習済みで、かつ送信元MACアドレスを再学習した場合、旧学習情報の該当ポートへ学習補正フレームをユニキャスト送信するものである。ここで、学習補正フレームは、他スイッチの学習内容を補正するために送信するフレームのことである。6はスイッチ1内に設けられた送信元MACアドレスが学習済みで、かつ学習ポートが異なる場合、受信ポートを再学習し、学習補正フレームを旧学習情報の該当ポートへ送信するものである。学習補正フレーム送信手段5と、学習補正手段6は、後述するスイッチの構成及び組み合わせにより実現される。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a principle block diagram of the present invention. The same components as those in FIG. 17 are denoted by the same reference numerals. In the figure, reference numeral 5 denotes learning correction frame transmission means provided in the switch 1, and when the transmission destination MAC address of the received frame has already been learned and the transmission source MAC address has been relearned, to the corresponding port of the old learning information The learning correction frame is transmitted by unicast. Here, the learning correction frame is a frame transmitted in order to correct the learning content of the other switch. When the transmission source MAC address provided in the switch 1 has been learned and the learning port is different, 6 re-learns the reception port and transmits the learning correction frame to the corresponding port of the old learning information. The learning correction frame transmission unit 5 and the learning correction unit 6 are realized by the configuration and combination of switches described later.

このように構成すれば、学習情報を瞬時に補正することができる。
図2は本発明のスイッチユニットの一実施の形態例を示すブロック図である。図18と同一のものは、同一の符号を付して示す。図2のスイッチ1において、11は受信フレーム制御部であり、受信フレームを識別し、転送フレームを学習テーブル制御部12に転送する。本発明では、学習補正フレームを識別した場合は、学習補正フレーム制御部16に転送する。
If comprised in this way, learning information can be correct | amended instantaneously.
FIG. 2 is a block diagram showing an embodiment of the switch unit of the present invention. The same components as those in FIG. 18 are denoted by the same reference numerals. In the switch 1 of FIG. 2, reference numeral 11 denotes a reception frame control unit that identifies the reception frame and transfers the transfer frame to the learning table control unit 12. In the present invention, when a learning correction frame is identified, it is transferred to the learning correction frame control unit 16.

12は学習テーブル制御部であり、フレームの送信元MACアドレスと、受信ポートをMACアドレス学習テーブル13に登録する。ここで、MACアドレス学習テーブル13は、MACアドレスとポート番号を登録したテーブルのことである。フレームの送信先MACアドレスで本テーブルを検索し、抽出したポート番号にフレームを送信するために使用される。   Reference numeral 12 denotes a learning table control unit, which registers the frame transmission source MAC address and the reception port in the MAC address learning table 13. Here, the MAC address learning table 13 is a table in which MAC addresses and port numbers are registered. This table is searched for the destination MAC address of the frame and used to transmit the frame to the extracted port number.

また、送信先MACアドレスを基に、MACアドレス学習テーブル13からフレームを送信する送信先ポート番号を検索する。本発明では、受信フレームの送信先MACアドレスが学習済みで、かつ送信元MACアドレスを再学習した場合、学習補正フレーム編集部15に旧学習情報の該当ポートへ学習補正フレームの送信を行なうように依頼する。   Also, based on the transmission destination MAC address, the transmission destination port number for transmitting the frame is searched from the MAC address learning table 13. In the present invention, when the transmission destination MAC address of the received frame has been learned and the transmission source MAC address is relearned, the learning correction frame editing unit 15 transmits the learning correction frame to the corresponding port of the old learning information. Ask.

15は学習補正フレーム編集部であり、学習テーブル制御部12からの依頼に従い、学習補正フレームを編集し、該当ポートへ送信する。14は送信フレーム制御部であり、依頼された送信先ポートに対し、フレームを送信する。16は学習補正フレーム制御部であり、受信した学習補正フレームの送信元MACアドレスの学習状況により、学習補正フレームの廃棄および転送を決定する。このように構成された装置を用いて、本発明の動作を説明すれば、以下の通りである。
(a)学習補正フレーム送信及び学習補正フレーム受信によるMAC学習補正
本発明では、スイッチにおいて、従来のようにMACアドレスを学習していた場合は、学習に従ってフレームを転送するだけでなく、送信先MACアドレスが学習済みで、かつ送信元MACアドレスを再学習した場合、学習補正フレームを送信することが可能となる。また、学習補正フレームを受信したスイッチは、学習補正フレームに従い、学習内容を補正することが可能となる。
A learning correction frame editing unit 15 edits a learning correction frame in accordance with a request from the learning table control unit 12 and transmits it to the corresponding port. A transmission frame control unit 14 transmits a frame to the requested transmission destination port. Reference numeral 16 denotes a learning correction frame control unit, which determines whether to discard or transfer the learning correction frame according to the learning status of the transmission source MAC address of the received learning correction frame. The operation of the present invention will be described using the apparatus configured as described above.
(A) MAC learning correction by learning correction frame transmission and learning correction frame reception In the present invention, when the MAC address is learned as in the prior art in the switch, not only the frame is transferred according to the learning, but also the destination MAC When the address has been learned and the source MAC address is relearned, a learning correction frame can be transmitted. Further, the switch that has received the learning correction frame can correct the learning content according to the learning correction frame.

図3は本発明の第1の動作説明図である。図1と同一のものは、同一の符号を付して示す。図において、20aはスイッチ2の学習テーブル、20bはスイッチ4の学習テーブルである。図3に示すように、端末Aの接続先スイッチを、スイッチ1からスイッチ4に変更後に、端末Aが端末C宛のフレームを送信した場合について説明する。   FIG. 3 is a diagram for explaining the first operation of the present invention. The same components as those in FIG. 1 are denoted by the same reference numerals. In the figure, 20a is a learning table of the switch 2, and 20b is a learning table of the switch 4. As shown in FIG. 3, a case will be described in which terminal A transmits a frame addressed to terminal C after the connection destination switch of terminal A is changed from switch 1 to switch 4.

端末Aより送信されたフレームは、スイッチ4のポート1で受信する。スイッチ4の受信フレーム制御部11は、学習テーブル制御部12に受信フレームを渡す。学習テーブル制御部12は、フレームの送信先である端末CのMACアドレスにてMACアドレス学習テーブル13を検索する。端末CのMACアドレスは、学習テーブル20bに示すように学習済みであるため、次に送信元である端末AのMACアドレスにて、MACアドレス学習テーブル13を検索する。   The frame transmitted from the terminal A is received at the port 1 of the switch 4. The received frame control unit 11 of the switch 4 passes the received frame to the learning table control unit 12. The learning table control unit 12 searches the MAC address learning table 13 with the MAC address of the terminal C that is the transmission destination of the frame. Since the MAC address of the terminal C has already been learned as shown in the learning table 20b, the MAC address learning table 13 is searched with the MAC address of the terminal A that is the transmission source.

従来の学習テーブル制御部12では(図18参照)、送信元MACアドレスが既に学習済みで、かつ受信ポート1が学習ポート3と異なった場合、MACアドレス学習テーブル13の再学習を行なうのみである。本発明では、再学習を実施した場合、学習補正フレーム編集部15に学習補正フレームの編集及び旧学習ポート3への学習補正フレーム送信を依頼する。   The conventional learning table control unit 12 (see FIG. 18) only re-learns the MAC address learning table 13 when the transmission source MAC address has already been learned and the reception port 1 is different from the learning port 3. . In the present invention, when the relearning is performed, the learning correction frame editing unit 15 is requested to edit the learning correction frame and transmit the learning correction frame to the old learning port 3.

本発明における学習補正フレーム編集部15は、学習補正フレームの編集を行なう。この場合、学習補正フレームの送信元MACアドレスには、端末AのMACアドレスを設定する。これは、学習補正フレームを受信したスイッチにて、端末AのMACアドレス学習を補正させるためである。次に、学習補正フレーム編集部15は、編集した学習補正フレームを旧学習ポート3へ送信するよう送信フレーム制御部14に依頼する。送信フレーム制御部14は、学習補正フレームを指定されたポート3に送信する。   The learning correction frame editing unit 15 according to the present invention edits the learning correction frame. In this case, the MAC address of the terminal A is set as the source MAC address of the learning correction frame. This is because the MAC address learning of the terminal A is corrected by the switch that has received the learning correction frame. Next, the learning correction frame editing unit 15 requests the transmission frame control unit 14 to transmit the edited learning correction frame to the old learning port 3. The transmission frame control unit 14 transmits the learning correction frame to the designated port 3.

スイッチ4より送信された学習補正フレームは、スイッチ2のポート3で受信する。スイッチ2の受信フレーム制御部11は、従来の技術であれば受信フレームを学習テーブル制御部12に渡すだけであったが、本発明では受信フレームが学習補正フレームであると認識した場合、受信した学習補正フレームを学習補正フレーム制御部16へ渡す。該学習補正フレーム制御部16は、送信元である端末AのMACアドレスにてMACアドレス学習テーブル13を検索する。   The learning correction frame transmitted from the switch 4 is received at the port 3 of the switch 2. The reception frame control unit 11 of the switch 2 only passes the reception frame to the learning table control unit 12 in the conventional technique. However, in the present invention, when the reception frame is recognized as the learning correction frame, it is received. The learning correction frame is transferred to the learning correction frame control unit 16. The learning correction frame control unit 16 searches the MAC address learning table 13 with the MAC address of the terminal A that is the transmission source.

端末AのMACアドレスを学習済みであるが、受信ポート3が学習ポート1と異なるため、MACアドレス学習テーブル13に端末AのMACアドレス、学習ポート3として再学習する。また、再学習を実施したため、受信した学習補正フレームを旧学習ポート1へ送信するよう送信フレーム制御部14に依頼する。送信フレーム制御部14は、学習補正フレームを指定されたポート1に送信する。   Although the MAC address of the terminal A has already been learned, the receiving port 3 is different from the learning port 1, so that the MAC address learning table 13 is relearned as the MAC address of the terminal A and the learning port 3. Further, since the relearning is performed, the transmission frame control unit 14 is requested to transmit the received learning correction frame to the old learning port 1. The transmission frame control unit 14 transmits the learning correction frame to the designated port 1.

これにより、スイッチは、受信したユーザフレームをトリガとして、学習補正フレームを送信し、更に該学習補正フレームを受信したスイッチは、その内容に従いMAC学習内容を補正することが可能になる。   As a result, the switch transmits a learning correction frame using the received user frame as a trigger, and the switch that has received the learning correction frame can correct the MAC learning content according to the content.

このように、本発明によれば、学習情報を瞬時に補正することができる。また、スイッチの学習情報を補正し、該補正を他スイッチにも働きかけることができる。更に、他スイッチからのトリガで学習情報を補正することができる。
(b)学習補正フレームの中継
スイッチにおいて、学習補正フレームを受信した場合、従来は学習補正フレームを認識できなかったが、本発明では、学習補正フレームを認識し、送信元MACアドレスが未学習であれば、学習補正フレームをブロードキャストすることにより、遠隔のスイッチの学習内容を補正することが可能となる。
Thus, according to the present invention, the learning information can be corrected instantaneously. Further, the learning information of the switch can be corrected, and the correction can be applied to other switches. Furthermore, learning information can be corrected by a trigger from another switch.
(B) Relay of learning correction frame When the learning correction frame is received at the switch, the learning correction frame cannot be recognized conventionally. However, in the present invention, the learning correction frame is recognized and the source MAC address is not learned. If there is, it is possible to correct the learning content of the remote switch by broadcasting the learning correction frame.

図4は本発明の第2の動作説明図である。図3と同一のものは、同一の符号を付して示す。図に示すように、端末Aの接続先スイッチを、スイッチ1からスイッチ4へ変更後に、端末Aが端末C宛のフレームを送信した場合について説明する。   FIG. 4 is a diagram illustrating a second operation of the present invention. The same components as those in FIG. 3 are denoted by the same reference numerals. As shown in the figure, a case will be described in which the terminal A transmits a frame addressed to the terminal C after the connection destination switch of the terminal A is changed from the switch 1 to the switch 4.

端末Aより送信されたフレームは、スイッチ4のポート1で受信する。スイッチ4の受信フレーム制御部11は、学習テーブル制御部12に受信フレームを渡す。学習テーブル制御部12は、フレームの送信先である端末CのMACアドレスにて、MACアドレス学習テーブル13を検索する。スイッチ4では、端末CのMACアドレスを学習済みであるため、次に送信元である端末AのMACアドレスにて、MACアドレス学習テーブル13を検索する。   The frame transmitted from the terminal A is received at the port 1 of the switch 4. The received frame control unit 11 of the switch 4 passes the received frame to the learning table control unit 12. The learning table control unit 12 searches the MAC address learning table 13 with the MAC address of the terminal C that is the transmission destination of the frame. Since the switch 4 has already learned the MAC address of the terminal C, the MAC address learning table 13 is searched with the MAC address of the terminal A that is the transmission source.

従来技術の学習テーブル制御部12は、端末AのMACアドレスが未学習であるため、MACアドレス学習テーブル13にMACアドレス、学習ポート1として新規学習するのみである。本発明では、新規学習を実施したため、学習補正フレーム編集部15に学習補正フレームの編集及び学習補正フレーム送信を依頼する。学習補正フレームの送信先ポートは、フレーム受信ポート及びフレーム送信ポートを除く全ポートとなる。   Since the MAC address of the terminal A has not yet been learned, the learning table control unit 12 of the prior art only newly learns the MAC address learning table 13 as the MAC address and learning port 1. In the present invention, since new learning is performed, the learning correction frame editing unit 15 is requested to edit the learning correction frame and transmit the learning correction frame. The learning correction frame transmission destination ports are all ports except the frame reception port and the frame transmission port.

本発明の学習補正フレーム編集部15は、学習補正フレームを編集し、送信フレーム制御部14より学習補正フレームを送信するが、学習補正フレーム編集方法及び送信方法については、(a)で説明したので、説明は省略する。   The learning correction frame editing unit 15 of the present invention edits the learning correction frame and transmits the learning correction frame from the transmission frame control unit 14, but the learning correction frame editing method and the transmission method have been described in (a). The description is omitted.

スイッチ4より送信された学習補正フレームは、スイッチ6のポート2で受信する。スイッチ6の受信フレーム制御部11は、従来技術であれば送信フレームを学習テーブル制御部12へ渡すのみであるが、本発明では、受信フレームが学習補正フレームであると認識した場合、受信した学習補正フレームを学習補正フレーム制御部16へ渡す。   The learning correction frame transmitted from the switch 4 is received at the port 2 of the switch 6. The reception frame control unit 11 of the switch 6 only passes the transmission frame to the learning table control unit 12 in the conventional technique. However, in the present invention, when the reception frame is recognized as the learning correction frame, the received learning is performed. The correction frame is transferred to the learning correction frame control unit 16.

学習補正フレーム制御部16は、送信元である端末AのMACアドレスにて、MACアドレス学習テーブル13を検索する。スイッチ6では、端末AのMACアドレスを未学習であるため、受信した学習補正フレームを受信ポート以外の全ポートへ送信するよう送信フレーム制御部14に依頼する。送信フレーム制御部14は、学習補正フレームをポート1に送信する。   The learning correction frame control unit 16 searches the MAC address learning table 13 with the MAC address of the terminal A that is the transmission source. Since the switch 6 has not learned the MAC address of the terminal A, it requests the transmission frame control unit 14 to transmit the received learning correction frame to all ports other than the reception port. The transmission frame control unit 14 transmits the learning correction frame to the port 1.

スイッチ6から送信された学習補正フレームは、スイッチ2にて受信され、学習補正が実施されるが、スイッチ2の動作は既に(a)で説明しているため、その説明は省略する。これにより、スイッチは、学習補正フレームを必要時のみ中継することが可能となる。
(実施例1)
次に、本発明の実施例について詳細に説明する。図5〜図12を用いて説明する。図5は実施例1におけるネットワーク構成例を示す図である。図1と同一のものは、同一の符号を付して示す。図において、1はスイッチ、2は端末である。端末AのMACアドレスは(MAC:00−E0−00−00−10−10)、端末BのMACアドレスは(MAC:00−E0−00−−00−10−20)、端末CのMACアドレスは(MAC:00−E0−00−00−10−30)である。
The learning correction frame transmitted from the switch 6 is received by the switch 2 and learning correction is performed. Since the operation of the switch 2 has already been described in (a), the description thereof is omitted. As a result, the switch can relay the learning correction frame only when necessary.
Example 1
Next, examples of the present invention will be described in detail. This will be described with reference to FIGS. FIG. 5 is a diagram illustrating a network configuration example according to the first embodiment. The same components as those in FIG. 1 are denoted by the same reference numerals. In the figure, 1 is a switch and 2 is a terminal. The MAC address of terminal A is (MAC: 00-E0-00-00-10-10), the MAC address of terminal B is (MAC: 00-E0-00--00-10-20), and the MAC address of terminal C Is (MAC: 00-E0-00-00-10-30).

ここでは、端末Aと端末B間、及び端末Bと端末C間にてフレームの送受信を開始したばかりであり、スイッチ1〜スイッチ5は全端末(端末A〜端末C)のMACアドレスについて学習済みであるものとする。図6は実施例1におけるスイッチ1〜スイッチ5のMACアドレス学習テーブル状態を示す図である。例えば、MACアドレス(MAC:00−E0−00−00−10−10:端末A)に対するスイッチ1の出力先ポート番号は1であり、MACアドレス(MAC:00−E0−00−00−10−20:端末B)に対する出力先ポート番号は2であり、MACアドレス(MAC:00−E0−00−00−10−30:端末C)に対する出力先ポート番号は2である。   Here, frame transmission / reception has just started between terminal A and terminal B, and between terminal B and terminal C, and switches 1 to 5 have learned the MAC addresses of all terminals (terminal A to terminal C). Suppose that FIG. 6 is a diagram illustrating the MAC address learning table state of the switches 1 to 5 in the first embodiment. For example, the output port number of the switch 1 for the MAC address (MAC: 00-E0-00-00-10-10: terminal A) is 1, and the MAC address (MAC: 00-E0-00-00-10- 20: the output destination port number for terminal B) is 2, and the output destination port number for the MAC address (MAC: 00-E0-00-00-10-30: terminal C) is 2.

また、MACアドレス(MAC:00−E0−00−00−10−10:端末A)に対するスイッチ2の出力先ポート番号は1であり、MACアドレス(MAC:00−E0−00−00−10−20:端末B)に対する出力先ポート番号は2であり、MACアドレス(MAC:00−E0−00−00−10−30:端末C)に対する出力先ポート番号は3である。このようにして、図6に示すような学習がなされている。   The output port number of the switch 2 for the MAC address (MAC: 00-E0-00-00-10-10: terminal A) is 1, and the MAC address (MAC: 00-E0-00-00-10- 20: the output destination port number for terminal B) is 2, and the output destination port number for the MAC address (MAC: 00-E0-00-00-10-30: terminal C) is 3. In this way, learning as shown in FIG. 6 is performed.

図7は図6の状態より端末Aが移動した場合の説明図である。移動した端末Aが端末C宛のフレームを送信した場合の各スイッチの動作について説明する。スイッチ内の各構成部については図2を用いる。図7に示す移動した端末Aより送信されたフレームは、スイッチ4のポート1で受信する。スイッチ4の受信フレーム制御部11は、フレームの送信元MACアドレス(MAC:00−E0−00−00−10−10)受信ポート番号1をMACアドレス学習テーブル13に登録するよう依頼するため、学習テーブル制御部12に受信フレームを渡す。   FIG. 7 is an explanatory diagram when the terminal A moves from the state of FIG. The operation of each switch when the moved terminal A transmits a frame addressed to the terminal C will be described. FIG. 2 is used for each component in the switch. The frame transmitted from the moved terminal A shown in FIG. 7 is received by the port 1 of the switch 4. The reception frame control unit 11 of the switch 4 requests the registration of the transmission source MAC address (MAC: 00-E0-00-00-10-10) reception port number 1 in the MAC address learning table 13 for learning. The received frame is passed to the table control unit 12.

学習テーブル制御部12は図9のフローに示すようにフレームの送信先である端末CのMACアドレス(MAC:00−E0−00−00−10−30)にて、MACアドレス学習テーブル13を検索する。   The learning table control unit 12 searches the MAC address learning table 13 with the MAC address (MAC: 00-E0-00-00-10-30) of the terminal C that is the transmission destination of the frame as shown in the flow of FIG. To do.

図9は実施例1における学習テーブル制御部12の処理フローを示す図である。受信フレーム制御部11からフレームを受信すると、フレームの送信先MACアドレスにて、MACアドレス学習テーブル13を検索する(S1)。そして、MACアドレス学習テーブル13の学習状態をチェックする(S2)。学習済みであれば、フレームの送信元MACアドレスにて、MACアドレス学習テーブル13を検索する(S3)。   FIG. 9 is a diagram illustrating a processing flow of the learning table control unit 12 according to the first embodiment. When a frame is received from the reception frame control unit 11, the MAC address learning table 13 is searched with the transmission destination MAC address of the frame (S1). Then, the learning state of the MAC address learning table 13 is checked (S2). If it has been learned, the MAC address learning table 13 is searched with the source MAC address of the frame (S3).

次に、MACアドレス学習テーブル13の学習状態をチェックする(S4)。未学習であれば、MACアドレス学習テーブル13に、送信元MACアドレスと受信ポートo設定する(学習:S7)。ステップS4にて学習済みであれば、学習ポートと受信ポートが等しいかどうかチェックする(S5)。等しい場合には、MACアドレス学習テーブル13に、送信元MACアドレス受信ポートを設定する(学習:S8)。学習ポートと受信ポートとが等しくない場合には、MACアドレス学習テーブル13に、送信元MACアドレスと受信ポートを設定する(学習補正:S6)。   Next, the learning state of the MAC address learning table 13 is checked (S4). If not learned, the source MAC address and the receiving port o are set in the MAC address learning table 13 (learning: S7). If it has been learned in step S4, it is checked whether the learning port is equal to the receiving port (S5). If equal, the source MAC address reception port is set in the MAC address learning table 13 (learning: S8). If the learning port and the receiving port are not equal, the source MAC address and the receiving port are set in the MAC address learning table 13 (learning correction: S6).

ステップS6とステップS7が終了すると、学習補正フレーム編集部15へ学習補正フレーム編集を依頼する(S9)。そして、受信フレームを送信フレーム制御部14へ渡す(S10)。ステップS8でMACアドレス学習テーブル13に送信元MACアドレスと受信ポートを設定した場合も、ステップS10を実行する。   When step S6 and step S7 are completed, the learning correction frame editing unit 15 is requested to edit the learning correction frame (S9). Then, the received frame is transferred to the transmission frame control unit 14 (S10). Even when the transmission source MAC address and the reception port are set in the MAC address learning table 13 in step S8, step S10 is executed.

図6に示すように、スイッチ4では、端末CのMACアドレスを学習済みであるため、次に送信元である端末AのMACアドレス(MAC:00−E0−00−00−10−10)にて、MACアドレス学習テーブル13を検索する。学習テーブル制御部12では、送信元MACアドレスが既に学習済みで、かつ受信ポート1が学習ポート3と異なるため、MACアドレス学習テーブル13に、MACアドレス(MAC:00−E0−00−00−10−10)、学習ポート1として再学習する。また、再学習を実施したため、学習補正フレーム編集部15に学習補正フレームの編集及び旧学習ポート3への学習補正フレーム送信を依頼する。   As shown in FIG. 6, since the switch 4 has learned the MAC address of the terminal C, the MAC address of the terminal A that is the transmission source (MAC: 00-E0-00-00-10-10) is set next. Then, the MAC address learning table 13 is searched. In the learning table control unit 12, since the transmission source MAC address has already been learned and the reception port 1 is different from the learning port 3, the MAC address (MAC: 00-E0-00-00-10) is stored in the MAC address learning table 13. -10) Re-learning as learning port 1 Since the relearning is performed, the learning correction frame editing unit 15 is requested to edit the learning correction frame and transmit the learning correction frame to the old learning port 3.

学習補正フレーム編集部15は、図10に示すように学習補正フレームを編集する。図10は実施例1における学習補正フレーム編集部15のの処理フローを示す図である。学習テーブル制御部12から学習補正フレーム送信依頼を受けると、学習補正フレームを編集する(S1)。送信元MACアドレスには、受信フレームの送信元MACアドレスを設定する。次に、学習補正フレームを送信フレーム制御部14へ渡す(S2)。   The learning correction frame editing unit 15 edits the learning correction frame as shown in FIG. FIG. 10 is a diagram illustrating a processing flow of the learning correction frame editing unit 15 according to the first embodiment. When a learning correction frame transmission request is received from the learning table control unit 12, the learning correction frame is edited (S1). The source MAC address of the received frame is set in the source MAC address. Next, the learning correction frame is transferred to the transmission frame control unit 14 (S2).

具体的な編集内容は図11に示す通りである。0〜16バイトまでは、宛先MACアドレス(MAC:00−00−00−00−00−00:6バイト)と、送信元MACアドレス(MAC:00−E0−00−00−10−10:6バイト)と、フレーム長(2バイト)が入る。16バイトから64バイトまでは、ペイロード(50バイト:オール0)が入る。64バイトから68バイトまでは、フレームチェックシーケンス(FCS4バイト)が入る。   The specific editing contents are as shown in FIG. From 0 to 16 bytes, the destination MAC address (MAC: 00-00-00-00-00-00: 6 bytes) and the source MAC address (MAC: 00-E0-00-00-10-10: 6) Byte) and frame length (2 bytes). From 16 bytes to 64 bytes, a payload (50 bytes: all 0) is entered. From 64 bytes to 68 bytes, a frame check sequence (FCS 4 bytes) is entered.

この場合、学習補正フレームの送信元MACアドレスには、端末AのMACアドレス(MAC:00−E0−00−00−10−10)を設定する。これは、学習補正フレームを受信したスイッチにて、端末AのMACアドレス学習を補正させるためである。次に、学習補正フレーム編集部15は、編集した学習補正フレームを旧学習ポート3へ送信するよう送信フレーム制御部14に依頼する。該送信フレーム制御部14は、図8に示すように学習補正フレームを指定されたポート3に送信する。   In this case, the MAC address (MAC: 00-E0-00-00-10-10) of the terminal A is set as the transmission source MAC address of the learning correction frame. This is because the MAC address learning of the terminal A is corrected by the switch that has received the learning correction frame. Next, the learning correction frame editing unit 15 requests the transmission frame control unit 14 to transmit the edited learning correction frame to the old learning port 3. The transmission frame control unit 14 transmits the learning correction frame to the designated port 3 as shown in FIG.

以上、説明したように、スイッチ4においてスイッチの学習情報を補正し、該補正を他のスイッチにも働きかける学習補正フレームを送信することができる。
次に、図8に示すスイッチ4から送信された学習補正フレームを受信したスイッチ2の動作について説明する。スイッチ4より送信された学習補正フレームは、スイッチ2のポート3で受信する。スイッチ2の受信フレーム制御部11は、フレームの送信先MACアドレス(MAC:00−00−00−00−00−00)、Length(長さ)=0をチェックし、受信フレームを学習補正フレームと認識し、受信した学習補正フレームを学習補正フレーム制御部16に渡す。
As described above, it is possible to transmit the learning correction frame that corrects the learning information of the switch in the switch 4 and applies the correction to other switches.
Next, the operation of the switch 2 that has received the learning correction frame transmitted from the switch 4 shown in FIG. 8 will be described. The learning correction frame transmitted from the switch 4 is received at the port 3 of the switch 2. The reception frame control unit 11 of the switch 2 checks the frame destination MAC address (MAC: 00-00-00-00-00-00) and Length (length) = 0, and uses the reception frame as a learning correction frame. The learning correction frame that is recognized and received is transferred to the learning correction frame control unit 16.

該学習補正フレーム制御部16は、図12のフローに示すように送信元である端末AのMACアドレス(MAC:00−E0−00−00−10−10)にて、MACアドレス学習テーブル13を検索する。図12は実施例1における学習補正フレーム制御部16の制御部処理フローを示す図である。先ず、受信フレーム制御部11から学習補正フレームを受信する。次に、フレームの送信元MACアドレスにて、MACアドレス学習テーブル13を検索する(S1)。そして、学習状態をチェックする(S2)。未学習である場合には、学習補正フレームをブロードキャスト送信するよう送信フレーム制御部14へ依頼する(S3)。   The learning correction frame control unit 16 stores the MAC address learning table 13 with the MAC address (MAC: 00-E0-00-00-10-10) of the transmission source terminal A as shown in the flow of FIG. Search for. FIG. 12 is a diagram illustrating a control unit processing flow of the learning correction frame control unit 16 according to the first embodiment. First, a learning correction frame is received from the reception frame control unit 11. Next, the MAC address learning table 13 is searched with the frame source MAC address (S1). Then, the learning state is checked (S2). If not learned, the transmission frame control unit 14 is requested to broadcast the learning correction frame (S3).

学習済みである場合には、学習ポートと受信ポートが等しいかどうかチェックする(S4)。等しくない場合には、MACアドレス学習テーブル13に、送信元MACアドレスと受信ポートを設定する(学習補正:S5)。次に、学習補正フレームを旧学習ポートへ送信するよう送信フレーム制御部14へ依頼する(S6)。ステップS4において、学習ポートと受信ポートが等しい場合には、補正は必要ないので、該学習補正フレームを廃棄する(S7)。   If it is learned, it is checked whether the learning port is equal to the receiving port (S4). If they are not equal, the source MAC address and the receiving port are set in the MAC address learning table 13 (learning correction: S5). Next, the transmission frame control unit 14 is requested to transmit the learning correction frame to the old learning port (S6). If the learning port is equal to the receiving port in step S4, no correction is necessary, and the learning correction frame is discarded (S7).

図6に示すように、スイッチ2では、端末AのMACアドレスを学習済みであるが、受信ポート3が学習ポート1と異なるため、MACアドレス学習テーブル13にMACアドレス(MAC:00−E0−00−00−10−10)、学習ポート3として再学習する。また、再学習を実施したため、受信した学習補正フレームを旧学習ポート1へ送信するよう送信フレーム制御部14に依頼する。送信フレーム制御部14は、図8に示すように学習補正フレームを指定されたポート1に送信する。スイッチ2から送信された学習補正フレームは、スイッチ1にて受信されるが、スイッチ1の動作は既に説明したので、ここでは省略する。   As shown in FIG. 6, the switch 2 has learned the MAC address of the terminal A, but since the receiving port 3 is different from the learning port 1, the MAC address (MAC: 00-E0-00) is stored in the MAC address learning table 13. -00-10-10), the learning port 3 is relearned. Further, since the relearning is performed, the transmission frame control unit 14 is requested to transmit the received learning correction frame to the old learning port 1. The transmission frame control unit 14 transmits the learning correction frame to the designated port 1 as shown in FIG. The learning correction frame transmitted from the switch 2 is received by the switch 1, but since the operation of the switch 1 has already been described, the description is omitted here.

以上、説明したように、本発明によれば、スイッチ2において、学習補正フレーム受信をトリガにスイッチの学習情報を瞬時に補正し、該補正を適切な他のスイッチにも働きかけることができる。
(実施例2)
以下、図2及び図9〜図16を用いて実施例2について説明する。ここでは、説明の簡便化のため、以下ではVLAN技術を用いない場合について説明するが、VLAN技術を用いた場合にも同様に適用することができる。
As described above, according to the present invention, the switch 2 can instantaneously correct the learning information of the switch using the learning correction frame reception as a trigger, and the correction can be applied to other appropriate switches.
(Example 2)
Hereinafter, Example 2 will be described with reference to FIGS. 2 and 9 to 16. Here, for simplification of description, a case where the VLAN technology is not used will be described below, but the same applies to the case where the VLAN technology is used.

図13は実施例2におけるネットワーク構成例を示す図である。図4と同一のものは、同一の符号を付して示す。ここでは、端末A(MAC:00−E0−00−00−10−10)と端末B(MAC:00−E0−00−00−10−20)間、及び端末Bと端末C(MAC:00−E0−00−00−−30)間にてフレームの送受信を長時間行なっており、スイッチ1〜スイッチ6は端末A〜端末CのMACアドレスについて学習済みであるが、不必要なMACアドレスは、エージングタイムアウトにより削除されたものとする。   FIG. 13 is a diagram illustrating a network configuration example according to the second embodiment. The same components as those in FIG. 4 are denoted by the same reference numerals. Here, between terminal A (MAC: 00-E0-00-00-10-10) and terminal B (MAC: 00-E0-00-00-10-20), and between terminal B and terminal C (MAC: 00 -E0-00-00--30), frames are transmitted and received for a long time, and the switches 1 to 6 have learned the MAC addresses of the terminals A to C, but the unnecessary MAC addresses are It is assumed that it has been deleted due to an aging timeout.

図14は実施例2におけるスイッチ1〜6のMACアドレス学習テーブル状態を示す図である。例えばスイッチ1によれば、ポート番号1は、端末A(MAC:00−E0−00−00−10−10)と接続され、ポート番号2は、端末B(MAC:00−E0−00−00−10−20)と接続されている。一方、スイッチ2のポート1は端末A(MAC:00−E0−00−00−10−10)と接続され、ポート2は端末B(MAC:00−E0−00−00−10−20)と接続され、ポート3は端末C(MAC:00−E0−00−00−10−30)と接続されている。スイッチ3のポート1は端末A(MAC:00−E0−00−00−10−10)及び端末Cと接続され、(MAC:00−E0−00−00−10−30)と接続され、スイッチ2は端末B(MAC:00−E0−00−00−10−20)と接続されている。以下、同様である。このように、MACアドレス学習テーブル13は学習されている。   FIG. 14 is a diagram illustrating the MAC address learning table state of the switches 1 to 6 in the second embodiment. For example, according to switch 1, port number 1 is connected to terminal A (MAC: 00-E0-00-00-10-10), and port number 2 is connected to terminal B (MAC: 00-E0-00-00). -10-20). On the other hand, port 1 of switch 2 is connected to terminal A (MAC: 00-E0-00-00-10-10), and port 2 is connected to terminal B (MAC: 00-E0-00-00-10-20). The port 3 is connected to the terminal C (MAC: 00-E0-00-00-10-30). Port 1 of switch 3 is connected to terminal A (MAC: 00-E0-00-00-10-10) and terminal C, connected to (MAC: 00-E0-00-00-10-30), 2 is connected to terminal B (MAC: 00-E0-00-00-10-20). The same applies hereinafter. Thus, the MAC address learning table 13 is learned.

図15は、図13の状態より端末Aが移動した場合の説明図である。移動した端末Aが端末C宛のフレームを送信した場合の各スイッチの動作について説明する。スイッチの構成は、図2に示す構成を用いる。図15に示す移動した端末Aより送信されたフレームは、スイッチ4のポート1で受信する。スイッチ4の受信フレーム制御部11は、フレームの送信元MACアドレス(MAC:00−E0−00−00−10−10)、受信ポート番号1をMACアドレス学習テーブル13に登録するよう依頼するため、学習テーブル制御部12に受信フレームを渡す。   FIG. 15 is an explanatory diagram when the terminal A moves from the state of FIG. The operation of each switch when the moved terminal A transmits a frame addressed to the terminal C will be described. As the configuration of the switch, the configuration shown in FIG. 2 is used. A frame transmitted from the moved terminal A shown in FIG. 15 is received by the port 1 of the switch 4. The reception frame control unit 11 of the switch 4 requests to register the frame transmission source MAC address (MAC: 00-E0-00-00-10-10) and the reception port number 1 in the MAC address learning table 13. The received frame is passed to the learning table control unit 12.

学習テーブル制御部12は、図9のフローに示すようにフレームの送信先である端末CのMACアドレス(MAC:00−E0−00−00−10−30)にて、MACアドレス学習テーブル13を検索する。図14に示すように、スイッチ4では、端末CのMACアドレスを学習済みであるため、次に送信元である端末AのMACアドレス(MAC:00−E0−00−00−10−10)にて、MACアドレス学習テーブル13を検索する。   The learning table control unit 12 stores the MAC address learning table 13 with the MAC address (MAC: 00-E0-00-00-10-30) of the terminal C that is the transmission destination of the frame as shown in the flow of FIG. Search for. As shown in FIG. 14, since the switch 4 has already learned the MAC address of the terminal C, the MAC address (MAC: 00-E0-00-00-10-10) of the terminal A that is the transmission source is next set. Then, the MAC address learning table 13 is searched.

学習テーブル制御部12では、端末AのMACアドレス(MAC:00−E0−00−00−10−10)が未学習である(図14のスイッチ4にMACアドレスAが記憶されていない)ため、MAC学習アドレス学習テーブル13に、MACアドレス(MAC:00−E0−00−00−10−10)、学習ポート1として新規学習する。   In the learning table control unit 12, since the MAC address (MAC: 00-E0-00-00-10-10) of the terminal A is not learned (the MAC address A is not stored in the switch 4 in FIG. 14), The MAC learning address learning table 13 is newly learned as a MAC address (MAC: 00-E0-00-00-10-10) and learning port 1.

また、新規学習を実施したため、学習補正フレーム編集部15に学習補正フレームの編集及び学習補正フレーム送信を依頼する。学習補正フレームの送信先ポートは、フレーム受信ポート及びフレーム送信ポートを除く全ポートとなるため、ここではポート3が学習補正フレーム送信ポートとなる。学習補正フレーム編集部15は、図10のフローに示すように学習補正フレームを編集し、送信フレーム制御部14より学習補正フレームを送信するが、学習補正フレーム編集方法及び送信方法については、実施例1と同じであるので説明は省略する。   Since new learning has been performed, the learning correction frame editing unit 15 is requested to edit the learning correction frame and transmit the learning correction frame. Since the transmission destination ports of the learning correction frame are all ports except the frame reception port and the frame transmission port, port 3 is the learning correction frame transmission port here. The learning correction frame editing unit 15 edits the learning correction frame as shown in the flow of FIG. 10 and transmits the learning correction frame from the transmission frame control unit 14, but the learning correction frame editing method and transmission method are described in the embodiment. Since this is the same as 1, the description is omitted.

次に、スイッチ4から送信された学習補正フレームを受信したスイッチ6の動作について説明する。スイッチ4より送信された学習補正フレームは、スイッチ6のポート2で受信する。スイッチ6の受信フレーム制御部11は、フレームの送信先MACアドレス(MAC:00−00−00−00−00−00、Length=0)をチェックし、受信フレームを学習補正フレームと認識し、受信した学習補正フレームを学習補正フレーム制御部16へ渡す。   Next, the operation of the switch 6 that has received the learning correction frame transmitted from the switch 4 will be described. The learning correction frame transmitted from the switch 4 is received at the port 2 of the switch 6. The reception frame control unit 11 of the switch 6 checks the transmission destination MAC address (MAC: 00-00-00-00-00-00, Length = 0) of the frame, recognizes the reception frame as a learning correction frame, and receives the frame. The learned correction frame is transferred to the learning correction frame control unit 16.

学習補正フレーム制御部16は、図12のフローに示すように送信元である端末AのMACアドレス(MAC:00−E0−00−00−10−10)にて、MACアドレス学習テーブル13を検索する。図14に示すように、スイッチ6では、端末AのMACアドレスを未学習であるため、受信した学習補正フレームを受信ポート以外の全ポートへ送信するよう送信フレーム制御部14に依頼する。   The learning correction frame control unit 16 searches the MAC address learning table 13 with the MAC address (MAC: 00-E0-00-00-10-10) of the terminal A that is the transmission source as shown in the flow of FIG. To do. As shown in FIG. 14, since the switch 6 has not learned the MAC address of the terminal A, the switch 6 requests the transmission frame control unit 14 to transmit the received learning correction frame to all ports other than the reception port.

ここでは、ポート1が学習補正フレーム送信ポートとなる。送信フレーム制御部14は、図8に示すように学習補正フレームを指定されたポート1に送信する。スイッチ6から送信された学習補正フレームは、スイッチ2にて受信され、学習補正が実施されるが、スイッチ2の動作については既に実施例1で説明しているので省略する。   Here, port 1 is a learning correction frame transmission port. The transmission frame control unit 14 transmits the learning correction frame to the designated port 1 as shown in FIG. The learning correction frame transmitted from the switch 6 is received by the switch 2 and learning correction is performed, but the operation of the switch 2 has already been described in the first embodiment and will be omitted.

以上、説明したように、スイッチ6において学習補正フレームを必要時のみ中継することで、スイッチ2の学習情報を補正することができる。
本発明によれば、以下の効果が得られる。
1)課題1に対する効果
端末移動と認識した場合は、ユニキャストで学習補正フレームを送信するため、ネットワーク全体に無駄なトラヒックが流れることはない。
2)課題2に対する効果
本発明はスイッチに適用するものであり、全端末に適用する必要はないので、実装は容易である。
3)課題3に対する効果
本発明は、既存の技術では対応していない端末移動にて、瞬時に移動先のスイッチにフレーム転送することが可能である。
As described above, the learning information of the switch 2 can be corrected by relaying the learning correction frame at the switch 6 only when necessary.
According to the present invention, the following effects can be obtained.
1) Effect on Problem 1 When it is recognized that the terminal has moved, the learning correction frame is transmitted by unicast, so that no unnecessary traffic flows in the entire network.
2) Effect on Problem 2 Since the present invention is applied to a switch and does not have to be applied to all terminals, the implementation is easy.
3) Effect on Problem 3 In the present invention, it is possible to instantaneously transfer a frame to a destination switch by moving a terminal that is not supported by the existing technology.

本発明の原理ブロック図である。It is a principle block diagram of the present invention. 本発明のスイッチユニットの一実施の形態例を示すブロック図である。It is a block diagram which shows the example of 1 embodiment of the switch unit of this invention. 本発明の第1の動作説明図である。It is a 1st operation explanatory view of the present invention. 本発明の第2の動作説明図である。It is a 2nd operation explanatory view of the present invention. 実施例1におけるネットワーク構成例を示す図である。1 is a diagram illustrating a network configuration example in Embodiment 1. FIG. 実施例1におけるスイッチ1〜5のMACアドレス学習テーブル状態を示す図である。It is a figure which shows the MAC address learning table state of the switches 1-5 in Example 1. FIG. 実施例1における端末A移動後のフレーム送信を示す図である。It is a figure which shows the frame transmission after the terminal A movement in Example 1. FIG. 実施例1におけるスイッチ4及びスイッチ2からの学習補正フレーム送信を示す図である。FIG. 6 is a diagram illustrating learning correction frame transmission from the switch 4 and the switch 2 in the first embodiment. 実施例1における学習テーブル制御部の処理フローを示す図である。It is a figure which shows the processing flow of the learning table control part in Example 1. FIG. 実施例1における学習補正フレーム編集部の処理フローを示す図である。It is a figure which shows the processing flow of the learning correction | amendment flame | frame edit part in Example 1. FIG. 実施例1におけるスイッチ4から送信する学習補正フレームを示す図である。It is a figure which shows the learning correction | amendment flame | frame transmitted from the switch 4 in Example 1. FIG. 実施例1における学習補正フレーム制御部処理フローを示す図である。It is a figure which shows the learning correction frame control part processing flow in Example 1. FIG. 実施例2におけるネットワーク構成例を示す図である。6 is a diagram illustrating a network configuration example in Embodiment 2. FIG. 実施例2におけるスイッチ1〜6のMACアドレス学習テーブル状態を示す図である。It is a figure which shows the MAC address learning table state of switches 1-6 in Example 2. FIG. 実施例2における端末A移動後のフレーム送信を示す図である。It is a figure which shows the frame transmission after the terminal A movement in Example 2. FIG. 実施例2におけるスイッチ4及びスイッチ6からの学習補正フレーム送信を示す図である。It is a figure which shows learning correction | amendment flame | frame transmission from the switch 4 and switch 6 in Example 2. FIG. 従来システムの構成例を示すブロック図である。It is a block diagram which shows the structural example of a conventional system. 従来のスイッチの構成例を示すブロック図である。It is a block diagram which shows the structural example of the conventional switch.

符号の説明Explanation of symbols

1 スイッチ
11 受信フレーム制御部
12 学習テーブル制御部
13 MACアドレス学習テーブル
14 送信フレーム制御部
15 学習補正フレーム編集部
16 学習補正フレーム制御部
DESCRIPTION OF SYMBOLS 1 Switch 11 Reception frame control part 12 Learning table control part 13 MAC address learning table 14 Transmission frame control part 15 Learning correction frame edit part 16 Learning correction frame control part

Claims (4)

LANサービスをスイッチを介して提供するネットワークにおいて、
受信フレームの送信先MACアドレスが学習済みで、かつ送信元MACアドレスを再学習した場合、旧学習情報の該当ポートへ学習補正フレームをユニキャスト送信する学習補正フレーム送信手段と、
学習補正フレームを受信時に送信元MACアドレスが学習済みで、かつ学習ポートが異なる場合、受信ポートを再学習し、学習補正フレームを旧学習情報の該当ポートへ送信する学習補正手段と、
を具備することを特徴とするMAC学習補正システム。
In a network that provides a LAN service via a switch,
Learning correction frame transmitting means for unicasting the learning correction frame to the corresponding port of the old learning information when the transmission destination MAC address of the received frame has been learned and the transmission source MAC address is relearned;
When the learning correction frame is received, when the transmission source MAC address has been learned and the learning port is different, learning correction means for re-learning the reception port and transmitting the learning correction frame to the corresponding port of the old learning information;
A MAC learning correction system comprising:
前記学習補正フレーム送信手段を具備するスイッチにおいて、
受信フレームの送信先MACアドレスが学習済みで、かつ送信元MACアドレスを再学習した場合、旧学習情報の該当ポートへ学習補正フレームの送信を依頼する学習テーブル制御部と、
前記学習補正フレームの編集を行なう学習補正フレーム編集部と、
を具備することを特徴とする請求項1記載のMAC学習補正システム。
In the switch comprising the learning correction frame transmitting means,
A learning table control unit that requests transmission of a learning correction frame to a corresponding port of the old learning information when the transmission destination MAC address of the received frame has been learned and the source MAC address has been relearned;
A learning correction frame editing unit for editing the learning correction frame;
The MAC learning correction system according to claim 1, further comprising:
前記学習補正手段を具備するスイッチにおいて、
学習補正フレームを受信時に学習補正フレームを認識する受信フレーム制御部と、
送信元MACアドレスが学習済みで、かつ学習ポートが異なる場合、受信ポートを再学習し、学習補正フレームを旧学習情報の該当ポートへ学習補正フレームの送信を依頼する学習補正フレーム制御部と、
を具備することを特徴とする請求項1記載のMAC学習補正システム。
In the switch comprising the learning correction means,
A reception frame controller that recognizes the learning correction frame when receiving the learning correction frame;
When the transmission source MAC address has been learned and the learning port is different, the learning correction frame control unit that re-learns the reception port and requests the learning correction frame to be transmitted to the corresponding port of the old learning information;
The MAC learning correction system according to claim 1, further comprising:
前記学習補正手段を具備するスイッチにおいて、
学習補正フレームを送信元MACアドレスが未学習の場合、学習補正フレームをブロードキャストする学習補正フレーム制御部と、
を具備することを特徴とする請求項1記載のMAC学習補正システム。
In the switch comprising the learning correction means,
A learning correction frame control unit that broadcasts a learning correction frame when the source MAC address of the learning correction frame is unlearned;
The MAC learning correction system according to claim 1, further comprising:
JP2005277987A 2005-09-26 2005-09-26 MAC learning correction system Active JP4709623B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005277987A JP4709623B2 (en) 2005-09-26 2005-09-26 MAC learning correction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005277987A JP4709623B2 (en) 2005-09-26 2005-09-26 MAC learning correction system

Publications (2)

Publication Number Publication Date
JP2007089030A true JP2007089030A (en) 2007-04-05
JP4709623B2 JP4709623B2 (en) 2011-06-22

Family

ID=37975540

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005277987A Active JP4709623B2 (en) 2005-09-26 2005-09-26 MAC learning correction system

Country Status (1)

Country Link
JP (1) JP4709623B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8462779B2 (en) 2008-12-22 2013-06-11 Fujitsu Limited Frame transfer apparatus and frame transfer method
WO2017156979A1 (en) * 2016-03-16 2017-09-21 中兴通讯股份有限公司 Media access control (mac) address processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1127326A (en) * 1997-07-08 1999-01-29 Hitachi Ltd Hierarchical lan switch network
JP2004349779A (en) * 2003-05-20 2004-12-09 Furuno Electric Co Ltd Wireless terminal provided with high speed roaming processing means for wireless lan

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1127326A (en) * 1997-07-08 1999-01-29 Hitachi Ltd Hierarchical lan switch network
JP2004349779A (en) * 2003-05-20 2004-12-09 Furuno Electric Co Ltd Wireless terminal provided with high speed roaming processing means for wireless lan

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8462779B2 (en) 2008-12-22 2013-06-11 Fujitsu Limited Frame transfer apparatus and frame transfer method
WO2017156979A1 (en) * 2016-03-16 2017-09-21 中兴通讯股份有限公司 Media access control (mac) address processing method and device
CN107205058A (en) * 2016-03-16 2017-09-26 中兴通讯股份有限公司 A kind of media intervention control MAC Address processing method and processing device
CN107205058B (en) * 2016-03-16 2021-06-04 中兴通讯股份有限公司 Media intervention control MAC address processing method and device

Also Published As

Publication number Publication date
JP4709623B2 (en) 2011-06-22

Similar Documents

Publication Publication Date Title
US6847620B1 (en) Mobile virtual LAN
US8665886B2 (en) Redundant host connection in a routed network
US7715398B2 (en) Method for transmitting message in a resilient packet ring network
JP5462360B2 (en) Method and apparatus at multiple rendezvous points for co-processing multicast traffic from mobile multicast sources
US20050265230A1 (en) Apparatus and method for performing state transition of backup router in router redundancy system
US20080075078A1 (en) Frame Transfer System
US8391287B2 (en) Packet relay method and device
US10587508B2 (en) Ethernet frame transmission method in software defined networks (SDN)
EP3095216B1 (en) Single hop overlay architecture for line rate performance in campus networks
US20230291682A1 (en) Method and device for processing data packet, storage medium, and electronic device
WO2007079632A1 (en) A MULTICAST DISPOSING METNOD, MULTICAST METNOD AND APPARATUS AMONG IPv6 ISLANDS
JP2001177523A (en) Multicast communication method
US20060109807A1 (en) Multicasting using tunneling method
US7639683B2 (en) Multicast communication method using layer 2 and 3 switches
JP4709623B2 (en) MAC learning correction system
JPWO2005032061A1 (en) Hierarchical layer 2 network
EP3021529B1 (en) Method and device for implementing layer 3 virtual private network
US6882646B2 (en) IP network over a partially meshed frame relay network
WO2008071032A1 (en) An ip multicast route monitoring system and the method thereof
JP4660346B2 (en) BRIDGE DEVICE AND BRIDGE DEVICE CONTROL METHOD
JP3936319B2 (en) Communication confirmation method, data relay device, data relay system
JP4547195B2 (en) Network system, control device, router device, access point and mobile terminal
JP2001285292A (en) Wireless lan system
JP2005252415A (en) Wireless lan system and communication management method in wireless lan system
JPH04167724A (en) Bridge device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080704

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110301

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110315

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110318