patents.google.com

JP2020078011A - Switch control device, switch control method, and switch control program - Google Patents

  • ️Thu May 21 2020

図1は、本発明の実施形態に係わる通信システムの一例を示す。この実施例では、レイヤ2ネットワーク100は、VLANにより複数のセグメントに分離される。   FIG. 1 shows an example of a communication system according to an embodiment of the present invention. In this example, the layer 2 network 100 is separated into multiple segments by VLANs.

レイヤ2ネットワーク100は、特に図示しないが、複数のレイヤ2スイッチ(L2SW)から構成され、MAC(Media Access Control)アドレスに従ってフレームを転送する。レイヤ2スイッチは、各フレームの宛先MACアドレスおよび送信元MACアドレスに基づいてそのフレームを処理する。たとえば、レイヤ2スイッチは、宛先MACアドレスに基づいてフレームを転送する。また、レイヤ2スイッチは、宛先MACアドレスおよび/または送信元MACアドレスに基づいてフレームをフィルタリングすることもできる。   Although not particularly shown, the layer 2 network 100 is composed of a plurality of layer 2 switches (L2SW) and transfers a frame according to a MAC (Media Access Control) address. The layer 2 switch processes the frame based on the destination MAC address and the source MAC address of each frame. For example, the layer 2 switch transfers the frame based on the destination MAC address. The layer 2 switch may also filter frames based on destination MAC address and / or source MAC address.

図1に示す通信システムは、複数の通信グループにより共有され得る。図1に示す例では、通信システムは、通信グループ#1および通信グループ#2により共有されている。ただし、通信グループ#1および通信グループ#2は、VLANにより互いに分離されている。   The communication system shown in FIG. 1 may be shared by a plurality of communication groups. In the example shown in FIG. 1, the communication system is shared by the communication group # 1 and the communication group # 2. However, the communication group # 1 and the communication group # 2 are separated from each other by the VLAN.

各通信グループは、複数のマシンを収容することができる。図1に示す例では、マシンAは、通信グループ#1に属している。また、マシンBおよびマシンCは、通信グループ#2に属している。「マシン」は、1台の物理的なコンピュータであってもよいし、仮想マシンであってもよい。なお、各マシンのIPアドレスは以下の通りである。
マシンA:192.168.10.1
マシンB:192.168.20.1
マシンC:192.168.20.2
また、各マシンのMACアドレスは以下の通りである。
マシンA:aaa
マシンB:bbb
マシンC:ccc
Each communication group can accommodate multiple machines. In the example shown in FIG. 1, the machine A belongs to the communication group # 1. The machines B and C belong to the communication group # 2. The “machine” may be one physical computer or a virtual machine. The IP address of each machine is as follows.
Machine A: 192.168.10.1
Machine B: 192.168.20.1
Machine C: 192.168.20.2
The MAC address of each machine is as follows.
Machine A: aaa
Machine B: bbb
Machine C: ccc

各マシンは、仮想スイッチを介してレイヤ2ネットワーク100に接続される。具体的には、マシンAは、仮想スイッチ1を介してレイヤ2ネットワーク100に接続される。同様に、マシンBおよびマシンCは、それぞれ仮想スイッチ2および仮想スイッチ3を介してレイヤ2ネットワーク100に接続される。なお、仮想スイッチは、対応するマシンの中に内蔵されていてもよい。或いは、マシンおよび対応する仮想マシンは、互いに異なるハードウェアにより実現されてもよい。また、図1に示す例では、1台のマシンが1個の仮想マシンを介してレイヤ2ネットワーク100に接続されるが、本発明はこの構成に限定されるものではない。すなわち、1個の仮想スイッチに複数のマシンが接続されていてもよい。さらに、図1に示す例では、各マシンが仮想スイッチを介してレイヤ2ネットワーク100に接続されるが、本発明はこの構成に限定されるものではない。すなわち、各マシンが物理スイッチを介してレイヤ2ネットワーク100に接続されるようにしてもよい。   Each machine is connected to the layer 2 network 100 via a virtual switch. Specifically, the machine A is connected to the layer 2 network 100 via the virtual switch 1. Similarly, the machines B and C are connected to the layer 2 network 100 via the virtual switch 2 and the virtual switch 3, respectively. The virtual switch may be built in the corresponding machine. Alternatively, the machine and the corresponding virtual machine may be implemented by different hardware. Further, in the example shown in FIG. 1, one machine is connected to the layer 2 network 100 via one virtual machine, but the present invention is not limited to this configuration. That is, a plurality of machines may be connected to one virtual switch. Further, in the example shown in FIG. 1, each machine is connected to the layer 2 network 100 via a virtual switch, but the present invention is not limited to this configuration. That is, each machine may be connected to the layer 2 network 100 via a physical switch.

仮想スイッチ1〜3は、通信グループ#1および通信グループ#2を互いに分離するように、フレーム処理を実行する。ここで、この実施例では、通信グループ#1および通信グループ#2に対して、それぞれVLAN10およびVLAN20が設定されているものとする。なお、VLAN10は、「VLANID=10」を含むフレームを伝送する仮想的なネットワークを表す。また、VLAN20は、「VLANID=20」を含むフレームを伝送する仮想的なネットワークを表す。   The virtual switches 1 to 3 execute frame processing so as to separate the communication group # 1 and the communication group # 2 from each other. Here, in this embodiment, it is assumed that the VLAN 10 and the VLAN 20 are set for the communication group # 1 and the communication group # 2, respectively. The VLAN 10 represents a virtual network that transmits a frame including “VLANID = 10”. Also, the VLAN 20 represents a virtual network that transmits a frame including “VLANID = 20”.

仮想スイッチ1は、マシンAにより送信フレームが生成されると、そのフレームに「VLANID=10」を付与してレイヤ2ネットワーク100に送信する。また、仮想スイッチ1は、レイヤ2ネットワーク100からフレームを受信すると、VLANIDに基づいてそのフレームをフィルタリングする。すなわち、受信フレームが「VLANID=10」を含んでいればそのフレームはマシンAに導かれ、受信フレームが「VLANID=10」を含んでいなければそのフレームは廃棄される。   When the transmission frame is generated by the machine A, the virtual switch 1 adds “VLANID = 10” to the frame and transmits the frame to the layer 2 network 100. Further, when the virtual switch 1 receives a frame from the layer 2 network 100, the virtual switch 1 filters the frame based on the VLAN ID. That is, if the received frame includes "VLANID = 10", the frame is guided to the machine A, and if the received frame does not include "VLANID = 10", the frame is discarded.

仮想スイッチ2は、マシンBにより送信フレームが生成されると、そのフレームに「VLANID=20」を付与してレイヤ2ネットワーク100に送信する。また、仮想スイッチ2は、レイヤ2ネットワーク100からフレームを受信すると、VLANIDに基づいてそのフレームをフィルタリングする。すなわち、受信フレームが「VLANID=20」を含んでいればそのフレームはマシンBに導かれ、受信フレームが「VLANID=20」を含んでいなければそのフレームは廃棄される。なお、仮想スイッチ3の動作は、仮想スイッチ2と実質的に同じなので、説明を省略する。   When the transmission frame is generated by the machine B, the virtual switch 2 adds “VLANID = 20” to the frame and transmits the frame to the layer 2 network 100. Further, when the virtual switch 2 receives a frame from the layer 2 network 100, the virtual switch 2 filters the frame based on the VLAN ID. That is, if the received frame includes "VLANID = 20", the frame is guided to the machine B, and if the received frame does not include "VLANID = 20", the frame is discarded. Since the operation of the virtual switch 3 is substantially the same as that of the virtual switch 2, the description thereof will be omitted.

VLANコントローラ200は、各仮想スイッチ1〜3に接続されている。そして、VLANコントローラ200は、仮想スイッチ1〜3に対して指示を与えることにより、VLANの設定、削除、変更を制御する。   The VLAN controller 200 is connected to each of the virtual switches 1 to 3. Then, the VLAN controller 200 controls the setting, deletion, and change of the VLAN by giving an instruction to the virtual switches 1 to 3.

VLANコントローラ200は、図1に示すように、スイッチ制御部201、データ管理部202、VLAN選択部203を備える。スイッチ制御部201は、仮想スイッチ1〜3を制御する。データ管理部202は、VLANに係わる情報を管理する。VLAN選択部203は、複数のVLANをマージして1つのVLANを設定する際に、マージすべき1組のVLANを選択する。なお、スイッチ制御部201、データ管理部202、VLAN選択部203については、後で詳しく説明する。   As shown in FIG. 1, the VLAN controller 200 includes a switch controller 201, a data manager 202, and a VLAN selector 203. The switch control unit 201 controls the virtual switches 1 to 3. The data management unit 202 manages information related to VLAN. The VLAN selecting unit 203 selects one set of VLANs to be merged when merging a plurality of VLANs and setting one VLAN. The switch control unit 201, the data management unit 202, and the VLAN selection unit 203 will be described later in detail.

このように、VLANは、互いに分離された複数のネットワークを設定することができる。ただし、VLANIDのビット数が決まっているので、最大で4094個までしかネットワークを設定できない。このため、VLANIDを効率的に使用するために、VLANコントローラ200は、必要に応じて、異なるVLANIDにより識別されるネットワークをマージする。   In this way, the VLAN can set a plurality of networks separated from each other. However, since the number of bits of VLANID is fixed, the network can be set up to 4094 at maximum. Therefore, in order to use the VLANID efficiently, the VLAN controller 200 merges networks identified by different VLANIDs as needed.

図2は、VLANのマージの一例を示す。ここでは、VLAN10とVLAN20とのマージ(ここでは、VLAN10がVLAN20を吸収するマージ)が行われるものとする。この場合、このマージは、仮想スイッチ2、3の処理対象を「VLANID=20」から「VLANID=10」に変更することで実現される。ただし、仮想スイッチ2、3の処理対象を単に「VLANID=20」から「VLANID=10」に変更するだけでは、通信障害が発生することがある。   FIG. 2 shows an example of merging VLANs. Here, it is assumed that the VLAN 10 and the VLAN 20 are merged (here, the VLAN 10 absorbs the VLAN 20). In this case, this merge is realized by changing the processing target of the virtual switches 2 and 3 from “VLANID = 20” to “VLANID = 10”. However, if the processing targets of the virtual switches 2 and 3 are simply changed from “VLANID = 20” to “VLANID = 10”, a communication failure may occur.

例えば、図2に示すように、VLANのマージ作業中に、仮想スイッチ2の処理対象が「VLANID=20」から「VLANID=10」に変更されたものとする。なお、仮想スイッチの設定の変更は、1台ずつ順番に実行されるものとする。すなわち、この時点では、未だ、仮想スイッチ3の処理対象は「VLANID=20」のままであるものとする。   For example, as shown in FIG. 2, it is assumed that the processing target of the virtual switch 2 is changed from “VLANID = 20” to “VLANID = 10” during the VLAN merge operation. It is assumed that the virtual switch settings are changed one by one. That is, at this time, the processing target of the virtual switch 3 is still “VLANID = 20”.

一例として、マシンAがブロードキャストフレーム(又は、マルチキャストフレーム)を送信するものとする。この場合、このブロードキャストフレームは、レイヤ2ネットワーク100により仮想スイッチ2、3に導かれる。ここで、このブロードキャストフレームには、仮想スイッチ1により「VLANID=10」が付与されている。このため、仮想スイッチ2は、このブロードキャストフレームをマシンBに導いてしまう。同様に、マシンBがブロードキャストフレームを送信した場合には、仮想スイッチ1は、そのブロードキャストフレームをマシンAに導いてしまう。このように、VLANのマージ作業が行われているときには、ブロードキャストフレームが通信グループの境界をこえてしまうことがある。   As an example, it is assumed that the machine A transmits a broadcast frame (or a multicast frame). In this case, this broadcast frame is guided to the virtual switches 2 and 3 by the layer 2 network 100. Here, “VLANID = 10” is given to this broadcast frame by the virtual switch 1. Therefore, the virtual switch 2 guides this broadcast frame to the machine B. Similarly, when the machine B transmits a broadcast frame, the virtual switch 1 guides the broadcast frame to the machine A. As described above, when a VLAN merging operation is being performed, a broadcast frame may exceed the boundaries of communication groups.

また、マシンBがマシンCにデータフレームを送信するものとする。この場合、このデータフレームは、レイヤ2ネットワーク100により仮想スイッチ3に導かれる。ところが、このデータフレームには、仮想スイッチ2により「VLANID=10」が付与されている。このため、仮想スイッチ3は、このデータフレームを廃棄してしまう。同様に、マシンCがマシンBにデータフレームを送信した場合には、仮想スイッチ2は、このデータフレームを廃棄してしまう。このように、VLANのマージ作業が行われているときには、同じグループ内であっても、移行前のVLANを使用するマシンと移行後のVLANを使用するマシンとの間の通信が切断されることがある。   It is also assumed that machine B sends a data frame to machine C. In this case, this data frame is guided to the virtual switch 3 by the layer 2 network 100. However, "VLANID = 10" is added to this data frame by the virtual switch 2. Therefore, the virtual switch 3 discards this data frame. Similarly, when the machine C transmits a data frame to the machine B, the virtual switch 2 discards this data frame. As described above, when a VLAN merging operation is being performed, communication between a machine that uses the pre-migration VLAN and a machine that uses the post-migration VLAN may be disconnected even within the same group. There is.

<実施形態>
本発明の実施形態に係わるスイッチ制御装置は、上述の問題を解決する機能を備える。なお、VLANコントローラ200は、本発明の実施形態に係わるスイッチ制御装置の一例である。
<Embodiment>
The switch control device according to the embodiment of the present invention has a function of solving the above-mentioned problem. The VLAN controller 200 is an example of the switch control device according to the embodiment of the present invention.

VLANコントローラ200は、複数のVLANをマージするときに、各仮想スイッチの設定を変更する。以下の記載では、図1に示すVLAN10およびVLAN20がマージされるものとする。具体的には、通信グループ#2が使用するVLANが、VLAN20からVLAN10に変更される。   The VLAN controller 200 changes the setting of each virtual switch when merging a plurality of VLANs. In the following description, it is assumed that the VLAN 10 and the VLAN 20 shown in FIG. 1 are merged. Specifically, the VLAN used by the communication group # 2 is changed from the VLAN 20 to the VLAN 10.

図3は、VLANコントローラ200においてデータ管理部202により管理される情報の一例を示す。データ管理部202により管理される情報は、VLANを管理するVLAN情報および仮想スイッチを管理するスイッチ情報を含む。   FIG. 3 shows an example of information managed by the data management unit 202 in the VLAN controller 200. The information managed by the data management unit 202 includes VLAN information for managing a VLAN and switch information for managing a virtual switch.

VLAN情報は、図3(a)に示すように、通信システム内で設定可能な各VLANを表す「VLANID」に対して「使用済みフラグ」および「CIDR」を管理する。「使用済みフラグ」は、通信システム内でVLANIDが使用されているか否かを表す。すなわち、「使用済みフラグ」は、対応するVLANIDにより識別されるVLANが設定されているか否かを表す。図3(a)に示す例では、通信システムにおいてVLAN10、VLAN20、VLAN30...が設定されている。「CIDR(Classless Inter-Domain Routing)」は、対応するVLANに対して割り当てられているアドレス範囲を表す。図3(a)に示す例では、「VLANID=10」に対応するCIDRは、VLAN10に属するマシン(マシンAを含む)に割り当て可能なIPアドレスの範囲を表し、「VLANID=20」に対応するCIDRは、VLAN20に属するマシン(マシンB、Cを含む)に割り当て可能なIPアドレスの範囲を表す。   As shown in FIG. 3A, the VLAN information manages a “used flag” and a “CIDR” for a “VLANID” that represents each VLAN that can be set in the communication system. The “used flag” indicates whether or not the VLANID is used in the communication system. That is, the “used flag” indicates whether or not the VLAN identified by the corresponding VLAN ID is set. In the example shown in FIG. 3A, the VLAN 10, the VLAN 20, the VLAN 30 ,. . . Is set. “CIDR (Classless Inter-Domain Routing)” represents an address range assigned to the corresponding VLAN. In the example shown in FIG. 3A, the CIDR corresponding to “VLANID = 10” represents the range of IP addresses that can be assigned to the machines (including the machine A) belonging to the VLAN 10 and corresponds to “VLANID = 20”. CIDR represents a range of IP addresses that can be assigned to machines (including machines B and C) belonging to the VLAN 20.

なお、VLAN情報は、特に図示しないが、各VLANの稼動状況を管理してもよい。稼動状況は、例えば、最大帯域に対する使用帯域の割合(即ち、帯域使用率)を表す。   Although not shown in the figure, the VLAN information may manage the operating status of each VLAN. The operating status represents, for example, the ratio of the used bandwidth to the maximum bandwidth (that is, the bandwidth usage rate).

スイッチ情報は、図3(b)に示すように、各仮想スイッチについて「VLANID」「CIDR」「MACアドレス」を管理する。「VLANID」は、対応する仮想スイッチに対して設定されているVLANを識別する。図3(b)に示す例では、仮想スイッチ1に対してVLAN10が設定され、仮想スイッチ2、3に対してそれぞれVLAN20が設定されている。「CIDR」は、上述したように、対応するVLANに対して割り当てられているアドレスの範囲を表す。「MACアドレス」は、対応する仮想スイッチに接続するマシンのMACアドレスを表す。   As shown in FIG. 3B, the switch information manages “VLANID”, “CIDR”, and “MAC address” for each virtual switch. The “VLAN ID” identifies the VLAN set for the corresponding virtual switch. In the example shown in FIG. 3B, the VLAN 10 is set for the virtual switch 1 and the VLAN 20 is set for the virtual switches 2 and 3, respectively. “CIDR” represents the range of addresses assigned to the corresponding VLAN, as described above. “MAC address” represents the MAC address of the machine connected to the corresponding virtual switch.

VLANコントローラ200は、図3に示すVLAN情報およびスイッチ情報を利用して、VLANの設定、変更、削除を制御する。VLANの変更は、複数のVLANのマージを含む。   The VLAN controller 200 uses the VLAN information and the switch information shown in FIG. 3 to control the setting, changing, and deleting of the VLAN. Changing a VLAN includes merging multiple VLANs.

図4〜図7は、VLANをマージする手順の一例を示す。この実施例では、図1に示すように、通信グループ#1に属するマシンがVLAN10を使用して通信を行っており、また、通信グループ#2に属するマシンがVLAN20を使用して通信を行っているものとする。   4 to 7 show an example of a procedure for merging VLANs. In this embodiment, as shown in FIG. 1, the machines belonging to the communication group # 1 communicate using the VLAN 10, and the machines belonging to the communication group # 2 communicate using the VLAN 20. Be present.

VLANコントローラ200は、常時、VLANIDの使用状況をモニタしている。そして、VLANコントローラ200は、例えば、使用中のVLANIDの数が所定の閾値を越えると、VLANのマージを実行する。   The VLAN controller 200 constantly monitors the usage status of the VLAN ID. Then, for example, when the number of VLAN IDs in use exceeds a predetermined threshold, the VLAN controller 200 executes VLAN merge.

VLAN選択部203は、マージすべきVLANを選択する。このとき、VLAN選択部203は、データ管理部202により管理されているVLAN情報を参照してマージすべきVLANを選択してもよい。一例としては、VLAN選択部203は、帯域使用率の低いVLANを選択してもよい。この実施例では、「VLANID=10」により識別されるVLAN10および「VLANID=20」により識別されるVLAN20が選択されるものとする。また、VLAN20がVLAN10にマージ(即ち、吸収)されるものとする。   The VLAN selecting unit 203 selects a VLAN to be merged. At this time, the VLAN selecting unit 203 may refer to the VLAN information managed by the data managing unit 202 to select the VLAN to be merged. As an example, the VLAN selection unit 203 may select a VLAN with a low band usage rate. In this embodiment, the VLAN 10 identified by "VLANID = 10" and the VLAN 20 identified by "VLANID = 20" are selected. Further, it is assumed that the VLAN 20 is merged (that is, absorbed) with the VLAN 10.

スイッチ制御部201は、図4に示すように、データ管理部202により管理されているスイッチ情報を参照してフィルタ設定指示を生成する。フィルタ設定指示は、通信グループ#1、#2間の境界を越えてフレームが伝送されないように、各仮想スイッチ1〜3に実装されているMACアドレスフィルタを制御する情報を含む。   As shown in FIG. 4, the switch control unit 201 refers to the switch information managed by the data management unit 202 and generates a filter setting instruction. The filter setting instruction includes information for controlling the MAC address filter installed in each virtual switch 1 to 3 so that the frame is not transmitted across the boundary between the communication groups # 1 and # 2.

具体的には、通信グループ#1に属する各マシンのMACアドレス(即ち、aaa)を含むフレームを廃棄するためのフィルタ設定指示が仮想スイッチ2、3にそれぞれ与えられる。また、通信グループ#2に属する各マシンのMACアドレス(即ち、bbbおよびccc)を含むフレームを廃棄するためのフィルタ設定指示が仮想スイッチ1に与えられる。そうすると、各仮想スイッチ1〜3は、与えられたフィルタ設定指示に従って、MACアドレスフィルタを更新する。   Specifically, the virtual switches 2 and 3 are respectively provided with a filter setting instruction for discarding a frame including the MAC address (that is, aaa) of each machine belonging to the communication group # 1. Further, the virtual switch 1 is given a filter setting instruction for discarding a frame including the MAC address (that is, bbb and ccc) of each machine belonging to the communication group # 2. Then, each of the virtual switches 1 to 3 updates the MAC address filter according to the given filter setting instruction.

上述のようにして各仮想スイッチ1〜3においてフィルタが更新された後は、通信グループ#1、#2は、MACアドレスにより互いに分離される。例えば、マシンAによりブロードキャストフレームが生成されるときは、仮想スイッチ1は、そのブロードキャストフレームに「VLANID=10」を付与してレイヤ2ネットワーク100に送出する。そうすると、このブロードキャストフレームは、仮想スイッチ2、3に届けられる。ところが、このブロードキャストフレームの送信元MACアドレスは「aaa」なので、仮想スイッチ2、3はこのブロードキャストフレームを廃棄する。すなわち、通信グループ#1において生成されるフレームがマシンB、Cに到達することはない。同様に、通信グループ#2において生成されるフレームがマシンAに到達することもない。   After the filters are updated in the virtual switches 1 to 3 as described above, the communication groups # 1 and # 2 are separated from each other by the MAC address. For example, when the machine A generates a broadcast frame, the virtual switch 1 adds “VLANID = 10” to the broadcast frame and sends it to the layer 2 network 100. Then, this broadcast frame is delivered to the virtual switches 2 and 3. However, since the source MAC address of this broadcast frame is "aaa", the virtual switches 2 and 3 discard this broadcast frame. That is, the frame generated in the communication group # 1 never reaches the machines B and C. Similarly, the frame generated in the communication group # 2 does not reach the machine A.

スイッチ制御部201は、図5に示すように、データ管理部202により管理されているスイッチ情報を参照してVLAN追加指示を生成する。VLAN追加指示は、マージされるVLANを使用する通信グループ(#2)において、移行後のVLANID(VLANID=10)を含むフレームがレイヤ2ネットワーク100に送信されるようにするための制御情報を含む。この実施例では、マージされるVLAN(即ち、VLAN20)が設定されている仮想スイッチは、仮想スイッチ2、3なので、VLAN追加指示は仮想スイッチ2、3に送信される。   As shown in FIG. 5, the switch control unit 201 refers to the switch information managed by the data management unit 202 and generates a VLAN addition instruction. The VLAN addition instruction includes control information for causing a frame including the post-migration VLANID (VLANID = 10) to be transmitted to the layer 2 network 100 in the communication group (# 2) using the merged VLAN. .. In this embodiment, since the virtual switch in which the merged VLAN (that is, the VLAN 20) is set is the virtual switches 2 and 3, the VLAN addition instruction is transmitted to the virtual switches 2 and 3.

各仮想スイッチ1〜3は、レイヤ2ネットワーク100に送信するフレームに付与するVLANIDを表すVLAN送信情報を保持する。なお、VLAN送信情報は、図5〜図7では「VLAN(送)」と表記されている。そして、仮想スイッチ2、3は、VLAN追加指示に応じてVLAN送信情報を更新する。具体的には、仮想スイッチ2、3において、VLAN送信情報に「VLANID=10」が追加される。すなわち、仮想スイッチ2、3において、VLAN送信情報が「20」から「10、20」に更新される。   Each of the virtual switches 1 to 3 holds VLAN transmission information indicating a VLAN ID given to a frame transmitted to the layer 2 network 100. The VLAN transmission information is described as “VLAN (sending)” in FIGS. Then, the virtual switches 2 and 3 update the VLAN transmission information according to the VLAN addition instruction. Specifically, in the virtual switches 2 and 3, “VLAN ID = 10” is added to the VLAN transmission information. That is, in the virtual switches 2 and 3, the VLAN transmission information is updated from “20” to “10, 20”.

上述のようにしてVLAN送信情報が更新された後は、仮想スイッチ2、3は、対応するマシンにおいて送信フレームが生成されたときに、「VLANID=10」が付与されたフレームおよび「VLANID=20」が付与されたフレームをレイヤ2ネットワーク100に送信する。これらの2つのフレームは、VLANID以外は、互いに実質的に同じである。そして、このようにして仮想スイッチ2、3が2つのフレームを送信することにより、VLANのマージ作業中の通信断が回避される。   After the VLAN transmission information is updated as described above, when the transmission frame is generated in the corresponding machine, the virtual switches 2 and 3 add a frame to which “VLANID = 10” is added and “VLANID = 20”. The frame to which “” is added is transmitted to the layer 2 network 100. These two frames are substantially the same as each other, except for the VLANID. In this way, the virtual switches 2 and 3 transmit the two frames, so that the communication interruption during the merge operation of the VLAN is avoided.

たとえば、マシンBがマシンCを宛先とするデータフレームを生成するものとする。この場合、仮想スイッチ2は、「VLANID=10」が付与されたデータフレームおよび「VLANID=20」が付与されたデータフレームをレイヤ2ネットワーク100に送信する。そうすると、これらの2つのデータフレームは、レイヤ2ネットワーク100により仮想スイッチ3に導かれる。ここで、仮想スイッチ3は、「VLANID=20」が付与されたフレームを受信する状態に設定されている。よって、仮想スイッチ3は、「VLANID=20」が付与されたデータフレームをマシンCに導く。すなわち、マシンBにより生成されたデータフレームは、マシンCに到達する。なお、このとき、仮想スイッチ3は、受信データフレームからVLANIDを削除してもよい。   For example, assume machine B creates a data frame destined for machine C. In this case, the virtual switch 2 transmits to the layer 2 network 100 the data frame to which “VLANID = 10” is attached and the data frame to which “VLANID = 20” is attached. Then, these two data frames are guided to the virtual switch 3 by the layer 2 network 100. Here, the virtual switch 3 is set in a state of receiving a frame to which “VLANID = 20” is added. Therefore, the virtual switch 3 guides the data frame to which “VLANID = 20” is attached to the machine C. That is, the data frame generated by machine B reaches machine C. At this time, the virtual switch 3 may delete the VLANID from the received data frame.

マシンBがブロードキャストフレームを生成したときは、仮想スイッチ2は、「VLANID=10」が付与されたブロードキャストフレームおよび「VLANID=20」が付与されたブロードキャストフレームをレイヤ2ネットワーク100に送信する。そうすると、これらの2つのブロードキャストフレームは、レイヤ2ネットワーク100により仮想スイッチ1、3に導かれる。ここで、仮想スイッチ3は、「VLANID=20」が付与されたフレームを受信する状態に設定されている。よって、仮想スイッチ3は、「VLANID=20」が付与されたブロードキャストフレームをマシンCに導く。一方、仮想スイッチ1は、「VLANID=10」が付与されたフレームを受信する状態に設定されている。ところが、図4に示すフィルタ設定により、仮想スイッチ1のMACアドレスフィルタには「bbb」が登録されている。したがって、仮想スイッチ1は、VLANIDにかかわらず、仮想スイッチ2から送信されたブロードキャストフレームを廃棄する。すなわち、マシンBにより生成されたブロードキャストフレームは、マシンAには到達しない。   When the machine B generates a broadcast frame, the virtual switch 2 transmits the broadcast frame to which “VLANID = 10” is added and the broadcast frame to which “VLANID = 20” is added to the layer 2 network 100. Then, these two broadcast frames are guided to the virtual switches 1 and 3 by the layer 2 network 100. Here, the virtual switch 3 is set in a state of receiving a frame to which “VLANID = 20” is added. Therefore, the virtual switch 3 guides the broadcast frame to which “VLANID = 20” is attached to the machine C. On the other hand, the virtual switch 1 is set in a state of receiving a frame to which “VLANID = 10” is added. However, "bbb" is registered in the MAC address filter of the virtual switch 1 by the filter setting shown in FIG. Therefore, the virtual switch 1 discards the broadcast frame transmitted from the virtual switch 2 regardless of the VLANID. That is, the broadcast frame generated by the machine B does not reach the machine A.

スイッチ制御部201は、図6に示すように、データ管理部202により管理されているスイッチ情報を参照してVLAN変更指示を生成する。VLAN変更指示は、マージされるVLANを使用する通信グループ(#2)において、移行後のVLANID(VLANID=10)を含むフレームをレイヤ2ネットワーク100から受信するための制御情報を含む。この実施例では、マージされるVLAN(即ち、VLAN20)が設定されている仮想スイッチは、仮想スイッチ2、3なので、VLAN変更指示は仮想スイッチ2、3に送信される。   As shown in FIG. 6, the switch control unit 201 refers to the switch information managed by the data management unit 202 and generates a VLAN change instruction. The VLAN change instruction includes control information for receiving, from the layer 2 network 100, a frame including the post-migration VLANID (VLANID = 10) in the communication group (# 2) using the merged VLAN. In this embodiment, since the virtual switch in which the merged VLAN (that is, the VLAN 20) is set is the virtual switches 2 and 3, the VLAN change instruction is transmitted to the virtual switches 2 and 3.

各仮想スイッチ1〜3は、対応するマシンが受信すべきフレームのVLANIDを指定するVLAN受信情報を保持する。尚、VLAN受信情報は、図5〜図7においては「VLAN(受)」と表記されている。そして、仮想スイッチ2、3は、VLAN変更指示に応じてVLAN受信情報を更新する。具体的には、仮想スイッチ2、3において、VLAN受信情報が「VLANID=20」から「VLANID=10」に更新される。   Each of the virtual switches 1 to 3 holds VLAN reception information that specifies the VLAN ID of the frame that the corresponding machine should receive. The VLAN reception information is described as "VLAN (receive)" in FIGS. Then, the virtual switches 2 and 3 update the VLAN reception information according to the VLAN change instruction. Specifically, in the virtual switches 2 and 3, the VLAN reception information is updated from “VLANID = 20” to “VLANID = 10”.

上述のようにしてVLAN受信情報が更新された後は、仮想スイッチ2、3は、レイヤ2ネットワーク100からフレームを受信したときに、「VLANID=10」が付与されたフレームのみを対応するマシンに導く。換言すれば、仮想スイッチ2、3は、「VLANID=10」が付与されていないフレームを廃棄する。よって、「VLANID=20」が付与されたフレームは廃棄される。   After the VLAN reception information is updated as described above, when the virtual switches 2 and 3 receive a frame from the layer 2 network 100, only the frame to which “VLANID = 10” is added is sent to the corresponding machine. Lead. In other words, the virtual switches 2 and 3 discard the frame to which “VLANID = 10” is not added. Therefore, the frame to which “VLANID = 20” is added is discarded.

なお、本発明の実施形態に係る手順では、マージされるVLANを使用する通信グループにおいて、VLAN変更指示に応じてVLAN受信情報が更新される前に、VLAN追加指示に応じてVLAN送信情報が更新されている。このため、VLANのマージ作業中の通信断が回避される。例えば、仮想スイッチ2のVLAN送信情報およびVLAN受信情報が更新されたときに、仮想スイッチ3のVLAN受信情報が未だ更新されておらず、「VLAN(受)=20」のままであるものとする。この場合、仮想スイッチ2から送信される2つのフレームのうち、「VLANID=10」が付与されたフレームは、仮想スイッチ3において廃棄されてしまう。しかし、仮想スイッチ3は、更新される前のVLAN受信情報に基づいて、「VLANID=20」が付与されたフレームを受信する。したがって、仮想スイッチごとに設定変更のタイミングがずれてしまっても、VLANのマージ作業中の通信断は回避される。   In the procedure according to the embodiment of the present invention, in the communication group using the merged VLAN, the VLAN transmission information is updated according to the VLAN addition instruction before the VLAN reception information is updated according to the VLAN change instruction. Has been done. Therefore, communication interruption during the merge operation of the VLAN is avoided. For example, when the VLAN transmission information and the VLAN reception information of the virtual switch 2 are updated, it is assumed that the VLAN reception information of the virtual switch 3 has not yet been updated and remains “VLAN (reception) = 20”. .. In this case, of the two frames transmitted from the virtual switch 2, the frame to which “VLANID = 10” is added is discarded in the virtual switch 3. However, the virtual switch 3 receives the frame to which “VLANID = 20” is added based on the VLAN reception information before being updated. Therefore, even if the timing of setting change is shifted for each virtual switch, the communication interruption during the merge operation of the VLAN is avoided.

スイッチ制御部201は、図7に示すように、データ管理部202により管理されているスイッチ情報を参照してVLAN削除指示を生成する。VLAN削除指示は、マージされるVLANを使用する通信グループ(#2)において、移行前のVLANID(VLANID=20)を含むフレームがレイヤ2ネットワーク100に送信されないようにするための制御情報を含む。この実施例では、マージされるVLAN(即ち、VLAN20)が設定されている仮想スイッチは、仮想スイッチ2、3なので、VLAN追加指示は仮想スイッチ2、3に送信される。   As shown in FIG. 7, the switch control unit 201 refers to the switch information managed by the data management unit 202 and generates a VLAN deletion instruction. The VLAN deletion instruction includes control information for preventing a frame including the pre-migration VLANID (VLANID = 20) from being transmitted to the layer 2 network 100 in the communication group (# 2) using the merged VLAN. In this embodiment, since the virtual switch in which the merged VLAN (that is, the VLAN 20) is set is the virtual switches 2 and 3, the VLAN addition instruction is transmitted to the virtual switches 2 and 3.

仮想スイッチ2、3は、VLAN削除指示に応じてVLAN送信情報を更新する。具体的には、仮想スイッチ2、3において、VLAN送信情報から「VLANID=20」が削除される。即ち、仮想スイッチ2、3において、VLAN送信情報が「10、20」から「10」に更新される。   The virtual switches 2 and 3 update the VLAN transmission information according to the VLAN deletion instruction. Specifically, in the virtual switches 2 and 3, “VLANID = 20” is deleted from the VLAN transmission information. That is, in the virtual switches 2 and 3, the VLAN transmission information is updated from “10, 20” to “10”.

上述のようにしてVLAN送信情報が更新された後は、仮想スイッチ2、3は、対応するマシンにおいて送信フレームが生成されたときに、「VLANID=10」が付与されたフレームのみをレイヤ2ネットワーク100に送信する。   After the VLAN transmission information is updated as described above, the virtual switches 2 and 3 only transmit the frames to which “VLANID = 10” is added to the layer 2 network when the transmission frame is generated in the corresponding machine. Send to 100.

この後、データ管理部202は、VLAN情報およびスイッチ情報を更新する。すなわち、VLAN情報において、図8(a)に示すように、「192.168.20」で表されるサブネットに対して設定されるVLANIDが「20」から「10」に変更される。また、「VLANID=20」は解放される。更に、スイッチ情報において、図8(b)に示すように、仮想スイッチ2、3に対して設定されるVLANIDが「20」から「10」に変更される。   Then, the data management unit 202 updates the VLAN information and the switch information. That is, in the VLAN information, as shown in FIG. 8A, the VLAN ID set for the subnet represented by “192.168.20” is changed from “20” to “10”. Also, “VLANID = 20” is released. Further, in the switch information, as shown in FIG. 8B, the VLAN ID set for the virtual switches 2 and 3 is changed from “20” to “10”.

図9〜図10は、VLANコントローラ200の処理の一例を示すフローチャートである。なお、このフローチャートは、VLANのマージに係わる処理を示す。また、このフローチャートの処理は、例えば、ユーザまたはネットワーク管理者からの要求に応じて実行される。或いは、このフローチャートの処理は、所定の契機が生じたときに自動的に実行されるようにしてもよい。例えば、未使用のVLANIDの数が所定の閾値より少なくなったときにこのフローチャートの処理が実行されるようにしてもよい。   9 to 10 are flowcharts showing an example of processing of the VLAN controller 200. It should be noted that this flowchart shows the processing related to the merge of VLANs. Further, the processing of this flowchart is executed in response to a request from a user or a network administrator, for example. Alternatively, the process of this flowchart may be automatically executed when a predetermined trigger occurs. For example, the process of this flowchart may be executed when the number of unused VLANIDs becomes smaller than a predetermined threshold value.

なお、このフローチャートに係わる説明において、「マージ元VLAN」は、マージにより他のVLANに吸収されるVLANを表し、「マージ先VLAN」は、マージ後に存続するVLANを表す。図4〜図7に示す例では、「VLANID=20」により識別されるVLAN20がマージ元VLANに相当し、「VLANID=10」により識別されるVLAN10がマージ先VLANに相当する。   In the description related to this flowchart, “merge source VLAN” represents a VLAN that is absorbed by another VLAN by merging, and “merge destination VLAN” represents a VLAN that remains after the merge. In the examples shown in FIGS. 4 to 7, the VLAN 20 identified by “VLANID = 20” corresponds to the merge source VLAN, and the VLAN 10 identified by “VLANID = 10” corresponds to the merge destination VLAN.

S1において、VLAN選択部203は、マージすべき1組のVLAN(即ち、マージ元VLANおよびマージ先VLAN)を選択する。そして、VLAN選択部203は、選択したVLANを識別するVLANIDをスイッチ制御部201に与える。なお、マージすべき1組のVLANを選択するための基準は、予め決められているものとする。たとえば、帯域使用率の低いVLANが選択される。   In S1, the VLAN selecting unit 203 selects one set of VLANs to be merged (that is, the merge source VLAN and the merge destination VLAN). Then, the VLAN selection unit 203 gives the switch control unit 201 a VLAN ID for identifying the selected VLAN. Note that the standard for selecting one set of VLANs to be merged is predetermined. For example, a VLAN with a low bandwidth usage rate is selected.

S2において、スイッチ制御部201は、VLAN選択部203から与えられるVLANIDを利用してVLAN情報を参照し、マージ先およびマージ元のCIDRおよびVLANIDを特定する。例えば、図3(a)に示す実施例において、マージ先に係わる情報として「CIDR=192.168.10.0/24」および「VLANID=10」が得られ、マージ元に係わる情報として「CIDR=192.168.20.0/24」および「VLANID=20」が得られる。   In S2, the switch control unit 201 refers to the VLAN information by using the VLANID provided from the VLAN selection unit 203, and specifies the CIDR and the VLANID of the merge destination and the merge source. For example, in the embodiment shown in FIG. 3A, "CIDR = 192.168.10.0 / 24" and "VLANID = 10" are obtained as the information related to the merge destination, and "CIDR = CIDR" is obtained as the information related to the merge source. = 192.168.20.0 / 24 "and" VLANID = 20 ".

S3において、スイッチ制御部201は、S2で特定したVLANIDを利用してスイッチ情報を参照し、マージ先VLANまたはマージ元VLANを使用するマシンの仮想スイッチおよびMACアドレスを取得する。例えば、図3(b)に示す実施例において、マージ先VLANを使用するマシンの仮想スイッチとして「仮想スイッチ1」が特定され、マージ元VLANを使用するマシンの仮想スイッチとして「仮想スイッチ2」および「仮想スイッチ3」が特定される。また、マージ先VLANを使用するマシンのMACアドレスとして「aaa」が特定され、マージ元VLANを使用するマシンのMACアドレスとして「bbb」および「ccc」が特定される。   In S3, the switch control unit 201 refers to the switch information using the VLAN ID specified in S2, and acquires the virtual switch and MAC address of the machine that uses the merge destination VLAN or the merge source VLAN. For example, in the embodiment shown in FIG. 3B, “virtual switch 1” is specified as the virtual switch of the machine using the merge destination VLAN, and “virtual switch 2” is specified as the virtual switch of the machine using the merge source VLAN. The "virtual switch 3" is specified. Further, “aaa” is specified as the MAC address of the machine that uses the merge destination VLAN, and “bbb” and “ccc” are specified as the MAC addresses of the machine that uses the merge source VLAN.

S4において、スイッチ制御部201は、マージ元VLANを使用するマシンのMACアドレスを遮断するためのフィルタ設定情報を、マージ先VLANが設定されている仮想スイッチに送信する。図4に示す実施では、「bbb」および「ccc」を遮断するためのフィルタ設定情報が仮想スイッチ1に送信される。   In S4, the switch control unit 201 transmits the filter setting information for blocking the MAC address of the machine that uses the merge source VLAN to the virtual switch in which the merge destination VLAN is set. In the implementation shown in FIG. 4, the filter setting information for blocking “bbb” and “ccc” is transmitted to the virtual switch 1.

S5において、スイッチ制御部201は、マージ先VLANを使用するマシンのMACアドレスを遮断するためのフィルタ設定情報を、マージ元VLANが設定されている仮想スイッチに送信する。図4に示す実施では、「aaa」を遮断するためのフィルタ設定情報が仮想スイッチ2、3に送信される。なお、S5の処理は、S4の前に実行されるようにしてもよい。   In S5, the switch control unit 201 transmits the filter setting information for blocking the MAC address of the machine using the merge destination VLAN to the virtual switch in which the merge source VLAN is set. In the implementation shown in FIG. 4, the filter setting information for blocking “aaa” is transmitted to the virtual switches 2 and 3. The process of S5 may be executed before S4.

S11において、スイッチ制御部201は、VLAN送信情報にマージ先VLANIDを追加することを指示するVLAN追加指示を、マージ元VLANが設定された仮想スイッチに送信する。図5に示す実施例では、VLAN追加指示は、VLAN送信情報に「VLANID=10」を追加することを指示する。そして、VLAN追加指示は、仮想スイッチ2、3に送信される。なお、VLAN送信情報は、上述したように、レイヤ2ネットワーク100に送信するフレームに付与すべきVLANIDを表す。   In S11, the switch control unit 201 transmits a VLAN addition instruction instructing to add the merge destination VLAN ID to the VLAN transmission information to the virtual switch in which the merge source VLAN is set. In the embodiment shown in FIG. 5, the VLAN addition instruction gives an instruction to add “VLANID = 10” to the VLAN transmission information. Then, the VLAN addition instruction is transmitted to the virtual switches 2 and 3. The VLAN transmission information represents the VLAN ID to be added to the frame transmitted to the layer 2 network 100, as described above.

S12において、スイッチ制御部201は、VLAN受信情報においてマージ元VLANIDをマージ先VLANIDに変更することを指示するVLAN変更指示を、マージ元VLANが設定された仮想スイッチに送信する。図6に示す実施例では、VLAN変更指示は、VLAN受信情報として登録されているVLANIDを「VLANID=20」から「VLANID=10」に変更することを指示する。そして、VLAN変更指示は、仮想スイッチ2、3に送信される。なお、VLAN受信情報は、上述したように、対応するマシンが受信すべきフレームのVLANIDを表す。   In S12, the switch control unit 201 transmits a VLAN change instruction instructing to change the merge source VLAN ID to the merge destination VLAN ID in the VLAN reception information to the virtual switch in which the merge source VLAN is set. In the embodiment shown in FIG. 6, the VLAN change instruction gives an instruction to change the VLAN ID registered as the VLAN reception information from “VLAN ID = 20” to “VLAN ID = 10”. Then, the VLAN change instruction is transmitted to the virtual switches 2 and 3. The VLAN reception information represents the VLAN ID of the frame to be received by the corresponding machine, as described above.

S13において、スイッチ制御部201は、VLAN送信情報からマージ元VLANIDを削除することを指示するVLAN削除指示を、マージ元VLANが設定された仮想スイッチに送信する。図7に示す実施例では、VLAN削除指示は、VLAN送信情報から「VLANID=20」を削除することを指示する。そして、VLAN削除指示は、仮想スイッチ2、3に送信される。   In S13, the switch control unit 201 transmits a VLAN deletion instruction for deleting the merge source VLAN ID from the VLAN transmission information to the virtual switch in which the merge source VLAN is set. In the embodiment shown in FIG. 7, the VLAN deletion instruction gives an instruction to delete “VLANID = 20” from the VLAN transmission information. Then, the VLAN deletion instruction is transmitted to the virtual switches 2 and 3.

なお、S12の処理は、S11の後に実行されることが好ましい。また、S13の処理は、S12の後に実行されることが好ましい。   The process of S12 is preferably executed after S11. Further, the process of S13 is preferably executed after S12.

S14において、スイッチ制御部201は、VLAN情報において、マージ元VLANIDをマージ先VLANIDに変更し、旧マージ元VLANIDを削除する。図8(a)に示す実施例では、「CIDR=192.168.20.0/24」で識別されるネットワークに対応するVLANIDが「VLANID=20」から「VLANID=10」に変更されている。加えて、「VLANID=20」の使用済みフラグを「True」から「False」に更新することにより、「VLANID=20」が解放される。   In S14, the switch control unit 201 changes the merge source VLAN ID to the merge destination VLAN ID in the VLAN information and deletes the old merge source VLAN ID. In the embodiment shown in FIG. 8A, the VLANID corresponding to the network identified by “CIDR = 192.168.20.0 / 24” is changed from “VLANID = 20” to “VLANID = 10”. .. In addition, by updating the used flag of “VLANID = 20” from “True” to “False”, “VLANID = 20” is released.

S15において、スイッチ制御部201は、スイッチ情報において、マージ元VLANIDをマージ先VLANIDに変更する。図8(b)に示す例では、仮想スイッチ2、3が使用するVLANを識別するVLANIDが「VLANID=20」から「VLANID=10」に変更されている。   In S15, the switch control unit 201 changes the merge source VLAN ID to the merge destination VLAN ID in the switch information. In the example shown in FIG. 8B, the VLAN ID for identifying the VLAN used by the virtual switches 2 and 3 is changed from “VLAN ID = 20” to “VLAN ID = 10”.

VLANコントローラ200は、たとえば、図11に示すコンピュータにより実現される。この場合、VLANコントローラ200は、プロセッサ211、メモリ212、記憶装置213、I/Oデバイス214、記録媒体デバイス215、通信インタフェース216を備える。   The VLAN controller 200 is realized by, for example, the computer shown in FIG. In this case, the VLAN controller 200 includes a processor 211, a memory 212, a storage device 213, an I / O device 214, a recording medium device 215, and a communication interface 216.

プロセッサ211は、記憶装置213に格納されている通信プログラムを実行することにより、スイッチ制御部201およびVLAN選択部203の機能を提供することができる。なお、通信プログラムは、例えば、図9〜図10に示すフローチャートの処理を記述する。メモリ212は、半導体メモリであり、プロセッサ211の作業領域として使用される。記憶装置213は、図11に示すコンピュータ内に実装されていてもよいし、図11に示すコンピュータに接続されていてもよい。I/Oデバイス214は、ユーザまたはネットワーク管理者の指示を受け付ける。また、I/Oデバイス214は、プロセッサ211による処理結果を出力する。記録媒体デバイス215は、可搬型記録媒体217から信号を読み取る。なお、上述した通信プログラムは、可搬型記録媒体217に記録されていてもよい。通信インタフェース216は、各仮想スイッチとの間の通信を提供することができる。   The processor 211 can provide the functions of the switch control unit 201 and the VLAN selection unit 203 by executing the communication program stored in the storage device 213. The communication program describes, for example, the processes of the flowcharts shown in FIGS. 9 to 10. The memory 212 is a semiconductor memory and is used as a work area of the processor 211. The storage device 213 may be installed in the computer shown in FIG. 11 or may be connected to the computer shown in FIG. The I / O device 214 receives an instruction from a user or a network administrator. The I / O device 214 also outputs the processing result of the processor 211. The recording medium device 215 reads a signal from the portable recording medium 217. The communication program described above may be recorded in the portable recording medium 217. The communication interface 216 can provide communication with each virtual switch.

図12は、仮想スイッチの処理の一例を示すフローチャートである。なお、このフローチャートは、VLANのマージに係わる処理を示す。   FIG. 12 is a flowchart showing an example of processing of the virtual switch. It should be noted that this flowchart shows the processing related to the merge of VLANs.

S21において、各仮想スイッチは、VLANコントローラ200から与えられるフィルタ設定指示に従って、MACアドレスフィルタを更新する。図4に示す実施例では、仮想スイッチ1は、MACアドレスフィルタに「bbb」および「ccc」を追加する。また、仮想スイッチ2、3は、それぞれMACアドレスフィルタに「aaa」を追加する。なお、MACアドレスフィルタには、レイヤ2ネットワーク100から受信するフレームを遮断すべきMACアドレスが登録される。   In S21, each virtual switch updates the MAC address filter according to the filter setting instruction given from the VLAN controller 200. In the embodiment shown in FIG. 4, the virtual switch 1 adds “bbb” and “ccc” to the MAC address filter. Further, the virtual switches 2 and 3 add “aaa” to the MAC address filter, respectively. The MAC address filter is registered with a MAC address for blocking a frame received from the layer 2 network 100.

S22〜S24は、マージ元VLANを使用していた仮想スイッチにより実行される。図5〜図7に示す例では、S22〜S24は、仮想スイッチ2、3により実行される。   S22 to S24 are executed by the virtual switch using the merge source VLAN. In the example shown in FIGS. 5 to 7, S22 to S24 are executed by the virtual switches 2 and 3.

S22において、各仮想スイッチは、VLANコントローラから与えられるVLAN追加指示に従って、VLAN送信情報にマージ先VLANIDを追加する。図5に示す実施例では、仮想スイッチ2、3において、VLAN送信情報に「VLANID=10」が追加される。   In S22, each virtual switch adds the merge destination VLAN ID to the VLAN transmission information according to the VLAN addition instruction given from the VLAN controller. In the embodiment shown in FIG. 5, “VLANID = 10” is added to the VLAN transmission information in the virtual switches 2 and 3.

S23において、各仮想スイッチは、VLANコントローラから与えられるVLAN変更指示に従って、VLAN受信情報においてマージ元VLANIDをマージ先VLANIDに変更する。図6に示す実施例では、仮想スイッチ2、3において、VLAN受信情報として登録されていた「VLANID=20」が「VLANID=10」に変更される。   In S23, each virtual switch changes the merge source VLAN ID to the merge destination VLAN ID in the VLAN reception information according to the VLAN change instruction given from the VLAN controller. In the embodiment shown in FIG. 6, in the virtual switches 2 and 3, “VLANID = 20” registered as the VLAN reception information is changed to “VLANID = 10”.

S24において、各仮想スイッチは、VLANコントローラから与えられるVLAN削除指示に従って、VLAN送信情報からマージ元VLANIDを削除する。図7に示す実施例では、仮想スイッチ2、3において、VLAN送信情報から「VLANID=20」が削除される。   In S24, each virtual switch deletes the merge source VLAN ID from the VLAN transmission information according to the VLAN deletion instruction given from the VLAN controller. In the embodiment shown in FIG. 7, “VLAN ID = 20” is deleted from the VLAN transmission information in the virtual switches 2 and 3.

各仮想スイッチは、例えば、コンピュータが提供するプロセッサ資源およびメモリ資源により実現される。この場合、図12に示すフローチャートの処理を記述したプログラムがメモリ資源に格納される。そして、プロセッサ資源がそのプログラムを実行することにより、仮想スイッチの機能が提供される。   Each virtual switch is realized by, for example, processor resources and memory resources provided by a computer. In this case, the program describing the process of the flowchart shown in FIG. 12 is stored in the memory resource. Then, the processor resource executes the program to provide the function of the virtual switch.