JP5526047B2 - Packet relay apparatus and output destination determination method in packet relay apparatus - Google Patents

Packet relay apparatus and output destination determination method in packet relay apparatus Download PDF

Info

Publication number
JP5526047B2
JP5526047B2 JP2011013522A JP2011013522A JP5526047B2 JP 5526047 B2 JP5526047 B2 JP 5526047B2 JP 2011013522 A JP2011013522 A JP 2011013522A JP 2011013522 A JP2011013522 A JP 2011013522A JP 5526047 B2 JP5526047 B2 JP 5526047B2
Authority
JP
Japan
Prior art keywords
port
vlan
virtual
output destination
destination
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.)
Active
Application number
JP2011013522A
Other languages
Japanese (ja)
Other versions
JP2012156732A (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.)
Alaxala Networks Corp
Original Assignee
Alaxala Networks Corp
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 Alaxala Networks Corp filed Critical Alaxala Networks Corp
Priority to JP2011013522A priority Critical patent/JP5526047B2/en
Publication of JP2012156732A publication Critical patent/JP2012156732A/en
Application granted granted Critical
Publication of JP5526047B2 publication Critical patent/JP5526047B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、パケット中継装置に関する。   The present invention relates to a packet relay device.

ローカルエリアネットワーク(LAN)等のネットワークを構成するための装置として、スイッチやルータといったパケット中継装置が用いられる。パケット中継装置は、複数の物理ポートを有し、各物理ポートに接続されるケーブルを介してクライアントや他のパケット中継装置と接続される。パケット中継装置は、パケットを受信すると、パケットのヘッダに含まれている情報(送信元アドレス,宛先アドレス,VLAN−IDなど)や、受信した物理ポートなどに基づき、宛先を決定するためのテーブルを参照して、出力先(出力先となる物理ポートや、出力先のVLANなど)を決定する。出力先を決定するためのテーブルとしては、例えば、レイヤ2スイッチでは、物理ポートとVLAN−ID(クライアントで付与するVLANの識別情報)とVLAN値(スイッチ内でVLANを識別する情報)とを対応付けるテーブルや、宛先MAC(Media Access Control)アドレスと出力先物理ポートと出力先VLAN−IDとを対応付けるテーブルなど、複数のテーブルが用いられる。   A packet relay device such as a switch or a router is used as a device for configuring a network such as a local area network (LAN). The packet relay device has a plurality of physical ports and is connected to clients and other packet relay devices via cables connected to the physical ports. When the packet relay apparatus receives the packet, the packet relay apparatus creates a table for determining the destination based on the information (source address, destination address, VLAN-ID, etc.) included in the packet header, the received physical port, and the like. The output destination (the physical port that is the output destination, the VLAN of the output destination, etc.) is determined with reference to the above. As a table for determining an output destination, for example, in a layer 2 switch, a physical port is associated with a VLAN-ID (VLAN identification information assigned by a client) and a VLAN value (information for identifying a VLAN in the switch). A plurality of tables such as a table, a table that associates a destination MAC (Media Access Control) address, an output destination physical port, and an output destination VLAN-ID are used.

このようなパケット中継装置では、運用の都合上、既にケーブルが接続されている物理ポート(以下、「切替前の物理ポート」と呼ぶ)に代えて、他の物理ポート(以下、「切替後の物理ポート」と呼ぶ)にケーブルをつなぎ替える(以下、「接続ポート切り替え」と呼ぶ)ことで、通信に用いる物理ポートを変更することがある。この場合、ケーブルのつなぎ替え作業に加えて、出力先を決定するための各種テーブルの設定内容を変更する作業が必要となる。例えば、ユーザは、レイヤ2スイッチに接続された管理端末を操作して、各テーブルにおいて、切替前の物理ポートに関するエントリを削除し、その後、削除したエントリの設定内容のうち、物理ポート番号を変更した内容で、切替後の物理ポートについてのエントリを追加する。このような接続ポート切り替えに伴う作業負担を軽減するために、接続ポート切り替えを検出すると、フォワーディングテーブルから切替前の物理ポートに関するエントリを自動的に削除する技術が提案されている(特許文献1)。なお、フォワーディングテーブルを更新する際には、スイッチの運用は停止されている。   In such a packet relay device, instead of a physical port to which a cable has already been connected (hereinafter referred to as a “physical port before switching”) for the convenience of operation, another physical port (hereinafter referred to as “post-switching”) is used. The physical port used for communication may be changed by switching the cable to the “physical port”) (hereinafter referred to as “connection port switching”). In this case, in addition to the cable reconnection work, it is necessary to change the setting contents of various tables for determining the output destination. For example, the user operates the management terminal connected to the layer 2 switch, deletes the entry related to the physical port before switching in each table, and then changes the physical port number in the settings of the deleted entry Add an entry for the physical port after switching. In order to reduce the workload associated with such connection port switching, a technique has been proposed in which, when connection port switching is detected, an entry relating to the physical port before switching is automatically deleted from the forwarding table (Patent Document 1). . Note that when the forwarding table is updated, the operation of the switch is stopped.

国際公開番号 WO−2008/111128International Publication Number WO-2008 / 111128

接続ポート切り替えを検出するとテーブルから切替前の物理ポートに関するエントリを自動的に削除する技術では、切替前の物理ポートに関するすべてのエントリの削除が行なわれ、その後、切替後の物理ポートに関するエントリの追加や更新が行われるため、テーブルの更新に長期間を要していた。特に、更新すべきテーブルが複数存在する場合には、すべてのテーブルの更新完了まで長期間を要することとなり、運用再開(更新されたテーブルを用いたパケット中継処理の再開)まで長期間を要するという問題があった。   In the technology that automatically deletes entries related to physical ports before switching from the table when connection port switching is detected, all entries related to physical ports before switching are deleted, and then entries related to physical ports after switching are added. Since table updating is performed, it takes a long time to update the table. In particular, when there are multiple tables to be updated, it takes a long time to complete the update of all tables, and it takes a long time to resume operation (resume packet relay processing using the updated table). There was a problem.

本発明は、パケット中継装置において、接続ポート切り替え時の運用再開までの期間を短くすることを目的とする。   An object of the present invention is to shorten the period until the operation is restarted when switching connection ports in a packet relay device.

本発明は、上述の課題の少なくとも一部を解決するためになされたものであり、以下の形態又は適用例として実現することが可能である。
[形態1] パケット中継装置であって、パケットを送受信する複数の物理ポートと;各々2以上の前記物理ポートを束ねた論理的なポートである複数の論理ポートと、複数の仮想ポートとを、1対1に対応付けるポート対応テーブルと;各前記論理ポートと、各前記論理ポートを構成する前記2以上の物理ポートとを対応付けるリンクアグリゲーションテーブルと;前記複数の論理ポートのうちいずれかの論理ポートにより受信された受信パケットの出力先を特定するために用いられる出力先特定情報と、前記複数の仮想ポートのうちいずれかの仮想ポートと、を対応付ける出力先特定テーブルと;前記受信パケットから前記出力先特定情報を取得する出力先特定情報取得部と;前記出力先特定テーブルを参照して、前記取得された出力先特定情報に基づき、前記受信パケットの出力先となる前記仮想ポートである出力先仮想ポートを決定する出力先仮想ポート決定部と;前記ポート対応テーブルを参照して、前記決定された出力先仮想ポートに対応する前記論理ポートを決定すると共に、前記リンクアグリゲーションテーブルを参照して、前記決定された論理ポートに対応する前記物理ポートを、前記受信パケットの出力先として決定する出力先決定部と;を備える、パケット中継装置。
SUMMARY An advantage of some aspects of the invention is to solve at least a part of the problems described above, and the invention can be implemented as the following forms or application examples.
[Mode 1] A packet relay device, comprising: a plurality of physical ports for transmitting and receiving packets; a plurality of logical ports each of which is a bundle of two or more physical ports; and a plurality of virtual ports; A one-to-one correspondence table; a link aggregation table that associates each logical port with the two or more physical ports that constitute each logical port; and any one of the plurality of logical ports. An output destination specifying table for associating output destination specifying information used for specifying an output destination of a received packet and any one of the plurality of virtual ports; from the received packet to the output destination An output destination specifying information acquisition unit for acquiring the specific information; referring to the output destination specifying table; An output destination virtual port determination unit that determines an output destination virtual port that is the virtual port that is an output destination of the received packet based on fixed information; and the determined output destination virtual port with reference to the port correspondence table And an output destination determination unit that determines the physical port corresponding to the determined logical port as an output destination of the received packet with reference to the link aggregation table. A packet relay device.

[適用例1]パケット中継装置であって、
パケットを送受信する複数の物理ポートと、
前記複数の物理ポートと複数の仮想ポートとを、または、2以上の前記物理ポートを束ねた論理的なポートである論理ポートであって複数の論理ポートと前記複数の仮想ポートとを、1対1に対応付けるポート対応テーブルと、
前記複数の物理ポートのうちいずれかの物理ポートまたは前記複数の論理ポートのうちいずれかの論理ポートにより受信された受信パケットの出力先を特定するために用いられる出力先特定情報と、前記複数の仮想ポートのうちいずれかの仮想ポートと、を対応付ける出力先特定テーブルと、
前記受信パケットから前記出力先特定情報を取得する出力先特定情報取得部と、
前記出力先特定テーブルを参照して、前記取得された出力先特定情報に基づき、前記受信パケットの出力先となる前記仮想ポートである出力先仮想ポートを決定する出力先仮想ポート決定部と、
前記ポート対応テーブルを参照して、前記決定された出力先仮想ポートに対応する前記物理ポートまたは前記論理ポートを、前記受信パケットの出力先として決定する出力先決定部と、
を備える、パケット中継装置。
Application Example 1 A packet relay device,
Multiple physical ports to send and receive packets;
A pair of the plurality of physical ports and the plurality of virtual ports, or a logical port that is a logical port obtained by bundling two or more physical ports, and a pair of the plurality of logical ports and the plurality of virtual ports. Port correspondence table associated with 1,
Output destination specifying information used for specifying an output destination of a received packet received by any one of the plurality of physical ports or any one of the plurality of logical ports; and An output destination specifying table for associating one of the virtual ports with the virtual port;
An output destination specifying information acquisition unit for acquiring the output destination specifying information from the received packet;
Referring to the output destination specifying table, based on the acquired output destination specifying information, an output destination virtual port determining unit that determines an output destination virtual port that is the virtual port that is an output destination of the received packet;
With reference to the port correspondence table, an output destination determination unit that determines the physical port or the logical port corresponding to the determined output destination virtual port as an output destination of the received packet;
A packet relay device.

適用例1のパケット中継装置では、出力先を決定する際に参照される出力先特定テーブルにおいて、出力先特定情報に対して、物理ポート又は論理ポートではなく、仮想ポートが対応付けられ、かつ、ポート対応テーブルにおいて、物理ポートまたは論理ポートと、仮想ポートとが1:1に対応付けられている。したがって、接続ポートを切り替えた際には、ポート対応テーブルにおける物理ポートまたは論理ポートと仮想ポートとの対応付けを変更(更新)するだけでよく、出力先特定テーブルを更新することを省略できる。一般に、ポート対応テーブルに比較して出力先特定テーブルは複雑であり、また、出力先特定テーブルはより多くのテーブルから構成されるので、適用例1の構成によって、接続ポートの切り替えに伴う設定変更に要する期間を短くすることができる。したがって、パケット中継装置において、接続ポート切り替え時の運用再開までの期間を短くすることができる。加えて、接続ポート切り替えに伴う設定変更のユーザ負担を軽減することができる。   In the packet relay apparatus of Application Example 1, in the output destination specification table referred to when determining the output destination, the output destination specifying information is associated with the virtual port instead of the physical port or the logical port, and In the port correspondence table, the physical port or logical port and the virtual port are associated with 1: 1. Therefore, when the connection port is switched, it is only necessary to change (update) the association between the physical port or logical port and the virtual port in the port correspondence table, and the update of the output destination specifying table can be omitted. Generally, the output destination specifying table is more complex than the port correspondence table, and the output destination specifying table is composed of a larger number of tables. It is possible to shorten the period required for the process. Therefore, in the packet relay apparatus, the period until the operation is restarted when the connection port is switched can be shortened. In addition, it is possible to reduce the user burden of setting changes accompanying connection port switching.

[適用例2]請求項1に記載のパケット中継装置において、
前記出力先特定情報は、少なくとも、前記受信パケットの宛先アドレスを含み、
前記出力先特定テーブルは、少なくとも、前記複数の仮想ポートのうちいずれかの仮想ポートと、前記受信パケットの宛先アドレスとを対応付ける宛先テーブルを含み、
前記出力先仮想ポート決定部は、前記出力先特定テーブルを参照して、前記受信パケットの宛先アドレスに基づき、前記受信パケットの出力先となる前記仮想ポートを決定する、パケット中継装置。
Application Example 2 In the packet relay device according to claim 1,
The output destination specifying information includes at least a destination address of the received packet,
The output destination specifying table includes a destination table that associates at least one of the plurality of virtual ports with a destination address of the received packet,
The output destination virtual port determining unit refers to the output destination specifying table, and determines the virtual port that is the output destination of the received packet based on the destination address of the received packet.

このような構成により、接続ポートの切り替えの際に、仮想ポートと受信パケットの宛先アドレスとが対応付けられている、比較的複雑な宛先テーブルを更新することを省略できる。   With such a configuration, it is possible to omit updating a relatively complicated destination table in which a virtual port and a destination address of a received packet are associated with each other when switching connection ports.

[適用例3]請求項2に記載のパケット中継装置において、さらに、
前記ポート対応テーブルを参照して、前記受信パケットを受信した前記物理ポート又は前記論理ポートに対応する前記仮想ポートを特定する受信側仮想ポート特定部と、
前記決定された出力先に、前記受信パケットを中継するパケット中継部と、
を備え、
前記出力先特定情報は、少なくとも、前記受信パケットの宛先アドレスと、前記受信パケットのヘッダに設定されているVLAN−IDと、を含み、
前記宛先テーブルは、前記複数の仮想ポートのうちいずれかの仮想ポートと、前記受信パケットの前記宛先アドレスと、前記パケット中継装置においてVLANを識別するためのVLAN値と、を対応付け、
前記出力先特定テーブルは、
前記宛先テーブルと、
前記複数の仮想ポートのうちいずれかの仮想ポートと、前記受信パケットの前記VLAN−IDと、前記VLAN値と、を対応付けるVLAN決定テーブルと、
前記出力先仮想ポートと、前記VLAN値と、前記VLAN−IDと、を対応付けるVLAN−ID変換テーブルと、
を含み、
前記出力先決定部は、前記VLAN決定テーブルを参照して、前記特定された受信側仮想ポートと、前記受信パケットの前記VLAN−IDと、に基づき、前記受信パケットの送信元が所属するVLANの前記VLAN値を決定し、
前記出力先仮想ポート決定部は、前記宛先テーブルを参照して、前記決定されたVLAN値と、前記受信パケットのヘッダに含まれる前記宛先アドレスと、に基づき、前記受信パケットについての前記出力先仮想ポートを決定し、
前記出力先決定部は、前記VLAN−ID変換テーブルを参照して、前記決定された出力先仮想ポートと、前記決定されたVLAN値とに基づき、前記受信パケットを出力する際に用いる前記VLAN−IDを決定し、
前記パケット中継部は、前記決定されたVLAN−IDを前記受信されたパケットのヘッダに書き込み、前記出力先として決定された前記物理ポートまたは前記論理ポートから、前記受信パケットを出力する、パケット中継装置。
Application Example 3 In the packet relay device according to claim 2, further comprising:
A receiving-side virtual port identifying unit that identifies the virtual port corresponding to the physical port or the logical port that has received the received packet with reference to the port correspondence table;
A packet relay unit that relays the received packet to the determined output destination;
With
The output destination specifying information includes at least a destination address of the received packet and a VLAN-ID set in a header of the received packet,
The destination table associates any one of the plurality of virtual ports, the destination address of the received packet, and a VLAN value for identifying a VLAN in the packet relay device,
The output destination specifying table is:
The destination table;
A VLAN determination table associating any one of the plurality of virtual ports with the VLAN-ID of the received packet and the VLAN value;
A VLAN-ID conversion table associating the output destination virtual port, the VLAN value, and the VLAN-ID;
Including
The output destination determining unit refers to the VLAN determination table, and based on the specified receiving virtual port and the VLAN-ID of the received packet, the VLAN destination to which the transmission source of the received packet belongs Determining the VLAN value;
The output destination virtual port determination unit refers to the destination table, and determines the output destination virtual port for the received packet based on the determined VLAN value and the destination address included in the header of the received packet. Determine the port,
The output destination determination unit refers to the VLAN-ID conversion table and uses the VLAN-ID used when outputting the received packet based on the determined output destination virtual port and the determined VLAN value. Determine the ID,
The packet relay unit writes the determined VLAN-ID into a header of the received packet and outputs the received packet from the physical port or the logical port determined as the output destination .

このような構成により、パケット中継装置及びパケット中継装置に接続される装置にVLANが設定されている場合に、かかるVLAN内でのパケットの中継を実現できる。加えて、出力テーブルとして、VLAN決定テーブルと、宛先テーブルと、VLAN−ID変換テーブルの合計3つのテーブルを含む構成であっても、接続ポートが切り替えられた際には、ユーザは、ポート対応テーブルのみ更新すればよく、接続ポートの切り替え時の設定変更に要する期間を短くすることができると共に、ユーザの設定作業の負担を軽減することができる。   With such a configuration, when a VLAN is set in the packet relay device and the device connected to the packet relay device, it is possible to realize packet relay in the VLAN. In addition, even if the configuration includes a total of three tables, ie, a VLAN determination table, a destination table, and a VLAN-ID conversion table, as an output table, when the connection port is switched, It is only necessary to update the period, and the period required for the setting change at the time of switching the connection port can be shortened, and the burden of the user's setting work can be reduced.

[適用例4]請求項3に記載のパケット中継装置において、
前記出力先仮想ポート決定部は、前記宛先テーブルを参照した際に、前記決定されたVLAN値と、前記受信パケットの前記宛先アドレスとが、前記宛先テーブルにおいて、いずれの前記仮想ポートにも対応付けられていない場合には、前記受信パケットを受信した前記仮想ポートに対応付けられている前記VLAN値と同じVLAN値に対応付けられている前記仮想ポートであって、前記受信パケットを受信した仮想ポートを除く他のすべての仮想ポートを、前記出力先仮想ポートとして決定する、パケット中継装置。
Application Example 4 In the packet relay device according to claim 3,
When the output destination virtual port determination unit refers to the destination table, the determined VLAN value and the destination address of the received packet are associated with any of the virtual ports in the destination table. If not, the virtual port associated with the same VLAN value as the VLAN value associated with the virtual port that received the received packet, and the virtual port that received the received packet A packet relay device that determines all other virtual ports except for as the output destination virtual ports.

このような構成により、パケット中継装置は、宛先テーブルにおいてVLAN値とパケットのヘッダに含まれる宛先アドレスとが、いずれの仮想ポートに対応付けられていない場合、すなわち、未知の宛先へのパケットを受信した場合であっても、かかる宛先に向けてパケットを出力(中継)することができる。   With such a configuration, the packet relay device receives a packet to an unknown destination when the VLAN value and the destination address included in the packet header in the destination table are not associated with any virtual port. Even in this case, the packet can be output (relayed) toward the destination.

[適用例5]請求項3または請求項4に記載のパケット中継装置において、
前記出力先仮想ポート決定部は、前記受信パケットが受信された際に、前記宛先テーブルにおいて、前記決定されたVLAN値と、前記受信パケットの送信元アドレスとが、いずれの仮想ポートにも対応付けられていない場合には、前記宛先テーブルにおいて、前記決定されたVLAN値と、前記受信パケットの送信元アドレスと、前記受信パケットを受信した前記物理ポートまたは前記論理ポートに対応付けられた仮想ポートと、を対応付ける、パケット中継装置。
Application Example 5 In the packet relay device according to claim 3 or 4,
When the received packet is received, the output destination virtual port determining unit associates the determined VLAN value and the source address of the received packet with any virtual port in the destination table. If not, in the destination table, the determined VLAN value, the source address of the received packet, the virtual port associated with the physical port or the logical port that received the received packet, A packet relay device.

このような構成により、パケット中継装置は、VLAN値と送信元アドレスとが宛先テーブルにおいていずれの仮想ポートに対応付けられていない場合、すなわち、未知の装置(送信元)からパケットを受信した場合に、かかる送信元についてのアドレスと、VLAN値と、仮想ポートとを、宛先テーブルに対応付けるので、その後、かかる未知の装置宛のパケットを受信した場合に、宛先テーブルを参照して、出力先を特定することができる。したがって、新たな装置がパケット中継装置に接続される際に、ユーザは、かかる装置について宛先テーブルに登録する必要がなく、ユーザの作業負担を軽減することができる。   With such a configuration, when the VLAN value and the transmission source address are not associated with any virtual port in the destination table, that is, when the packet relay apparatus receives a packet from an unknown apparatus (transmission source). Since the address, VLAN value, and virtual port of the transmission source are associated with the destination table, when the packet addressed to the unknown device is received, the output destination is specified with reference to the destination table. can do. Therefore, when a new device is connected to the packet relay device, the user does not need to register the device in the destination table, and the user's work load can be reduced.

[適用例6]請求項1ないし請求項5のいずれかに記載のパケット中継装置において、さらに、
前記ポート対応テーブルにおける、前記複数の物理ポートと前記複数の仮想ポートとの対応関係、または、前記複数の論理ポートと前記複数の仮想ポートとの対応関係の更新を許容するユーザインタフェースを備える、パケット中継装置。
Application Example 6 In the packet relay device according to any one of claims 1 to 5,
A packet comprising a user interface that allows updating of the correspondence between the plurality of physical ports and the plurality of virtual ports or the correspondence between the plurality of logical ports and the plurality of virtual ports in the port correspondence table; Relay device.

このような構成により、接続ポートの変更があった場合に、ユーザは、かかるユーザインタフェースを利用してポート対応テーブルを更新することができる。   With such a configuration, when the connection port is changed, the user can update the port correspondence table using the user interface.

[適用例7]請求項1ないし請求項6のいずれかに記載のパケット中継装置において、
前記パケットは、レイヤ2フレームである、パケット中継装置。
Application Example 7 In the packet relay device according to any one of claims 1 to 6,
The packet relay device, wherein the packet is a layer 2 frame.

このような構成により、パケット中継装置として、レイヤ2フレームを中継する装置(例えば、レイヤ2スイッチ)を採用することができ、レイヤ2スイッチ等における接続ポートの切り替え時の運用再開までの期間を短くすることができる。   With such a configuration, a device that relays a layer 2 frame (for example, a layer 2 switch) can be adopted as a packet relay device, and the period until the operation is resumed when the connection port is switched in the layer 2 switch or the like is shortened. can do.

[適用例8]パケットを送受信する複数の物理ポートを有するパケット中継装置において、受信パケットの出力先を決定するための方法であって、
(a)前記パケット中継装置において、前記複数の物理ポートと複数の仮想ポートとを、または、2以上の前記物理ポートを束ねた論理的なポートである論理ポートであって複数の論理ポートと前記複数の仮想ポートとを、1対1に対応付ける工程と、
(b)前記パケット中継装置において、前記複数の物理ポートのうちいずれかの物理ポートまたは前記複数の論理ポートのうちいずれかの論理ポートにより受信された受信パケットの出力先を特定するために用いられる出力先特定情報と、前記複数の仮想ポートのうちいずれかの仮想ポートと、を対応付ける工程と、
(c)前記パケット中継装置において、前記受信パケットから前記出力先特定情報を取得する工程と、
(d)前記パケット中継装置において、前記出力先特定テーブルを参照して、前記取得された出力先特定情報に基づき、前記受信パケットの出力先となる前記仮想ポートである出力先仮想ポートを決定する工程と、
(e)前記パケット中継装置において、前記ポート対応テーブルを参照して、前記決定された出力先仮想ポートに対応する前記物理ポートまたは前記論理ポートを、前記受信パケットの出力先として決定する工程と、
を備える、方法。
Application Example 8 A method for determining an output destination of a received packet in a packet relay device having a plurality of physical ports that transmit and receive packets,
(A) In the packet relay device, the plurality of physical ports and the plurality of virtual ports, or a logical port that is a logical port obtained by bundling two or more physical ports, Associating a plurality of virtual ports on a one-to-one basis;
(B) In the packet relay device, used to specify an output destination of a received packet received by any one of the plurality of physical ports or any one of the plurality of logical ports. Associating output destination specifying information with any one of the plurality of virtual ports;
(C) in the packet relay device, obtaining the output destination specifying information from the received packet;
(D) The packet relay apparatus refers to the output destination specifying table and determines an output destination virtual port that is the virtual port serving as the output destination of the received packet based on the acquired output destination specifying information. Process,
(E) in the packet relay device, referring to the port correspondence table, determining the physical port or the logical port corresponding to the determined output destination virtual port as an output destination of the received packet;
A method comprising:

適用例8の方法では、出力先を決定する際に参照される出力先特定テーブルにおいて、出力先特定情報に対して、物理ポート又は論理ポートではなく、仮想ポートが対応付けられ、かつ、ポート対応テーブルにおいて、物理ポートまたは論理ポートと、仮想ポートとが1:1に対応付けられている。したがって、接続ポートを切り替えた際には、ポート対応テーブルにおける物理ポートまたは論理ポートと仮想ポートとの対応付けを変更(更新)するだけでよく、出力先特定テーブルを更新することを省略できる。一般に、ポート対応テーブルに比較して出力先特定テーブルは複雑であり、また、出力先特定テーブルはより多くのテーブルから構成されるので、適用例8の方法によって、接続ポートの切り替えに伴う設定変更に要する期間を短くすることができる。したがって、パケット中継装置において、接続ポート切り替え時の運用再開までの期間を短くすることができる。加えて、接続ポート切り替えに伴う設定変更のユーザ負担を軽減することができる。   In the method of the application example 8, in the output destination specifying table referred to when determining the output destination, the output destination specifying information is associated with the virtual port instead of the physical port or the logical port, and the port correspondence In the table, physical ports or logical ports and virtual ports are associated with 1: 1. Therefore, when the connection port is switched, it is only necessary to change (update) the association between the physical port or logical port and the virtual port in the port correspondence table, and the update of the output destination specifying table can be omitted. Generally, the output destination specifying table is more complex than the port correspondence table, and the output destination specifying table is composed of a larger number of tables. It is possible to shorten the period required for the process. Therefore, in the packet relay apparatus, the period until the operation is restarted when the connection port is switched can be shortened. In addition, it is possible to reduce the user burden of setting changes accompanying connection port switching.

[適用例9]コンピュータと、パケットを送受信する複数の物理ポートと、を有するパケット中継装置において、受信パケットの出力先を決定するためのプログラムであって、
(a)各前記物理ポートと複数の仮想ポートとを、または、2以上の前記物理ポートを束ねた論理的なポートである論理ポートであって複数の論理ポートと前記複数の仮想ポートとを、1対1に対応付ける機能と、
(b)前記複数の物理ポートのうちいずれかの物理ポートまたは前記複数の論理ポートのうちいずれかの論理ポートにより受信された受信パケットの出力先を特定するために用いられる出力先特定情報と、前記複数の仮想ポートのうちいずれかの仮想ポートと、を対応付ける機能と、
(c)前記受信パケットから前記出力先特定情報を取得する機能と、
(d)前記出力先特定テーブルを参照して、前記取得された出力先特定情報に基づき、前記受信パケットの出力先となる前記仮想ポートである出力先仮想ポートを決定する機能と、
(e)前記ポート対応テーブルを参照して、前記決定された出力先仮想ポートに対応する前記物理ポートまたは前記論理ポートを、前記受信パケットの出力先として決定する機能と、
を前記コンピュータに実現させるためのプログラム。
Application Example 9 In a packet relay device having a computer and a plurality of physical ports that transmit and receive packets, a program for determining an output destination of a received packet,
(A) Each of the physical ports and a plurality of virtual ports, or a logical port that is a logical port in which two or more physical ports are bundled, and the plurality of logical ports and the plurality of virtual ports, A one-to-one correspondence function;
(B) output destination specifying information used for specifying an output destination of a received packet received by any one of the plurality of physical ports or any one of the plurality of logical ports; A function of associating any one of the plurality of virtual ports;
(C) a function of acquiring the output destination specifying information from the received packet;
(D) a function of referring to the output destination specifying table and determining an output destination virtual port that is the virtual port serving as an output destination of the received packet based on the acquired output destination specifying information;
(E) a function of referring to the port correspondence table to determine the physical port or the logical port corresponding to the determined output destination virtual port as an output destination of the received packet;
A program for causing the computer to realize the above.

適用例9のプログラムでは、出力先を決定する際に参照される出力先特定テーブルにおいて、出力先特定情報に対して、物理ポート又は論理ポートではなく、仮想ポートが対応付けられ、かつ、ポート対応テーブルにおいて、物理ポートまたは論理ポートと、仮想ポートとが1:1に対応付けられている。したがって、接続ポートを切り替えた際には、ポート対応テーブルにおける物理ポートまたは論理ポートと仮想ポートとの対応付けを変更(更新)するだけでよく、出力先特定テーブルを更新することを省略できる。一般に、ポート対応テーブルに比較して出力先特定テーブルは複雑であり、また、出力先特定テーブルはより多くのテーブルから構成されるので、適用例9のプログラムによって、接続ポートの切り替えに伴う設定変更に要する期間を短くすることができる。したがって、パケット中継装置において、接続ポート切り替え時の運用再開までの期間を短くすることができる。加えて、接続ポート切り替えに伴う設定変更のユーザ負担を軽減することができる。   In the program of the application example 9, in the output destination specifying table referred to when determining the output destination, the virtual destination is associated with the output destination specifying information, not the physical port or the logical port, and the port correspondence In the table, physical ports or logical ports and virtual ports are associated with 1: 1. Therefore, when the connection port is switched, it is only necessary to change (update) the association between the physical port or logical port and the virtual port in the port correspondence table, and the update of the output destination specifying table can be omitted. Generally, the output destination specifying table is more complex than the port correspondence table, and the output destination specifying table is composed of a larger number of tables. Therefore, the setting change accompanying connection port switching is performed by the program of application example 9. It is possible to shorten the period required for the process. Therefore, in the packet relay apparatus, the period until the operation is restarted when the connection port is switched can be shortened. In addition, it is possible to reduce the user burden of setting changes accompanying connection port switching.

[適用例10]請求項9に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。   Application Example 10 A computer-readable recording medium on which the program according to claim 9 is recorded.

このような構成により、かかる記録媒体を用いてコンピュータにプログラムを読み取らせ、各機能を実現させることができる。   With such a configuration, it is possible to cause a computer to read a program using such a recording medium and realize each function.

なお、本発明は、種々の態様で実現することが可能であり、例えば、ネットワークシステム、またはネットワークシステムの制御方法、これらネットワークシステムや制御方法の機能を実現するためのコンピュータープログラム、そのコンピュータープログラムを記録した記録媒体、等の形態で実現することができる。   The present invention can be realized in various modes. For example, a network system or a control method of the network system, a computer program for realizing the functions of the network system and the control method, and the computer program It can be realized in the form of a recorded recording medium.

本発明の一実施例としてのパケット中継装置を用いたネットワークシステムの概略構成を示す説明図である。It is explanatory drawing which shows schematic structure of the network system using the packet relay apparatus as one Example of this invention. 図1に示す第1スイッチの機能ブロックを示す説明図である。It is explanatory drawing which shows the functional block of the 1st switch shown in FIG. 図2に示す仮想ポートテーブルの初期設定内容の一例を示す説明図である。FIG. 3 is an explanatory diagram illustrating an example of initial setting contents of a virtual port table illustrated in FIG. 2. 図2に示すVLAN決定テーブルの初期設定内容の一例を示す説明図である。FIG. 3 is an explanatory diagram illustrating an example of initial setting contents of a VLAN determination table illustrated in FIG. 2. 図2に示す宛先テーブルの初期設定内容の一例を示す説明図である。FIG. 3 is an explanatory diagram illustrating an example of initial setting contents of a destination table illustrated in FIG. 2. 図2に示すフラッディングテーブルの初期設定内容の一例を示す説明図である。FIG. 3 is an explanatory diagram illustrating an example of initial setting contents of a flooding table illustrated in FIG. 2. 図2に示す実物理ポート変換テーブルの初期設定内容の一例を示す説明図である。It is explanatory drawing which shows an example of the initial setting content of the real physical port conversion table shown in FIG. 図2に示すVLAN−ID変換テーブルの初期設定内容の一例を示す説明図である。It is explanatory drawing which shows an example of the initial setting content of the VLAN-ID conversion table shown in FIG. 初期設定時に設定用画面に入力されるコマンドの一例を示す説明図である。It is explanatory drawing which shows an example of the command input into the screen for a setting at the time of initialization. 第1スイッチにおいて実行される宛先登録処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the destination registration process performed in a 1st switch. 第1スイッチにおいて実行される宛先検索処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the destination search process performed in a 1st switch. 第1実施例における接続ポートの切り替え後のネットワークシステムの構成例を示す説明図である。It is explanatory drawing which shows the structural example of the network system after the switching of the connection port in 1st Example. 第1実施例において実行される再設定処理の作業手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the reset process performed in 1st Example. 第1実施例の再設定処理において設定用画面に入力されるコマンドの一例を示す説明図である。It is explanatory drawing which shows an example of the command input into the screen for a setting in the reset process of 1st Example. 図14に示すコマンドが入力された場合に更新された仮想ポートテーブルの設定内容を示す説明図である。It is explanatory drawing which shows the setting content of the virtual port table updated when the command shown in FIG. 14 is input. 図14に示すコマンドが入力された場合に更新された実物理ポート変換テーブルの設定内容を示す説明図である。FIG. 15 is an explanatory diagram illustrating setting contents of an actual physical port conversion table updated when the command illustrated in FIG. 14 is input. 比較例のスイッチの機能ブロックを示す説明図である。It is explanatory drawing which shows the functional block of the switch of a comparative example. 比較例において実行される再設定処理の作業手順を示す第1のフローチャートである。It is a 1st flowchart which shows the work procedure of the reset process performed in a comparative example. 比較例において実行される再設定処理の作業手順を示す第2のフローチャートである。It is a 2nd flowchart which shows the work procedure of the reset process performed in a comparative example. 比較例の再設定処理において設定用画面に入力されるコマンドの一例を示す説明図である。It is explanatory drawing which shows an example of the command input into the screen for a setting in the reset process of a comparative example. 第2実施例におけるパケット中継装置を用いたネットワークシステムの概略構成を示す説明図である。It is explanatory drawing which shows schematic structure of the network system using the packet relay apparatus in 2nd Example. 図21に示す第6スイッチの機能ブロックを示す説明図である。It is explanatory drawing which shows the functional block of the 6th switch shown in FIG. 第2実施例における仮想ポートテーブルの初期設定内容の一例を示す説明図である。It is explanatory drawing which shows an example of the initial setting content of the virtual port table in 2nd Example. 第2実施例におけるVLAN決定テーブルの初期設定内容の一例を示す説明図である。It is explanatory drawing which shows an example of the initial setting content of the VLAN determination table in 2nd Example. 第2実施例における宛先テーブルの初期設定内容の一例を示す説明図である。It is explanatory drawing which shows an example of the initial setting content of the destination table in 2nd Example. 第2実施例におけるフラッディングテーブルの初期設定内容の一例を示す説明図である。It is explanatory drawing which shows an example of the initial setting content of the flooding table in 2nd Example. 図22に示す回線ポート変換テーブルの初期設定内容の一例を示す説明図である。It is explanatory drawing which shows an example of the initial setting content of the line port conversion table shown in FIG. 第2実施例におけるVLAN−ID変換テーブルの初期設定内容の一例を示す説明図である。It is explanatory drawing which shows an example of the initial setting content of the VLAN-ID conversion table in 2nd Example. 図22に示すLAGテーブルの初期設定内容を示す説明図である。It is explanatory drawing which shows the initial setting content of the LAG table shown in FIG. 第2実施例において初期設定時に設定用画面に入力されるコマンドの一例を示す説明図である。It is explanatory drawing which shows an example of the command input into the screen for a setting at the time of initial setting in 2nd Example. 第2実施例の宛先検索処理の手順を示すフローチャートである。It is a flowchart which shows the procedure of the destination search process of 2nd Example. 第2実施例における接続ポートの切り替え後のネットワークシステムの構成例を示す説明図である。It is explanatory drawing which shows the structural example of the network system after the switching of the connection port in 2nd Example. 第2実施例において実行される再設定処理の作業手順を示すフローチャートである。It is a flowchart which shows the operation | movement procedure of the reset process performed in 2nd Example. 第2実施例において再設定処理のステップS310で入力される設定用コマンドの入力例を示す説明図である。It is explanatory drawing which shows the example of an input of the command for a setting input by step S310 of a reset process in 2nd Example. 図34に示すコマンドが入力された場合に更新される仮想ポートテーブルの設定内容を示す説明図である。FIG. 35 is an explanatory diagram illustrating setting contents of a virtual port table that is updated when the command illustrated in FIG. 34 is input. 図34に示すコマンドが入力された場合に更新される回線ポート変換テーブルの設定内容を示す説明図である。FIG. 35 is an explanatory diagram showing setting contents of a line port conversion table that is updated when the command shown in FIG. 34 is input. 図34に示すコマンドが入力された場合に更新されるLAGテーブルの設定内容を示す説明図である。It is explanatory drawing which shows the setting content of the LAG table updated when the command shown in FIG. 34 is input.

A.第1実施例:
A1.システム構成:
図1は、本発明の一実施例としてのパケット中継装置を用いたネットワークシステムの概略構成を示す説明図である。このネットワークシステム10は、パケット中継装置としての第1スイッチSW1,第2スイッチSW2,第3スイッチSW3,第4スイッチSW4,第5スイッチSW5と、クライアントとしての6台のパーソナルコンピュータPC1,PC2,PC3,PC4,PC5,PC6とを備え、各クライアント間におけるデータの送受信を実現する。
A. First embodiment:
A1. System configuration:
FIG. 1 is an explanatory diagram showing a schematic configuration of a network system using a packet relay apparatus as an embodiment of the present invention. The network system 10 includes a first switch SW1, a second switch SW2, a third switch SW3, a fourth switch SW4, a fifth switch SW5 as packet relay apparatuses, and six personal computers PC1, PC2, PC3 as clients. , PC4, PC5, PC6, and realizes data transmission / reception between the clients.

5台のスイッチSW1〜SW5は、いずれもレイヤ2(OSI参照モデルにおける第2層(データリンク層))のフレームを中継するスイッチである。第1スイッチSW1は、4つの物理ポートP11,P12,P13,P14を備えている。ここで、「物理ポート」とは、実在するポートであり、独立した1本(1対)のケーブル(回線)が接続されるポートを意味する。また、各物理ポートは、入力物理ポートと出力物理ポートとを有する。物理ポートP11にはネットワークケーブルL2が接続されている。同様に、物理ポートP12にはネットワークケーブルL3が、物理ポートP13にはネットワークケーブルL4が、物理ポートP14にはネットワークケーブルL5が、それぞれ接続されている。第1スイッチSW1は、他の4台のスイッチSW2〜SW5と接続されている。具体的には、第1スイッチSW1は、ネットワークケーブルL2を介して第2スイッチSW2と接続されている。また、第1スイッチSW1は、ネットワークケーブルL3を介して第3スイッチSW3と、ネットワークケーブルL4を介して第4スイッチSW4と、ネットワークケーブルL5を介して第5スイッチSW5と、それぞれ接続されている。   Each of the five switches SW1 to SW5 is a switch that relays a frame of layer 2 (second layer (data link layer) in the OSI reference model). The first switch SW1 includes four physical ports P11, P12, P13, and P14. Here, the “physical port” is an existing port and means a port to which one independent (one pair) cable (line) is connected. Each physical port has an input physical port and an output physical port. A network cable L2 is connected to the physical port P11. Similarly, a network cable L3 is connected to the physical port P12, a network cable L4 is connected to the physical port P13, and a network cable L5 is connected to the physical port P14. The first switch SW1 is connected to the other four switches SW2 to SW5. Specifically, the first switch SW1 is connected to the second switch SW2 via the network cable L2. The first switch SW1 is connected to the third switch SW3 via the network cable L3, the fourth switch SW4 via the network cable L4, and the fifth switch SW5 via the network cable L5.

第2スイッチSW2は、4つの物理ポートP21,P22,P23,P24を備えている。物理ポートP21には、ネットワークケーブルL2が接続されている。物理ポートP22には、ネットワークケーブルを介してパーソナルコンピュータPC1が接続されている。同様に、物理ポートP23には、ネットワークケーブルを介してパーソナルコンピュータPC2が接続されている。物理ポートP24には、ネットワークケーブルは接続されていない。   The second switch SW2 includes four physical ports P21, P22, P23, and P24. A network cable L2 is connected to the physical port P21. A personal computer PC1 is connected to the physical port P22 via a network cable. Similarly, a personal computer PC2 is connected to the physical port P23 via a network cable. A network cable is not connected to the physical port P24.

第3スイッチSW3は、4つの物理ポートP31,P32,P33,P34を備えている。物理ポートP31には、ネットワークケーブルL3が接続されている。物理ポートP32には、ネットワークケーブルを介してパーソナルコンピュータPC3が接続されている。2つの物理ポートP33,P34には、ネットワークケーブルは接続されていない。   The third switch SW3 includes four physical ports P31, P32, P33, and P34. A network cable L3 is connected to the physical port P31. A personal computer PC3 is connected to the physical port P32 via a network cable. A network cable is not connected to the two physical ports P33 and P34.

第4スイッチSW4は、4つの物理ポートP41,P42,P43,P44を備えている。物理ポートP41には、ネットワークケーブルL4が接続されている。物理ポートP42には、ネットワークケーブルを介してパーソナルコンピュータPC4が接続されている。2つの物理ポートP43,P44には、ネットワークケーブルは接続されていない。   The fourth switch SW4 includes four physical ports P41, P42, P43, and P44. A network cable L4 is connected to the physical port P41. A personal computer PC4 is connected to the physical port P42 via a network cable. A network cable is not connected to the two physical ports P43 and P44.

第5スイッチSW5は、4つの物理ポートP51,P52,P53,P54を備えている。物理ポートP51には、ネットワークケーブルL5が接続されている。物理ポートP52には、ネットワークケーブルを介してパーソナルコンピュータPC5が接続されている。同様に、物理ポートP53には、ネットワークケーブルを介してパーソナルコンピュータPC6が接続されている。物理ポートP54には、ネットワークケーブルは接続されていない。   The fifth switch SW5 includes four physical ports P51, P52, P53, and P54. A network cable L5 is connected to the physical port P51. A personal computer PC5 is connected to the physical port P52 via a network cable. Similarly, a personal computer PC6 is connected to the physical port P53 via a network cable. A network cable is not connected to the physical port P54.

パーソナルコンピュータPC1〜PC6は、いずれも、レイヤ2での通信を実現する図示しないネットワークインタフェースカードを備え、かかるネットワークインタフェースカードにネットワークケーブルが接続されている。各パーソナルコンピュータPC1〜PC6のネットワークインタフェースカードには、それぞれMAC(Media Access Control)アドレスが設定されている。具体的には、パーソナルコンピュータPC1のネットワークインタフェースカードには、MACアドレス「A1」が設定されている。一般に、MACアドレスは48ビットで表わされるが、本実施例では、説明の便宜上、模式的な識別子によりMACアドレスを表わしている。同様に、パーソナルコンピュータPC2のネットワークインタフェースカードにはMACアドレス「A2」が、パーソナルコンピュータPC3のネットワークインタフェースカードにはMACアドレス「A3」が、パーソナルコンピュータPC4のネットワークインタフェースカードにはMACアドレス「A4」が、パーソナルコンピュータPC5のネットワークインタフェースカードにはMACアドレス「A5」が、パーソナルコンピュータPC6のネットワークインタフェースカードにはMACアドレス「A6」が、それぞれ設定されている。   Each of the personal computers PC1 to PC6 includes a network interface card (not shown) that realizes communication at layer 2, and a network cable is connected to the network interface card. A MAC (Media Access Control) address is set for each of the network interface cards of the personal computers PC1 to PC6. Specifically, the MAC address “A1” is set in the network interface card of the personal computer PC1. In general, the MAC address is represented by 48 bits, but in this embodiment, for convenience of explanation, the MAC address is represented by a schematic identifier. Similarly, the network interface card of the personal computer PC2 has the MAC address “A2”, the network interface card of the personal computer PC3 has the MAC address “A3”, and the network interface card of the personal computer PC4 has the MAC address “A4”. The MAC address “A5” is set in the network interface card of the personal computer PC5, and the MAC address “A6” is set in the network interface card of the personal computer PC6.

また、各パーソナルコンピュータPC1〜PC6には、自らが所属するVLANのVLAN−IDが設定されている。具体的には、パーソナルコンピュータPC1には、VLAN−ID「10」が設定されている。同様に、パーソナルコンピュータPC2にはVLAN−ID「20」が、パーソナルコンピュータPC3にはVLAN−ID「10」が、パーソナルコンピュータPC4にはVLAN−ID「40」が、パーソナルコンピュータPC5にはVLAN−ID「30」が、パーソナルコンピュータPC6にはVLAN−ID「60」が、それぞれ設定されている。VLAN−IDとは、VLANに所属する各クライアントにおいて、VLANを識別するための識別子である。   In addition, the VLAN-ID of the VLAN to which the personal computer PC1 to PC6 belongs is set in each personal computer PC1 to PC6. Specifically, VLAN-ID “10” is set in the personal computer PC1. Similarly, VLAN-ID “20” is assigned to personal computer PC2, VLAN-ID “10” is assigned to personal computer PC3, VLAN-ID “40” is assigned to personal computer PC4, and VLAN-ID is assigned to personal computer PC5. “30” is set to the VLAN-ID “60” in the personal computer PC6. The VLAN-ID is an identifier for identifying the VLAN in each client belonging to the VLAN.

図2は、図1に示す第1スイッチの機能ブロックを示す説明図である。図2に示すように、第1スイッチSW1は、転送回路100と、ヘッダ処理部200と、記憶部300とを備えている。転送回路100は、前述の物理ポートP11〜P14を備えており、これら物理ポートP11〜P14において受信する信号からレイヤ2フレームを抽出し、また、出力先となる物理ポートP11〜P14からレイヤ2フレームを表わす信号を出力する。加えて、転送回路100は、抽出したレイヤ2フレームのヘッダ内の情報と、入力ポートに関する情報(レイヤ2フレームを入力した物理ポートの情報)とをヘッダ処理部200に通知する。   FIG. 2 is an explanatory diagram showing functional blocks of the first switch shown in FIG. As shown in FIG. 2, the first switch SW <b> 1 includes a transfer circuit 100, a header processing unit 200, and a storage unit 300. The transfer circuit 100 includes the physical ports P11 to P14 described above, extracts a layer 2 frame from signals received at the physical ports P11 to P14, and also outputs a layer 2 frame from the physical ports P11 to P14 serving as output destinations. Is output. In addition, the transfer circuit 100 notifies the header processing unit 200 of information in the extracted header of the layer 2 frame and information on the input port (information of the physical port that has input the layer 2 frame).

ヘッダ処理部200は、転送回路100から通知されるヘッダ情報及び入力ポート情報を解析して、出力先を決定する機能部であり、例えば、ASIC(Application Specific Integrated Circuit)によって構成することができる。ヘッダ処理部200は、ポート仮想化部210と、VLAN決定部220と、宛先検索部230と、実物理ポート変換部240と、VLAN−ID変換部250とを備えている。   The header processing unit 200 is a functional unit that analyzes header information and input port information notified from the transfer circuit 100 and determines an output destination, and can be configured by, for example, an ASIC (Application Specific Integrated Circuit). The header processing unit 200 includes a port virtualization unit 210, a VLAN determination unit 220, a destination search unit 230, an actual physical port conversion unit 240, and a VLAN-ID conversion unit 250.

ポート仮想化部210は、物理ポートを後述する仮想ポートに変換する。VLAN決定部220は、受信パケットの属するVLANを決定する。宛先検索部230は、受信パケットの出力先(転送先)として仮想ポートを検索する。実物理ポート変換部240は、仮想ポートを物理ポートに変換する。VLAN−ID変換部250は、出力するパケットのVLAN−IDを決定する。   The port virtualization unit 210 converts the physical port into a virtual port described later. The VLAN determination unit 220 determines the VLAN to which the received packet belongs. The destination search unit 230 searches for a virtual port as an output destination (transfer destination) of the received packet. The real physical port conversion unit 240 converts the virtual port into a physical port. The VLAN-ID converter 250 determines the VLAN-ID of the packet to be output.

記憶部300は、書き込み自在な不揮発性メモリ(例えば、EEPROM:Electronically Erasable and Programmable Read Only Memory)で構成することができる。記憶部300には、予め、仮想ポートテーブル310と、VLAN決定テーブル320と、宛先テーブル330と、フラッディングテーブル340と、実物理ポート変換テーブル350と、VLAN−ID変換テーブル360とを備えている。   The storage unit 300 can be configured by a writable nonvolatile memory (for example, an EEPROM: Electronically Erasable and Programmable Read Only Memory). The storage unit 300 includes a virtual port table 310, a VLAN determination table 320, a destination table 330, a flooding table 340, a real physical port conversion table 350, and a VLAN-ID conversion table 360 in advance.

図3は、図2に示す仮想ポートテーブルの初期設定内容の一例を示す説明図である。仮想ポートテーブル310は、ポート仮想化部210が物理ポートを仮想ポートに変換する際に参照される。図3に示すように、仮想ポートテーブル310は、入力物理ポートと入力仮想ポートとを対応付ける。入力物理ポートとは、物理ポートが有する入力側の物理ポートを意味し、入力仮想ポートとは、仮想ポートが有する入力側の仮想的なポートを意味する。ここで、「仮想ポート」とは、実在するポートとは異なり、仮想的な(論理的な)ポートであり、各テーブルの設定上においてのみ用いられるポートを意味する。そして、仮想ポートは、物理ポートと同様に、入力仮想ポート(入力側の仮想的なポート)と、出力仮想ポート(出力側の仮想的なポート)とを有する。   FIG. 3 is an explanatory diagram showing an example of the initial setting contents of the virtual port table shown in FIG. The virtual port table 310 is referred to when the port virtualization unit 210 converts a physical port into a virtual port. As shown in FIG. 3, the virtual port table 310 associates an input physical port with an input virtual port. The input physical port means an input-side physical port of the physical port, and the input virtual port means an input-side virtual port of the virtual port. Here, the “virtual port” is a virtual (logical) port, which is different from an actual port, and means a port used only in the setting of each table. The virtual port has an input virtual port (input-side virtual port) and an output virtual port (output-side virtual port), like the physical port.

図3の例では、仮想ポートテーブル310において、入力物理ポート「PI1」(物理ポートP11の入力側の物理ポートを意味する)と、入力仮想ポート「VPI1」(仮想ポートVP1の入力側の仮想ポートを意味する)とが対応付けられている。同様に、仮想ポートテーブル310では、入力物理ポート「PI2」と入力仮想ポート「VPI2」とが、入力物理ポート「PI3」と入力仮想ポート「VPI3」とが、入力物理ポート「PI4」と入力仮想ポート「VPI4」とが、それぞれ対応付けられている。このように、仮想ポートテーブル310では、入力物理ポートと入力仮想ポートとは1対1に対応付けられている。換言すると、各入力物理ポートは、1つの入力仮想ポートとのみ対応付けられ、かつ、各仮想入力ポートは、1つの入力物理ポートとのみ対応付けられている。   In the example of FIG. 3, in the virtual port table 310, the input physical port “PI1” (meaning the physical port on the input side of the physical port P11) and the input virtual port “VPI1” (the virtual port on the input side of the virtual port VP1) Means). Similarly, in the virtual port table 310, the input physical port “PI2” and the input virtual port “VPI2”, the input physical port “PI3” and the input virtual port “VPI3”, and the input physical port “PI4” and the input virtual The port “VPI4” is associated with each other. Thus, in the virtual port table 310, input physical ports and input virtual ports are associated with each other on a one-to-one basis. In other words, each input physical port is associated with only one input virtual port, and each virtual input port is associated with only one input physical port.

このような仮想ポートテーブル310の初期設定内容は、ユーザ(システム管理者等)により、手動設定される。なお、図3の例では、入力物理ポートと入力仮想ポートとが、番号順に対応付けられているが、これに限らず、入力物理ポートと入力仮想ポートとを1対1に対応付ける任意の方法で、入力物理ポートと入力仮想ポートとを対応付けることができる。   Such initial setting contents of the virtual port table 310 are manually set by a user (system administrator or the like). In the example of FIG. 3, the input physical port and the input virtual port are associated with each other in numerical order. However, the present invention is not limited to this, and an arbitrary method for associating the input physical port and the input virtual port one-to-one. The input physical port and the input virtual port can be associated with each other.

図4は、図2に示すVLAN決定テーブルの初期設定内容の一例を示す説明図である。VLAN決定テーブル320は、VLAN決定部320によってVLANが設定される際に参照される。図4に示すように、VLAN決定テーブル320は、入力仮想ポートと、VLAN−IDと、VLAN(VLAN値)とを対応付ける。なお、VLAN−IDは、IEEE802.1Qにおいて規定されているように、レイヤ2フレームのヘッダの一部(VLANタグ)に設定される。VLAN(VLAN値)とは、第1スイッチSW1の内部において、各VLANを識別するための識別子であり、本実施例では、VLAN−IDと同じ値を用いる。なお、VLAN−IDとして、VLAN値とは異なる値を設定する構成を採用することもできる。   FIG. 4 is an explanatory diagram showing an example of the initial setting contents of the VLAN determination table shown in FIG. The VLAN determination table 320 is referred to when the VLAN is set by the VLAN determination unit 320. As illustrated in FIG. 4, the VLAN determination table 320 associates an input virtual port, a VLAN-ID, and a VLAN (VLAN value). The VLAN-ID is set in a part of the header of the layer 2 frame (VLAN tag) as defined in IEEE 802.1Q. The VLAN (VLAN value) is an identifier for identifying each VLAN in the first switch SW1. In this embodiment, the same value as the VLAN-ID is used. A configuration in which a value different from the VLAN value can be set as the VLAN-ID.

図4の例では、VLAN決定テーブル320において、入力仮想ポート「VPI1」と、VLAN−ID「10」と、VLAN(VLAN値)「10」とが、互いに対応付けられている。同様に、VLAN決定テーブル320では、入力仮想ポート「VPI2」とVLAN−ID「20」とVLAN「20」とが、入力仮想ポート「VPI2」とVLAN−ID「40」とVLAN「40」とが、入力仮想ポート「VPI3」とVLAN−ID「10」とVLAN「10」とが、入力仮想ポート「VPI4」とVLAN−ID「30」とVLAN「30」とが、入力仮想ポート「VPI4」とVLAN−ID「60」とVLAN「60」とが、それぞれ対応付けられている。同じ入力仮想ポートに対して、複数のVLAN−ID(及びVLAN値)が対応付けられているのは、1つの仮想ポートに複数のVLANを設定し得るからである。なお、第1スイッチSW1(及び他のすべてのスイッチSW2〜SW6)は、異なるVLANの間ではパケット(レイヤ2フレーム)を中継せず、同じVLAN間に属している物理ポートの間でのみパケットを中継する。かかる構成により、ネットワークを複数の論理的なネットワークセグメントに分割することができ、或るネットワークセグメント内での通信が他のネットワークセグメント内での通信に影響を与えることを抑制することができる。   In the example of FIG. 4, in the VLAN determination table 320, the input virtual port “VPI1”, VLAN-ID “10”, and VLAN (VLAN value) “10” are associated with each other. Similarly, in the VLAN determination table 320, the input virtual port “VPI2”, the VLAN-ID “20”, and the VLAN “20” are included, and the input virtual port “VPI2”, the VLAN-ID “40”, and the VLAN “40” are included. , The input virtual port “VPI3”, the VLAN-ID “10”, and the VLAN “10”, the input virtual port “VPI4”, the VLAN-ID “30”, and the VLAN “30” are the input virtual port “VPI4”. VLAN-ID “60” and VLAN “60” are associated with each other. A plurality of VLAN-IDs (and VLAN values) are associated with the same input virtual port because a plurality of VLANs can be set for one virtual port. Note that the first switch SW1 (and all other switches SW2 to SW6) does not relay packets (layer 2 frames) between different VLANs, but only between physical ports belonging to the same VLAN. Relay. With such a configuration, the network can be divided into a plurality of logical network segments, and communication in one network segment can be prevented from affecting communication in another network segment.

このようなVLAN決定テーブル320の初期設定内容は、仮想ポートテーブル310の初期設定内容に基づき、ユーザ(システム管理者等)により、手動設定される。具体的には、例えば、ユーザは、仮想ポートテーブル310の初期設定において、入力仮想ポート「VPI1」に対応付けられている入力物理ポート「PI1」の先には、VLAN−ID「10,20」の値を持ったPCが接続される。そこで、ユーザは、VLAN決定テーブル320において、入力仮想ポート「VPI1」且つVLAN−ID「10」に対して、VLAN「10」を対応付けるエントリ(第1行目のエントリ)と、入力仮想ポート「VPI1」且つVLAN−ID「20」に対して、VLAN「20」を対応付けるエントリ(第2行目のエントリ)とを設定する。   Such initial setting contents of the VLAN determination table 320 are manually set by a user (system administrator or the like) based on the initial setting contents of the virtual port table 310. Specifically, for example, the user sets the VLAN-ID “10, 20” ahead of the input physical port “PI1” associated with the input virtual port “VPI1” in the initial setting of the virtual port table 310. PC with the value of is connected. Therefore, in the VLAN determination table 320, the user associates the input virtual port “VPI1” and the VLAN-ID “10” with the VLAN “10” (entry on the first row) and the input virtual port “VPI1”. And an entry (second row entry) that associates VLAN “20” with VLAN-ID “20”.

図5は、図2に示す宛先テーブルの初期設定内容の一例を示す説明図である。宛先テーブル330は、宛先検索部230により受信パケットの出力先を決定する際に参照される。図5に示すように、宛先テーブル330は、VLAN(VLAN値)と、MACアドレスと、仮想ポートとを対応付ける。   FIG. 5 is an explanatory diagram showing an example of the initial setting contents of the destination table shown in FIG. The destination table 330 is referred to when the destination search unit 230 determines the output destination of the received packet. As illustrated in FIG. 5, the destination table 330 associates a VLAN (VLAN value), a MAC address, and a virtual port.

図5の例では、宛先テーブル330において、VLAN「10」と、MACアドレス「A1」と、仮想ポート「VP1」とが、互いに対応付けられている。同様に、宛先テーブル330では、VLAN「10」とMACアドレス「A3」と仮想ポート「VP2」とが、VLAN「20」とMACアドレス「A2」と仮想ポート「VP1」とが、VLAN「30」とMACアドレス「A5」と仮想ポート「VP4」とが、VLAN「40」とMACアドレス「A4」と仮想ポート「VP3」とが、VLAN「60」とMACアドレス「A6」と仮想ポート「VP4」とが、それぞれ対応付けられている。宛先テーブル330の各設定内容は、後述の宛先登録処理により設定される。   In the example of FIG. 5, in the destination table 330, VLAN “10”, MAC address “A1”, and virtual port “VP1” are associated with each other. Similarly, in the destination table 330, the VLAN “10”, the MAC address “A3”, the virtual port “VP2”, the VLAN “20”, the MAC address “A2”, and the virtual port “VP1” are the VLAN “30”. And MAC address “A5” and virtual port “VP4”, VLAN “40”, MAC address “A4” and virtual port “VP3”, VLAN “60”, MAC address “A6” and virtual port “VP4”. Are associated with each other. Each setting content of the destination table 330 is set by destination registration processing described later.

図6は、図2に示すフラッディングテーブルの初期設定内容の一例を示す説明図である。フラッディングテーブル340は、受信パケットに設定されている宛先MACアドレスが、宛先テーブル330に登録されていない場合に参照されるテーブルであり、VLAN(VLAN値)と、出力仮想ポートとを対応付ける。第1スイッチSW1では、受信パケットの宛先MACアドレスが宛先テーブル330に登録されていない、すなわち、未知の宛先へのパケットを受信した場合、受信パケットのVLANと同じVLANに属するすべての宛先(装置)に受信パケットを中継する、いわゆるフラッディングを行う。フラッディングテーブル340は、このフラッディングの際に参照されるテーブルである。   FIG. 6 is an explanatory diagram showing an example of the initial setting contents of the flooding table shown in FIG. The flooding table 340 is a table that is referred to when the destination MAC address set in the received packet is not registered in the destination table 330, and associates the VLAN (VLAN value) with the output virtual port. In the first switch SW1, when the destination MAC address of the received packet is not registered in the destination table 330, that is, when a packet to an unknown destination is received, all destinations (devices) belonging to the same VLAN as the VLAN of the received packet So-called flooding is performed to relay received packets. The flooding table 340 is a table that is referred to during the flooding.

図6の例では、フラッディングテーブル340において、VLAN「10」と出力仮想ポート「VPO1,VPO2」とが対応付けられている。同様に、VLAN「20」と出力仮想ポート「VPO1」とが、VLAN「30」と出力仮想ポート「VPO4」とが、VLAN「40」と出力仮想ポート「VPO3」とが、VLAN「60」と出力仮想ポート「VPO4」とが、それぞれ対応付けられている。   In the example of FIG. 6, the VLAN “10” and the output virtual ports “VPO1, VPO2” are associated with each other in the flooding table 340. Similarly, the VLAN “20” and the output virtual port “VPO1”, the VLAN “30” and the output virtual port “VPO4”, the VLAN “40” and the output virtual port “VPO3” are the VLAN “60”. The output virtual port “VPO4” is associated with each other.

このようなフラッディングテーブル340の初期設定内容は、VLAN決定テーブル320の初期設定内容に基づき、手動設定される。具体的には、例えば、VLAN決定テーブル320の初期設定において、入力物理ポートPI1が対応付いている入力仮想ポート「VPI1」且つVLAN−ID「10」に対して、VLAN「10」を対応付けるエントリを設定し、入力物理ポートPI2が対応付いている入力仮想ポート「VPI2」且つVLAN−ID「10」に対して、VLAN「10」を対応付けるエントリを設定する。そこで、フラッディングテーブル340において、VLAN「10」に対して、出力仮想ポートである「VPO1,VPO2」が設定される。   Such initial setting contents of the flooding table 340 are manually set based on the initial setting contents of the VLAN determination table 320. Specifically, for example, in the initial setting of the VLAN determination table 320, an entry that associates the VLAN “10” with the input virtual port “VPI1” and the VLAN-ID “10” with which the input physical port PI1 is associated is created. The entry that associates the VLAN “10” is set to the input virtual port “VPI2” and the VLAN-ID “10” associated with the input physical port PI2. Therefore, in the flooding table 340, “VPO1, VPO2” that are output virtual ports are set for the VLAN “10”.

図7は、図2に示す実物理ポート変換テーブルの初期設定内容の一例を示す説明図である。実物理ポート変換テーブル350は、実物理ポート変換部240によって仮想ポートが物理ポートに変換される際に参照される。図7に示すように、実物理ポート変換テーブル350は、出力仮想ポートと出力物理ポートとを対応付ける。   FIG. 7 is an explanatory diagram showing an example of the initial setting contents of the real physical port conversion table shown in FIG. The real physical port conversion table 350 is referred to when the virtual port is converted into a physical port by the real physical port conversion unit 240. As shown in FIG. 7, the real physical port conversion table 350 associates output virtual ports with output physical ports.

図7の例では、実物理ポート変換テーブル350において、出力仮想ポート「VP01」(仮想ポートVP1の出力側仮想ポートを意味する)と出力物理ポート「PO1」(物理ポートP11の出力側物理ポートを意味する)とが対応付けられている。同様に、実物理ポート変換テーブル350では、出力仮想ポート「VP02」と出力物理ポート「PO2」とが、出力仮想ポート「VP03」と出力物理ポート「PO3」とが、出力仮想ポート「VP04」と出力物理ポート「PO4」とが、それぞれ対応付けられている。このような実物理ポート変換テーブル350の初期設定内容は、ユーザ(システム管理者等)により手動設定される。   In the example of FIG. 7, in the real physical port conversion table 350, the output virtual port “VP01” (meaning the output-side virtual port of the virtual port VP1) and the output physical port “PO1” (the output-side physical port of the physical port P11 are indicated). Meaning). Similarly, in the real physical port conversion table 350, the output virtual port “VP02” and the output physical port “PO2” are the output virtual port “VP03” and the output physical port “PO3” are the output virtual port “VP04”. The output physical port “PO4” is associated with each other. Such initial setting contents of the real physical port conversion table 350 are manually set by a user (system administrator or the like).

図8は、図2に示すVLAN−ID変換テーブルの初期設定内容の一例を示す説明図である。VLAN−ID変換テーブル360は、VLAN−ID変換部250によって出力するパケットのVLAN−IDが決定される際に参照される。図8に示すように、VLAN−ID変換テーブル360は、出力仮想ポートと、VLAN(VLAN値)と、VLAN−IDとを対応付ける。   FIG. 8 is an explanatory diagram showing an example of the initial setting contents of the VLAN-ID conversion table shown in FIG. The VLAN-ID conversion table 360 is referred to when the VLAN-ID of the packet output by the VLAN-ID conversion unit 250 is determined. As shown in FIG. 8, the VLAN-ID conversion table 360 associates output virtual ports, VLANs (VLAN values), and VLAN-IDs.

図8の例では、VLAN−ID変換テーブル360において、出力仮想ポート「VPO1」と、VLAN「10」と、VLAN−ID「10」とが対応付けられている。同様に、出力仮想ポート「VPO2」とVLAN「20」とVLAN−ID「20」とが、出力仮想ポート「VPO2」とVLAN「10」とVLAN−ID「10」とが、出力仮想ポート「VPO3」とVLAN「40」とVLAN−ID「40」とが、出力仮想ポート「VPO4」とVLAN「30」とVLAN−ID「30」とが、出力仮想ポート「VPO4」とVLAN「60」とVLAN−ID「60」とが、それぞれ対応付けられている。このようなVLAN−ID変換テーブル360の初期設定内容は、ユーザ(システム管理者等)により手動設定される。   In the example of FIG. 8, in the VLAN-ID conversion table 360, the output virtual port “VPO1”, the VLAN “10”, and the VLAN-ID “10” are associated with each other. Similarly, the output virtual port “VPO2”, VLAN “20”, VLAN-ID “20”, the output virtual port “VPO2”, VLAN “10”, and VLAN-ID “10” are output virtual port “VPO3”. ", VLAN" 40 ", and VLAN-ID" 40 ", output virtual port" VPO4 ", VLAN" 30 ", and VLAN-ID" 30 ", output virtual port" VPO4 ", VLAN" 60 ", and VLAN. -ID “60” is associated with each other. Such initial setting contents of the VLAN-ID conversion table 360 are manually set by a user (system administrator or the like).

上述したように、仮想ポートテーブル310,VLAN決定テーブル320,フラッディングテーブル340,実物理ポート変換テーブル350,及びVALN−ID変換テーブル360の各初期設定内容については、ユーザが手動設定する。この設定は、例えば、第1スイッチSW1に接続された管理用端末(パーソナルコンピュータなど)に表示された設定用画面において、ユーザがコマンドを入力して実現することができる。なお、かかる設定用画面は、第1スイッチSW1が生成し、管理用端末に送信して表示させる構成を採用することもできる。また、管理用端末が設定用画面を生成し、表示する構成を採用することもできる。   As described above, the initial settings of the virtual port table 310, the VLAN determination table 320, the flooding table 340, the actual physical port conversion table 350, and the VALN-ID conversion table 360 are manually set by the user. This setting can be realized, for example, by a user inputting a command on a setting screen displayed on a management terminal (such as a personal computer) connected to the first switch SW1. The setting screen may be generated by the first switch SW1, transmitted to the management terminal, and displayed. A configuration in which the management terminal generates and displays a setting screen can also be adopted.

図9は、初期設定時に設定用画面に入力されるコマンドの一例を示す説明図である。図9では、設定用画面W1に初期設定のためのコマンドが入力されている。なお、図9では、初期設定の際に入力されるコマンドのうち、一部のコマンドのみ表わしている。具体的には、設定用画面W1のうち、領域Ar1には、物理ポートP12と仮想ポートVP2とを対応付けるコマンドが入力されている。同様に、領域Ar2には、物理ポートP14と、仮想ポートVP4とを対応付けるコマンドが入力されている。なお、図9では省略されているが、他の物理ポートP11、P13についても、それぞれ、仮想ポートVP1,VP3と対応付けるコマンドが入力されている。これらのコマンドの入力により、仮想ポートテーブル310及び実物理ポート変換テーブル350が設定される。   FIG. 9 is an explanatory diagram illustrating an example of a command input to the setting screen at the time of initial setting. In FIG. 9, a command for initial setting is input on the setting screen W1. In FIG. 9, only a part of the commands inputted at the time of initial setting are shown. Specifically, a command for associating the physical port P12 and the virtual port VP2 is input to the area Ar1 in the setting screen W1. Similarly, a command for associating the physical port P14 and the virtual port VP4 is input to the area Ar2. Although omitted in FIG. 9, commands associated with the virtual ports VP1 and VP3 are input to the other physical ports P11 and P13, respectively. The virtual port table 310 and the real physical port conversion table 350 are set by inputting these commands.

また、設定用画面W1のうち、領域Ar3には、仮想ポートVP2と、VLAN−ID「10」とを対応付けるコマンドが入力されている。同様に、領域Ar4には、仮想ポートVP4と、VLAN−ID「30,60」とを対応付けるコマンドが入力されている。なお、図9では省略されているが、他の仮想ポートとVLAN−IDとを対応付けるコマンドも入力される。そして、これらのコマンドの入力により、VLAN決定テーブル320と、フラッディングテーブル340と、VLAN−ID変換テーブル360とが設定される。   In the setting screen W1, a command for associating the virtual port VP2 with the VLAN-ID “10” is input to the area Ar3. Similarly, a command for associating the virtual port VP4 with the VLAN-ID “30, 60” is input to the area Ar4. Although omitted in FIG. 9, a command for associating another virtual port with a VLAN-ID is also input. The VLAN determination table 320, the flooding table 340, and the VLAN-ID conversion table 360 are set by inputting these commands.

なお、他のスイッチSW2〜SW5の機能構成は、記憶部300に格納されている各テーブルの設定内容を除き、上述した第1スイッチSW1の機能構成と同じであるので、説明を省略する。   The functional configurations of the other switches SW2 to SW5 are the same as the functional configuration of the first switch SW1 described above, except for the setting contents of each table stored in the storage unit 300, and thus the description thereof is omitted.

前述の仮想ポートテーブル310及び実物理ポート変換テーブル350は、請求項におけるポート対応テーブルに相当する。また、VLAN決定テーブル320,宛先テーブル330,フラッディングテーブル340,およびVLAN−ID変換テーブル360は、請求項における出力先特定テーブルに、ポート仮想化部210は請求項における受信側仮想ポート特定部に、宛先検索部230は請求項における出力先仮想ポート決定部に、実物理ポート変換部240及びVLAN−ID変換部は請求項における出力先決定部に、転送回路100は請求項における出力先特定情報取得部及びパケット中継部に、設定用画面W1はユーザインタフェースに、それぞれ相当する。   The virtual port table 310 and the real physical port conversion table 350 described above correspond to the port correspondence table in the claims. The VLAN determination table 320, the destination table 330, the flooding table 340, and the VLAN-ID conversion table 360 are in the output destination specifying table in the claims, the port virtualization unit 210 is in the receiving virtual port specifying unit in the claims, The destination search unit 230 is the output destination virtual port determination unit in the claims, the real physical port conversion unit 240 and the VLAN-ID conversion unit are the output destination determination unit in the claims, and the transfer circuit 100 is the output destination specification information acquisition in the claims. The setting screen W1 corresponds to the user interface and the packet relay unit.

A2.宛先登録処理及び宛先検索処理:
第1スイッチSW1では、いずれかの物理ポートにおいてレイヤ2フレームを受信すると、宛先登録処理及び宛先検索処理が実行される。宛先登録処理とは、フレームの宛先に関するエントリを宛先テーブル330に追加する処理を意味する。宛先検索処理とは、受信フレームの出力先(出力先の物理ポート及び出力VLAN)を検索して決定する処理を意味する。
A2. Address registration process and address search process:
In the first switch SW1, when a layer 2 frame is received at any physical port, a destination registration process and a destination search process are executed. The destination registration process means a process of adding an entry related to a frame destination to the destination table 330. The destination search process means a process of searching and determining the output destination (output destination physical port and output VLAN) of the received frame.

図10は、第1スイッチにおいて実行される宛先登録処理の手順を示すフローチャートである。第1スイッチSW1において、ポート仮想化部210は、転送回路100から通知される受信フレームの入力ポート情報に基づき、仮想ポートテーブル310を参照して、仮想ポート番号を決定し、VLAN決定部220及び宛先検索部230に通知する(ステップS105)。例えば、第1スイッチSW1の物理ポートP11において、パーソナルコンピュータPC1からパーソナルコンピュータPC3宛てのフレームが受信された場合、ポート仮想化部210は、仮想ポートテーブル310を参照して仮想ポート「VPI1」を決定する。   FIG. 10 is a flowchart showing a procedure of destination registration processing executed in the first switch. In the first switch SW1, the port virtualization unit 210 refers to the virtual port table 310 based on the input port information of the received frame notified from the transfer circuit 100, determines the virtual port number, The destination search unit 230 is notified (step S105). For example, when a frame addressed to the personal computer PC3 is received from the personal computer PC1 at the physical port P11 of the first switch SW1, the port virtualization unit 210 refers to the virtual port table 310 and determines the virtual port “VPI1”. To do.

VLAN決定部220は、ポート仮想化部210から通知される仮想ポート番号と、転送回路100から受信パケットのVLAN−IDとに基づき、VLAN決定テーブル320を参照して、VLANを決定し、宛先検索部230に通知する(ステップS110)。例えば、上述のように、パーソナルコンピュータPC1からパーソナルコンピュータPC3宛てのフレームを受信した場合、VLAN決定部220には、入力仮想ポート番号「VPI1」と、VLAN−ID「10」とを受信する。したがって、VLAN決定部220は、図4に示すVLAN決定部320を参照して、VLAN「10」を決定する。   The VLAN determination unit 220 refers to the VLAN determination table 320 based on the virtual port number notified from the port virtualization unit 210 and the VLAN-ID of the received packet from the transfer circuit 100, determines a VLAN, and searches for a destination. The unit 230 is notified (step S110). For example, as described above, when a frame addressed to the personal computer PC3 is received from the personal computer PC1, the VLAN determining unit 220 receives the input virtual port number “VPI1” and the VLAN-ID “10”. Therefore, the VLAN determination unit 220 determines VLAN “10” with reference to the VLAN determination unit 320 shown in FIG.

宛先検索部230は、VLAN決定部220から通知されるVLAN値と、転送回路100から通知されるヘッダ情報に含まれる送信元MACアドレスと、ポート仮想化部210から通知される決定された入力仮想ポートとを対応付けたエントリを、宛先テーブル330において検索し(ステップS115)、当該エントリが宛先テーブル330に登録済みであるか否かを判定する(ステップS120)。ステップS120において未登録であると判定した場合、宛先検索部230は、VLAN決定部220から通知されるVLAN値と、転送回路100から通知されるヘッダ情報に含まれる送信元MACアドレスと、ポート仮想化部210から通知される決定された仮想ポートとを対応付けた新たなエントリを宛先テーブル330に追加する(ステップS125)。例えば、図5に示す最上段のエントリ(VLAN「10」,MACアドレス「A1」,仮想ポート「VP1」が設定されたエントリ)が、未だ登録されていない状態において、上述したパーソナルコンピュータPC1からパーソナルコンピュータPC3宛てのフレームを受信した場合、図5に示す最上段のエントリが追加される。一方、ステップS120において、登録済みであると判定した場合、宛先登録処理は終了する。このように、第1スイッチSW1では、新たな送信元からフレームを受信した場合や、新たなVLANを介してフレームを受信した場合(新たなVLAN−IDが設定されたフレームを受信した場合)に、送信元のMACアドレスと、VLANと、仮想ポートとを学習する。   The destination search unit 230 includes the VLAN value notified from the VLAN determination unit 220, the transmission source MAC address included in the header information notified from the transfer circuit 100, and the determined input virtual notified from the port virtualization unit 210. The entry associated with the port is searched in the destination table 330 (step S115), and it is determined whether or not the entry has been registered in the destination table 330 (step S120). If it is determined in step S120 that it is unregistered, the destination search unit 230 sends the VLAN value notified from the VLAN determination unit 220, the source MAC address included in the header information notified from the transfer circuit 100, and the port virtual A new entry associated with the determined virtual port notified from the conversion unit 210 is added to the destination table 330 (step S125). For example, in the state where the uppermost entry shown in FIG. 5 (entry set with VLAN “10”, MAC address “A1”, and virtual port “VP1”) has not been registered yet, the personal computer PC1 described above performs personal When a frame addressed to the computer PC3 is received, the uppermost entry shown in FIG. 5 is added. On the other hand, if it is determined in step S120 that registration has been completed, the destination registration process ends. As described above, the first switch SW1 receives a frame from a new transmission source or receives a frame via a new VLAN (when receiving a frame in which a new VLAN-ID is set). The MAC address of the transmission source, the VLAN, and the virtual port are learned.

図11は、第1スイッチにおいて実行される宛先検索処理の手順を示すフローチャートである。第1スイッチSW1において、宛先検索部230は、VLAN決定部220から通知されるVLAN値と、転送回路100から通知されるヘッダ情報に含まれる送信元MACアドレスと、ポート仮想化部210から通知される決定された入力仮想ポートとを対応付けたエントリを、宛先テーブル330において検索し(ステップS205)、当該エントリが宛先テーブル330に登録済みであるか否かを判定する(ステップS210)。なお、VLAN決定部220からのVLAN値の通知は、前述の宛先登録処理のステップS110により行われる。また、ポート仮想化部210からの入力仮想ポートの通知は、前述の宛先登録処理のステップS105により行われる。   FIG. 11 is a flowchart illustrating a procedure of destination search processing executed in the first switch. In the first switch SW1, the destination search unit 230 is notified from the VLAN value notified from the VLAN determination unit 220, the transmission source MAC address included in the header information notified from the transfer circuit 100, and the port virtualization unit 210. The entry associated with the determined input virtual port is searched in the destination table 330 (step S205), and it is determined whether or not the entry has been registered in the destination table 330 (step S210). The notification of the VLAN value from the VLAN determination unit 220 is performed in step S110 of the destination registration process described above. Also, the notification of the input virtual port from the port virtualization unit 210 is performed in step S105 of the destination registration process described above.

ステップS210において登録済みであると判定すると、宛先検索部230は、見つかったエントリの仮想ポートが有する出力仮想ポートを、フレームを出力すべき仮想ポートとして決定し、決定した出力仮想ポートとVLAN値とを、実物理ポート変換部240及びVLAN−ID変換部250に通知する(ステップS215)。   If it is determined in step S210 that registration has been completed, the destination search unit 230 determines the output virtual port included in the virtual port of the found entry as a virtual port to which the frame is to be output, and the determined output virtual port, VLAN value, Is notified to the real physical port conversion unit 240 and the VLAN-ID conversion unit 250 (step S215).

これに対し、ステップS210において未登録であると判定すると、宛先検索部230は、フラッディングテーブル340を参照し、パケットを受信した仮想ポート、すなわち、前述の宛先登録処理におけるステップS110において決定されたVLAN(VLAN値)に対応付けられた仮想ポートと、同じVLANに対応付けられた出力仮想ポートのうち、パケットを受信した仮想ポートに対応する出力仮想ポートを除く他の出力仮想ポートを、受信パケットを出力すべき仮想ポートとして決定し、決定した仮想ポート及びVLAN値を、実物理ポート変換部240及びVLAN−ID変換部250に通知する(ステップS235)。例えば、パーソナルコンピュータPC1から、図示しないパーソナルコンピュータ宛のフレーム(VLAN−ID:10)を受信した場合、宛先テーブル330には、宛先のパーソナルコンピュータのMACアドレスを含むエントリは存在しない。この場合、ステップS235では、フラッディングテーブル340におけるVLAN「10」のエントリに含まれる出力仮想ポート「VPO1,VPO2」のうち、フレームを受信する物理ポートP11に対応付けられた仮想ポートVP1に対応する出力仮想ポートVOP1を除く、他の出力仮想ポートVPO2を、受信パケットを出力すべき仮想ポートとして決定する。   On the other hand, if it is determined in step S210 that the packet is not registered, the destination search unit 230 refers to the flooding table 340 and refers to the virtual port that has received the packet, that is, the VLAN determined in step S110 in the above-described destination registration process. Among the virtual ports associated with (VLAN value) and the output virtual ports associated with the same VLAN, other output virtual ports excluding the output virtual port corresponding to the virtual port that received the packet are received packets. The virtual port to be output is determined, and the determined virtual port and VLAN value are notified to the real physical port conversion unit 240 and the VLAN-ID conversion unit 250 (step S235). For example, when a frame (VLAN-ID: 10) addressed to a personal computer (not shown) is received from the personal computer PC1, there is no entry including the MAC address of the destination personal computer in the destination table 330. In this case, in step S235, out of the output virtual ports “VPO1, VPO2” included in the entry of VLAN “10” in the flooding table 340, the output corresponding to the virtual port VP1 associated with the physical port P11 that receives the frame. Other output virtual ports VPO2 excluding the virtual port VOP1 are determined as virtual ports to which received packets are to be output.

実物理ポート変換部240は、ステップS215又はステップS235において宛先検索部230から通知される出力仮想ポートに基づき、実物理ポート変換テーブル350を参照して、出力先の物理ポートを決定し、転送回路100に通知する(ステップS220)。例えば、前述のように、出力仮想ポートVPO2が通知されると、実物理ポート変換部240は、実物理ポート変換テーブル350を参照して、出力先の物理ポートとして出力物理ポートPO2を決定する。   The real physical port conversion unit 240 refers to the real physical port conversion table 350 based on the output virtual port notified from the destination search unit 230 in step S215 or step S235, determines an output destination physical port, and transfers the transfer circuit. 100 is notified (step S220). For example, as described above, when the output virtual port VPO2 is notified, the real physical port conversion unit 240 refers to the real physical port conversion table 350 and determines the output physical port PO2 as an output destination physical port.

VLAN−ID変換部250は、宛先検索部230から通知される出力仮想ポートとVLAN(VLAN値)に基づき、VLAN−ID変換テーブル30を参照して、VLAN−IDを決定し、転送回路100に通知する(ステップS225)。例えば、前述のように、出力仮想ポート「VP02」及びVLAN「10」が通知されると、VLAN−ID変換部250は、VLAN−ID変換テーブル360を参照して、VLAN−ID「10」を決定する。   The VLAN-ID conversion unit 250 refers to the VLAN-ID conversion table 30 based on the output virtual port and VLAN (VLAN value) notified from the destination search unit 230, determines the VLAN-ID, and sends it to the transfer circuit 100. Notification is made (step S225). For example, as described above, when the output virtual ports “VP02” and VLAN “10” are notified, the VLAN-ID conversion unit 250 refers to the VLAN-ID conversion table 360 and sets the VLAN-ID “10”. decide.

以上の宛先検索処理の結果、転送回路100は、例えば、出力先となる物理ポート「PO2」とVLAN−ID「10」とが通知されると、受信パケットのヘッダにVLAN−ID「10」を設定し、かかるフレームを物理ポートPO2(すなわち、物理ポートP12の出力側のポート)から出力する。   As a result of the above destination search processing, for example, when the physical port “PO2” and the VLAN-ID “10” as the output destination are notified, the transfer circuit 100 adds the VLAN-ID “10” to the header of the received packet. The frame is set and output from the physical port PO2 (that is, the port on the output side of the physical port P12).

A3.接続ポートの切り替え:
図12は、第1実施例における接続ポートの切り替え後のネットワークシステムの構成例を示す説明図である。図12では、図1の構成から、第1スイッチSW1における2つのポートにおいて接続ポートの切り替え(接続先の装置の変更)が行われた後の構成を表わしている。具体的には、物理ポートP12において、ネットワークケーブルL3に代えて、ネットワークケーブルL5が差し替えられ、その結果、物理ポートP12には、第5スイッチSW5の物理ポートP51が接続されている。同様に、物理ポートP14において、ネットワークケーブルL5に代えて、ネットワークケーブルL3が差し替えられ、その結果、物理ポートP14には、第3スイッチSW3の物理ポートP31が接続されている。
A3. Switch connection port:
FIG. 12 is an explanatory diagram illustrating a configuration example of the network system after the connection port is switched in the first embodiment. FIG. 12 shows a configuration after the connection port is switched (change of the connection destination device) in the two ports of the first switch SW1 from the configuration of FIG. Specifically, in the physical port P12, the network cable L5 is replaced instead of the network cable L3, and as a result, the physical port P51 of the fifth switch SW5 is connected to the physical port P12. Similarly, in the physical port P14, the network cable L3 is replaced instead of the network cable L5, and as a result, the physical port P31 of the third switch SW3 is connected to the physical port P14.

このような接続ポートの切り替えは、例えば、「第1スイッチSW1において、同一VLANを収容する複数の物理ポート同士を互いに隣接させる」といったネットワーク管理を容易にする等の目的で行われる。本実施例では、接続ポートを切り換えた(ネットワークケーブルを差し替えた)後に、後述の再設定処理が実行されることで、切り換えたポートに接続されたスイッチの配下にあるパーソナルコンピュータは正常に通信を行う(再開する)ことができる。ここで、本実施例では、上述した仮想ポートを利用することにより、接続ポートの切り替え後に実行する再設定処理を簡素化している。   Such switching of connection ports is performed for the purpose of facilitating network management, for example, “in the first switch SW1, a plurality of physical ports accommodating the same VLAN are adjacent to each other”. In this embodiment, after the connection port is switched (the network cable is replaced), the resetting process described later is executed, so that the personal computers under the switch connected to the switched port can communicate normally. Can be done (resume). Here, in this embodiment, by using the virtual port described above, the resetting process executed after the connection port is switched is simplified.

A4.再設定処理:
図13は、第1実施例において実行される再設定処理の作業手順を示すフローチャートである。図12に示すような接続ポートの切り替えの後、ユーザは、第1スイッチSW1に接続された図示しない管理用端末に設定用画面を表示させ、かかる設定用画面から、物理ポートと仮想ポートとを対応付けるための設定用コマンドを入力する(ステップS305)。
A4. Reconfiguration process:
FIG. 13 is a flowchart showing the work procedure of the resetting process executed in the first embodiment. After the connection port switching as shown in FIG. 12, the user displays a setting screen on a management terminal (not shown) connected to the first switch SW1, and the physical port and the virtual port are displayed from the setting screen. A setting command for associating is input (step S305).

図14は、第1実施例の再設定処理において設定用画面に入力されるコマンドの一例を示す説明図である。図14では、設定用画面W1において、図12に示す接続ポート切り替えに対応するコマンドの入力例が表わされている。前述の図9に示すように、初期設定では、物理ポートP12に対して仮想ポートVP2を対応付け、また、物理ポートP14に対して仮想ポートVP4を対応付けるコマンドが入力されていた。これに対し、図12に示す接続ポートの切り替え後には、図14に示すように、領域Ar11には、物理ポートP12と、仮想ポートVP4とを対応付けるコマンドが入力される。同様に、領域Ar12には、物理ポートP14と、仮想ポートVP2とを対応付けるコマンドが入力される。これらのコマンドは、管理者が、第1スイッチSW1の2つの物理ポートP12,P14に対して、それぞれ、接続ポートを切り換える前に互いの物理ポートに対応付けられていた仮想ポートが、入れ替えて対応付けられるように判断して入力される。   FIG. 14 is an explanatory diagram illustrating an example of a command input to the setting screen in the resetting process according to the first embodiment. FIG. 14 shows an input example of a command corresponding to the connection port switching shown in FIG. 12 on the setting screen W1. As shown in FIG. 9 described above, in the initial setting, a command for associating the virtual port VP2 with the physical port P12 and associating the virtual port VP4 with the physical port P14 is input. On the other hand, after switching the connection ports shown in FIG. 12, as shown in FIG. 14, a command for associating the physical port P12 with the virtual port VP4 is input to the area Ar11. Similarly, a command that associates the physical port P14 with the virtual port VP2 is input to the area Ar12. These commands are handled by the administrator by replacing the virtual ports associated with each other before switching the connection ports for the two physical ports P12 and P14 of the first switch SW1. It is judged and input so that it can be attached.

図13に戻って、ポート仮想化部210は、入力されたコマンドに基づき、仮想ポートテーブル310を更新する(ステップS310)。   Returning to FIG. 13, the port virtualization unit 210 updates the virtual port table 310 based on the input command (step S310).

図15は、図14に示すコマンドが入力された場合に更新された仮想ポートテーブルの設定内容を示す説明図である。上述したように、図14に示すコマンドは、物理ポートP12と仮想ポートVP4とを対応付け、物理ポートP14と仮想ポートVP2とを対応付けるコマンドである。したがって、かかるコマンドが入力された結果、図15に示すように、仮想ポートテーブル310では、入力物理ポートPI2に入力仮想ポートVPI4が対応付けられ、入力物理ポートPI4に入力仮想ポートVPI2が対応付けられる。   FIG. 15 is an explanatory diagram showing the setting contents of the virtual port table updated when the command shown in FIG. 14 is input. As described above, the command shown in FIG. 14 is a command that associates the physical port P12 with the virtual port VP4 and associates the physical port P14 with the virtual port VP2. Accordingly, as a result of inputting such a command, as shown in FIG. 15, in the virtual port table 310, the input virtual port VPI4 is associated with the input physical port PI2, and the input virtual port VPI2 is associated with the input physical port PI4. .

図13に示すように、仮想ポートテーブル310が更新された後、実物理ポート変換部240は、入力されたコマンドに基づき、実物理ポート変換テーブル350を更新する(ステップS315)。   As shown in FIG. 13, after the virtual port table 310 is updated, the real physical port conversion unit 240 updates the real physical port conversion table 350 based on the input command (step S315).

図16は、図14に示すコマンドが入力された場合に更新された実物理ポート変換テーブルの設定内容を示す説明図である。上述したように、図14に示すコマンドは、物理ポートP12と仮想ポートVP4とを対応付け、物理ポートP14と仮想ポートVP2とを対応付けるコマンドである。したがって、かかるコマンドが入力された結果、図16に示すように、実物理ポート変換テーブル350では、出力仮想ポートVPO2に出力物理ポートPO4が対応付けられ、出力仮想ポートVPO4に出力物理ポートPO2が対応付けられる。   FIG. 16 is an explanatory diagram showing the setting contents of the real physical port conversion table updated when the command shown in FIG. 14 is input. As described above, the command shown in FIG. 14 is a command that associates the physical port P12 with the virtual port VP4 and associates the physical port P14 with the virtual port VP2. Therefore, as a result of inputting such a command, as shown in FIG. 16, in the actual physical port conversion table 350, the output physical port PO4 is associated with the output virtual port VPO2, and the output physical port PO2 is associated with the output virtual port VPO4. Attached.

再設定処理が完了すると、切り替えられたポートに接続されたスイッチの配下にあるパーソナルコンピュータは、データの送受信を正常に行うことができる。例えば、図12に示す接続ポートの切り換えが行われ、上述した再設定処理が行われた後に、パーソナルコンピュータPC3からパーソナルコンピュータPC1にデータを送信する場合について考える。第1スイッチSW1では、パーソナルコンピュータPC3から出力されたパーソナルコンピュータPC1宛のフレームを物理ポートP14で受信すると、図10に示す宛先登録処理と、図11に示す宛先検索処理とが実行される。   When the resetting process is completed, the personal computers under the switch connected to the switched port can normally send and receive data. For example, consider a case where data is transmitted from the personal computer PC3 to the personal computer PC1 after the connection port shown in FIG. 12 is switched and the above-described resetting process is performed. In the first switch SW1, when the frame addressed to the personal computer PC1 output from the personal computer PC3 is received by the physical port P14, the destination registration process shown in FIG. 10 and the destination search process shown in FIG. 11 are executed.

宛先登録処理のステップS105では、入力ポート情報(入力物理ポート:PI4)に基づき、図15に示す設定変更後の仮想ポートテーブル310が参照されて、入力仮想ポート「VPI2」が決定される。ステップS110では、ヘッダ情報に含まれるVLAN−ID「10」と、仮想ポート番号「VP2(VPI2)」とに基づき、VLAN決定テーブル320が参照されて、VLAN「10」が決定される。VLAN「10」,MAC「A3」,仮想ポート「VP2」のエントリは、宛先テーブル330に既に登録されているので、新たなエントリを追加することなく、宛先登録処理は終了する。   In step S105 of the destination registration process, the input virtual port “VPI2” is determined by referring to the virtual port table 310 after the setting change shown in FIG. 15 based on the input port information (input physical port: PI4). In step S110, the VLAN determination table 320 is referred to based on the VLAN-ID “10” and the virtual port number “VP2 (VPI2)” included in the header information, and the VLAN “10” is determined. Since the entries of VLAN “10”, MAC “A3”, and virtual port “VP2” have already been registered in the destination table 330, the destination registration process ends without adding a new entry.

宛先検索処理では、ステップS205,210,215が実行され、前述のステップS105で決定されたVLAN値「10」と、宛先MACアドレス「A1」に基づき、宛先テーブル330が参照され、出力仮想ポートとして「VP1(VPO1)」が決定される。ステップS220では、出力先の物理ポートとして、図16に示す更新後の実物理ポート変換テーブル350に基づき、出力物理ポート「PO1(P11)」が決定される。ステップS225では、出力仮想ポート「VPO1」及びVLAN「10」に基づき、VLAN−ID変換テーブル360が参照され、VAN−ID「10」が決定される。   In the destination search process, steps S205, 210, and 215 are executed, and the destination table 330 is referred to based on the VLAN value “10” and the destination MAC address “A1” determined in step S105 described above, and is used as an output virtual port. “VP1 (VPO1)” is determined. In step S220, the output physical port “PO1 (P11)” is determined as the output destination physical port based on the updated real physical port conversion table 350 shown in FIG. In step S225, the VLAN-ID conversion table 360 is referred to based on the output virtual ports “VPO1” and VLAN “10”, and the VAN-ID “10” is determined.

こうして、接続ポート切り替え後のパーソナルコンピュータPC3から出力されたパーソナルコンピュータPC1宛のフレームは、第1スイッチSW1において、VLAN−IDとして「10」が設定され、物理ポートP11(出力物理ポートPO1)から出力される。したがって、パーソナルコンピュータPC1では、かかるフレームを自分宛のフレームとして受信することができる。   Thus, the frame addressed to the personal computer PC1 output from the personal computer PC3 after the connection port is switched is set to “10” as the VLAN-ID in the first switch SW1 and output from the physical port P11 (output physical port PO1). Is done. Therefore, the personal computer PC1 can receive such a frame as a frame addressed to itself.

このように、第1実施例の再設定処理において入力されるコマンドは、接続ポート切り換えを行った物理ポートについての、物理ポートと仮想ポートとを新たに対応付けるための設定用コマンドのみである。また、かかるコマンドにより更新されるテーブルは、仮想ポートテーブル310と、実物理ポート変換テーブル350の2つのみである。   As described above, the command input in the resetting process of the first embodiment is only a setting command for newly associating a physical port and a virtual port with respect to a physical port for which connection port switching has been performed. Further, there are only two tables that are updated by this command, the virtual port table 310 and the real physical port conversion table 350.

A5.比較例:
図17は、比較例のスイッチの機能ブロックを示す説明図である。図17に示すスイッチSW10は、比較例としての従来のスイッチであり、ポート仮想化部210と、実物理ポート変換部240と、仮想ポートテーブル310と、実物理ポート変換テーブル350とを備えていない点において、図2に示す第1スイッチSW1と異なり、他の構成は、第1スイッチSW1と同様である。具体的には、スイッチSW10は、物理ポートP11〜P14を有する転送回路700と、ヘッダ処理部800と、記憶部900とを備えている。ヘッダ処理部800は、VLAN決定部820と、宛先検索部830と、VLAN−ID変換部850とを備えている。記憶部900は、VLAN決定テーブル920と、宛先テーブル930と、フラッディングテーブル940と、VLAN−ID変換テーブル960とを格納している。
A5. Comparative example:
FIG. 17 is an explanatory diagram illustrating functional blocks of a switch of a comparative example. A switch SW10 illustrated in FIG. 17 is a conventional switch as a comparative example, and does not include the port virtualization unit 210, the real physical port conversion unit 240, the virtual port table 310, and the real physical port conversion table 350. In other respects, unlike the first switch SW1 shown in FIG. 2, the other configurations are the same as those of the first switch SW1. Specifically, the switch SW10 includes a transfer circuit 700 having physical ports P11 to P14, a header processing unit 800, and a storage unit 900. The header processing unit 800 includes a VLAN determination unit 820, a destination search unit 830, and a VLAN-ID conversion unit 850. The storage unit 900 stores a VLAN determination table 920, a destination table 930, a flooding table 940, and a VLAN-ID conversion table 960.

比較例のVLAN決定テーブル920は、入力仮想ポートに代えて、入力物理ポートが用いられる点において、図4に示す第1実施例のVLAN決定テーブル320と異なり、他の構成はVLAN決定テーブル320と同じである。比較例の宛先テーブル930は、仮想ポートに代えて、物理ポートが用いられる点において、図5に示す第1実施例の宛先テーブル330と異なり、他の構成は宛先テーブル330と同じである。比較例のフラッディングテーブル940は、出力仮想ポートに代えて、出力物理ポートが用いられる点において、図6に示す第1実施例のフラッディングテーブル340と異なり、他の構成は、フラッディングテーブル340と同じである。比較例のVLAN−ID変換テーブル960は、入力仮想ポートに代えて、入力物理ポートを用いる点において、第1実施例のVLAN−ID変換テーブル360と異なり、他の構成は、VLAN−ID変換テーブル360と同じである。   The VLAN determination table 920 of the comparative example is different from the VLAN determination table 320 of the first embodiment shown in FIG. 4 in that an input physical port is used instead of the input virtual port. The same. The destination table 930 of the comparative example is different from the destination table 330 of the first embodiment shown in FIG. 5 in that a physical port is used instead of a virtual port, and other configurations are the same as the destination table 330. The flooding table 940 of the comparative example is different from the flooding table 340 of the first embodiment shown in FIG. 6 in that an output physical port is used instead of the output virtual port, and the other configuration is the same as the flooding table 340. is there. The VLAN-ID conversion table 960 of the comparative example is different from the VLAN-ID conversion table 360 of the first embodiment in that an input physical port is used instead of the input virtual port, and the other configuration is the VLAN-ID conversion table. The same as 360.

図18は、比較例において実行される再設定処理の作業手順を示す第1のフローチャートである。図19は、比較例において実行される再設定処理の作業手順を示す第2のフローチャートである。図18に記載の処理の実行後に、図19に記載の処理が実行される。比較例においては、実施例と同様に、図12に示すような接続ポートの切り替えが行われた後、再設定処理が実行される。再設定処理では、まず、ユーザは、スイッチSW10に接続された管理用端末に設定用画面を表示させ、切替前(接続ポート切り替え前)の実物理ポートに関する各種設定を削除するコマンドと、削除した設定内容と同じ内容を切替後の実物理ポートに対して設定するコマンドとを入力する(ステップS805)。   FIG. 18 is a first flowchart showing the work procedure of the resetting process executed in the comparative example. FIG. 19 is a second flowchart showing the work procedure of the resetting process executed in the comparative example. After the process shown in FIG. 18 is executed, the process shown in FIG. 19 is executed. In the comparative example, similarly to the embodiment, after the connection port is switched as shown in FIG. 12, the resetting process is executed. In the resetting process, first, the user displays a setting screen on the management terminal connected to the switch SW10, and deletes various commands related to the real physical port before switching (before switching the connection port) A command for setting the same content as the set content for the real physical port after switching is input (step S805).

図20は、比較例の再設定処理において設定用画面に入力されるコマンドの一例を示す説明図である。図20では、設定用画面W10において、図12に示す接続ポート切り替えに対応する従来の各種コマンドの入力例が表わされている。設定用画面W10のうち、領域Ar81には、物理ポートP12に関する切替前の各種設定を削除するコマンドが入力されている。また、領域Ar82には、物理ポートP14に関する切替前の各種設定を削除するコマンドが入力されている。領域Ar83には、物理ポートP12に関する切替後の各種設定を追加するコマンドが入力されている。具体的には、物理ポートP12に対して、VLAN「30,60」を対応付けるコマンドが入力されている。同様に、領域Ar84には、物理ポートP14に関する切替後の各種設定を追加するコマンドが入力されている。具体的には、物理ポートP14に対して、VLAN「10」を対応付けるコマンドが入力されている。   FIG. 20 is an explanatory diagram illustrating an example of a command input to the setting screen in the resetting process of the comparative example. FIG. 20 shows input examples of various conventional commands corresponding to the connection port switching shown in FIG. 12 on the setting screen W10. In the setting screen W10, a command for deleting various settings before switching related to the physical port P12 is input to the area Ar81. In the area Ar82, a command for deleting various settings related to the physical port P14 before switching is input. In the area Ar83, a command for adding various settings after switching related to the physical port P12 is input. Specifically, a command for associating VLAN “30, 60” is input to the physical port P12. Similarly, a command for adding various settings after switching related to the physical port P14 is input to the area Ar84. Specifically, a command for associating VLAN “10” is input to the physical port P14.

図18に示すように、VLAN決定部820は、入力されたコマンドに従って、VLAN決定テーブル920の各エントリのうち、切替前(接続ポート切り替え前)の実物理ポートに関するエントリを削除する(ステップS810)。図20に示すコマンド(領域Ar81,Ar82に入力されているコマンド)が入力されると、VLAN決定部820は、物理ポートP12,P14に関するエントリをVLAN決定テーブル920から削除する。   As illustrated in FIG. 18, the VLAN determination unit 820 deletes an entry related to the real physical port before switching (before switching connection ports) from among the entries of the VLAN determination table 920 in accordance with the input command (step S810). . When the command shown in FIG. 20 (commands input to the areas Ar81 and Ar82) is input, the VLAN determination unit 820 deletes the entries related to the physical ports P12 and P14 from the VLAN determination table 920.

宛先検索部830は、入力されたコマンドに従って、宛先テーブル930の各エントリのうち、切替前(接続ポート切り替え前)の実物理ポートに関するエントリを削除する(ステップS815)。図20に示すコマンド(領域Ar81,Ar82に入力されているコマンド)が入力されると、宛先検索部830は、物理ポートP12,P14に関するエントリを宛先テーブル930から削除する。   In accordance with the input command, the destination search module 830 deletes the entry related to the real physical port before switching (before switching the connection port) from the entries in the destination table 930 (step S815). When the command shown in FIG. 20 (the command input in the areas Ar81 and Ar82) is input, the destination search module 830 deletes the entries related to the physical ports P12 and P14 from the destination table 930.

VLAN−ID変換部850は、入力されたコマンドに従って、VLAN−ID変換テーブル960の各エントリのうち、切替前の実物理ポートに関するエントリを削除する(ステップS820)。図20に示すコマンド(領域Ar81,Ar82に入力されているコマンド)が入力されると、VLAN−ID変換部850は、物理ポートP12,P14に関するエントリをVLAN−ID変換テーブル960から削除する。   The VLAN-ID conversion unit 850 deletes the entry related to the real physical port before switching among the entries of the VLAN-ID conversion table 960 in accordance with the input command (step S820). When the command shown in FIG. 20 (the command input to the areas Ar81 and Ar82) is input, the VLAN-ID conversion unit 850 deletes the entries related to the physical ports P12 and P14 from the VLAN-ID conversion table 960.

宛先検索部830は、入力されたコマンドに従って、フラッディングテーブル940の各エントリのうち、切替前(接続ポート切り替え前)の実物理ポートに関するエントリを削除する(ステップS825)。図20に示すコマンド(領域Ar81,Ar82に入力されているコマンド)が入力されると、宛先検索部830は、物理ポートP12,P14に関するエントリをフラッディングテーブル940から削除する。以上のステップS810〜S825により、各テーブルにおいて、接続ポート切り替え後において不要となるエントリの削除が完了する。   In accordance with the input command, the destination search module 830 deletes the entry related to the real physical port before switching (before switching the connection port) from among the entries in the flooding table 940 (step S825). When the command shown in FIG. 20 (the command input in the areas Ar81 and Ar82) is input, the destination search module 830 deletes the entries related to the physical ports P12 and P14 from the flooding table 940. The above steps S810 to S825 complete the deletion of entries that are unnecessary after connection port switching in each table.

ステップS825の後、図19に示すように、VLAN決定部820は、入力されたコマンドに従って、VLAN決定テーブル920において、切替後のポートに関する新たなエントリを追加する(ステップS830)。   After step S825, as shown in FIG. 19, the VLAN determination unit 820 adds a new entry related to the switched port in the VLAN determination table 920 in accordance with the input command (step S830).

VLAN−ID変換部850は、入力されたコマンドに従って、VLAN−ID変換テーブル960において、切替後のポートに関する新たなエントリを追加する(ステップS835)。   The VLAN-ID conversion unit 850 adds a new entry related to the port after switching in the VLAN-ID conversion table 960 according to the input command (step S835).

宛先検索部830は、入力されたコマンドに従って、フラッディングテーブル940において、切替後のポートに関する新たなエントリを追加する(ステップS840)。   The destination search unit 830 adds a new entry related to the port after switching in the flooding table 940 in accordance with the input command (step S840).

宛先検索部830は、入力されたコマンドに従って、宛先テーブル930において、切替後のポートに関する新たなエントリを追加する(ステップS845)。   The destination search unit 830 adds a new entry for the port after switching in the destination table 930 according to the input command (step S845).

このように、比較例のスイッチSW10では、接続ポートの切り替えの後、ユーザは、切替前のポートに関するエントリを削除するコマンドと、削除したエントリに設定されていた内容と同一の内容を、切替後の物理ポートに対応付けて設定するコマンドとを入力しなければならない。したがって、設定変更に関するユーザの負担は大きい。加えて、比較例のスイッチSW10では、入力されたコマンドに従って、各テーブルにおいて切替前のポートに関するエントリを各テーブルから削除し、その後、各テーブルにおいて切替後のポートに関する新たなエントリが追加される。したがって、すべてのテーブルの更新が完了するまでに長期間を要することとなる。   As described above, in the switch SW10 of the comparative example, after the connection port is switched, the user changes the command for deleting the entry related to the port before the switching and the same content set in the deleted entry after the switching. And a command to be set in association with the physical port. Therefore, the burden on the user regarding the setting change is large. In addition, in the switch SW10 of the comparative example, according to the input command, an entry related to the port before switching is deleted from each table in each table, and then a new entry related to the port after switching is added to each table. Therefore, it takes a long time to complete the update of all the tables.

これに対して、第1実施例の第1スイッチSW1では、再設定処理においてユーザが入力すべきコマンドは、切替後の物理ポートと仮想ポートとを新たに対応付けるための設定用コマンドのみである。したがって、接続ポートの切り替え時におけるユーザの作業負担は極めて小さい。加えて、再設定処理において更新されるテーブルは、仮想ポートテーブル310と、実物理ポート変換テーブル350の2つのみである。したがって、テーブルの更新が完了するまでに要する期間は非常に短い。それゆえ、第1実施例の第1スイッチSW1では、接続ポート切り替え時の運用再開までの期間を短くすることができる。   On the other hand, in the first switch SW1 of the first embodiment, the command to be input by the user in the resetting process is only a setting command for newly associating the physical port and virtual port after switching. Therefore, the work burden on the user when switching the connection port is extremely small. In addition, there are only two tables that are updated in the resetting process, the virtual port table 310 and the real physical port conversion table 350. Therefore, the period required to complete the table update is very short. Therefore, in the first switch SW1 of the first embodiment, it is possible to shorten the period until the operation is resumed when the connection port is switched.

加えて、宛先テーブル330に受信フレームの宛先MACアドレスを含むエントリが登録されていない場合には、パケットを受信した仮想ポートに対応付けられたVLANと同じVLANに対応付けられた出力仮想ポートのうち、パケットを受信した仮想ポートに対応する出力仮想ポートを除く他の出力仮想ポートを、受信パケットを出力するための仮想ポートとして決定しているので、未知の装置(宛先テーブル330に登録されていない装置)に対してもパケットを出力(中継)することができる。   In addition, when an entry including the destination MAC address of the received frame is not registered in the destination table 330, out of the output virtual ports associated with the same VLAN as the VLAN associated with the virtual port that received the packet Since the output virtual ports other than the output virtual port corresponding to the virtual port that received the packet are determined as the virtual ports for outputting the received packet, the unknown device (not registered in the destination table 330) Packets can also be output (relayed) to (device).

また、宛先登録処理を実行して、未知の装置(宛先テーブル330に登録されていない装置)からパケットを受信した場合に、その装置に関するエントリを宛先テーブル330に自動的に追加するので、ネットワークシステム10に新たに参加するクライアント(パーソナルコンピュータ)について、ユーザが手動で宛先テーブル330にエントリを追加せずに済み、ユーザの作業負担を軽減できる。   Further, when a destination registration process is executed and a packet is received from an unknown device (a device not registered in the destination table 330), an entry related to the device is automatically added to the destination table 330. As for a client (personal computer) newly participating in the user 10, the user does not have to manually add an entry to the destination table 330, and the work load on the user can be reduced.

B.第2実施例:
B1.システム構成:
図21は、第2実施例におけるパケット中継装置を用いたネットワークシステムの概略構成を示す説明図である。このネットワークシステム10aは、パケット中継装置として、5つのスイッチSW1〜SW5に代えて、第6スイッチSW6,第7スイッチSW7,第8スイッチSW8,第9スイッチSW9を備えている点と、各スイッチSW6〜SW9がリンクアグリゲーション機能を有している点と、このリングアグリゲーション機能によって複数の物理ポートを束ねて得られる1つの論理的なポート(以下、「論理ポート」と呼ぶ)を、出力先の決定などにおいて物理ポートに代えて用いる点とにおいて、第1実施例のネットワークシステム10と異なり、他の構成は、ネットワークシステム10と同じである。
B. Second embodiment:
B1. System configuration:
FIG. 21 is an explanatory diagram showing a schematic configuration of a network system using the packet relay device in the second embodiment. The network system 10a includes a sixth switch SW6, a seventh switch SW7, an eighth switch SW8, and a ninth switch SW9 instead of the five switches SW1 to SW5 as a packet relay device, and each switch SW6. The point where SW9 has a link aggregation function and the determination of the output destination of one logical port (hereinafter referred to as “logical port”) obtained by bundling a plurality of physical ports by this ring aggregation function Unlike the network system 10 of the first embodiment, the other configuration is the same as that of the network system 10 in that it is used in place of the physical port.

図21に示すように、第6スイッチSW6は、第1実施例の第1スイッチSW1と同じ4つの物理ポートP11〜P14を備えている。同様に、第7スイッチSW7は4つの物理ポートP71,P72,P73,P74を、第8スイッチSW8は4つの物理ポートP81,P82,P83,P84を、第9スイッチSW9は4つの物理ポートP91,P92,P93,P94を、それぞれ備えている。   As shown in FIG. 21, the sixth switch SW6 includes the same four physical ports P11 to P14 as the first switch SW1 of the first embodiment. Similarly, the seventh switch SW7 has four physical ports P71, P72, P73 and P74, the eighth switch SW8 has four physical ports P81, P82, P83 and P84, and the ninth switch SW9 has four physical ports P91, P92, P93, and P94 are provided.

第6スイッチSW6が備える物理ポートP11には、ネットワークケーブルL7が接続されている。また、物理ポートP12にはネットワークケーブルL81が、物理ポートP13にはネットワークケーブルL82が、物理ポートP14にはネットワークケーブルL9が、それぞれ接続されている。第6スイッチSW6は、他の3台のスイッチSW7〜SW9と接続されている。具体的には、第6スイッチSW6は、ネットワークケーブルL7を介して第7スイッチSW7と接続されている。また、第6スイッチSW6は、2本のネットワークケーブルL81,L82を介して第8スイッチSW8と、ネットワークケーブルL9を介して第9スイッチSW9と、それぞれ接続されている。   A network cable L7 is connected to the physical port P11 provided in the sixth switch SW6. A network cable L81 is connected to the physical port P12, a network cable L82 is connected to the physical port P13, and a network cable L9 is connected to the physical port P14. The sixth switch SW6 is connected to the other three switches SW7 to SW9. Specifically, the sixth switch SW6 is connected to the seventh switch SW7 via the network cable L7. The sixth switch SW6 is connected to the eighth switch SW8 via the two network cables L81 and L82 and to the ninth switch SW9 via the network cable L9.

前述のように、第6スイッチSW6と第8スイッチSW8とは、2本のケーブルL81,L82で接続されているが、これは、リンクアグリゲーション機能を実現するためである。すなわち、これら2つのケーブルで接続されるリンクを、1つの論理的な回線(以下、「論理回線」と呼ぶ)LAG1として用いることにより、通信帯域の拡大や冗長性の確保を実現している。このとき、第6スイッチSW6では、2本のネットワークケーブルL81,L82と接続される2つの物理ポートP12,P13が、1つの論理的なポートとして用いられる。同様に、第8スイッチSW8では、2つの物理ポートP81,P82が1つの論理的なポートとして用いられる。   As described above, the sixth switch SW6 and the eighth switch SW8 are connected by the two cables L81 and L82 in order to realize the link aggregation function. That is, the link connected by these two cables is used as one logical line (hereinafter referred to as “logical line”) LAG1, thereby realizing expansion of the communication band and securing of redundancy. At this time, in the sixth switch SW6, the two physical ports P12 and P13 connected to the two network cables L81 and L82 are used as one logical port. Similarly, in the eighth switch SW8, two physical ports P81 and P82 are used as one logical port.

図22は、図21に示す第6スイッチの機能ブロックを示す説明図である。第6スイッチSW6は、ヘッダ処理部200aがLAG検索部260を備えている点と、記憶部300aにおいて、実物理ポート変換テーブル350に代えて回線ポート変換テーブル350aが格納されている点と、記憶部300aにおいて、LAGテーブル370が格納されている点とにおいて、図2に示す第1実施例の第1スイッチSW1と異なり、他の構成は第1スイッチSW1と同じである。LAG検索部260は、論理回線が接続された物理ポートを検索する機能部である。   FIG. 22 is an explanatory diagram showing functional blocks of the sixth switch shown in FIG. The sixth switch SW6 includes a point that the header processing unit 200a includes a LAG search unit 260, a point that the line port conversion table 350a is stored in the storage unit 300a instead of the actual physical port conversion table 350, and the storage Unlike the first switch SW1 of the first embodiment shown in FIG. 2, the configuration of the part 300a is the same as that of the first switch SW1 in that the LAG table 370 is stored. The LAG search unit 260 is a functional unit that searches for a physical port to which a logical line is connected.

図23は、第2実施例における仮想ポートテーブルの初期設定内容の一例を示す説明図である。第2実施例では、入力物理ポート「PI3」に対して入力仮想ポート「VPI2」が対応付けられている点と、入力物理ポート「PI4」に対して入力仮想ポート「VP3」が対応付けられている点とにおいて、図3に示す第1実施例の設定内容と異なり、他の設定内容は図3と同じである。このように、2つの入力物理ポート「PI2,PI3」に対して、同一の入力仮想ポート「VPI2」が対応付けられているのは、これらの入力物理ポートPI2,PI3は、論理回線LAG1において1つの論理ポートを形成するためである。   FIG. 23 is an explanatory diagram showing an example of the initial setting contents of the virtual port table in the second embodiment. In the second embodiment, the input virtual port “VPI2” is associated with the input physical port “PI3”, and the input virtual port “VP3” is associated with the input physical port “PI4”. However, unlike the setting contents of the first embodiment shown in FIG. 3, the other setting contents are the same as those in FIG. Thus, the same input virtual port “VPI2” is associated with two input physical ports “PI2, PI3” because these input physical ports PI2, PI3 are 1 in the logical line LAG1. This is to form one logical port.

図24は、第2実施例におけるVLAN決定テーブルの初期設定内容の一例を示す説明図である。図24に示す最上段から数えて上から3つのエントリは、図4に示す第1実施例の設定内容と同じである。図24に示す4段目から6段目までのエントリは、図4における対応するエントリと異なる。具体的には、4段目のエントリでは、入力仮想ポート「VPI2」と、VLAN−ID「40」と、VLAN「40」とが対応付けられている。また、5段目のエントリでは入力仮想ポート「VPI3」とVLAN−ID「30」とVLAN「30」と、6段目のエントリでは入力仮想ポート「VPI3」とVLAN−ID「60」とVLAN「60」と、それぞれ対応付けられている。   FIG. 24 is an explanatory diagram showing an example of the initial setting contents of the VLAN determination table in the second embodiment. The three entries from the top as counted from the top row shown in FIG. 24 are the same as the setting contents of the first embodiment shown in FIG. The entries in the fourth to sixth stages shown in FIG. 24 are different from the corresponding entries in FIG. Specifically, in the fourth entry, the input virtual port “VPI2”, the VLAN-ID “40”, and the VLAN “40” are associated with each other. In the fifth entry, the input virtual port “VPI3”, VLAN-ID “30”, and VLAN “30”. In the sixth entry, the input virtual port “VPI3”, VLAN-ID “60”, and VLAN “ 60 ”, respectively.

図25は、第2実施例における宛先テーブルの初期設定内容の一例を示す説明図である。図25に示す最上段から数えて上から3つのエントリは、図5に示す第1実施例の設定内容と同じである。図25に示す4段目から6段目までのエントリは、図4における対応するエントリと異なる。具体的には、4段目のエントリでは、VLAN「30」と、MACアドレス「A5」と、仮想ポート「VP3」とが対応付けられている。また、5段目のエントリではVLAN「40」とMACアドレス「A4」と仮想ポート「VP2」とが、6段目のエントリではVLAN「60」とMACアドレス「A6」と仮想ポート「VP3」とが、それぞれ対応付けられている。   FIG. 25 is an explanatory diagram showing an example of the initial setting contents of the destination table in the second embodiment. The three entries from the top as counted from the top row shown in FIG. 25 are the same as the setting contents of the first embodiment shown in FIG. The entries from the fourth level to the sixth level shown in FIG. 25 are different from the corresponding entries in FIG. Specifically, in the fourth entry, VLAN “30”, MAC address “A5”, and virtual port “VP3” are associated with each other. In the fifth entry, the VLAN “40”, the MAC address “A4”, and the virtual port “VP2” are used. In the sixth entry, the VLAN “60”, the MAC address “A6”, and the virtual port “VP3” are used. Are associated with each other.

図26は、第2実施例におけるフラッディングテーブルの初期設定内容の一例を示す説明図である。図26に示す最上段から数えて上から2つのエントリは、図6に示す第1実施例の設定内容と同じである。図26に示す3段目から5段目までのエントリは、図6における対応するエントリと異なる。具体的には、3段目のエントリでは、VLAN「30」と、出力仮想ポート「VPO3」とが対応付けられている。また、4段目のエントリではVLAN「40」と出力仮想ポート「VPO2」とが、5段目のエントリではVLAN「60」と出力仮想ポート「VPO3」とが、それぞれ対応付けられている。   FIG. 26 is an explanatory diagram showing an example of the initial setting contents of the flooding table in the second embodiment. The two entries from the top shown in FIG. 26 are the same as the setting contents of the first embodiment shown in FIG. The entries from the third level to the fifth level shown in FIG. 26 are different from the corresponding entries in FIG. Specifically, in the entry in the third row, the VLAN “30” and the output virtual port “VPO3” are associated with each other. Further, the VLAN “40” and the output virtual port “VPO2” are associated with each other in the fourth row entry, and the VLAN “60” and the output virtual port “VPO3” are associated with each other in the fifth row entry.

図27は、図22に示す回線ポート変換テーブルの初期設定内容の一例を示す説明図である。回線ポート変換テーブル350aでは、出力仮想ポートと、出力回線ポートとが対応付けられている。出力回線ポートとは、出力物理ポートと、出力論理ポートとを含む意味である。具体的には、図27に示すように、初期設定では、出力ポート「VPO1」と、出力回線ポートとして出力物理ポート「PO1」とが対応付けられている。また、出力ポート「VPO2」と、出力回線ポートとして論理回線「LAG1」とが対応付けられている。また、出力仮想ポート「VPO3」と、出力回線ポートとして出力物理ポート「PO4」とが対応付けられている。ここで、上から2段目のエントリでは、出力論理ポートに変えて、論理回線番号が対応付けられている。第2実施例では、後述するように、LAGテーブル370を用いて、論理回線番号から出力回線ポートに変換される。   FIG. 27 is an explanatory diagram showing an example of the initial setting contents of the line port conversion table shown in FIG. In the line port conversion table 350a, the output virtual port and the output line port are associated with each other. The output line port is meant to include an output physical port and an output logical port. Specifically, as shown in FIG. 27, in the initial setting, the output port “VPO1” is associated with the output physical port “PO1” as the output line port. Further, the output port “VPO2” is associated with the logical line “LAG1” as the output line port. Further, the output virtual port “VPO3” is associated with the output physical port “PO4” as the output line port. Here, in the entry in the second row from the top, a logical line number is associated instead of the output logical port. In the second embodiment, as will be described later, the LAG table 370 is used to convert the logical line number to the output line port.

図28は、第2実施例におけるVLAN−ID変換テーブルの初期設定内容の一例を示す説明図である。図28に示す最上段から数えて上から3つのエントリは、図8に示す第1実施例の設定内容と同じである。図28に示す4段目から6段目までのエントリは、図8における対応するエントリと異なる。具体的には、4段目のエントリでは、出力仮想ポート「VPO2」と、VLAN「40」と、VLAN−ID「40」とが、対応付けられている。また、5段目のエントリでは出力仮想ポート「VPO3」とVLAN「30」とVLAN−ID「30」とが、6段目のエントリでは出力仮想ポート「VPO3」とVLAN「60」とVLAN−ID「60」とが、それぞれ対応付けられている。   FIG. 28 is an explanatory diagram showing an example of the initial setting contents of the VLAN-ID conversion table in the second embodiment. The three entries from the top as counted from the top row shown in FIG. 28 are the same as the setting contents of the first embodiment shown in FIG. The entries from the fourth level to the sixth level shown in FIG. 28 are different from the corresponding entries in FIG. Specifically, in the fourth entry, the output virtual port “VPO2”, the VLAN “40”, and the VLAN-ID “40” are associated with each other. In the fifth entry, the output virtual ports “VPO3”, VLAN “30”, and VLAN-ID “30” are displayed. In the sixth entry, the output virtual ports “VPO3”, VLAN “60”, and VLAN-ID are displayed. “60” is associated with each other.

図29は、図22に示すLAGテーブルの初期設定内容を示す説明図である。LAGテーブル370は、第2の実施例において出力先を決定する際に参照されるテーブルであり、論理回線と、出力先総数と、出力物理ポートとを対応付ける。出力先総数とは、論理回線を構成するリンク数(束ねられた物理回線数)を意味する。図29に示すように、初期状態においては、LAG370には、論理回線「LAG1」と、出力総数「2」と、2つの出力物理ポート「PO2,PO3」とが対応付けられている。   FIG. 29 is an explanatory diagram showing the initial setting contents of the LAG table shown in FIG. The LAG table 370 is a table that is referred to when determining an output destination in the second embodiment, and associates a logical line, the total number of output destinations, and an output physical port. The total number of output destinations means the number of links constituting the logical line (the number of bundled physical lines). As shown in FIG. 29, in the initial state, the LAG 370 is associated with the logical line “LAG1”, the total number of outputs “2”, and the two output physical ports “PO2, PO3”.

宛先テーブル330を除く上述した各テーブルは、第1実施例の仮想ポートテーブル310等と同様に、ユーザ(システム管理者等)により手動設定される。例えば、第6スイッチSW6に接続された管理用端末に表示された設定用画面において、ユーザがコマンドを入力して実現することができる。   Each of the above-described tables excluding the destination table 330 is manually set by a user (system administrator or the like), like the virtual port table 310 of the first embodiment. For example, this can be realized by the user inputting a command on the setting screen displayed on the management terminal connected to the sixth switch SW6.

図30は、第2実施例において、初期設定時に設定用画面に入力されるコマンドの一例を示す説明図である。図30では、設定用画面W2に初期設定のためのコマンドが入力されている。なお、図30では、第1実施例の図9と同様に、初期設定の際に入力されるコマンドのうち、一部のコマンドのみ表わしている。図30では、設定用画面W2のうち、領域Ar21には、物理ポート「P11」と、仮想ポート「VP1」とを対応付けるコマンドが入力されている。同様に、領域Ar22には、2つの物理ポート「P12,P13」と仮想ポート「VP2」とを対応付けるコマンドが入力されている。なお、図30では省略されているが、他の物理ポートP14についても、仮想ポートVP3と対応付けるコマンドが入力されている。これらのコマンドの入力により、仮想ポートテーブル310及び回線ポート変換テーブル350aが設定される。   FIG. 30 is an explanatory diagram illustrating an example of a command input to the setting screen at the time of initial setting in the second embodiment. In FIG. 30, a command for initial setting is input on the setting screen W2. In FIG. 30, as in FIG. 9 of the first embodiment, only a part of the commands input at the time of initial setting are shown. In FIG. 30, a command for associating the physical port “P11” with the virtual port “VP1” is input to the area Ar21 in the setting screen W2. Similarly, a command for associating two physical ports “P12, P13” with a virtual port “VP2” is input to the area Ar22. Although omitted in FIG. 30, commands for associating with the virtual port VP3 are also input to the other physical ports P14. By inputting these commands, the virtual port table 310 and the line port conversion table 350a are set.

また、設定用画面W2のうち、領域Ar23には、仮想ポートVP1と、VLAN−ID「10,20」とを対応付けるコマンドが入力されている。なお、後述の領域Ar25に入力されたコマンド、および仮想ポート「VP3」とVLAN−ID「30,60」とを対応付ける図示しないコマンドの入力により、VLAN決定テーブル320と、フラッディングテーブル340と、VLAN−ID変換テーブル360とが設定される。   In the setting screen W2, a command for associating the virtual port VP1 with the VLAN-ID “10, 20” is input to the area Ar23. It should be noted that the VLAN determination table 320, the flooding table 340, and the VLAN- are input by inputting a command input to an area Ar25, which will be described later, and a command (not shown) that associates the virtual port “VP3” with the VLAN-ID “30, 60”. An ID conversion table 360 is set.

また、設定用画面W2のうち、領域Ar24には、仮想ポートVP2と、論理回線LAG1とを対応付けるコマンドが入力されている。領域Ar22に入力された前述のコマンドによって回線ポート変換テーブル350aにおいて出力仮想ポート「VPO2(VP2)」に対応付けられた出力回線ポート「PO2,PO3(P12,P13)」が、領域Ar24に入力されたコマンドにより、論理回線「LAG1」に更新される。加えて、前述の領域Ar22に入力されたコマンドと、領域Ar24に入力されたコマンドとにより、LAGテーブル370が設定される。   In the setting screen W2, a command for associating the virtual port VP2 with the logical line LAG1 is input to the area Ar24. The output line ports “PO2, PO3 (P12, P13)” associated with the output virtual port “VPO2 (VP2)” in the line port conversion table 350a are input to the area Ar24 by the above-described command input to the area Ar22. The command is updated to the logical line “LAG1”. In addition, the LAG table 370 is set by the command input to the area Ar22 and the command input to the area Ar24.

また、領域Ar25には、論理回線LAG1と、VLAN−ID「10,40」とを対応付けるコマンドが入力されている。かかるコマンドの入力により、上述したように、VLAN決定テーブル320,フラッディングテーブル340,およびVLAN−ID変換テーブル360の設定が実現される。   In addition, a command for associating the logical line LAG1 with the VLAN-ID “10, 40” is input to the area Ar25. By inputting such a command, as described above, the settings of the VLAN determination table 320, the flooding table 340, and the VLAN-ID conversion table 360 are realized.

B2.宛先検索処理:
図31は、第2実施例の宛先検索処理の手順を示すフローチャートである。第2実施例の宛先検索処理は、ステップS220に代えてステップS220aを実行する点と、ステップS222,S223,S224を追加して実行する点とにおいて、図11に示す第1実施例の宛先検索処理と異なり、他の処理は第1実施例と同じである。
B2. Address search processing:
FIG. 31 is a flowchart illustrating a procedure of destination search processing according to the second embodiment. The destination search process of the second embodiment is the same as the destination search of the first embodiment shown in FIG. 11 in that step S220a is executed instead of step S220 and steps S222, S223, and S224 are additionally executed. Unlike the processing, the other processing is the same as in the first embodiment.

具体的には、前述のステップS215及びS235において、出力仮想ポートが決定されると、実物理ポート変換部240は、宛先検索部230から通知される出力仮想ポートに基づき、回線ポート変換テーブル350aを参照して、出力仮想ポートを出力回線ポートに変換する(ステップS220a)。   Specifically, when the output virtual port is determined in steps S215 and S235 described above, the real physical port conversion unit 240 stores the line port conversion table 350a based on the output virtual port notified from the destination search unit 230. Referring to the output virtual port, the output virtual port is converted into an output line port (step S220a).

例えば、図21に示すパーソナルコンピュータPC1からパーソナルコンピュータPC3にデータを送る場合、ステップS215が実行されて出力仮想ポート「VPO2」が通知される。したがって、実物理ポート変換部240は、図27に示す回線ポート変換テーブル350aを参照して、出力先回線「LAG1」に変換する。   For example, when data is sent from the personal computer PC1 shown in FIG. 21 to the personal computer PC3, step S215 is executed to notify the output virtual port “VPO2”. Therefore, the real physical port conversion unit 240 refers to the line port conversion table 350a shown in FIG. 27 and converts it to the output destination line “LAG1”.

LAG検索部260は、ステップS220aで変換された後の回線ポートは、論理ポートであるか否かを判定し(ステップS222)、論理ポートであると判定すると(ステップS222:YES)、回線ポート(LAG番号)が設定されたエントリをLAGテーブル370において検索する(ステップS223)。例えば、前述のように、変換後の出力回線ポートが論理ポートを意味する「LAG1」であれば、LAG検索部260は、図29に示すLAGテーブル370を参照して、エントリを見つけることができる。   The LAG search unit 260 determines whether or not the line port converted in step S220a is a logical port (step S222). If the LAG search unit 260 determines that the line port is a logical port (step S222: YES), the line port ( The LAG table 370 is searched for an entry in which the LAG number) is set (step S223). For example, as described above, if the converted output line port is “LAG1” meaning a logical port, the LAG search unit 260 can find an entry with reference to the LAG table 370 shown in FIG. .

LAG検索部260は、ステップS223で見つかったエントリに設定されている物理ポートの中から、所定のアルゴリズムに基づき、パケット(レイヤ2フレーム)を出力するための物理ポートを決定し、転送回路100に通知する(ステップS224)。例えば、前述のように、ステップS223において、図29に示す論理回線LAG1が設定されたエントリが発見された場合、このエントリには2つの出力物理ポートPO2,PO3が設定されている。そこで、LAG検索部260は、これら2つの出力物理ポートPO2,PO3のうち、いずれかの出力物理ポートを、パケットを出力するための物理ポートとして決定する。物理ポートを決定するための所定のアルゴリズムとしては、例えば、宛先MACアドレスや送信元MACアドレスなどの経路情報に基づき、2種類のハッシュ値(例えば、「0」と「1」)のいずれかが算出される算出式を用いてハッシュ値を求め、得られたハッシュ値に基づき決定する方法を採用することができる。また、例えば、ラウンドロビン方式で、複数ある物理ポートを所定の順序で選択する方法を採用することもできる。   The LAG search unit 260 determines a physical port for outputting a packet (layer 2 frame) from the physical ports set in the entry found in step S223 based on a predetermined algorithm, and sends it to the transfer circuit 100. Notification is made (step S224). For example, as described above, when an entry in which the logical line LAG1 shown in FIG. 29 is set is found in step S223, two output physical ports PO2 and PO3 are set in this entry. Therefore, the LAG search unit 260 determines one of the two output physical ports PO2 and PO3 as a physical port for outputting a packet. As a predetermined algorithm for determining a physical port, for example, one of two types of hash values (for example, “0” and “1”) is based on path information such as a destination MAC address and a source MAC address. A method can be employed in which a hash value is obtained using a calculated formula and is determined based on the obtained hash value. In addition, for example, a method of selecting a plurality of physical ports in a predetermined order by a round robin method may be employed.

ステップS224において、出力物理ポートが決定されると、前述のステップS225が実行され、VLAN−IDが決定され、転送回路100に通知される。このようにして、例えば、ステップS224において、パケットを出力する物理ポートとして「PO2」が決定され、ステップS225において、VLAN−IDとして「10」が決定されると、転送回路100は、パーソナルコンピュータPC1から受信したフレームのヘッダにVLAN−ID「10」を設定し、かかるフレームを物理ポートPO2(すなわち、物理ポートP12の出力側のポート)から出力する。   When the output physical port is determined in step S224, the above-described step S225 is executed, and the VLAN-ID is determined and notified to the transfer circuit 100. Thus, for example, when “PO2” is determined as the physical port for outputting a packet in step S224, and “10” is determined as the VLAN-ID in step S225, the transfer circuit 100 determines that the personal computer PC1. The VLAN-ID “10” is set in the header of the frame received from, and the frame is output from the physical port PO2 (that is, the output port of the physical port P12).

B3.接続ポートの切り替え:
図32は、第2実施例における接続ポートの切り替え後のネットワークシステムの構成例を示す説明図である。図32では、図21の構成から、第6スイッチSW6における2つのポートにおいて接続ポートの切り替えが行われた後の構成を表わしている。具体的には、物理ポートP11において、ネットワークケーブルL7に代えて、ネットワークケーブルL81が差し替えられ、その結果、物理ポートP11には、第8スイッチSW8の物理ポートP81が接続されている。同様に、物理ポートP12において、ネットワークケーブルL81に代えて、ネットワークケーブルL7が差し替えられ、その結果、物理ポートP12には、第7スイッチSW7の物理ポートP71が接続されている。
B3. Switch connection port:
FIG. 32 is an explanatory diagram showing a configuration example of the network system after the connection port is switched in the second embodiment. FIG. 32 shows a configuration after the connection ports are switched in the two ports of the sixth switch SW6 from the configuration of FIG. Specifically, in the physical port P11, the network cable L81 is replaced instead of the network cable L7. As a result, the physical port P81 of the eighth switch SW8 is connected to the physical port P11. Similarly, in the physical port P12, the network cable L7 is replaced instead of the network cable L81, and as a result, the physical port P71 of the seventh switch SW7 is connected to the physical port P12.

第2実施例では、第1実施例と同様に、接続ポートの切り替えの後に、後述の再設定処理が実行されることで、切り換えたポートに接続されたスイッチの配下にあるパーソナルコンピュータは正常に通信を行う(再開する)ことができる。また、第2実施例では、第1実施例と同様に、仮想ポートを利用することにより、接続ポートの切り替え後に実行する再設定処理を簡素化している。   In the second embodiment, similarly to the first embodiment, after the connection port is switched, the resetting process described later is executed, so that the personal computers under the switch connected to the switched port can be operated normally. Communication can be performed (resumed). In the second embodiment, similarly to the first embodiment, the virtual port is used to simplify the resetting process executed after the connection port is switched.

B4.再設定処理:
図33は、第2実施例において実行される再設定処理の作業手順を示すフローチャートである。第2実施例の再設定処理は、ステップS315に代えてステップS315aを実行する点と、ステップS320,S325の処理を追加して実行する点とにおいて、図13に示す第1実施例の再設定処理と異なり、他の処理は第1実施例と同じである。
B4. Reconfiguration process:
FIG. 33 is a flowchart showing the work procedure of the resetting process executed in the second embodiment. The reset process of the second embodiment is the reset process of the first embodiment shown in FIG. 13 in that step S315a is executed instead of step S315 and the processes of steps S320 and S325 are additionally executed. Unlike the processing, the other processing is the same as in the first embodiment.

図34は、第2実施例において、再設定処理のステップS310で入力される設定用コマンドの入力例を示す説明図である。図34では、設定用画面W2において、図32に示す接続ポート切り替えに対応するコマンドの入力例が表わされている。前述の図30に示すように、初期設定では、物理ポートP11に対して仮想ポートVP1を対応付け、また、物理ポートP12,P13に対して仮想ポートVP2を対応付けるコマンドが入力されていた。これに対し、図32に示す接続ポートの切り替え時には、図34に示すように、設定用画面W2のうち、領域Ar31には、物理ポートP12と仮想ポートVP1とを対応付けるコマンドが入力される。同様に、領域Ar32には、物理ポートP11と仮想ポートVP2とを対応付けるコマンドが入力される。なお、物理ポートP13に関しては、既に仮想ポートVP2と対応付いている為、改めて対応付ける必要はない。これらのコマンドは、管理者が、第6スイッチSW6の2つのP11,P12に対して、それぞれ、接続ポートを切り替える前に互いの物理ポートに対応付けられていた仮想ポートを、入れ替えて対応付けるように判断して入力される。   FIG. 34 is an explanatory diagram showing an input example of the setting command input in step S310 of the resetting process in the second embodiment. FIG. 34 shows an input example of a command corresponding to the connection port switching shown in FIG. 32 on the setting screen W2. As shown in FIG. 30 described above, in the initial setting, a command for associating the virtual port VP1 with the physical port P11 and associating the virtual port VP2 with the physical ports P12 and P13 is input. On the other hand, when the connection ports shown in FIG. 32 are switched, as shown in FIG. 34, a command for associating the physical port P12 and the virtual port VP1 is input to the area Ar31 in the setting screen W2. Similarly, a command for associating the physical port P11 and the virtual port VP2 is input to the area Ar32. The physical port P13 is already associated with the virtual port VP2, and need not be associated again. These commands allow the administrator to replace and associate the virtual ports associated with each other's physical ports before switching the connection ports for the two P11 and P12 of the sixth switch SW6. It is judged and input.

図35は、図34に示すコマンドが入力された場合に更新される仮想ポートテーブルの設定内容を示す説明図である。仮想ポートテーブル310の設定内容は、図23に示す初期設定内容と比べて、2つの入力物理ポート「PI1,PI2」に関するエントリが更新(変更)されている。具体的には、入力物理ポート「PI1」に対して、入力仮想ポート「VPI2」が対応付けられている。また、入力物理ポート「PI2」に対して、入力仮想ポート「VPI1」が対応付けられている。   FIG. 35 is an explanatory diagram showing the setting contents of the virtual port table updated when the command shown in FIG. 34 is input. In the setting contents of the virtual port table 310, entries relating to the two input physical ports “PI1, PI2” are updated (changed) compared to the initial setting contents shown in FIG. Specifically, the input physical port “PI1” is associated with the input virtual port “VPI2”. The input virtual port “VPI1” is associated with the input physical port “PI2”.

ステップS310の実行後、実物理ポート変換部240は、入力されたコマンドに基づき、回線ポート変換テーブル350aを更新する(ステップS315a)。   After executing step S310, the real physical port conversion unit 240 updates the line port conversion table 350a based on the input command (step S315a).

図36は、図34に示すコマンドが入力された場合に更新される回線ポート変換テーブルの設定内容を示す説明図である。上述したように、図34に示すコマンドは、物理ポートP12と仮想ポートVP1とを対応付け、物理ポートP11と仮想ポートVP2とを対応付けるコマンドである。したがって、かかるコマンドが入力された結果、図36に示すように、回線ポート変換テーブル350aでは、出力仮想ポートVPO1に出力物理ポートPO2が対応付けられている。なお、出力仮想ポートVPO2に対して対応付けられている論理回線LAG1については、図34に示すコマンドの入力では更新(変更)されない。   FIG. 36 is an explanatory diagram showing the setting contents of the line port conversion table updated when the command shown in FIG. 34 is input. As described above, the command shown in FIG. 34 is a command that associates the physical port P12 with the virtual port VP1 and associates the physical port P11 with the virtual port VP2. Therefore, as a result of inputting such a command, as shown in FIG. 36, in the line port conversion table 350a, the output physical port PO2 is associated with the output virtual port VPO1. Note that the logical line LAG1 associated with the output virtual port VPO2 is not updated (changed) by the input of the command shown in FIG.

LAG検索部260は、入力されたコマンドに基づき、回線ポート変換テーブル350a及びLAGテーブル370を参照して、接続ポート切り替えの対象となるポートが、論理ポートを構成する物理ポートであるか否かを判定する(ステップS320)。例えば、図34に示す領域Ar31に入力されたコマンドでは、仮想ポートVP1に対して、物理ポートP11に代えて、物理ポートP12が対応付けられている。また、領域Ar32に入力されたコマンドでは、仮想ポートVP2に対して、物理ポートP12に代えて物理ポートP11が新たに対応付けられている。したがって、LAG検索部260は、接続ポート切り替えの対象となるポートは、2つの物理ポートP11,P12であると特定することができる。また、図29に示すLAGテーブル370を参照することにより、LAG検索部260は、2つの物理ポートP11,P12は、論理回線LAG1を構成する物理ポートであると判定することができる。   Based on the input command, the LAG search unit 260 refers to the line port conversion table 350a and the LAG table 370 to determine whether or not the port for which the connection port is to be switched is a physical port constituting a logical port. Determination is made (step S320). For example, in the command input to the area Ar31 illustrated in FIG. 34, the physical port P12 is associated with the virtual port VP1 instead of the physical port P11. In the command input to the area Ar32, the physical port P11 is newly associated with the virtual port VP2 instead of the physical port P12. Therefore, the LAG search unit 260 can specify that the ports for which connection port switching is to be performed are the two physical ports P11 and P12. In addition, by referring to the LAG table 370 shown in FIG. 29, the LAG search unit 260 can determine that the two physical ports P11 and P12 are physical ports constituting the logical line LAG1.

前述のステップS320において、接続ポート切り替えの対象となるポートが論理ポートを構成する物理ポートであると判定された場合(ステップS320:YES)、LAG検索部260は、ステップS305で入力されたコマンドに基づき、LAGテーブル370を更新する(ステップS325)。図34に示すように、領域Ar32に入力されたコマンドにより、仮想ポートVP2に対して、2つの物理ポートP11,P13が対応付けられている。ここで、図36に示すように、回線ポート変換テーブル350aにおいて、仮想ポートVP2に対して論理回線LAG1が対応付けられている。したがって、領域Ar32に入力されたコマンドにより、LAG検索部260は、論理回線LAG1に対して、2つの物理ポートP11,P13を対応付ければよいことが分かる。   In step S320 described above, when it is determined that the port for which the connection port is to be switched is a physical port that constitutes a logical port (step S320: YES), the LAG search unit 260 uses the command input in step S305. Based on this, the LAG table 370 is updated (step S325). As shown in FIG. 34, two physical ports P11 and P13 are associated with the virtual port VP2 by the command input to the area Ar32. Here, as shown in FIG. 36, in the line port conversion table 350a, the logical line LAG1 is associated with the virtual port VP2. Therefore, it can be seen from the command input in the area Ar32 that the LAG search unit 260 may associate the two physical ports P11 and P13 with the logical line LAG1.

図37は、図34に示すコマンドが入力された場合に更新されるLAGテーブルの設定内容を示す説明図である。上述のように、図34の領域Ar32に入力されたコマンドに基づき、LAG検索部260は、論理回線LAG1に対して、2つの物理ポートP11,P13を対応付ければよいことが分かるので、図37に示すように、論理回線LAG1のエントリに対して、出力物理ポート番号として「PO1」(物理ポートP11の出力側ポート)と、「PO3」(物理ポートP13の出力側ポート)とが対応付けられている。   FIG. 37 is an explanatory diagram showing the setting contents of the LAG table updated when the command shown in FIG. 34 is input. As described above, based on the command input to the area Ar32 in FIG. 34, the LAG search unit 260 can associate the two physical ports P11 and P13 with the logical line LAG1. As shown in FIG. 8, “PO1” (output port of the physical port P11) and “PO3” (output port of the physical port P13) are associated with the entry of the logical line LAG1 as the output physical port number. ing.

前述のステップS320において、接続ポート切り替えの対象となるポートが論理ポートを構成する物理ポートでないと判定された場合(ステップS320:NO)、再設定処理は終了する。したがって、この場合、LAGテーブル370は更新されない。   In step S320 described above, when it is determined that the port for which connection port switching is to be performed is not a physical port constituting a logical port (step S320: NO), the resetting process ends. Therefore, in this case, the LAG table 370 is not updated.

再設定処理が完了すると、切り替えられたポートに接続されたスイッチの配下にあるパーソナルコンピュータは、データの送受信を正常に行うことができる。例えば、図32に示す接続ポートの切り換えが行われ、上述した再設定処理が行われた後に、パーソナルコンピュータPC1からパーソナルコンピュータPC3にデータを送信する場合について考える。   When the resetting process is completed, the personal computers under the switch connected to the switched port can normally send and receive data. For example, consider the case where data is transmitted from the personal computer PC1 to the personal computer PC3 after the connection port shown in FIG. 32 is switched and the above-described resetting process is performed.

宛先登録処理のステップS105では、入力ポート情報(入力物理ポート:PI2)に基づき、図35に示す設定変更後の仮想ポートテーブル310が参照されて、仮想ポート番号「VP1」が決定される。ステップS110では、ヘッダ情報に含まれるVLAN−ID「10」と、仮想ポート番号「VP1(VPI1)」に基づき、図24に示すVLAN決定テーブル320が参照されて、VLAN「10」が決定される。VLAN「10」,MAC「A1」,仮想ポート「VP1」のエントリは、図25に示す宛先テーブル330に既に登録されているので、新たなエントリを追加することなく、宛先登録処理は終了する。   In step S105 of the destination registration process, the virtual port number “VP1” is determined by referring to the virtual port table 310 after the setting change shown in FIG. 35 based on the input port information (input physical port: PI2). In step S110, the VLAN determination table 320 shown in FIG. 24 is referred to based on the VLAN-ID “10” and the virtual port number “VP1 (VPI1)” included in the header information, and the VLAN “10” is determined. . Since the entries of VLAN “10”, MAC “A1”, and virtual port “VP1” have already been registered in the destination table 330 shown in FIG. 25, the destination registration process ends without adding a new entry.

宛先検索処理では、ステップS205,S210,S215が実行され、前述の宛先登録処理で決定されたVLAN値「10」と、宛先MACアドレス「A3」に基づき、図25に示す宛先テーブル330が参照され、出力仮想ポートとして「VP2(VPO2)」が決定される。ステップS220aでは、図36に示す回線ポート変換テーブル350aが参照され、回線ポートとして「LAG1」が決定される。したがって、ステップS222において、「変換後の回線ポートは論理ポートである」(ステップS222:YES)と判定され、ステップS223が実行される。ステップS223では、図37に示す設定変更後のLAGテーブルにおいて、「LAG1」が設定されたエントリが検索され、ステップS224では、図37に示すエントリに設定されている2つの物理ポートP12,P13のうち、いずれかの物理ポートが、パケットを出力する物理ポートとして決定される。ステップS225では、出力仮想ポート「VPO2」と、VLAN「10」とに基づき、図28に示すVLAN−ID変換テーブル360が参照され、VLAN−ID「10」が決定される。   In the destination search process, steps S205, S210, and S215 are executed, and the destination table 330 shown in FIG. 25 is referred to based on the VLAN value “10” determined in the destination registration process and the destination MAC address “A3”. Then, “VP2 (VPO2)” is determined as the output virtual port. In step S220a, the line port conversion table 350a shown in FIG. 36 is referred to, and “LAG1” is determined as the line port. Therefore, in step S222, it is determined that “the converted line port is a logical port” (step S222: YES), and step S223 is executed. In step S223, the LAG table after the setting change shown in FIG. 37 is searched for an entry in which “LAG1” is set. In step S224, the two physical ports P12 and P13 set in the entry shown in FIG. One of the physical ports is determined as a physical port that outputs a packet. In step S225, based on the output virtual port “VPO2” and the VLAN “10”, the VLAN-ID conversion table 360 shown in FIG. 28 is referred to, and the VLAN-ID “10” is determined.

こうして、接続ポート切り替え後のパーソナルコンピュータPC1から出力されたパーソナルコンピュータPC3宛のフレームは、第6スイッチSW6において、VLAN−IDとして「10」が設定され、物理ポートP12(出力物理ポートPO2)又は物理ポートP13(出力物理ポートPO3)から出力される。したがって、パーソナルコンピュータPC3では、かかるフレームを自分宛のフレームとして受信することができる。   Thus, the frame addressed to the personal computer PC3 output from the personal computer PC1 after the connection port switching is set to “10” as the VLAN-ID in the sixth switch SW6, and the physical port P12 (output physical port PO2) or physical Output from port P13 (output physical port PO3). Therefore, the personal computer PC3 can receive such a frame as a frame addressed to itself.

以上説明した第2実施例の第6スイッチSW6は、第1実施例の第1スイッチSW1と同様の効果を有する。加えて、第2実施例の第6スイッチSW6では、論理ポートを構成する物理ポートの一部又は全部が接続ポート切り替えの対象ポートであったとしても、簡易なコマンドを入力のみで、接続ポートの切り替えを実現できる。また、接続ポートの切り替え時に更新されるテーブルは、仮想ポートテーブル310と、回線ポート変換テーブル350aと、LAGテーブル370とであり、他の4つのテーブル320,330,340,360は更新させないようにすることができる。したがって、接続ポート切り替え時の運用再開までの期間を短くすることができる。   The sixth switch SW6 of the second embodiment described above has the same effect as the first switch SW1 of the first embodiment. In addition, in the sixth switch SW6 of the second embodiment, even if a part or all of the physical ports constituting the logical port are the target ports for connection port switching, only a simple command is input, Switching can be realized. The tables updated when the connection port is switched are the virtual port table 310, the line port conversion table 350a, and the LAG table 370. The other four tables 320, 330, 340, and 360 are not updated. can do. Therefore, it is possible to shorten the period until the operation is resumed when the connection port is switched.

C.変形例:
なお、上記各実施例における構成要素の中の、独立クレームでクレームされた要素以外の要素は、付加的な要素であり、適宜省略可能である。また、この発明は上記の実施例や実施形態に限られるものではなく、その要旨を逸脱しない範囲において種々の態様において実施することが可能であり、例えば次のような変形も可能である。
C. Variations:
In addition, elements other than the elements claimed in the independent claims among the constituent elements in each of the above embodiments are additional elements and can be omitted as appropriate. The present invention is not limited to the above-described examples and embodiments, and can be implemented in various modes without departing from the gist thereof. For example, the following modifications are possible.

C1.変形例1:
各実施例では、パケット中継装置としてレイヤ2スイッチを採用していたが、本発明はこれに限定されるものではない。例えば、レイヤ2スイッチに代えて、レイヤ3スイッチやルータなどレイヤ3パケットを中継する装置や、ファイバチャネルスイッチや、ATM(Asynchronous Transfer Mode)スイッチなど、レイヤ2フレームを除く、他の任意のパケット(データの集まり)を中継する装置を採用することができる。なお、例えば、レイヤ2スイッチに代えてルータを採用する場合には、レイヤ3パケットを出力するインタフェース情報(例えば、物理ポート)と、仮想ポートとを対応付けることが好ましい。このような構成により、レイヤ3スイッチやルータが備えるルーティングテーブルを、接続ポートの切り替えが起こるたびに更新せずに済み、接続ポートの切り替えに伴うダウンタイムを短くすることができる。
C1. Modification 1:
In each embodiment, the layer 2 switch is employed as the packet relay device, but the present invention is not limited to this. For example, instead of the layer 2 switch, any other packet (excluding the layer 2 frame) such as a device that relays the layer 3 packet such as a layer 3 switch or router, a fiber channel switch, an ATM (Asynchronous Transfer Mode) switch, etc. A device that relays a collection of data) can be employed. For example, when a router is used instead of the layer 2 switch, it is preferable to associate interface information (for example, a physical port) that outputs a layer 3 packet with a virtual port. With such a configuration, it is not necessary to update the routing table provided in the layer 3 switch or the router every time the connection port is switched, and the downtime associated with the switching of the connection port can be shortened.

また、上述したレイヤ2スイッチやルータなどのパケットを中継する専用装置に限らず、パケットを中継する機能を有する他の装置を採用することもできる。例えば、サーバ装置や、ストレージ装置を採用することもできる。具体的には、サーバ装置が複数の入出力インタフェースを備える構成において、各入出力インタフェースを、仮想ポートと対応付けることで、各入出力インタフェースに接続された装置(例えば、他のサーバ装置)の故障等により、接続インタフェースを切り替える場合などに、切り替え後の運用再開までの期間を短くすることができる。また、各装置のポートに関連付けられた情報の保持(更新されないようにすること)を実現することができる。   In addition, the above-described dedicated device for relaying packets, such as a layer 2 switch or a router, may be employed as well as another device having a function for relaying packets. For example, a server device or a storage device can be employed. Specifically, in a configuration in which the server device includes a plurality of input / output interfaces, a failure of a device (for example, another server device) connected to each input / output interface by associating each input / output interface with a virtual port. For example, when the connection interface is switched, the period until the operation is resumed after switching can be shortened. In addition, it is possible to realize holding (not updating) information associated with the port of each device.

C2.変形例2:
各実施例では、宛先検索処理のステップS210において、宛先テーブルに受信フレームの宛先MACアドレスを含むエントリが登録されていない場合に、フラッディングを行うものとしていたが、本発明はこれに限定されるものではない。例えば、宛先テーブルに宛先MACアドレスが登録されていない場合には、フラッディングの実行に代えて、受信パケットを廃棄する、又は、受信パケットの廃棄と共に、廃棄した旨を送信元に送信する構成を採用することもできる。
C2. Modification 2:
In each embodiment, flooding is performed when no entry including the destination MAC address of the received frame is registered in the destination table in step S210 of the destination search process. However, the present invention is not limited to this. is not. For example, when the destination MAC address is not registered in the destination table, instead of executing flooding, the received packet is discarded, or the received packet is discarded and the information indicating the discard is transmitted to the transmission source. You can also

C3.変形例3:
各実施例では、パケットの出力先(宛先)を決定する機能部(ヘッダ処理部200,200a及び記憶部300,300a)と、パケットを転送する機能部(転送回路100)とは、同一の筐体に組み込まれていたが、これに代えて、これら2つの機能部を、互いに異なる筐体に組み込むこともできる。例えば、転送回路100を有するスイッチと、かかるスイッチに接続されたスイッチとは別の装置(筐体)であって、ヘッダ処理部200,200a、及び記憶部300,300aを備える装置(例えば、パーソナルコンピュータ)と、を採用することもできる。この構成では、スイッチと、スイッチに接続された出力先を決定する機能を有する装置とが、請求項におけるパケット中継装置に相当する。
C3. Modification 3:
In each embodiment, a functional unit (header processing units 200 and 200a and storage units 300 and 300a) that determines an output destination (destination) of a packet and a functional unit that transfers a packet (transfer circuit 100) are in the same case. Instead of being incorporated in the body, these two functional units can be incorporated in different cases. For example, the switch having the transfer circuit 100 and a switch (casing) different from the switch connected to the switch, and a device (for example, a personal computer) including the header processing units 200 and 200a and the storage units 300 and 300a. Computer). In this configuration, the switch and the device having the function of determining the output destination connected to the switch correspond to the packet relay device in the claims.

C4.変形例4:
各実施例では、宛先登録処理を実行し、新たに接続された装置からパケットを受信した場合に、受信したパケットのヘッダ情報や、受信したポートの情報等から、宛先テーブル330にエントリを追加(学習)する構成であったが、本発明はこれに限定されるものではない。例えば、予め、ユーザが、想定されるすべての端末に関する宛先エントリを宛先テーブル330に登録しておく構成を採用することもできる。
C4. Modification 4:
In each embodiment, when a destination registration process is executed and a packet is received from a newly connected device, an entry is added to the destination table 330 based on the received packet header information, the received port information, and the like ( However, the present invention is not limited to this. For example, it is possible to adopt a configuration in which the user registers destination entries related to all assumed terminals in the destination table 330 in advance.

C5.変形例5:
各実施例では、設定用画面は、スイッチSW1,SW6に接続された管理端末に表示されていたが、本発明はこれに限定されるものではない。例えば、スイッチSW1,SW6が、筐体前面などに表示部(例えば、液晶ディスプレイ等)を備える構成であれば、かかる表示部に、設定用画面を表示させる構成を採用することもできる。また、設定用画面のユーザインタフェースは、CUI(Character-based User Interface)であったが、CUIに代えて、GUI(Graphical User Interface)を採用することもできる。
C5. Modification 5:
In each embodiment, the setting screen is displayed on the management terminal connected to the switches SW1 and SW6. However, the present invention is not limited to this. For example, if the switches SW1 and SW6 are configured to include a display unit (for example, a liquid crystal display) on the front surface of the housing, a configuration in which a setting screen is displayed on the display unit may be employed. The user interface of the setting screen is a CUI (Character-based User Interface), but a GUI (Graphical User Interface) may be employed instead of the CUI.

C6.変形例6:
各実施例では、ネットワークシステム10,10aでは、VLANが設定されていたが、これに代えて、VLANが設定されていないシステムにも本発明を適用することができる。この構成では、例えば、以下のようにして出力先となる物理ポートを決定することができる。先ず、予め宛先テーブルとして、宛先MACアドレスと仮想ポートとを対応付けておく。そして、パケットを受信すると、宛先テーブルを参照して、受信パケットの宛先MACアドレスに基づき出力先となる仮想ポートを決定し、実物理ポート変換テーブル350、または、回線ポート変換テーブル350a及びLAGテーブル370を参照して、対応する物理ポートを決定する。このような構成においても、接続ポートの切り替えの際に、宛先テーブルの更新を省略でき、運用再開までの期間を短くすることができる。
C6. Modification 6:
In each embodiment, the VLAN is set in the network systems 10 and 10a, but the present invention can be applied to a system in which no VLAN is set instead. In this configuration, for example, the physical port that is the output destination can be determined as follows. First, a destination MAC address and a virtual port are associated in advance as a destination table. When a packet is received, the destination table is referred to, a virtual port to be output is determined based on the destination MAC address of the received packet, and the real physical port conversion table 350, or the line port conversion table 350a and the LAG table 370 are determined. To determine the corresponding physical port. Even in such a configuration, when the connection port is switched, the updating of the destination table can be omitted, and the period until the operation can be resumed can be shortened.

C7.変形例7:
本発明において、ネットワークシステムの構成は、各実施例における構成に限定されるものではない。例えば、スイッチの数は、第1実施例では5台、第2実施例では4台であったが、任意の台数を採用することができる。また、各スイッチに接続されるクライアントは、パーソナルコンピュータであったが、パーソナルコンピュータに代えて、サーバ装置や、ストレージ装置や、PDA(Personal Digital Assistants)や、携帯電話端末など、データを送受信する任意の装置を採用することができる。
C7. Modification 7:
In the present invention, the configuration of the network system is not limited to the configuration in each embodiment. For example, the number of switches is 5 in the first embodiment and 4 in the second embodiment, but any number can be adopted. In addition, the client connected to each switch is a personal computer, but instead of the personal computer, a server device, a storage device, a PDA (Personal Digital Assistants), a mobile phone terminal, etc. Can be adopted.

C8.変形例8:
各実施例において、ソフトウェアによって実現されていた構成の一部をハードウェアに置き換えるようにしてもよい。また、これとは逆に、ハードウェアによって実現されていた構成の一部をソフトウェアに置き換えるようにしてもよい。
C8. Modification 8:
In each embodiment, a part of the configuration realized by software may be replaced with hardware. On the contrary, a part of the configuration realized by hardware may be replaced with software.

10,10a…ネットワークシステム
100…転送回路
200,200a…ヘッダ処理部
210…ポート仮想化部
220…VLAN決定部
230…宛先検索部
240…実物理ポート変換部
250…VLAN−ID変換部
260…LAG検索部
300,300a…記憶部
310…仮想ポートテーブル
320…VLAN決定テーブル
330…宛先テーブル
340…フラッディングテーブル
350…実物理ポート変換テーブル
350a…回線ポート変換テーブル
360…VLAN−ID変換テーブル
370…LAGテーブル
SW1…第1スイッチ
SW2…第2スイッチ
SW3…第3スイッチ
SW4…第4スイッチ
SW5…第5スイッチ
SW6…第6スイッチ
SW7…第7スイッチ
SW8…第8スイッチ
SW9…第9スイッチ
L2〜L5,L7,L81,L82,L9…ネットワークケーブル
PC1〜PC6…パーソナルコンピュータ
P11〜P14,P21〜P24,P31〜P34,P41〜P44,P51〜P54,P71〜P74,P81〜P84,P91〜P94…物理ポート
Ar1〜Ar4,Ar11,Ar12,Ar21,Ar22,Ar23,Ar24,Ar25,Ar31,Ar32,Ar81,Ar82,Ar83,Ar84…領域
LAG1…論理回線
W1,W2,W10…設定用画面
700…転送回路
800…ヘッダ処理部
820…VLAN決定部
830…宛先検索部
850…VLAN−ID変換部
900…記憶部
920…VLAN決定テーブル
930…宛先テーブル
940…フラッディングテーブル
960…VLAN−ID変換テーブル
DESCRIPTION OF SYMBOLS 10,10a ... Network system 100 ... Transfer circuit 200, 200a ... Header processing part 210 ... Port virtualization part 220 ... VLAN determination part 230 ... Destination search part 240 ... Real physical port conversion part 250 ... VLAN-ID conversion part 260 ... LAG Search unit 300, 300a ... Storage unit 310 ... Virtual port table 320 ... VLAN determination table 330 ... Destination table 340 ... Flooding table 350 ... Real physical port conversion table 350a ... Line port conversion table 360 ... VLAN-ID conversion table 370 ... LAG table SW1 ... 1st switch SW2 ... 2nd switch SW3 ... 3rd switch SW4 ... 4th switch SW5 ... 5th switch SW6 ... 6th switch SW7 ... 7th switch SW8 ... 8th switch SW9 ... 9th switch L2 L5, L7, L81, L82, L9 ... Network cable PC1-PC6 ... Personal computer P11-P14, P21-P24, P31-P34, P41-P44, P51-P54, P71-P74, P81-P84, P91-P94 ... Physical ports Ar1 to Ar4, Ar11, Ar12, Ar21, Ar22, Ar23, Ar24, Ar25, Ar31, Ar32, Ar81, Ar82, Ar83, Ar84 ... area LAG1 ... logical line W1, W2, W10 ... setting screen 700 ... transfer circuit 800 ... Header processing unit 820 ... VLAN determination unit 830 ... Destination search unit 850 ... VLAN-ID conversion unit 900 ... Storage unit 920 ... VLAN determination table 930 ... Destination table 940 ... Flooding table 960 ... VLAN-ID conversion table Le

Claims (10)

パケット中継装置であって、
パケットを送受信する複数の物理ポートと、
各々2以上の前記物理ポートを束ねた論理的なポートである複数の論理ポートと、複数の仮想ポートとを、1対1に対応付けるポート対応テーブルと、
各前記論理ポートと、各前記論理ポートを構成する前記2以上の物理ポートとを対応付けるリンクアグリゲーションテーブルと、
記複数の論理ポートのうちいずれかの論理ポートにより受信された受信パケットの出力先を特定するために用いられる出力先特定情報と、前記複数の仮想ポートのうちいずれかの仮想ポートと、を対応付ける出力先特定テーブルと、
前記受信パケットから前記出力先特定情報を取得する出力先特定情報取得部と、
前記出力先特定テーブルを参照して、前記取得された出力先特定情報に基づき、前記受信パケットの出力先となる前記仮想ポートである出力先仮想ポートを決定する出力先仮想ポート決定部と、
前記ポート対応テーブルを参照して、前記決定された出力先仮想ポートに対応する前記論理ポートを決定すると共に、前記リンクアグリゲーションテーブルを参照して、前記決定された論理ポートに対応する前記物理ポートを、前記受信パケットの出力先として決定する出力先決定部と、
を備える、パケット中継装置。
A packet relay device,
Multiple physical ports to send and receive packets;
A plurality of logical ports are each logical port a bundle of two or more of the physical ports and virtual ports of multiple, and the port correspondence table associating one-to-one,
A link aggregation table associating each logical port with the two or more physical ports constituting each logical port;
An output destination specifying information used for specifying the destination of the received packet received by any of the logical port of the previous SL multiple logical ports, and virtual port of any of said plurality of virtual ports, the The output destination identification table to be associated,
An output destination specifying information acquisition unit for acquiring the output destination specifying information from the received packet;
Referring to the output destination specifying table, based on the acquired output destination specifying information, an output destination virtual port determining unit that determines an output destination virtual port that is the virtual port that is an output destination of the received packet;
With reference to the port correspondence table, and determines a pre-Symbol logical port that corresponds to the determined output destination virtual port, the physics by referring to the link aggregation table, corresponding to the determined logical port An output destination determining unit that determines a port as an output destination of the received packet;
A packet relay device.
請求項1に記載のパケット中継装置において、
前記出力先特定情報は、少なくとも、前記受信パケットの宛先アドレスを含み、
前記出力先特定テーブルは、少なくとも、前記複数の仮想ポートのうちいずれかの仮想ポートと、前記受信パケットの宛先アドレスとを対応付ける宛先テーブルを含み、
前記出力先仮想ポート決定部は、前記出力先特定テーブルを参照して、前記受信パケットの宛先アドレスに基づき、前記受信パケットの出力先となる前記仮想ポートを決定する、パケット中継装置。
The packet relay device according to claim 1,
The output destination specifying information includes at least a destination address of the received packet,
The output destination specifying table includes a destination table that associates at least one of the plurality of virtual ports with a destination address of the received packet,
The output destination virtual port determining unit refers to the output destination specifying table, and determines the virtual port that is the output destination of the received packet based on the destination address of the received packet.
請求項2に記載のパケット中継装置において、さらに、
前記ポート対応テーブルを参照して、前記受信パケットを受信した前記論理ポートに対応する前記仮想ポートを特定する受信側仮想ポート特定部と、
前記決定された出力先に、前記受信パケットを中継するパケット中継部と、
を備え、
前記出力先特定情報は、少なくとも、前記受信パケットの宛先アドレスと、前記受信パケットのヘッダに設定されているVLAN−IDと、を含み、
前記宛先テーブルは、前記複数の仮想ポートのうちいずれかの仮想ポートと、前記受信パケットの前記宛先アドレスと、前記パケット中継装置においてVLANを識別するためのVLAN値と、を対応付け、
前記出力先特定テーブルは、
前記宛先テーブルと、
前記複数の仮想ポートのうちいずれかの仮想ポートと、前記受信パケットの前記VLAN−IDと、前記VLAN値と、を対応付けるVLAN決定テーブルと、
前記出力先仮想ポートと、前記VLAN値と、前記VLAN−IDと、を対応付けるVLAN−ID変換テーブルと、
を含み、
前記出力先決定部は、前記VLAN決定テーブルを参照して、前記特定された受信側仮想ポートと、前記受信パケットの前記VLAN−IDと、に基づき、前記受信パケットの送信元が所属するVLANの前記VLAN値を決定し、
前記出力先仮想ポート決定部は、前記宛先テーブルを参照して、前記決定されたVLAN値と、前記受信パケットのヘッダに含まれる前記宛先アドレスと、に基づき、前記受信パケットについての前記出力先仮想ポートを決定し、
前記出力先決定部は、前記VLAN−ID変換テーブルを参照して、前記決定された出力先仮想ポートと、前記決定されたVLAN値とに基づき、前記受信パケットを出力する際に用いる前記VLAN−IDを決定し、
前記パケット中継部は、前記決定されたVLAN−IDを前記受信されたパケットのヘッダに書き込み、前記出力先として決定された前記物理ポートから、前記受信パケットを出力する、パケット中継装置。
The packet relay device according to claim 2, further comprising:
With reference to the port correspondence table, a reception-side virtual port specifying unit for specifying the virtual port corresponding to the previous SL logical port that has received the received packet,
A packet relay unit that relays the received packet to the determined output destination;
With
The output destination specifying information includes at least a destination address of the received packet and a VLAN-ID set in a header of the received packet,
The destination table associates any one of the plurality of virtual ports, the destination address of the received packet, and a VLAN value for identifying a VLAN in the packet relay device,
The output destination specifying table is:
The destination table;
A VLAN determination table associating any one of the plurality of virtual ports with the VLAN-ID of the received packet and the VLAN value;
A VLAN-ID conversion table associating the output destination virtual port, the VLAN value, and the VLAN-ID;
Including
The output destination determining unit refers to the VLAN determination table, and based on the specified receiving virtual port and the VLAN-ID of the received packet, the VLAN destination to which the transmission source of the received packet belongs Determining the VLAN value;
The output destination virtual port determination unit refers to the destination table, and determines the output destination virtual port for the received packet based on the determined VLAN value and the destination address included in the header of the received packet. Determine the port,
The output destination determination unit refers to the VLAN-ID conversion table and uses the VLAN-ID used when outputting the received packet based on the determined output destination virtual port and the determined VLAN value. Determine the ID,
The packet relaying unit writes the VLAN-ID to the determined in a header of the received packet, the physical port or we determined as the output destination, and outputs the received packet, the packet relay apparatus.
請求項3に記載のパケット中継装置において、
前記出力先仮想ポート決定部は、前記宛先テーブルを参照した際に、前記決定されたVLAN値と、前記受信パケットの前記宛先アドレスとが、前記宛先テーブルにおいて、いずれの前記仮想ポートにも対応付けられていない場合には、前記受信パケットを受信した前記仮想ポートに対応付けられている前記VLAN値と同じVLAN値に対応付けられている前記仮想ポートであって、前記受信パケットを受信した仮想ポートを除く他のすべての仮想ポートを、前記出力先仮想ポートとして決定する、パケット中継装置。
In the packet relay device according to claim 3,
When the output destination virtual port determination unit refers to the destination table, the determined VLAN value and the destination address of the received packet are associated with any of the virtual ports in the destination table. If not, the virtual port associated with the same VLAN value as the VLAN value associated with the virtual port that received the received packet, and the virtual port that received the received packet A packet relay device that determines all other virtual ports except for as the output destination virtual ports.
請求項3または請求項4に記載のパケット中継装置において、
前記出力先仮想ポート決定部は、前記受信パケットが受信された際に、前記宛先テーブルにおいて、前記決定されたVLAN値と、前記受信パケットの送信元アドレスとが、いずれの仮想ポートにも対応付けられていない場合には、前記宛先テーブルにおいて、前記決定されたVLAN値と、前記受信パケットの送信元アドレスと、前記受信パケットを受信した前記論理ポートに対応付けられた仮想ポートと、を対応付ける、パケット中継装置。
In the packet relay device according to claim 3 or 4,
When the received packet is received, the output destination virtual port determining unit associates the determined VLAN value and the source address of the received packet with any virtual port in the destination table. is when we do not have, in the destination table, the VLAN value said determined transmission source address of the received packet, and virtual port associated with the prior SL logical port that has received the received packet, the Corresponding packet relay device.
請求項1ないし請求項5のいずれかに記載のパケット中継装置において、さらに、
前記ポート対応テーブルにおける、前記複数の論理ポートと前記複数の仮想ポートとの対応関係の更新を許容するユーザインタフェースを備える、パケット中継装置。
The packet relay device according to any one of claims 1 to 5, further comprising:
It said port in the corresponding table, a user interface that allows the update of the correspondence between the previous SL and a plurality of logical ports and the plurality of virtual ports, the packet relay apparatus.
請求項1ないし請求項6のいずれかに記載のパケット中継装置において、
前記パケットは、レイヤ2フレームである、パケット中継装置。
The packet relay device according to any one of claims 1 to 6,
The packet relay device, wherein the packet is a layer 2 frame.
パケットを送受信する複数の物理ポートを有するパケット中継装置において、受信パケットの出力先を決定するための方法であって、
(a)前記パケット中継装置において、各々2以上の前記物理ポートを束ねた論理的なポートである複数の論理ポートと、複数の仮想ポートとを、1対1に対応付ける工程と、
(b)前記パケット中継装置において、各前記論理ポートと、各前記論理ポートを構成する前記2以上の物理ポートとを対応付ける工程と、
)前記パケット中継装置において、前記複数の物理ポートのうちいずれかの物理ポートまたは前記複数の論理ポートのうちいずれかの論理ポートにより受信された受信パケットの出力先を特定するために用いられる出力先特定情報と、前記複数の仮想ポートのうちいずれかの仮想ポートと、を対応付ける工程と、
)前記パケット中継装置において、前記受信パケットから前記出力先特定情報を取得する工程と、
)前記パケット中継装置において、前記取得された出力先特定情報に基づき、前記受信パケットの出力先となる前記仮想ポートである出力先仮想ポートを決定する工程と、
)前記パケット中継装置において、前記決定された出力先仮想ポートに対応する前記論理ポートを決定すると共に、前記決定された論理ポートに対応する前記物理ポートを、前記受信パケットの出力先として決定する工程と、
を備える、方法。
In a packet relay apparatus having a plurality of physical ports for transmitting and receiving packets, a method for determining an output destination of a received packet,
(A) in the packet relay apparatus, and a plurality of logical ports, and a plurality of virtual ports, associated in a one-to-one step are each logical port a bundle of two or more of the physical ports,
(B) in the packet relay device, associating each logical port with the two or more physical ports constituting each logical port;
( C ) Used in the packet relay device to specify an output destination of a received packet received by any one of the plurality of physical ports or any one of the plurality of logical ports. Associating output destination specifying information with any one of the plurality of virtual ports;
( D ) in the packet relay device, obtaining the output destination specifying information from the received packet;
(E) in the packet relay apparatus, and based on the prior SL acquired output destination specifying information, determines the output destination virtual port is a virtual port for the destination to become of the received packet process,
(F) in the packet relay apparatus, and determines a pre-Symbol logical port that corresponds to the output destination virtual ports before Symbol determined, the physical port corresponding to the determined logical port, the output of the received packet A process to be determined first;
A method comprising:
コンピュータと、パケットを送受信する複数の物理ポートと、を有するパケット中継装置において、受信パケットの出力先を決定するためのプログラムであって、
(a)各々2以上の前記物理ポートを束ねた論理的なポートである複数の論理ポートと、複数の仮想ポートとを、1対1に対応付ける機能と、
(b)各前記論理ポートと、各前記論理ポートを構成する前記2以上の物理ポートとを対応付ける機能と、
)前記複数の物理ポートのうちいずれかの物理ポートまたは前記複数の論理ポートのうちいずれかの論理ポートにより受信された受信パケットの出力先を特定するために用いられる出力先特定情報と、前記複数の仮想ポートのうちいずれかの仮想ポートと、を対応付ける機能と、
)前記受信パケットから前記出力先特定情報を取得する機能と、
e)前記取得された出力先特定情報に基づき、前記受信パケットの出力先となる前記仮想ポートである出力先仮想ポートを決定する機能と、
f)前記決定された出力先仮想ポートに対応する前記論理ポートを決定すると共に、前記決定された論理ポートに対応する前記物理ポートを、前記受信パケットの出力先として決定する機能と、
を前記コンピュータに実現させるためのプログラム。
In a packet relay device having a computer and a plurality of physical ports for transmitting and receiving packets, a program for determining an output destination of a received packet,
(A) a plurality of logical ports is a logical port that bundling each two or more of the physical port, a function for associating the plurality of virtual ports, one-to-one,
(B) a function for associating each logical port with the two or more physical ports constituting each logical port;
( C ) Output destination specifying information used for specifying an output destination of a received packet received by any one of the plurality of physical ports or any one of the plurality of logical ports; A function of associating any one of the plurality of virtual ports;
( D ) a function of acquiring the output destination specifying information from the received packet;
(E) before SL on the basis of the acquired output destination specifying information, the ability to determine the virtual port in the form of the output destination virtual port as an output destination of the received packet,
(F) as well as pre-Symbol determines the pre-Symbol logical port that corresponds to the determined output destination virtual port, the physical port corresponding to the determined logical port, a function of determining the output destination of the received packet ,
A program for causing the computer to realize the above.
請求項9に記載のプログラムを記録したコンピュータ読み取り可能な記録媒体。   A computer-readable recording medium on which the program according to claim 9 is recorded.
JP2011013522A 2011-01-26 2011-01-26 Packet relay apparatus and output destination determination method in packet relay apparatus Active JP5526047B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011013522A JP5526047B2 (en) 2011-01-26 2011-01-26 Packet relay apparatus and output destination determination method in packet relay apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011013522A JP5526047B2 (en) 2011-01-26 2011-01-26 Packet relay apparatus and output destination determination method in packet relay apparatus

Publications (2)

Publication Number Publication Date
JP2012156732A JP2012156732A (en) 2012-08-16
JP5526047B2 true JP5526047B2 (en) 2014-06-18

Family

ID=46838018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011013522A Active JP5526047B2 (en) 2011-01-26 2011-01-26 Packet relay apparatus and output destination determination method in packet relay apparatus

Country Status (1)

Country Link
JP (1) JP5526047B2 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5875507B2 (en) * 2012-11-30 2016-03-02 ニフティ株式会社 Relay device, program, information processing method, and information processing device
JP2014200017A (en) * 2013-03-29 2014-10-23 ニフティ株式会社 Relay device, information processing method, and program
JP5937563B2 (en) * 2013-04-04 2016-06-22 株式会社インターネットイニシアティブ Communication base station and control method thereof
JP6399312B2 (en) * 2015-05-27 2018-10-03 住友電気工業株式会社 Packet relay device, packet relay system, and packet relay method
JP6591843B2 (en) * 2015-09-29 2019-10-16 APRESIA Systems株式会社 Relay device and relay system
JP2016096578A (en) * 2016-01-19 2016-05-26 ニフティ株式会社 Relay device, information processing method, and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09284308A (en) * 1996-04-19 1997-10-31 Nec Corp Atm cell routing control method and controller therefor

Also Published As

Publication number Publication date
JP2012156732A (en) 2012-08-16

Similar Documents

Publication Publication Date Title
JP5526047B2 (en) Packet relay apparatus and output destination determination method in packet relay apparatus
CN103873374B (en) Message processing method and device in virtualization system
US7565453B2 (en) System and method for accessing and transmitting different data frames in a digital transmission network
US8369347B2 (en) Fiber channel over Ethernet and fiber channel switching based on Ethernet switch fabrics
JP4094658B2 (en) Flooding suppression method
US8094584B2 (en) Node, network system, frame transfer method, and frame transfer program
CN102158421B (en) Method and unit for creating layer three interface
CN103081415B (en) Control device, communication system, communication means and record it on and have the record medium of signal procedure
GB2497202A (en) Transmitting frames between, possibly different, local VLANs by encapsulating frames for global VLAN tunnel
CN104380658A (en) Stream classifier, service routing trigger, and message processing method and system
JP5891877B2 (en) Relay device and relay method
US20130223287A1 (en) Layer two extensions
CN105634901B (en) Mac address information synchronous method and device based on CAS VXLAN
JP2019521619A (en) Packet forwarding
CN105515992A (en) Method and device for processing flow table items of VXLAN network
JP2019523608A (en) Packet monitoring
EP1594258B1 (en) Method and system for receiving and transmitting different data frames on digital transmission network
WO2019128612A1 (en) Method and device for processing routing protocol packet
US7369551B2 (en) System and method of accessing and transmitting different data frames in a digital transmission network
JP2014187447A (en) Switch device, control method therefor, and network system
US20060221868A1 (en) Methods and apparatus for realizing a configurable multi-bridge
EP1594256B1 (en) Method and system for receiving and transmitting different data frames on digital transmission network
JP4980200B2 (en) Data communication system and transfer frame
JP6330479B2 (en) Information processing system and information processing method
JP2017098738A (en) Control device, communication system, control method, and program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130304

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: 20131126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140116

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140414

R150 Certificate of patent or registration of utility model

Ref document number: 5526047

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250