Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5533100B2 - Switch, notification program, and notification method - Google Patents
[go: Go Back, main page]

JP5533100B2 - Switch, notification program, and notification method - Google Patents

Switch, notification program, and notification method Download PDF

Info

Publication number
JP5533100B2
JP5533100B2 JP2010065181A JP2010065181A JP5533100B2 JP 5533100 B2 JP5533100 B2 JP 5533100B2 JP 2010065181 A JP2010065181 A JP 2010065181A JP 2010065181 A JP2010065181 A JP 2010065181A JP 5533100 B2 JP5533100 B2 JP 5533100B2
Authority
JP
Japan
Prior art keywords
mac address
port
switch
unicast packet
terminal
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.)
Expired - Fee Related
Application number
JP2010065181A
Other languages
Japanese (ja)
Other versions
JP2011199678A (en
Inventor
貴浩 白川
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 JP2010065181A priority Critical patent/JP5533100B2/en
Publication of JP2011199678A publication Critical patent/JP2011199678A/en
Application granted granted Critical
Publication of JP5533100B2 publication Critical patent/JP5533100B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

本発明は、アドレス変更を通知するスイッチ、通知プログラム、および通知方法に関する。   The present invention relates to a switch for notifying address change, a notification program, and a notification method.

複数のスイッチ間に複数の経路がある場合、あるスイッチが障害発生を検出し経路を切り替えた際には、周囲のスイッチに切り替えを通知し、各スイッチにおいてMAC(Media Access Control)アドレス学習テーブルを書き換える必要がある。スパニングツリープロトコルにより経路切り替えを行う場合には、通信再開まで時間がかかってしまうという問題がある。その改善手法として、下記特許文献1には所定の専用パケットにより各スイッチに通知を行なう方法や、ダミーのマルチキャストパケットを送出することにより、該パケットを受信し転送する各スイッチにMACアドレスを学習させる方法が開示されている。   When there are a plurality of routes between a plurality of switches, when a switch detects the occurrence of a failure and switches the route, the switch is notified to the surrounding switches, and each switch has a MAC (Media Access Control) address learning table. It needs to be rewritten. When the path is switched by the spanning tree protocol, there is a problem that it takes time to resume communication. As an improvement technique, Japanese Patent Application Laid-Open No. 2004-151620 discloses a method of notifying each switch by a predetermined dedicated packet, or sending a dummy multicast packet so that each switch that receives and forwards the packet learns the MAC address. A method is disclosed.

米国特許出願公開第2008/0123561号明細書US Patent Application Publication No. 2008/0123561

しかしながら、専用パケットを使用する方法では、受信側にも該当機能が必要となるため、コストが増大するという問題があった。また、ダミーのマルチキャストパケットを使用する方法では、ネットワーク上のMACアドレス学習テーブルの変更の必要のない端末まで受信してしまい、本来不要な受信処理により端末の負荷が増大するという問題があった。   However, the method using a dedicated packet has a problem in that the cost increases because the receiving side needs the corresponding function. Further, in the method using dummy multicast packets, there is a problem in that even a terminal that does not need to change the MAC address learning table on the network is received, and the load on the terminal increases due to an originally unnecessary reception process.

本発明は、上述した従来技術による問題点を解消するため、簡易な構成で端末の受信負荷低減を実現することができるスイッチ、通知プログラム、および通知方法を提供することを目的とする。   An object of the present invention is to provide a switch, a notification program, and a notification method that can reduce the reception load of a terminal with a simple configuration in order to eliminate the above-described problems caused by the related art.

上述した課題を解決し、目的を達成するため、本スイッチ、通知プログラム、および通知方法は、障害発生経路に接続されているポートを検出し、MACアドレス学習テーブルを参照して、検出されたポート以外の他のポートに対応する情報処理装置のMACアドレスを送信元とし不使用のMACアドレスを宛先とするユニキャストパケットを設定し、設定されたユニキャストパケットを送信することを要件とする。   In order to solve the above-described problems and achieve the object, the present switch, the notification program, and the notification method detect a port connected to a failure occurrence path and refer to the MAC address learning table to detect the detected port. It is a requirement to set a unicast packet having the MAC address of the information processing apparatus corresponding to another port other than the source as the transmission source and the unused MAC address as the destination, and transmitting the set unicast packet.

本スイッチ、通知プログラム、および通知方法によれば、簡易な構成で端末の受信負荷低減を実現することができるという効果を奏する。   According to the switch, the notification program, and the notification method, there is an effect that the reception load of the terminal can be reduced with a simple configuration.

MACアドレスの構造を示す説明図である。It is explanatory drawing which shows the structure of a MAC address. スイッチのハードウェア構成の一例を示すブロック図である。It is a block diagram which shows an example of the hardware constitutions of a switch. 本実施形態にかかるスイッチの機能的構成例を示すブロック図である。It is a block diagram which shows the functional structural example of the switch concerning this embodiment. MACアドレス変更通知例1を示す説明図(その1)である。It is explanatory drawing (the 1) which shows the example 1 of a MAC address change notification. MACアドレス変更通知例1を示す説明図(その2)である。It is explanatory drawing (the 2) which shows the MAC address change notification example 1. MACアドレス変更通知例1を示す説明図(その3)である。It is explanatory drawing (the 3) which shows the example 1 of a MAC address change notification. MACアドレス変更通知例1を示す説明図(その4)である。It is explanatory drawing (the 4) which shows the MAC address change notification example 1. MACアドレス変更通知例2を示す説明図(その1)である。It is explanatory drawing (the 1) which shows the example 2 of a MAC address change notification. MACアドレス変更通知例2を示す説明図(その2)である。It is explanatory drawing (the 2) which shows the MAC address change notification example 2. MACアドレス変更通知例2を示す説明図(その3)である。It is explanatory drawing (the 3) which shows the MAC address change notification example 2. MACアドレス変更通知例2を示す説明図(その4)である。It is explanatory drawing (the 4) which shows the MAC address change notification example 2. アドレス変更通知処理手順を示すフローチャートである。It is a flowchart which shows an address change notification process procedure. MACアドレス変更処理手順を示すフローチャートである。It is a flowchart which shows a MAC address change process sequence. MACアドレス変更通知例3を示す説明図(その1)である。It is explanatory drawing (the 1) which shows the example 3 of a MAC address change notification. MACアドレス変更通知例3を示す説明図(その2)である。It is explanatory drawing (the 2) which shows the example 3 of a MAC address change notification. アドレス変更通知例3におけるMACアドレス変更通知処理手順を示すフローチャート(その1)である。It is a flowchart (the 1) which shows the MAC address change notification process procedure in the address change notification example 3. アドレス変更通知例3におけるMACアドレス変更通知処理手順を示すフローチャート(その2)である。It is a flowchart (the 2) which shows the MAC address change notification process sequence in the address change notification example 3.

以下に添付図面を参照して、この発明にかかるスイッチ、通知プログラム、および通知方法の実施の形態を詳細に説明する。   Exemplary embodiments of a switch, a notification program, and a notification method according to the present invention will be described below in detail with reference to the accompanying drawings.

本実施の形態では、運用系で故障が検出された場合、ダミーのマルチキャストパケットのかわりにあて先不明のunknownユニキャストパケットを配信することで、MACアドレスの変更を通知する。unknownユニキャストパケットのあて先MACアドレスとしては、特定のローカルアドレス(MACアドレスでローカルビットが立っている形式のもの)等のネットワークで使用されていないMACアドレスを使用する。   In the present embodiment, when a failure is detected in the active system, the change of the MAC address is notified by delivering an unknown unknown unicast packet instead of a dummy multicast packet. As the destination MAC address of the unknown unicast packet, a MAC address that is not used in the network, such as a specific local address (a MAC address with a local bit set) is used.

unknownユニキャストパケットであれば、MACアドレス学習の変更が必要なスイッチのみが処理するため、スイッチの配下にある端末には受信されず、端末に負荷がかからない。unknownユニキャストパケットは、スイッチの全ポートに転送されるため、スイッチに対してはマルチキャストパケットを使用した場合と同じ効果がある。   In the case of an unknown unicast packet, only the switch that needs to change the MAC address learning processes it, so that it is not received by the terminals under the switch and the terminal is not loaded. Since the unknown unicast packet is transferred to all the ports of the switch, it has the same effect as when the multicast packet is used for the switch.

(MACアドレスの構造)
図1は、MACアドレスの構造を示す説明図である。(A)〜(C)に示したように、MACアドレスは、上位3バイトのメーカーコードと下位3バイトの製品番号とで構成される。メーカーコードとは、そのMACアドレスを割り当てる機器の製造メーカを識別するコードである。
(MAC address structure)
FIG. 1 is an explanatory diagram showing the structure of a MAC address. As shown in (A) to (C), the MAC address is composed of a manufacturer code of upper 3 bytes and a product number of lower 3 bytes. The manufacturer code is a code for identifying the manufacturer of the device to which the MAC address is assigned.

メーカーコードの先頭の1ビットは、I/G(Individual/Group)ビットをあらわしており、0ならば個別アドレス(ユニキャスト)、1ならばグループアドレス(マルチキャスト)を指す。また、先頭から2ビット目のビットは、U/L(Universal/Local)ビットをあらわしており、0ならばグローバルアドレス、1ならばローカルアドレスを指す。   The first 1 bit of the manufacturer code represents an I / G (Individual / Group) bit. If it is 0, it indicates an individual address (unicast), and if it is 1, it indicates a group address (multicast). The second bit from the head represents a U / L (Universal / Local) bit. If it is 0, it indicates a global address, and if it is 1, it indicates a local address.

本実施の形態で使用するunknownユニキャストパケットでは、(B)および(C)に示したように、I/Gビットを0に設定する。I/Gビットが0に設定されたMACアドレスを有するパケットは、ユニキャストパケットとなる。   In the unknown unicast packet used in this embodiment, the I / G bit is set to 0 as shown in (B) and (C). A packet having a MAC address with the I / G bit set to 0 is a unicast packet.

また、(B)は、U/Lビットを0に設定したMACアドレスを示している。U/Lビットが0の場合、メーカーコードの残余の22ビットで製造メーカを特定する。したがって、この場合のunknownユニキャストパケットでは、下位3バイトで表現される製品番号を、その製造メーカが製造する製品のいずれにも割り当てられていないコード(不使用MACアドレス)に設定することとなる。   (B) shows the MAC address with the U / L bit set to 0. When the U / L bit is 0, the manufacturer is specified by the remaining 22 bits of the manufacturer code. Therefore, in the unknown unicast packet in this case, the product number represented by the lower 3 bytes is set to a code (unused MAC address) that is not assigned to any of the products manufactured by the manufacturer. .

また、(C)は、U/Lビットを1に設定したMACアドレスを示している。U/Lビットが1の場合、残余の46ビットで特定のネットワークでの固有のアドレスをあらわす。したがって、この場合のunknownユニキャストパケットでは、残余の46ビットで表現されるアドレスを、その特定のネットワーク内で誰にも割り当てられていない不使用MACアドレスに設定することとなる。   Further, (C) indicates a MAC address in which the U / L bit is set to 1. When the U / L bit is 1, the remaining 46 bits represent a unique address in a specific network. Therefore, in the unknown unicast packet in this case, the address expressed by the remaining 46 bits is set to an unused MAC address that is not assigned to anyone in the specific network.

(スイッチのハードウェア構成)
図2は、スイッチのハードウェア構成の一例を示すブロック図である。スイッチSは、プロセッサ201とメモリ202と選択回路203と複数のポートPとを備える。プロセッサ201は、スイッチを統括制御する。メモリ202は、プロセッサ201のワークエリアとして使用される。
(Switch hardware configuration)
FIG. 2 is a block diagram illustrating an example of a hardware configuration of the switch. The switch S includes a processor 201, a memory 202, a selection circuit 203, and a plurality of ports P. The processor 201 performs overall control of the switch. The memory 202 is used as a work area for the processor 201.

また、メモリ202には、MACアドレス学習テーブルTと、VLANテーブルVLと、プログラム205と、不使用MACアドレス206が記憶されている。選択回路203は、プロセッサ201からの指令によりパケットを転送するポートを選択する。たとえば、VLANテーブルVLの設定に従って、ポートPどうしを接続する。ポートPは、パケットの送受信をおこなう。   The memory 202 stores a MAC address learning table T, a VLAN table VL, a program 205, and an unused MAC address 206. The selection circuit 203 selects a port for transferring a packet in response to a command from the processor 201. For example, the ports P are connected according to the setting of the VLAN table VL. Port P transmits and receives packets.

(スイッチの機能的構成)
図3は、本実施形態にかかるスイッチの機能的構成例を示すブロック図である。スイッチSは、記憶部300と、受信部301と、検出部302と、設定部303と、送信部304と、を備えている。記憶部300は、各種情報を記憶する機能を有する。具体的には、図2に示したMACアドレス学習テーブルTと、VLANテーブルVLと、プログラム205と、不使用MACアドレス206を記憶する。記憶部300は、図2に示したメモリ202によりその機能を実現する。
(Functional configuration of the switch)
FIG. 3 is a block diagram illustrating a functional configuration example of the switch according to the present embodiment. The switch S includes a storage unit 300, a reception unit 301, a detection unit 302, a setting unit 303, and a transmission unit 304. The storage unit 300 has a function of storing various information. Specifically, the MAC address learning table T, the VLAN table VL, the program 205, and the unused MAC address 206 shown in FIG. The storage unit 300 realizes its function by the memory 202 shown in FIG.

受信部301は、接続先からのパケットを受信する機能を有する。具体的には、接続先がスイッチSであれば、スイッチSから転送されてくるパケットを受信する。また、接続先が端末(パーソナルコンピュータやサーバ)であれば、端末から送信されてくるパケットを受信する。受信部301は、図2に示したポートPによりその機能を実現する。   The receiving unit 301 has a function of receiving a packet from a connection destination. Specifically, if the connection destination is the switch S, the packet transferred from the switch S is received. Further, if the connection destination is a terminal (personal computer or server), a packet transmitted from the terminal is received. The receiving unit 301 realizes its function by the port P shown in FIG.

検出部302は、ポートPに接続されている運用系のリンクの障害発生を検出する機能を有する。具体的には、たとえば、障害が発生すると、運用系のリンクの電圧レベルが正常時の電圧値から下降するため、電圧値を監視することで、ポートPに接続されている運用系のリンクに障害が発生したか否かを検出する。検出部302は、具体的には、たとえば、図2に示したポートPから得られた電圧信号を、メモリ202に記憶されたプログラム205で監視処理をすることによりその機能を実現する。   The detection unit 302 has a function of detecting a failure of the active link connected to the port P. Specifically, for example, when a failure occurs, the voltage level of the active system link drops from the normal voltage value, and therefore, by monitoring the voltage value, the active system link connected to the port P Detect whether a failure has occurred. Specifically, the detection unit 302 realizes its function by, for example, monitoring the voltage signal obtained from the port P shown in FIG. 2 with the program 205 stored in the memory 202.

設定部303は、各種設定をおこなう機能を有する。具体的には、従来と同様、MACアドレス学習テーブルTの設定、VLANテーブルVLの設定、選択回路203によるポートP間接続の設定をおこなう。また、検出部302により運用系のリンクの障害発生が検出された場合に待機系のリンクをリンクダウンからリンクアップに設定する。   The setting unit 303 has a function of performing various settings. Specifically, the MAC address learning table T is set, the VLAN table VL is set, and the connection between the ports P is set by the selection circuit 203 as in the conventional case. Further, when the detection unit 302 detects a failure of the active link, the standby link is set from link down to link up.

本実施の形態では、さらに、記憶部300から不使用MACアドレス206を読み出して、読み出された不使用MACアドレスをあて先とするunknownユニキャストパケットを生成する。この場合、unknownユニキャストパケットの送信元は、たとえば、以下のとおりである。   In the present embodiment, the unused MAC address 206 is further read from the storage unit 300, and an unknown unicast packet with the read unused MAC address as a destination is generated. In this case, the transmission source of the unknown unicast packet is, for example, as follows.

(1) VLAN未設定の場合、MACアドレス学習テーブルTにおいて、障害発生したリンクに接続されているポート(以下、「接続元ポート」)以外の他のポートに対応するMACアドレス (1) When the VLAN is not set, in the MAC address learning table T, the MAC address corresponding to a port other than the port connected to the failed link (hereinafter referred to as “connection source port”)

(2) 上記(1)において、接続元ポート以外の他のポートの中の指定ポートに対応するMACアドレス (2) In the above (1), the MAC address corresponding to the designated port among the ports other than the connection source port

(3) 上記(1)において、接続元ポート以外の他のポートに対応するMACアドレスの中の指定MACアドレス (3) In the above (1), the designated MAC address in the MAC address corresponding to a port other than the connection source port

(4) VLANが設定されている場合、MACアドレス学習テーブルTにおいて、接続元ポート以外の他のポートのうち、接続元ポートと同一VLANに所属するポートに対応するMACアドレス (4) When VLAN is set, in the MAC address learning table T, the MAC address corresponding to the port belonging to the same VLAN as the connection source port among the ports other than the connection source port

(5) 上記(4)において、接続元ポート以外の他のポートのうち、接続元ポートと同一VLANに所属するポートの中の指定ポートに対応するMACアドレス (5) In the above (4), the MAC address corresponding to the designated port among the ports belonging to the same VLAN as the connection source port among the ports other than the connection source port

(6) 上記(4)において、接続元ポート以外の他のポートのうち、接続元ポートと同一VLANに所属するポートに対応するMACアドレスの中の指定MACアドレス (6) In the above (4), the designated MAC address in the MAC address corresponding to the port belonging to the same VLAN as the connection source port among the ports other than the connection source port

なお、指定ポートや指定MACアドレスはあらかじめ設定しておき、記憶部300に格納しておく。   The designated port and the designated MAC address are set in advance and stored in the storage unit 300.

上記(1)〜(6)において、送信元となるMACアドレスが複数ある場合は、unknownユニキャストパケットはMACアドレスの個数分生成されることとなる。ただし、(2)、(3)、(5)、(6)において、指定ポートや指定MACアドレスを設定することで、送信元のMACアドレスの個数を減らすことができる。これにより、生成されるunknownユニキャストパケットが減少するため、MACアドレスの変更を早期に通知することができる。   In the above (1) to (6), when there are a plurality of source MAC addresses, an unknown unicast packet is generated for the number of MAC addresses. However, by setting the designated port and the designated MAC address in (2), (3), (5), and (6), the number of source MAC addresses can be reduced. As a result, the number of generated unicast unicast packets is reduced, so that the MAC address change can be notified early.

送信部304は、パケットを転送先に送信する機能を有する。具体的には、転送先がスイッチSであれば、送信されてきたパケットを転送先のスイッチに送信する。また、転送先が情報処理装置(端末やサーバ)であれば、送信されてきたパケットを転送先に送信する。送信部304は、図2に示したポートPによりその機能を実現する。つぎに、MACアドレス変更通知の具体例について、図4〜図7を用いて説明する。   The transmission unit 304 has a function of transmitting a packet to a transfer destination. Specifically, if the transfer destination is the switch S, the transmitted packet is transmitted to the transfer destination switch. If the transfer destination is an information processing apparatus (terminal or server), the transmitted packet is transmitted to the transfer destination. The transmission unit 304 realizes its function by the port P shown in FIG. Next, a specific example of the MAC address change notification will be described with reference to FIGS.

(MACアドレス変更通知例1)
図4〜図7は、MACアドレス変更通知例1を示す説明図である。MACアドレス変更通知の具体例1では、VLANが設定されていないネットワーク内、あるいは、同一VLAN内でのMACアドレス変更通知を示している。
(MAC address change notification example 1)
4 to 7 are explanatory diagrams showing MAC address change notification example 1. FIG. Specific example 1 of the MAC address change notification indicates a MAC address change notification in a network in which no VLAN is set or in the same VLAN.

図4〜図7において、Sa〜Sdはスイッチであり、Ca1,Ca2,Cdは、端末である。また、Lxy(x,yは任意のアルファベット。)は、スイッチSx〜Sy間のリンクを示す。たとえば、リンクLabは、スイッチSa〜Sb間のリンクである。   4 to 7, Sa to Sd are switches, and Ca1, Ca2, and Cd are terminals. Lxy (x and y are arbitrary alphabets) represents a link between the switches Sx to Sy. For example, the link Lab is a link between the switches Sa to Sb.

図4〜図7において、スイッチSa,Sdの図形の周囲に記述した数字はポート番号である。また、TaはスイッチSaのMACアドレス学習テーブルを示しており、TdはスイッチSdのMACアドレス学習テーブルを示している。MACアドレス学習テーブルは、ポート番号とMACアドレスを対応させたテーブルである。たとえば、MACアドレス学習テーブルTaの先頭レコードでは、ポート1と端末CdのMACアドレスが対応していることを示している。   4 to 7, numbers described around the figures of the switches Sa and Sd are port numbers. Further, Ta represents the MAC address learning table of the switch Sa, and Td represents the MAC address learning table of the switch Sd. The MAC address learning table is a table in which port numbers are associated with MAC addresses. For example, the first record of the MAC address learning table Ta indicates that the port 1 corresponds to the MAC address of the terminal Cd.

また、スイッチSa,Sb,Sdの経路(リンクLab,Lbd)を運用系の経路とし、スイッチSa,Sc,Sdの経路(リンクLac,Lcd)を待機系の経路とする。したがって、通常は、運用系の経路を利用してパケットが通信されるが、運用系の経路上で障害が発生した場合は、待機系の経路に切り替えられるものとする。たとえば、リンクLabで障害が発生した場合は、待機系の経路がリンクアップして通信可能な状態となる。   In addition, the paths of the switches Sa, Sb, and Sd (links Lab and Lbd) are set as active paths, and the paths of the switches Sa, Sc, and Sd (links Lac and Lcd) are set as standby paths. Therefore, normally, packets are communicated using the active route, but when a failure occurs on the active route, the packet is switched to the standby route. For example, when a failure occurs in the link Lab, the standby path is linked up so that communication is possible.

図4では、端末Cdを宛先とする端末Ca1からのパケットは、スイッチSaのポート3で受信される。そして、スイッチSaでは、MACアドレス学習テーブルTaを参照することにより、宛先である端末CdのMACアドレスに対応するポート1から転送される。転送されたパケットは、リンクLab、スイッチSb、リンクLbdを経由して、スイッチSdのポート1に受信される。スイッチSdでは、MACアドレス学習テーブルTdを参照することにより、宛先である端末CdのMACアドレスに対応するポート3から転送される。これにより、端末Ca1のパケットが端末Cdに到達する。   In FIG. 4, the packet from the terminal Ca1 destined for the terminal Cd is received at the port 3 of the switch Sa. Then, in the switch Sa, by referring to the MAC address learning table Ta, transfer is performed from the port 1 corresponding to the MAC address of the destination terminal Cd. The transferred packet is received by the port 1 of the switch Sd via the link Lab, the switch Sb, and the link Lbd. In the switch Sd, by referring to the MAC address learning table Td, the transfer is performed from the port 3 corresponding to the MAC address of the destination terminal Cd. Thereby, the packet of the terminal Ca1 reaches the terminal Cd.

図5において、リンクLabに障害が発生すると、スイッチSaの検出部302は、その障害発生を検出する。これにより、設定部303では、スイッチSaのポート2をリンクアップさせることで、スイッチSa〜Sc間が通信可能な状態となる。なお、スイッチSc〜Sd間のリンクLcdについては、常時リンクアップ状態としておいてもよく、スイッチSa〜Sc間がリンクアップ状態になったことを契機としてリンクダウン状態からリンクアップ状態に設定変更することとしてもよい。   In FIG. 5, when a failure occurs in the link Lab, the detection unit 302 of the switch Sa detects the failure occurrence. As a result, the setting unit 303 links the port 2 of the switch Sa so that the switches Sa to Sc can communicate with each other. The link Lcd between the switches Sc to Sd may be always in the link up state, and the setting is changed from the link down state to the link up state when the switch Sa to Sc is in the link up state. It is also possible.

また、スイッチSaでは、リンクLabの障害発生を検出すると、リンクLabに接続されている接続元であるポート1に対応するMACアドレス(端末CdのMACアドレス)を、MACアドレス学習テーブルTaから消去する。これにより、運用系の経路への誤った転送を防止する。   Further, when the switch Sa detects the occurrence of a failure in the link Lab, the switch Sa deletes the MAC address (the MAC address of the terminal Cd) corresponding to the connection source port 1 connected to the link Lab from the MAC address learning table Ta. . This prevents erroneous transfer to the active route.

つぎに、図6において、スイッチSaは、設定部303により、unknownユニキャストパケットUP1,UP2を生成する。unknownユニキャストパケットUP1,UP2は、送信元アドレスを、接続元ポートであるポート1以外のポート2〜4のうち、MACアドレス学習テーブルTaに学習されているMACアドレス(図6では、端末Ca1,Ca2のMACアドレス)とする。そして、宛先を記憶部300(メモリ202)に記憶された不使用MACアドレス(図6では、「unknown」と表記)とする。   Next, in FIG. 6, the switch Sa uses the setting unit 303 to generate unknown unicast packets UP1 and UP2. In the unknown unicast packets UP1 and UP2, the MAC addresses learned in the MAC address learning table Ta among the ports 2 to 4 other than the port 1 that is the connection source port (in FIG. Ca2 MAC address). The destination is an unused MAC address (indicated as “unknown” in FIG. 6) stored in the storage unit 300 (memory 202).

図7では、スイッチSaは、unknownユニキャストパケットUP1,UP2をポート2から送信する。送信されたunknownユニキャストパケットUP1,UP2は、待機系の経路を経由して、スイッチSc,Sdに転送される。また、スイッチSdでは、リンクアップ状態のままのリンクLbdを経由してスイッチSbにも転送される。   In FIG. 7, the switch Sa transmits unknown unicast packets UP 1 and UP 2 from the port 2. The transmitted unknown unicast packets UP1 and UP2 are transferred to the switches Sc and Sd via the standby path. In the switch Sd, the data is also transferred to the switch Sb via the link Lbd in the link-up state.

スイッチSdでは、MACアドレス学習テーブルTdにおいて、unknownユニキャストパケットUP1がポート2から受信されると、ポート2に対応するMACアドレスとして、unknownユニキャストパケットUP1の送信元アドレスである端末Ca1のMACアドレスをMACアドレス学習テーブルTdに書き込む。そして、ポート1に対応する端末Ca1のMACアドレスをMACアドレス学習テーブルTdから消去する。   In the switch Sd, when the unknown unicast packet UP1 is received from the port 2 in the MAC address learning table Td, the MAC address of the terminal Ca1 that is the transmission source address of the unknown unicast packet UP1 is used as the MAC address corresponding to the port 2. Is written in the MAC address learning table Td. Then, the MAC address of the terminal Ca1 corresponding to the port 1 is deleted from the MAC address learning table Td.

同様に、MACアドレス学習テーブルTdにおいて、unknownユニキャストパケットUP2がポート2から受信されると、ポート2に対応するMACアドレスとして、unknownユニキャストパケットUP2の送信元アドレスである端末Ca2のMACアドレスをMACアドレス学習テーブルTdに書き込む。そして、ポート1に対応する端末Ca2のMACアドレスをMACアドレス学習テーブルTdから消去する。   Similarly, when the unknown unicast packet UP2 is received from the port 2 in the MAC address learning table Td, the MAC address of the terminal Ca2 that is the transmission source address of the unknown unicast packet UP2 is used as the MAC address corresponding to the port 2. Write to the MAC address learning table Td. Then, the MAC address of the terminal Ca2 corresponding to the port 1 is deleted from the MAC address learning table Td.

このように、unknownユニキャストパケットUP1,UP2は、スイッチSb〜Sdには転送されるが、宛先が不使用MACアドレスであるため、端末Ca1,Ca2,CdではMACアドレスが一致せず受信できない。   Thus, although the unknown unicast packets UP1 and UP2 are transferred to the switches Sb to Sd, since the destination is an unused MAC address, the terminals Ca1, Ca2 and Cd do not match and cannot be received.

このように、対象となるネットワーク内のスイッチSb〜Sdにはマルチキャストと同様に行き渡ってアドレス変更が必要なスイッチSdに通知され、スイッチSdにおいて通常どおりMACアドレス学習テーブルTdが更新される。その一方で、unknownユニキャストパケットUP1,UP2は、端末Ca1,Ca2,Cdでは受信されないため、受信負荷の低減化を図ることができる。   As described above, the switches Sb to Sd in the target network are notified to the switch Sd that needs to change the address in the same manner as multicast, and the MAC address learning table Td is updated as usual in the switch Sd. On the other hand, the unknown unicast packets UP1 and UP2 are not received by the terminals Ca1, Ca2 and Cd, so that the reception load can be reduced.

(MACアドレス変更通知例2)
図8〜図11は、MACアドレス変更通知例2を示す説明図である。MACアドレス変更通知の具体例2では、複数のVLAN(図8〜図11では2つ)が設定されている場合のMACアドレス変更通知を示している。図8〜図11において、Sa〜Seはスイッチであり、Ca1,Ca2,Cd、Ceは、端末である。また、Lxy(x,yは任意のアルファベット。)は、スイッチSx〜Sy間のリンクを示す。たとえば、リンクLabは、スイッチSa〜Sb間のリンクである。
(MAC address change notification example 2)
8 to 11 are explanatory diagrams illustrating MAC address change notification example 2. FIG. Specific example 2 of the MAC address change notification shows the MAC address change notification when a plurality of VLANs (two in FIG. 8 to FIG. 11) are set. 8 to 11, Sa to Se are switches, and Ca1, Ca2, Cd, and Ce are terminals. Lxy (x and y are arbitrary alphabets) represents a link between the switches Sx to Sy. For example, the link Lab is a link between the switches Sa to Sb.

図8〜図11において、スイッチSa,Sdの図形の周囲に記述した数字はポート番号である。また、TaはスイッチSaのMACアドレス学習テーブルを示しており、TdはスイッチSdのMACアドレス学習テーブルを示している。MACアドレス学習テーブルTaは、ポート番号とMACアドレスを対応させたテーブルである。たとえば、MACアドレス学習テーブルTaの先頭レコードでは、ポート1と端末CdのMACアドレスが対応していることを示している。   8 to 11, the numbers described around the figures of the switches Sa and Sd are port numbers. Further, Ta represents the MAC address learning table of the switch Sa, and Td represents the MAC address learning table of the switch Sd. The MAC address learning table Ta is a table in which port numbers are associated with MAC addresses. For example, the first record of the MAC address learning table Ta indicates that the port 1 corresponds to the MAC address of the terminal Cd.

また、VLaは、スイッチSaが保持しているVLANテーブルである。図8〜図11では、端末Ca1,Cd,スイッチSaのポート1〜3,スイッチSb〜SdがVLAN1に所属しており、端末Ca2,Ce,スイッチSaのポート4,5,スイッチSeがVLAN2に所属しているものとする。   VLa is a VLAN table held by the switch Sa. 8 to 11, the terminals Ca1 and Cd, the ports 1 to 3 of the switch Sa, and the switches Sb to Sd belong to the VLAN 1, and the terminals Ca2, Ce and the ports 4, 5, and the switch Se of the switch Sa are assigned to the VLAN 2. Assume that you belong.

また、VLAN1では、スイッチSa,Sb,Sdの経路(リンクLab,Lbd)を運用系の経路とし、スイッチSa,Sc,Sdの経路(リンクLac,Lcd)を待機系の経路とする。したがって、通常は、運用系の経路を利用してパケットが通信されるが、運用系の経路上で障害が発生した場合は、待機系の経路に切り替えられるものとする。たとえば、リンクLabで障害が発生した場合は、待機系の経路がリンクアップして通信可能な状態となる。   In the VLAN 1, the paths of the switches Sa, Sb, and Sd (links Lab and Lbd) are used as active paths, and the paths of the switches Sa, Sc, and Sd (links Lac and Lcd) are used as standby paths. Therefore, normally, packets are communicated using the active route, but when a failure occurs on the active route, the packet is switched to the standby route. For example, when a failure occurs in the link Lab, the standby path is linked up so that communication is possible.

図8では、端末Cdを宛先とする端末Ca1からのパケットは、スイッチSaのポート3で受信される。そして、スイッチSaでは、MACアドレス学習テーブルTaを参照することにより、宛先である端末CdのMACアドレスに対応するポート1から転送される。転送されたパケットは、リンクLab、スイッチSb、リンクLbdを経由して、スイッチSdのポート1に受信される。スイッチSdでは、MACアドレス学習テーブルTdを参照することにより、宛先である端末CdのMACアドレスに対応するポート3から転送される。これにより、端末Ca1のパケットが端末Cdに到達する。   In FIG. 8, the packet from the terminal Ca1 destined for the terminal Cd is received by the port 3 of the switch Sa. Then, in the switch Sa, by referring to the MAC address learning table Ta, transfer is performed from the port 1 corresponding to the MAC address of the destination terminal Cd. The transferred packet is received by the port 1 of the switch Sd via the link Lab, the switch Sb, and the link Lbd. In the switch Sd, by referring to the MAC address learning table Td, the transfer is performed from the port 3 corresponding to the MAC address of the destination terminal Cd. Thereby, the packet of the terminal Ca1 reaches the terminal Cd.

図9において、リンクLabに障害が発生すると、スイッチSaの検出部302は、その障害発生を検出する。これにより、設定部303では、スイッチSaのポート2をリンクアップさせることで、スイッチSa〜Sc間が通信可能な状態となる。なお、スイッチSc〜Sd間のリンクLcdについては、常時リンクアップ状態としておいてもよく、スイッチSa〜Sc間がリンクアップ状態になったことを契機としてリンクダウン状態からリンクアップ状態に設定変更することとしてもよい。   In FIG. 9, when a failure occurs in the link Lab, the detection unit 302 of the switch Sa detects the failure occurrence. As a result, the setting unit 303 links the port 2 of the switch Sa so that the switches Sa to Sc can communicate with each other. The link Lcd between the switches Sc to Sd may be always in the link up state, and the setting is changed from the link down state to the link up state when the switch Sa to Sc is in the link up state. It is good as well.

また、スイッチSaでは、リンクLabの障害発生を検出すると、リンクLabに接続されている接続元であるポート1に対応するMACアドレス(端末CdのMACアドレス)を、MACアドレス学習テーブルTaから消去する。これにより、運用系だった経路への誤った転送を防止する。   Further, when the switch Sa detects the occurrence of a failure in the link Lab, the switch Sa deletes the MAC address (the MAC address of the terminal Cd) corresponding to the connection source port 1 connected to the link Lab from the MAC address learning table Ta. . This prevents erroneous transfer to the path that was the active system.

つぎに、図10において、スイッチSaは、設定部303により、unknownユニキャストパケットUP1を生成する。unknownユニキャストパケットUP1は、送信元アドレスを、接続元ポートであるポート1以外のポート2〜5のうち、ポート1と同一VLAN(VLAN1)であるポート3に対応するMACアドレス(図10では、端末Ca1のMACアドレス)とする。そして、宛先を記憶部300(メモリ202)に記憶された不使用MACアドレス(図10では、「unknown」と表記)とする。   Next, in FIG. 10, the switch Sa uses the setting unit 303 to generate an unknown unicast packet UP1. The unknown unicast packet UP1 has a MAC address corresponding to the port 3 that is the same VLAN (VLAN1) as the port 1 among the ports 2 to 5 other than the port 1 that is the connection source port (in FIG. 10, MAC address of terminal Ca1). The destination is assumed to be an unused MAC address (indicated as “unknown” in FIG. 10) stored in the storage unit 300 (memory 202).

図11では、スイッチSaは、unknownユニキャストパケットUP1をポート2から送信する。ポート5は異なるVLAN2であるため、ポート5からは送信されない。送信されたunknownユニキャストパケットUP1は、待機系の経路を経由して、スイッチSc,Sdに転送される。また、スイッチSdでは、リンクアップ状態のままのリンクLbdを経由してスイッチSbにも転送される。   In FIG. 11, the switch Sa transmits an unknown unicast packet UP1 from the port 2. Since port 5 is a different VLAN 2, it is not transmitted from port 5. The transmitted unknown unicast packet UP1 is transferred to the switches Sc and Sd via the standby path. In the switch Sd, the data is also transferred to the switch Sb via the link Lbd in the link-up state.

スイッチSdでは、MACアドレス学習テーブルTdにおいて、unknownユニキャストパケットUP1がポート2から受信されると、ポート2に対応するMACアドレスとして、unknownユニキャストパケットUP1の送信元アドレスである端末Ca1のMACアドレスをMACアドレス学習テーブルTdに書き込む。そして、ポート1に対応する端末Ca1のMACアドレスをMACアドレス学習テーブルTdから消去する。   In the switch Sd, when the unknown unicast packet UP1 is received from the port 2 in the MAC address learning table Td, the MAC address of the terminal Ca1 that is the transmission source address of the unknown unicast packet UP1 is used as the MAC address corresponding to the port 2. Is written in the MAC address learning table Td. Then, the MAC address of the terminal Ca1 corresponding to the port 1 is deleted from the MAC address learning table Td.

このように、unknownユニキャストパケットUP1は、スイッチSb〜Sdには転送されるが、宛先が不使用MACアドレスであるため、端末Ca1,Ca2,CdではMACアドレスが一致せず受信できない。   Thus, although the unknown unicast packet UP1 is transferred to the switches Sb to Sd, since the destination is an unused MAC address, the terminals Ca1, Ca2, and Cd do not match the MAC addresses and cannot be received.

このように、対象となるVLAN1内のスイッチSb〜Sdにはマルチキャストと同様に行き渡り、スイッチSdにおいて通常どおりMACアドレス学習テーブルTdが更新される。その一方で、unknownユニキャストパケットUP1は、端末Ca1,Ca2,Cdでは受信されないため、受信負荷の低減化を図ることができる。   In this manner, the switches Sb to Sd in the target VLAN 1 are distributed in the same manner as multicast, and the MAC address learning table Td is updated in the switch Sd as usual. On the other hand, since the unknown unicast packet UP1 is not received by the terminals Ca1, Ca2, and Cd, the reception load can be reduced.

また、接続元ポートであるポート1とは異なるVLAN2に所属しているポートに関しては、unknownユニキャストパケットが生成されないため、unknownユニキャストパケット数の低減化を図ることができる。   In addition, since an unknown unicast packet is not generated for a port belonging to VLAN 2 that is different from port 1 that is a connection source port, the number of unknown unicast packets can be reduced.

(アドレス変更通知処理手順)
図12は、アドレス変更通知処理手順を示すフローチャートである。図12に示したフローチャートは、図4〜図11の例では、スイッチSaで実行されることとなる。
(Address change notification processing procedure)
FIG. 12 is a flowchart showing the address change notification processing procedure. The flowchart shown in FIG. 12 is executed by the switch Sa in the examples of FIGS.

まず、スイッチSは、検出部302により、運用系の経路の障害発生の検出を待ち受ける(ステップS1201:No)。障害発生が検出された場合(ステップS1201:Yes)、スイッチSは、設定部303により、待機系ポート(待機系のリンクに接続されているポート。MACアドレス変更通知例1,2では、ポート2)を、運用可能状態に設定する(ステップS1202)。   First, the switch S waits for detection of the occurrence of a failure in the active system path by the detection unit 302 (step S1201: No). When the occurrence of a failure is detected (step S1201: Yes), the switch S causes the setting unit 303 to switch the standby port (the port connected to the standby link. In the MAC address change notification examples 1 and 2, the port 2 ) Is set to an operable state (step S1202).

そして、スイッチSは、運用系ポートに対応するMACアドレスをMACアドレス学習テーブルTから消去する(ステップS1203)。MACアドレス変更通知例1,2では、MACアドレス学習テーブルTaのポート1に対応する端末CdのMACアドレスを、MACアドレス学習テーブルTaから消去する。   Then, the switch S deletes the MAC address corresponding to the active port from the MAC address learning table T (step S1203). In MAC address change notification examples 1 and 2, the MAC address of the terminal Cd corresponding to port 1 of the MAC address learning table Ta is deleted from the MAC address learning table Ta.

そして、スイッチSは、他のVLAN(MACアドレス変更通知例2では、接続元ポートであるポート1が所属するVLAN1とは異なるVLAN2)があるか否かを判断する(ステップS1204)。他のVLANがない場合(ステップS1204:No)、スイッチSは、接続元ポート以外のポートのMACアドレスをMACアドレス学習テーブルTから抽出し(ステップS1205)、ステップS1207に移行する。   Then, the switch S determines whether or not there is another VLAN (in the MAC address change notification example 2, VLAN 2 different from VLAN 1 to which the port 1 that is the connection source port belongs) (step S1204). When there is no other VLAN (step S1204: No), the switch S extracts a MAC address of a port other than the connection source port from the MAC address learning table T (step S1205), and proceeds to step S1207.

一方、他のVLANがある場合(ステップS1204:Yes)、スイッチSは、接続元ポート以外で、かつ、接続元ポートと同一VLAN内のポートのMACアドレスをMACアドレス学習テーブルTから抽出し(ステップS1206)、ステップS1207に移行する。   On the other hand, when there is another VLAN (step S1204: Yes), the switch S extracts from the MAC address learning table T the MAC address of the port other than the connection source port and in the same VLAN as the connection source port (step S1204). S1206), the process proceeds to step S1207.

ステップS1207では、スイッチSは、設定部303により、ステップS1205またはS1206での抽出MACアドレスを送信元とし、不使用MACアドレスを宛先とするunknownユニキャストパケットを生成する(ステップS1207)。そして、スイッチSは、送信部304により、生成されたunknownユニキャストパケットを接続元ポート以外の他のポートから送信する(ステップS1208)。これにより、MACアドレス変更通知処理の一連の処理を終了する。   In step S1207, the switch S uses the setting unit 303 to generate an unknown unicast packet having the extracted MAC address in step S1205 or S1206 as the transmission source and the unused MAC address as the destination (step S1207). Then, the switch S causes the transmission unit 304 to transmit the generated unknown unicast packet from a port other than the connection source port (step S1208). Thereby, a series of processes of the MAC address change notification process is completed.

(MACアドレス変更処理)
図13は、MACアドレス変更処理手順を示すフローチャートである。図13のフローチャートは、unknownユニキャストパケットを受信したスイッチが実行する手順である。
(MAC address change processing)
FIG. 13 is a flowchart showing a procedure for changing the MAC address. The flowchart of FIG. 13 is a procedure executed by a switch that has received an unknown unicast packet.

まず、スイッチSは、unknownユニキャストパケットの受信を待ち受ける(ステップS1301:No)。unknownユニキャストパケットを受信した場合(ステップS1301:Yes)、スイッチSは、MACアドレス学習テーブルTにおいて、unknownユニキャストパケットの受信ポートに対応するMACアドレスとして、unknownユニキャストパケットの送信元MACアドレスを登録する(ステップS1302)。   First, the switch S waits for reception of an unknown unicast packet (step S1301: No). When receiving the unknown unicast packet (step S1301: Yes), the switch S uses the MAC address learning table T as the MAC address corresponding to the receiving port of the unknown unicast packet, with the source MAC address of the unknown unicast packet. Registration is performed (step S1302).

そして、スイッチSは、MACアドレス学習テーブルTにおいて、送信元MACアドレスが登録されていたポートから送信元MACアドレスを消去する(ステップS1302)。このあと、スイッチSは、unknownユニキャストパケットの受信ポート以外のポートからunknownユニキャストパケットを転送する(ステップS1304)。   Then, the switch S deletes the transmission source MAC address from the port in which the transmission source MAC address is registered in the MAC address learning table T (step S1302). Thereafter, the switch S transfers the unknown unicast packet from a port other than the receiving port of the unknown unicast packet (step S1304).

このように、上述したアドレス変更通知によれば、unknownユニキャストパケットの宛先MACアドレスは、いずれの端末にも使用されていないMACアドレスである。したがって、unknownユニキャストパケットを受信したスイッチSは、未学習のMACアドレスであると判断し、unknownユニキャストパケットの受信ポート以外の全ポートから転送する。また、受信ポートに対応するMACアドレスとして、unknownユニキャストパケットの送信元MACアドレスを登録することで学習することができる。   Thus, according to the address change notification described above, the destination MAC address of the unknown unicast packet is a MAC address that is not used by any terminal. Therefore, the switch S that has received the unknown unicast packet determines that it is an unlearned MAC address and transfers it from all ports other than the reception port of the unknown unicast packet. Further, it is possible to learn by registering the transmission source MAC address of the unknown unicast packet as the MAC address corresponding to the reception port.

これに対し、いずれの端末も自端末宛のパケットではないと判断するため、マルチキャストパケットのような受信処理が、端末ではなされない。結果として、不要なマルチキャストパケットを受信処理する端末の処理負荷が軽減され、端末におけるアプリケーションの動作が遅くなるなどの弊害を防止することができる。   On the other hand, since it is determined that none of the terminals is a packet addressed to the own terminal, reception processing such as a multicast packet is not performed at the terminal. As a result, the processing load on the terminal that receives and processes unnecessary multicast packets can be reduced, and adverse effects such as the slow operation of applications in the terminal can be prevented.

(MACアドレス変更通知例3)
図14および図15は、MACアドレス変更通知例3を示す説明図である。図4〜図7に示したMACアドレス変更通知例1では、スイッチSaの配下の端末Ca1,Ca2のMACアドレスを送信元MACアドレスとし、不使用MACアドレスを宛先MACアドレスとしたunknownユニキャストパケットUP1,UP2を送信した。これに対し、MACアドレス変更通知例3では、指定ポートに対応するMACアドレスまたは指定MACアドレスを送信元MACアドレスとするunknownユニキャストパケットを送信する例である。
(MAC address change notification example 3)
14 and 15 are explanatory diagrams showing MAC address change notification example 3. FIG. In the MAC address change notification example 1 shown in FIG. 4 to FIG. 7, the unknown unicast packet UP1 with the MAC addresses of the terminals Ca1 and Ca2 under the switch Sa as the source MAC address and the unused MAC address as the destination MAC address. , UP2 was sent. On the other hand, the MAC address change notification example 3 is an example in which an unknown unicast packet having the MAC address corresponding to the designated port or the designated MAC address as the transmission source MAC address is transmitted.

MACアドレス変更通知例1では、スイッチSaの配下の端末数分のunknownユニキャストパケットを生成して送信していたが、MACアドレス変更通知例3では、unknownユニキャストパケットの生成数を減らすこととなる。   In MAC address change notification example 1, unknown unicast packets for the number of terminals under the switch Sa are generated and transmitted. However, in MAC address change notification example 3, the number of unknown unicast packets generated is reduced. Become.

このように、たとえば、指定されたMACアドレスを端末Ca1のMACアドレスとした場合、特定のMACアドレスに限定する利用シーンとしては以下の2つが想定される。1つは、端末Ca2と端末Cdとの間の通信は必ず端末Ca2から始めるため、端末Ca2については、unknownユニキャストパケットを利用した学習が不要であるケースが考えられる。もう1つは、端末Ca2と端末Cdとの間の通信に時間的に急ぐ必要がなく、エージアウト後の復旧でも問題ないというケースが考えられる。   Thus, for example, when the designated MAC address is the MAC address of the terminal Ca1, the following two cases are assumed as usage scenes limited to a specific MAC address. First, since communication between the terminal Ca2 and the terminal Cd always starts from the terminal Ca2, there may be a case where learning using the unknown unicast packet is unnecessary for the terminal Ca2. The other case is considered that there is no need to rush in time for communication between the terminal Ca2 and the terminal Cd, and there is no problem even with recovery after aging out.

なお、MACアドレス変更通知例3は、図4および図5まではMACアドレス変更通知例1と同一内容であるため、それ以降について図14および図15を用いて説明する。   Since MAC address change notification example 3 has the same contents as MAC address change notification example 1 up to FIGS. 4 and 5, the subsequent steps will be described with reference to FIGS. 14 and 15.

図14において、スイッチSaは、unknownユニキャストパケットUP1を生成する。MACアドレス変更通知例1のように、unknownユニキャストパケットUP2は生成されない。具体的には、指定ポートをポート3に設定しておくことにより、ポート3,4のうち指定ポート3に対応する端末Ca1のMACアドレスを送信元MACアドレスとしたunknownユニキャストパケットUP1のみが生成される。   In FIG. 14, the switch Sa generates an unknown unicast packet UP1. As in the MAC address change notification example 1, the unknown unicast packet UP2 is not generated. Specifically, by setting the designated port as port 3, only the unknown unicast packet UP1 with the MAC address of the terminal Ca1 corresponding to the designated port 3 among the ports 3 and 4 as the source MAC address is generated. Is done.

また、ポート指定ではなく、指定MACアドレス(ここでは、端末Ca1のMACアドレス)を設定しておくことにより、指定MACアドレスである端末Ca1のMACアドレスを送信元MACアドレスとしたunknownユニキャストパケットUP1のみが生成される。   Further, by setting a designated MAC address (in this case, the MAC address of the terminal Ca1) instead of a port designation, an unknown unicast packet UP1 with the MAC address of the terminal Ca1 as the designated MAC address as the transmission source MAC address. Only is generated.

そして、図15において、スイッチSaは、unknownユニキャストパケットUP1を送信する。送信されたunknownユニキャストパケットUP1は、待機系の経路を経由して、スイッチSc,Sdに転送される。また、スイッチSdでは、リンクアップ状態のままのリンクLbdを経由してスイッチSbにも転送される。   In FIG. 15, the switch Sa transmits an unknown unicast packet UP1. The transmitted unknown unicast packet UP1 is transferred to the switches Sc and Sd via the standby path. In the switch Sd, the data is also transferred to the switch Sb via the link Lbd in the link-up state.

スイッチSdでは、MACアドレス学習テーブルTdにおいて、unknownユニキャストパケットUP1がポート2から受信されると、ポート2に対応するMACアドレスとして、unknownユニキャストパケットUP1の送信元アドレスである端末Ca1のMACアドレスをMACアドレス学習テーブルTdに書き込む。そして、ポート1に対応する端末Ca1のMACアドレスをMACアドレス学習テーブルTdから消去する。端末Ca2のMACアドレスは消去されない。   In the switch Sd, when the unknown unicast packet UP1 is received from the port 2 in the MAC address learning table Td, the MAC address of the terminal Ca1 that is the transmission source address of the unknown unicast packet UP1 is used as the MAC address corresponding to the port 2. Is written in the MAC address learning table Td. Then, the MAC address of the terminal Ca1 corresponding to the port 1 is deleted from the MAC address learning table Td. The MAC address of the terminal Ca2 is not erased.

MACアドレス変更通知例3では、unknownユニキャストパケットUP1は、スイッチSb〜Sdには転送されるが、宛先が不使用MACアドレスであるため、端末Ca1,Ca2,CdではMACアドレスが一致せず受信できない。   In MAC address change notification example 3, the unknown unicast packet UP1 is transferred to the switches Sb to Sd, but since the destination is an unused MAC address, the MAC addresses do not match at the terminals Ca1, Ca2, and Cd. Can not.

このように、対象となるネットワーク内のスイッチSb〜Sdにはマルチキャストと同様に行き渡ってアドレス変更が必要なスイッチSdに通知され、スイッチSdにおいて通常どおりMACアドレス学習テーブルTdが更新される。その一方で、unknownユニキャストパケットUP1は、端末Ca1,Ca2,Cdでは受信されないため、受信負荷の低減化を図ることができる。   As described above, the switches Sb to Sd in the target network are notified to the switch Sd that needs to change the address in the same manner as multicast, and the MAC address learning table Td is updated as usual in the switch Sd. On the other hand, since the unknown unicast packet UP1 is not received by the terminals Ca1, Ca2, and Cd, the reception load can be reduced.

なお、図15の段階では、スイッチSdのMACアドレス学習テーブルTdにおいて、ポート1に端末Ca2のMACアドレスが残されたままになっている。しかしながら、その後、端末Ca1から端末CdのMACアドレスを宛先とするパケットが送信されたときに、そのパケットがスイッチSdのポート2から受信されることで、アドレス変更通知例1と同じように、ポート2に端末Ca2のMACアドレスが学習されるため問題ない。   In the stage of FIG. 15, the MAC address of the terminal Ca2 remains in the port 1 in the MAC address learning table Td of the switch Sd. However, when a packet destined for the MAC address of the terminal Cd is transmitted from the terminal Ca1 thereafter, the packet is received from the port 2 of the switch Sd. 2 has no problem because the MAC address of the terminal Ca2 is learned.

また、ポート1に対応する端末Ca2のMACアドレスは、エージアウトされることにより、MACアドレス学習テーブルTdから消去されるため問題ない。エージアウトは、通信のない装置のMACアドレスをMACアドレス学習テーブルから消去する仕組みである。具体的には、MACアドレス学習テーブルTにMACアドレスの保持時間をポートごとに設定しておき、保持時間内にそのMACアドレスからのパケットが受信されなかったポートについて消去動作を実行する。   In addition, since the MAC address of the terminal Ca2 corresponding to the port 1 is deleted from the MAC address learning table Td by being aged out, there is no problem. Age-out is a mechanism for erasing the MAC address of a device without communication from the MAC address learning table. Specifically, a MAC address holding time is set for each port in the MAC address learning table T, and an erasing operation is executed for a port for which a packet from the MAC address has not been received within the holding time.

図15の場合、リンクLabの障害発生により、スイッチSdのポート1からは、送信元MACアドレスがCa2のMACアドレスであるパケットは受信されなくなる。したがって、スイッチSdのMACアドレス学習テーブルTdでは、ポート1に対応する端末Ca1のMACアドレスが消去される。   In the case of FIG. 15, due to the failure of the link Lab, a packet whose source MAC address is the MAC address of Ca2 is not received from the port 1 of the switch Sd. Therefore, the MAC address of the terminal Ca1 corresponding to the port 1 is deleted from the MAC address learning table Td of the switch Sd.

ポート1に対応する端末Ca1のMACアドレスがMACアドレス学習テーブルTdから消去されると、端末Ca2のMACアドレスはunknownの状態になるため、端末Cdから端末Ca2宛てのパケットがスイッチSdに受信された場合には、スイッチSdの全ポートにフラッディングされる。このフラッディングによってスイッチSdのポート2から送信されたパケットが端末Ca2に到達し、端末Ca2からの応答パケットがスイッチSdのポート2を通ることによって、端末Ca2のMACアドレスが正しいポート(ポート2)に学習されることになる。   When the MAC address of the terminal Ca1 corresponding to the port 1 is deleted from the MAC address learning table Td, the MAC address of the terminal Ca2 is in an unknown state, so that a packet addressed to the terminal Ca2 is received from the terminal Cd by the switch Sd. In such a case, flooding is performed on all the ports of the switch Sd. By this flooding, the packet transmitted from the port 2 of the switch Sd reaches the terminal Ca2, and the response packet from the terminal Ca2 passes through the port 2 of the switch Sd, so that the MAC address of the terminal Ca2 becomes the correct port (port 2). Will be learned.

図16および図17は、アドレス変更通知例3におけるMACアドレス変更通知処理手順を示すフローチャートである。図16では、指定ポートが予め設定されたMACアドレス変更通知処理を示しており、図17では、指定MACアドレスが予め設定されたMACアドレス変更通知処理を示している。なお、図16および図17において、図12と同一ステップには同一ステップ番号を付し、その説明を省略する。   FIGS. 16 and 17 are flowcharts showing the MAC address change notification processing procedure in the address change notification example 3. FIG. 16 shows the MAC address change notification process in which the designated port is preset, and FIG. 17 shows the MAC address change notice process in which the designated MAC address is preset. 16 and 17, the same steps as those in FIG. 12 are denoted by the same step numbers, and the description thereof is omitted.

図16において、ステップS1204で他のVLANがない場合(ステップS1204:No)、スイッチSは、接続元ポート以外の指定ポートのMACアドレスをMACアドレス学習テーブルTから抽出し(ステップS1605)、ステップS1207に移行する。   In FIG. 16, when there is no other VLAN in step S1204 (step S1204: No), the switch S extracts the MAC address of the designated port other than the connection source port from the MAC address learning table T (step S1605), and step S1207. Migrate to

一方、他のVLANがある場合(ステップS1204:Yes)、スイッチSは、接続元ポート以外で、かつ、接続元ポートと同一VLAN内の指定ポートのMACアドレスをMACアドレス学習テーブルTから抽出し(ステップS1606)、ステップS1207に移行する。   On the other hand, when there is another VLAN (step S1204: Yes), the switch S extracts the MAC address of the designated port other than the connection source port and in the same VLAN as the connection source port from the MAC address learning table T ( Step S1606) and the process proceeds to Step S1207.

また、図17では、ステップS1204で他のVLANがない場合(ステップS1204:No)、スイッチSは、接続元ポート以外の指定MACアドレスをMACアドレス学習テーブルから抽出し(ステップS1705)、ステップS1207に移行する。   In FIG. 17, when there is no other VLAN in step S1204 (step S1204: No), the switch S extracts a designated MAC address other than the connection source port from the MAC address learning table (step S1705), and the process proceeds to step S1207. Transition.

一方、他のVLANがある場合(ステップS1204:Yes)、スイッチSは、接続元ポート以外で、かつ、接続元ポートと同一VLAN内の指定MACアドレスをMACアドレス学習テーブルから抽出し(ステップS1706)、ステップS1207に移行する。   On the other hand, when there is another VLAN (step S1204: Yes), the switch S extracts a designated MAC address other than the connection source port and in the same VLAN as the connection source port from the MAC address learning table (step S1706). The process proceeds to step S1207.

以上のことから、本実施の形態によれば、unknownユニキャストパケットの宛先MACアドレスは、いずれの端末にも使用されていないMACアドレスである。したがって、unknownユニキャストパケットを受信したスイッチSは、未学習のMACアドレスであると判断し、unknownユニキャストパケットの受信ポート以外の全ポートから転送する。また、受信ポートに対応するMACアドレスとして、unknownユニキャストパケットの送信元MACアドレスを登録することで学習することができる。   From the above, according to the present embodiment, the destination MAC address of the unknown unicast packet is a MAC address that is not used by any terminal. Therefore, the switch S that has received the unknown unicast packet determines that it is an unlearned MAC address and transfers it from all ports other than the reception port of the unknown unicast packet. Further, it is possible to learn by registering the transmission source MAC address of the unknown unicast packet as the MAC address corresponding to the reception port.

これに対し、いずれの端末も自端末宛のパケットではないと判断するため、マルチキャストパケットのような受信処理が、端末ではなされない。結果として、不要なマルチキャストパケットを受信処理する端末の処理負荷が軽減され、端末におけるアプリケーションの動作が遅くなるなどの弊害を防止することができる。   On the other hand, since it is determined that none of the terminals is a packet addressed to the own terminal, reception processing such as a multicast packet is not performed at the terminal. As a result, the processing load on the terminal that receives and processes unnecessary multicast packets can be reduced, and adverse effects such as the slow operation of applications in the terminal can be prevented.

また、VLANが設定されている場合は、unknownユニキャストパケットは他のVLANには送信されないため、他のVLAN内でのスイッチの受信負荷が軽減される。また、他のVLANでは、unknownユニキャストパケットによるMACアドレス学習テーブルの学習は不要であるため、無駄な学習を防止することができる。   In addition, when the VLAN is set, the unknown unicast packet is not transmitted to the other VLAN, so that the reception load of the switch in the other VLAN is reduced. Further, in other VLANs, learning of the MAC address learning table using an unknown unicast packet is unnecessary, so that useless learning can be prevented.

さらに、ポート指定やMACアドレス指定をしておくことで、早期に学習が必要とされないMACアドレスについては、unknownユニキャストパケットの生成および送信をしなくて済む。したがって、生成されるunknownユニキャストパケットが減少するため、MACアドレスの変更を早期に通知することができる。   Furthermore, by specifying a port and MAC address, it is not necessary to generate and transmit an unknown unicast packet for a MAC address that does not require early learning. Accordingly, since the number of unknown unicast packets generated is reduced, it is possible to notify the MAC address change at an early stage.

T MACアドレス学習テーブル
VL VLANテーブル
S スイッチ
300 記憶部
301 受信部
302 検出部
303 設定部
304 送信部
T MAC address learning table VL VLAN table S switch 300 storage unit 301 reception unit 302 detection unit 303 setting unit 304 transmission unit

Claims (7)

障害発生経路に接続されているポートを検出する検出手段と、
MACアドレス学習テーブルを参照して、前記検出手段によって検出されたポート以外の他のポートに対応する情報処理装置のMACアドレスを送信元とし、ユニキャストアドレスであることを示す情報が設定された不使用のMACアドレスを宛先とするユニキャストパケットを設定する設定手段と、
前記設定手段によって設定されたユニキャストパケットを送信する送信手段と、
を備えることを特徴とするスイッチ。
Detection means for detecting a port connected to the failure occurrence path;
Referring to the MAC address learning table, information indicating that the MAC address of the information processing apparatus corresponding to another port other than the port detected by the detection unit is a transmission source and is a unicast address is set. Setting means for setting a unicast packet destined for the MAC address in use;
Transmitting means for transmitting a unicast packet set by the setting means;
A switch comprising:
前記設定手段は、
前記他のポートのうち、前記検出されたポートと同一VLAN内のポートに対応する情報処理装置のMACアドレスを送信元とし不使用のMACアドレスを宛先とするユニキャストパケットを設定することを特徴とする請求項1に記載のスイッチ。
The setting means includes
A unicast packet having a MAC address of an information processing apparatus corresponding to a port in the same VLAN as the detected port among the other ports as a source and an unused MAC address as a destination is set. The switch according to claim 1.
前記設定手段は、
前記他のポートのうち指定ポートに対応する情報処理装置のMACアドレスを送信元とし不使用のMACアドレスを宛先とするユニキャストパケットを設定することを特徴とする請求項1または2に記載のスイッチ。
The setting means includes
The switch according to claim 1 or 2, wherein a unicast packet having a MAC address of an information processing apparatus corresponding to a designated port among the other ports as a transmission source and a non-use MAC address as a destination is set. .
前記設定手段は、
前記他のポートに対応する情報処理装置のMACアドレスのうち指定MACアドレスを送信元とし不使用のMACアドレスを宛先とするユニキャストパケットを設定することを特徴とする請求項1または2に記載のスイッチ。
The setting means includes
The unicast packet having a designated MAC address as a transmission source and a non-use MAC address as a destination among the MAC addresses of the information processing devices corresponding to the other ports is set. switch.
前記設定手段は、
前記検出されたポートに対応するMACアドレスを前記MACアドレス学習テーブルから消去することを特徴とする請求項1〜4のいずれか一つに記載のスイッチ。
The setting means includes
The switch according to claim 1, wherein a MAC address corresponding to the detected port is deleted from the MAC address learning table.
障害発生経路に接続されているポートを検出する検出工程と、
MACアドレス学習テーブルを参照して、前記検出工程によって検出されたポート以外の他のポートに対応する情報処理装置のMACアドレスを送信元とし、ユニキャストアドレスであることを示す情報が設定された不使用のMACアドレスを宛先とするユニキャストパケットを設定する設定工程と、
前記設定工程によって設定されたユニキャストパケットを送信する送信工程と、
をコンピュータに実行させることを特徴とする通知プログラム。
A detection step of detecting a port connected to the failure occurrence path;
Referring to the MAC address learning table, information indicating that the MAC address of the information processing device corresponding to another port other than the port detected by the detection step is a transmission source and is a unicast address is set. A setting step for setting a unicast packet destined for the used MAC address;
A transmission step of transmitting the unicast packet set by the setting step;
A notification program for causing a computer to execute
障害発生経路に接続されているポートを検出する検出工程と、
MACアドレス学習テーブルを参照して、前記検出工程によって検出されたポート以外の他のポートに対応する情報処理装置のMACアドレスを送信元とし、ユニキャストアドレスであることを示す情報が設定された不使用のMACアドレスを宛先とするユニキャストパケットを設定する設定工程と、
前記設定工程によって設定されたユニキャストパケットを送信する送信工程と、
を含んだことを特徴とする通知方法。
A detection step of detecting a port connected to the failure occurrence path;
Referring to the MAC address learning table, information indicating that the MAC address of the information processing device corresponding to another port other than the port detected by the detection step is a transmission source and is a unicast address is set. A setting step for setting a unicast packet destined for the used MAC address;
A transmission step of transmitting the unicast packet set by the setting step;
The notification method characterized by including.
JP2010065181A 2010-03-19 2010-03-19 Switch, notification program, and notification method Expired - Fee Related JP5533100B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010065181A JP5533100B2 (en) 2010-03-19 2010-03-19 Switch, notification program, and notification method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010065181A JP5533100B2 (en) 2010-03-19 2010-03-19 Switch, notification program, and notification method

Publications (2)

Publication Number Publication Date
JP2011199678A JP2011199678A (en) 2011-10-06
JP5533100B2 true JP5533100B2 (en) 2014-06-25

Family

ID=44877297

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010065181A Expired - Fee Related JP5533100B2 (en) 2010-03-19 2010-03-19 Switch, notification program, and notification method

Country Status (1)

Country Link
JP (1) JP5533100B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103354567B (en) * 2013-07-10 2016-03-16 杭州华三通信技术有限公司 A kind of method and apparatus of synchronized multimedia accessing to control address
JP6549996B2 (en) * 2016-01-27 2019-07-24 アラクサラネットワークス株式会社 Network apparatus, communication method, and network system
CN119697088B (en) * 2024-12-16 2025-09-26 烽火通信科技股份有限公司 MAC address learning delayed validation method, device, network element equipment and medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004186745A (en) * 2002-11-29 2004-07-02 Hitachi Cable Ltd Switching hub
JP2005175591A (en) * 2003-12-08 2005-06-30 Hitachi Cable Ltd Switching hub
JP2007151041A (en) * 2005-11-30 2007-06-14 Hitachi Cable Ltd Switching hub for interconnection

Also Published As

Publication number Publication date
JP2011199678A (en) 2011-10-06

Similar Documents

Publication Publication Date Title
CN110113259B (en) Path state notification method, path switching method, forwarding equipment and system
US20190020574A1 (en) Failure protection for traffic-engineered bit indexed explicit replication
EP2005650B1 (en) Connecting multi-hop mesh networks using mac bridge
CN110417569B (en) Network link fault processing method and tunnel endpoint equipment
US20140301401A1 (en) Providing aggregation link groups in logical network device
CN108111432B (en) Message forwarding method and device
CN107579900B (en) Method, device and system for accessing VX L AN network from V L AN network
US7864666B2 (en) Communication control apparatus, method and program thereof
JP6355536B2 (en) Relay system and switch device
US10063467B2 (en) Virtual extensible local area network performance routing
CN104579727A (en) Method and device for managing network connection of network nodes
CN103944818A (en) Method of processing message in multi-return access overlay network and system
US10419337B2 (en) Methods, routing device and further routing device for managing data frames in switched networks
JP2020113836A (en) Information processing device, information processing system, and setting program
JP2015211374A (en) Information processing system, control method for information processing system, and control program for management device
JP4729117B2 (en) Edge switch and forwarding table rewriting method
CN101909006B (en) BFD (Bidirectional Forwarding Detection) message sending and receiving methods as well as device and communication system thereof
EP2521275A1 (en) Method and device for tunnel protection
JP6375206B2 (en) Relay system and switch device
CN102970160A (en) Method and device for assisting in rapid communication between monitor terminal and standby server
JP2017121056A (en) Method, device, and system for implementing packet loss detection
JP5533100B2 (en) Switch, notification program, and notification method
JP2005175591A (en) Switching hub
WO2015117465A1 (en) Fdb updating method, device, node, and system in ring network
CN105743784A (en) Switching control method and device in deploying high capacity business

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130206

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131113

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20131119

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140120

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20140401

R150 Certificate of patent or registration of utility model

Ref document number: 5533100

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140414

LAPS Cancellation because of no payment of annual fees