JP5360257B2 - Frame relay apparatus, route learning program, and route learning method - Google Patents
Frame relay apparatus, route learning program, and route learning method Download PDFInfo
- Publication number
- JP5360257B2 JP5360257B2 JP2012083209A JP2012083209A JP5360257B2 JP 5360257 B2 JP5360257 B2 JP 5360257B2 JP 2012083209 A JP2012083209 A JP 2012083209A JP 2012083209 A JP2012083209 A JP 2012083209A JP 5360257 B2 JP5360257 B2 JP 5360257B2
- Authority
- JP
- Japan
- Prior art keywords
- frame
- subnet
- output port
- flag
- setting
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
Description
本発明は、フレーム中継装置、経路学習プログラム、および経路学習方法に関し、特に、ネットワークの構成に要するコストの増大を抑制しつつ、サブネット内の通信とサブネット間の通信とを区別することができるフレーム中継装置、経路学習プログラム、および経路学習方法に関する。 The present invention relates to a frame relay device, a route learning program, and a route learning method, and in particular, a frame capable of distinguishing between intra-subnet communication and inter-subnet communication while suppressing an increase in cost required for network configuration. The present invention relates to a relay device, a route learning program, and a route learning method.
近年、例えば企業などに設置された複数の通信端末装置は、互いに通信可能に接続されLAN(Local Area Network)を構成するのが一般的である。さらに、LANを構成する通信端末装置が物理的な接続状況に関わらず論理的にグループ化され、LANの中に複数のVLAN(Virtual LAN)が形成されることもある。VLANが形成されることにより、同一のVLANに属する通信端末装置は、1つのLANに属する通信端末装置のように相互に通信することができるとともに、異なるVLANに属する通信端末装置は、物理的な接続状態とは無関係に互いを区別することができる。 In recent years, for example, a plurality of communication terminal apparatuses installed in a company or the like are generally connected to each other so as to be communicable to form a LAN (Local Area Network). Further, communication terminal devices constituting the LAN may be logically grouped regardless of physical connection status, and a plurality of VLANs (Virtual LAN) may be formed in the LAN. By forming a VLAN, communication terminal devices belonging to the same VLAN can communicate with each other like communication terminal devices belonging to one LAN, and communication terminal devices belonging to different VLANs can be physically They can be distinguished from each other regardless of the connection status.
このようなVLANを構成する際、例えば特許文献1においては、各VLAN内で独自に使用されるプライベートIPアドレスとVLANの外部で共通して使用されるグローバルIPアドレスとを変換するアドレス変換装置を設けることにより、VLAN内およびVLAN間で効率的にフレームをルーティングすることが開示されている。特に、特許文献1においては、VLANごとにアドレス変換に用いるテーブルを切り替えることにより、1つのアドレス変換装置によって複数のVLANに対応するアドレス変換が可能となる。
When configuring such a VLAN, for example, in
ところで、VLAN内では、さらに通信端末装置を論理的にグループ化し、複数のサブネットを構成することが可能である。そして、これらのサブネットは、L2スイッチ(レイヤ2スイッチ)を介して接続されることがある。すなわち、例えば図6に示すように、VLANがサブネット#1およびサブネット#2に分割され、サブネット#1にL2スイッチ10が配置され、サブネット#2にL2スイッチ20が配置されている場合、L2スイッチ10とL2スイッチ20とを互いに接続することにより、サブネット#1とサブネット#2が接続される。
By the way, in the VLAN, communication terminal devices can be further logically grouped to form a plurality of subnets. These subnets may be connected via an L2 switch (
図6に示すVLAN構成では、サブネット#1に属する通信端末装置がサブネット#2に属する通信端末装置へフレームを送信する場合、このフレームは、L2スイッチ10およびL2スイッチ20によって中継されることになる。このように、サブネットを跨ぐフレームは、必ずL2スイッチ10とL2スイッチ20の間の経路を伝送されることになるため、例えばサブネット内の通信とサブネット間の通信とに異なる料金体系が適用される場合などは、フレームがL2スイッチ10とL2スイッチ20の間の経路を伝送されたか否かにより、サブネット内の通信とサブネット間の通信とを区別することが可能となる。
In the VLAN configuration shown in FIG. 6, when a communication terminal device belonging to
しかしながら、複数のサブネットそれぞれにL2スイッチを配置する場合には、各サブネットに配置されたL2スイッチを互いに接続するためにそれぞれのL2スイッチのポートが消費されてしまい、限られた数のポートを浪費してしまうという問題がある。 However, when L2 switches are arranged in each of a plurality of subnets, the ports of the respective L2 switches are consumed to connect the L2 switches arranged in each subnet to each other, and a limited number of ports are wasted. There is a problem of end up.
具体的には、図6に示したVLAN構成において、L2スイッチ10とL2スイッチ20とが互いに接続されているため、一方のL2スイッチは、他方のL2スイッチと接続するためのポートを1つ確保しなければならない。このため、サブネット内の通信端末装置に接続可能なポートが1つ浪費され、多くの通信端末装置と接続するポートを確保するためには、1つのサブネット内により多くのL2スイッチを配置する必要が生じる。結果として、VLANを構成するためのコストが増大してしまう。
Specifically, in the VLAN configuration shown in FIG. 6, since the L2 switch 10 and the
また、図6に示したVLAN構成においては、サブネットごとにL2スイッチが配置されるため、サブネットの数が増大すれば、必要となるL2スイッチの数も増大し、VLANを構成するためのコストがさらに増大してしまう。 In the VLAN configuration shown in FIG. 6, since L2 switches are arranged for each subnet, if the number of subnets increases, the number of required L2 switches also increases, and the cost for configuring the VLAN increases. Further increase.
一方で、複数のサブネットが1つのL2スイッチを介して接続されるVLAN構成とすれば、L2スイッチのポートの浪費やL2スイッチ数の増大によるコストの増大を抑制することができるものの、フレームの伝送経路によってサブネット内の通信とサブネット間の通信とを区別することができない。すなわち、図6に示したVLAN構成においては、L2スイッチ10とL2スイッチ20の間の経路におけるフレームの伝送の有無により、通信の種別を判断することが可能であるが、2つのサブネット間に1つのL2スイッチが配置される構成では、サブネット内の通信においてもサブネット間の通信においてもフレームがL2スイッチによって中継されることになり、両者を区別することができない。
On the other hand, a VLAN configuration in which a plurality of subnets are connected via a single L2 switch can suppress an increase in cost due to an increase in the number of L2 switch ports and an increase in the number of L2 switches. Communication within a subnet and communication between subnets cannot be distinguished by a route. That is, in the VLAN configuration shown in FIG. 6, it is possible to determine the type of communication based on the presence / absence of frame transmission on the path between the L2 switch 10 and the
本発明はかかる点に鑑みてなされたものであり、ネットワークの構成に要するコストの増大を抑制しつつ、サブネット内の通信とサブネット間の通信とを区別することができるフレーム中継装置、経路学習プログラム、および経路学習方法を提供することを目的とする。 The present invention has been made in view of such a point, and a frame relay apparatus and a path learning program capable of distinguishing between intra-subnet communication and inter-subnet communication while suppressing an increase in cost required for network configuration An object is to provide a route learning method.
上記課題を解決するために、本発明に係るフレーム中継装置は、第1のサブネットに接続する入力ポートからフレームを取得する取得手段と、前記取得手段によって取得されたフレームの宛先に対応する出力ポートを設定する設定手段と、前記設定手段によって設定されたフレームの出力ポートが第1のサブネットに接続する場合に、出力ポートを介してフレームを第1のサブネットへ伝送する第1の伝送手段と、前記設定手段によって設定されたフレームの出力ポートが第1のサブネットとは異なる第2のサブネットに接続する場合に、出力ポートを介してフレームを第2のサブネットへ伝送する第2の伝送手段とを有する構成を採る。 In order to solve the above problems, a frame relay device according to the present invention includes an acquisition unit that acquires a frame from an input port connected to a first subnet, and an output port that corresponds to the destination of the frame acquired by the acquisition unit A first transmission means for transmitting a frame to the first subnet via the output port when the output port of the frame set by the setting means is connected to the first subnet; Second transmission means for transmitting a frame to the second subnet via the output port when the output port of the frame set by the setting means is connected to a second subnet different from the first subnet; The structure which has is taken.
この構成によれば、同一サブネット内におけるフレームの伝送とサブネットを跨いだフレームの伝送とがフレーム中継装置内の異なる経路を経由して行われるため、2つのサブネットを1つのフレーム中継装置によって接続しても、サブネット内の通信とサブネット間の通信とを区別することができる。換言すれば、ネットワークの構成に要するコストの増大を抑制しつつ、サブネット内の通信とサブネット間の通信とを区別することができる。 According to this configuration, since transmission of frames within the same subnet and transmission of frames across subnets are performed via different paths in the frame relay device, two subnets are connected by one frame relay device. However, communication within a subnet and communication between subnets can be distinguished. In other words, it is possible to distinguish between communication within a subnet and communication between subnets while suppressing an increase in cost required for the configuration of the network.
また、本発明に係るフレーム中継装置は、第1のサブネットに接続する入力ポートからフレームを取得する取得手段と、前記取得手段によって取得されたフレームの宛先に対応する出力ポートを設定する設定手段と、前記設定手段によって設定されたフレームの出力ポートが第1のサブネットとは異なる第2のサブネットに接続するか否かを示すフラグをフレームに付加する付加手段と、前記取得手段によって取得されたフレームの送信元アドレスおよび入力ポートとともに前記付加手段によってフレームに付加されたフラグを、アドレスおよびポートの対応関係を記憶する学習テーブルに登録する登録手段とを有する構成を採る。 The frame relay apparatus according to the present invention includes an acquisition unit that acquires a frame from an input port connected to the first subnet, and a setting unit that sets an output port corresponding to the destination of the frame acquired by the acquisition unit. Adding means for adding to the frame a flag indicating whether or not the output port of the frame set by the setting means is connected to a second subnet different from the first subnet; and the frame acquired by the acquiring means And a registration means for registering a flag added to the frame by the adding means together with a transmission source address and an input port in a learning table for storing a correspondence relationship between the address and the port.
この構成によれば、同一サブネット内におけるフレームの伝送経路とサブネットを跨いだフレームの伝送経路とを区別するフラグをアドレスとポートの対応関係とともに学習テーブルに登録するため、以後、学習テーブルを参照して新たにフレームの出力ポートを決定する際には、このフレームがサブネットを跨いで伝送されるか否かを出力ポートに対応して登録されたフラグから判別することができる。したがって、2つのサブネットを1つのフレーム中継装置によって接続しても、サブネット内の通信とサブネット間の通信とを区別することができる。換言すれば、ネットワークの構成に要するコストの増大を抑制しつつ、サブネット内の通信とサブネット間の通信とを区別することができる。 According to this configuration, the flag for distinguishing between the transmission path of the frame within the same subnet and the transmission path of the frame across the subnet is registered in the learning table together with the correspondence relationship between the address and the port. When newly determining the output port of the frame, it can be determined from the flag registered corresponding to the output port whether or not the frame is transmitted across the subnet. Therefore, even if two subnets are connected by one frame relay device, communication within the subnet and communication between subnets can be distinguished. In other words, it is possible to distinguish between communication within a subnet and communication between subnets while suppressing an increase in cost required for the configuration of the network.
また、本発明に係るフレーム中継装置は、上記構成において、前記設定手段は、フレームの宛先アドレスが前記登録手段によって学習テーブルに登録済みである場合に、学習テーブルにおいてフレームの宛先アドレスに対応するポートをフレームの出力ポートとして設定する構成を採る。 In the frame relay device according to the present invention, in the configuration described above, the setting unit includes a port corresponding to the destination address of the frame in the learning table when the destination address of the frame has been registered in the learning table by the registration unit. Is set as the output port of the frame.
この構成によれば、フレームの宛先アドレスが学習済みである場合に、学習済みのポートを出力ポートとするため、すべてのポートからフレームを出力するフラッディングを行うことなく、所望の宛先アドレスへフレームを伝送することができる。 According to this configuration, when the destination address of the frame has already been learned, the learned port is used as the output port, so that the frame is sent to the desired destination address without performing flooding to output the frame from all ports. Can be transmitted.
また、本発明に係るフレーム中継装置は、上記構成において、前記付加手段は、前記設定手段によって設定された出力ポートに対応して学習テーブルに記憶されているフラグをフレームに付加する構成を採る。 The frame relay apparatus according to the present invention employs a configuration in which, in the above configuration, the adding unit adds a flag stored in the learning table to the frame corresponding to the output port set by the setting unit.
この構成によれば、アドレスおよびポートの対応関係の学習時に記憶されたフラグをフレームに付加するため、フレームがサブネットを跨いで伝送されるか否かをフラグに付加されたフラグから容易に区別することができる。 According to this configuration, the flag stored at the time of learning the correspondence relationship between the address and the port is added to the frame, so whether or not the frame is transmitted across the subnet is easily distinguished from the flag added to the flag. be able to.
また、本発明に係るフレーム中継装置は、上記構成において、前記設定手段は、フレームの宛先アドレスが前記登録手段によって学習テーブルに未登録である場合に、フレームの入力ポート以外の全ポートを出力ポートとして設定する構成を採る。 In the frame relay device according to the present invention, in the above configuration, the setting unit outputs all ports other than the input port of the frame as output ports when the destination address of the frame is not registered in the learning table by the registration unit. The configuration to be set as
この構成によれば、フレームの宛先アドレスが未学習である場合に、すべてのポートからフレームを出力するフラッディングを行うため、確実にフレームを宛先アドレスへ伝送することができる。 According to this configuration, when the destination address of the frame is unlearned, the flooding that outputs the frame from all ports is performed, so that the frame can be reliably transmitted to the destination address.
また、本発明に係るフレーム中継装置は、上記構成において、前記付加手段は、前記設定手段によって設定された出力ポートに応じてフレームを複製し、得られた複数の複製フレームのうち、第1のサブネットに対応する出力ポートが設定された複製フレームには第1のサブネットに接続することを示すフラグを付加し、第2のサブネットに対応する出力ポートが設定された複製フレームには第2のサブネットに接続することを示すフラグを付加する構成を採る。 In the frame relay device according to the present invention, in the configuration described above, the adding unit replicates a frame in accordance with the output port set by the setting unit, and the first of the obtained plurality of replicated frames. A flag indicating connection to the first subnet is added to the duplicate frame in which the output port corresponding to the subnet is set, and the second subnet is assigned to the duplicate frame in which the output port corresponding to the second subnet is set. A configuration is adopted in which a flag indicating that the connection is made is added.
この構成によれば、フラッディング時の出力ポートが対応するサブネットに応じたフラグをフレームに付加するため、フレームがサブネットを跨いで伝送されるか否かをフラグに付加されたフラグから容易に区別することができる。結果として、フレームの送信元アドレスへ向かう伝送経路がサブネットを跨ぐか否かを学習することができる。 According to this configuration, since the flag corresponding to the subnet corresponding to the output port at the time of flooding is added to the frame, whether or not the frame is transmitted across the subnet is easily distinguished from the flag added to the flag. be able to. As a result, it is possible to learn whether or not the transmission path toward the frame source address crosses the subnet.
また、本発明に係るフレーム中継装置は、前記付加手段によってフレームに付加されたフラグがフレームの出力ポートが第2のサブネットに接続することを示す場合に、フレームの帯域を第2のサブネットに適した帯域に制御する帯域制御手段と、前記帯域制御手段によって帯域が制御されたフレームを出力ポートから出力する出力手段とをさらに有する構成を採る。 The frame relay apparatus according to the present invention is suitable for the second subnet when the flag added to the frame by the adding means indicates that the output port of the frame is connected to the second subnet. The bandwidth control means for controlling the received bandwidth and the output means for outputting the frame whose bandwidth is controlled by the bandwidth control means from the output port are employed.
この構成によれば、異なるサブネットへ伝送されるフレームに対しては、帯域制御を行ってから出力するため、フレームがサブネットを跨いで伝送される場合に、出力ポートに接続されるサブネットに適合した帯域のフレームを出力することができる。 According to this configuration, for frames transmitted to different subnets, band control is performed before output, so when frames are transmitted across subnets, they are suitable for the subnet connected to the output port. Band frames can be output.
また、本発明に係る経路学習プログラムは、コンピュータによって実行される経路学習プログラムであって、前記コンピュータに、第1のサブネットに接続する入力ポートからフレームを取得する取得ステップと、前記取得ステップにて取得されたフレームの宛先に対応する出力ポートを設定する設定ステップと、前記設定ステップにて設定されたフレームの出力ポートが第1のサブネットとは異なる第2のサブネットに接続するか否かを示すフラグをフレームに付加する付加ステップと、前記取得ステップにて取得されたフレームの送信元アドレスおよび入力ポートとともに前記付加ステップにてフレームに付加されたフラグを、アドレスおよびポートの対応関係を記憶する学習テーブルに登録する登録ステップとを実行させる。 The route learning program according to the present invention is a route learning program executed by a computer, wherein the computer obtains a frame from an input port connected to a first subnet, and the acquisition step includes: A setting step of setting an output port corresponding to the destination of the acquired frame, and whether or not the output port of the frame set in the setting step is connected to a second subnet different from the first subnet An addition step of adding a flag to the frame, and learning of storing the correspondence relationship between the address and port of the flag added to the frame in the addition step together with the transmission source address and input port of the frame acquired in the acquisition step And a registration step of registering in the table.
また、本発明に係る経路学習方法は、第1のサブネットに接続する入力ポートからフレームを取得する取得ステップと、前記取得ステップにて取得されたフレームの宛先に対応する出力ポートを設定する設定ステップと、前記設定ステップにて設定されたフレームの出力ポートが第1のサブネットとは異なる第2のサブネットに接続するか否かを示すフラグをフレームに付加する付加ステップと、前記取得ステップにて取得されたフレームの送信元アドレスおよび入力ポートとともに前記付加ステップにてフレームに付加されたフラグを、アドレスおよびポートの対応関係を記憶する学習テーブルに登録する登録ステップとを有するようにした。 The route learning method according to the present invention includes an acquisition step of acquiring a frame from an input port connected to the first subnet, and a setting step of setting an output port corresponding to the destination of the frame acquired in the acquisition step An addition step of adding to the frame a flag indicating whether or not the output port of the frame set in the setting step is connected to a second subnet different from the first subnet, and acquiring in the acquisition step And a registration step of registering the flag added to the frame in the addition step together with the transmission source address and input port of the received frame in a learning table that stores the correspondence relationship between the address and the port.
これらによれば、同一サブネット内におけるフレームの伝送経路とサブネットを跨いだフレームの伝送経路とを区別するフラグをアドレスとポートの対応関係とともに学習テーブルに登録するため、以後、学習テーブルを参照して新たにフレームの出力ポートを決定する際には、このフレームがサブネットを跨いで伝送されるか否かを出力ポートに対応して登録されたフラグから判別することができる。したがって、2つのサブネットを1つのフレーム中継装置によって接続しても、サブネット内の通信とサブネット間の通信とを区別することができる。換言すれば、ネットワークの構成に要するコストの増大を抑制しつつ、サブネット内の通信とサブネット間の通信とを区別することができる。 According to these, in order to register the flag for distinguishing between the transmission path of the frame within the same subnet and the transmission path of the frame across the subnet, together with the correspondence relationship between the address and the port, the learning table is referred to hereinafter. When newly determining an output port of a frame, whether or not this frame is transmitted across a subnet can be determined from a flag registered corresponding to the output port. Therefore, even if two subnets are connected by one frame relay device, communication within the subnet and communication between subnets can be distinguished. In other words, it is possible to distinguish between communication within a subnet and communication between subnets while suppressing an increase in cost required for the configuration of the network.
本明細書に開示されたフレーム中継装置、経路学習プログラム、および経路学習方法によれば、ネットワークの構成に要するコストの増大を抑制しつつ、サブネット内の通信とサブネット間の通信とを区別することができる。 According to the frame relay device, the route learning program, and the route learning method disclosed in the present specification, it is possible to distinguish between communication within a subnet and communication between subnets while suppressing an increase in cost required for network configuration. Can do.
本発明の一実施の形態においては、フレームを中継するフレーム中継装置は、宛先アドレスに対応するポートが未学習であるフレームについて、このフレームがフラッディングされる際、各ポートから出力されるフレームがサブネットを跨いでフラッディングされるものであるか否かを示すフラグをフレームに付与し、フレームに付与されたフラグを含めて宛先アドレスに対応するポートを学習する。以下、本発明の一実施の形態について、図面を参照して詳細に説明する。なお、以下においては、フレーム中継装置の一例としてL2スイッチを挙げながら説明する。 In an embodiment of the present invention, a frame relay device that relays a frame, when a frame corresponding to a destination address has not yet been learned, and when the frame is flooded, the frame output from each port is a subnet. A flag indicating whether or not the frame is flooded across the frame is added to the frame, and the port corresponding to the destination address is learned including the flag added to the frame. Hereinafter, an embodiment of the present invention will be described in detail with reference to the drawings. In the following description, an L2 switch is taken as an example of the frame relay device.
図1は、本発明の一実施の形態に係るVLAN構成の一例を示す図である。同図に示すように、本実施の形態においては、VLANがサブネット#1およびサブネット#2に分割されており、これらの2つのサブネットがL2スイッチ100のみを介して接続されている。したがって、サブネット#1に属する通信端末装置から送信されたフレームは、宛先アドレスがサブネット#1内のアドレスであるかサブネット#2内のアドレスであるかに関わらず、必ずL2スイッチ100を経由して転送されることになる。同様に、サブネット#2に属する通信端末装置から送信されたフレームも、必ずL2スイッチ100を経由して転送される。
FIG. 1 is a diagram showing an example of a VLAN configuration according to an embodiment of the present invention. As shown in the figure, in this embodiment, the VLAN is divided into
図2は、本実施の形態に係るL2スイッチ100の要部構成を示すブロック図である。同図に示すL2スイッチ100は、大きく分けてサブネット#1およびサブネット#2のそれぞれに対応する入出力ポート部110−1、110−2、ドメイン処理部120−1、120−2、および転送部130−1、130−2を有している。入出力ポート部110−2、ドメイン処理部120−2、および転送部130−2は、対応するサブネットがサブネット#2である点以外は、それぞれ入出力ポート部110−1、ドメイン処理部120−1、および転送部130−1と同様であるため、以下においては、サブネット#1に対応する入出力ポート部110−1、ドメイン処理部120−1、および転送部130−1のみについて説明する。
FIG. 2 is a block diagram showing a main configuration of the
入出力ポート部110−1は、例えば複数のポートを備えており、それぞれのポートを介してサブネット#1に属する通信端末装置と接続する。そして、入出力ポート部110−1は、サブネット#1に属する通信端末装置から送信されたフレームをポートからL2スイッチ100へ入力したり、L2スイッチ100が中継するフレームをポートからサブネット#1に属する通信端末装置へ出力したりする。なお、サブネット#1に属する個々の通信端末装置には、独自のMAC(Medium Access Control)アドレスが割り当てられており、入出力ポート部110−1の各ポートは、接続先の通信端末装置に割り当てられたMACアドレスに対応していることになる。また、各ポートにおいて入出力されるフレームには、送信元の通信端末装置のMACアドレス(以下、単に「送信元アドレス」という)と宛先の通信端末装置のMACアドレス(以下、単に「宛先アドレス」という)が含まれている。
The input / output port unit 110-1 includes, for example, a plurality of ports, and is connected to a communication terminal device belonging to the
ドメイン処理部120−1は、サブネット#1から入力されたフレームに対する入力時の処理や、サブネット#1へ出力されるフレームに対する出力時の処理を実行する。具体的には、ドメイン処理部120−1は、ドメインID付与部121−1、宛先判定部122−1、ポートテーブル123−1、帯域制御部124−1、ID変換部125−1、送信元登録部126−1、および学習テーブル127−1を有している。
The domain processing unit 120-1 executes processing at the time of input for a frame input from the
ドメインID付与部121−1は、入出力ポート部110−1から入力されたフレームに対して、サブネット#1に対応する固有のドメインIDを付与する。すなわち、ドメインID付与部121−1は、フレームの送信元が属するサブネットに固有のドメインIDをフレームに付与する。ドメインIDは、L2スイッチ100内でフレームの送信元のサブネットを識別するため使用される。
The domain ID assigning unit 121-1 assigns a unique domain ID corresponding to the
宛先判定部122−1は、学習テーブル127−1を参照して、フレームに付与されたドメインIDおよびフレームに含まれる宛先アドレスに対応する出力ポートを検索する。この結果、ドメインIDおよび宛先アドレスに対応する出力ポートが学習テーブル127−1において学習済みであれば、宛先判定部122−1は、出力ポートとともに学習テーブル127−1に記憶されているフラグをフレームに付加した上で、このフレームが検索された出力ポートから出力されるように設定し、転送部130−1へ出力する。また、ドメインIDおよび宛先アドレスに対応する出力ポートが学習テーブル127−1において未学習であれば、宛先判定部122−1は、このフレームをポートテーブル123−1へ出力する。 The destination determination unit 122-1 refers to the learning table 127-1 and searches for an output port corresponding to the domain ID given to the frame and the destination address included in the frame. As a result, if the output port corresponding to the domain ID and the destination address has already been learned in the learning table 127-1, the destination determination unit 122-1 uses the flag stored in the learning table 127-1 together with the output port as a frame. In addition, the frame is set to be output from the searched output port, and is output to the transfer unit 130-1. If the output port corresponding to the domain ID and the destination address is not learned in the learning table 127-1, the destination determination unit 122-1 outputs this frame to the port table 123-1.
ポートテーブル123−1は、サブネットと入出力ポート部110−1、110−2におけるポートとの対応関係を記憶している。すなわち、ポートテーブル123−1は、例えば図3に示すように、サブネットごとに固有のドメインIDと各ポートのポート番号とを対応付けて記憶している。図3に示す例では、サブネット#1に対応するドメインID「sub1」に1〜7番のポートが対応付けられており、サブネット#2に対応するドメインID「sub2」に8〜14番のポートが対応付けられている。これは、入出力ポート部110−1が1〜7番のポートを備えており、入出力ポート部110−2が8〜14番のポートを備えていることを意味している。
The port table 123-1 stores the correspondence between subnets and ports in the input / output port units 110-1 and 110-2. That is, the port table 123-1, for example, as shown in FIG. 3, stores a unique domain ID and a port number of each port in association with each subnet. In the example shown in FIG. 3, the 1st to 7th ports are associated with the domain ID “sub1” corresponding to the
そして、ポートテーブル123−1は、出力ポートが未学習のフレームが宛先判定部122−1から入力されると、フレームを転送部130−1へ出力するとともに、このフレームの入力ポート以外のすべてのポートをフレームのフラッディング対象のフラッディングポートとして、フラッディングポートのポート番号を転送部130−1へ通知する。このとき、ポートテーブル123−1は、それぞれのフラッディングポートに対応するドメインIDも併せて転送部130−1へ通知する。 Then, when a frame whose output port has not been learned is input from the destination determination unit 122-1, the port table 123-1 outputs the frame to the transfer unit 130-1, and all the ports other than the input port of this frame. The port is set as a flooding port to be flooded in the frame, and the port number of the flooding port is notified to the transfer unit 130-1. At this time, the port table 123-1 also notifies the transfer unit 130-1 of the domain ID corresponding to each flooding port.
帯域制御部124−1は、サブネット#2に対応する転送部130−2から出力されるフレームについて帯域制御を実行し、サブネット#1に対応するフレームに変換する。すなわち、サブネット#1およびサブネット#2では、一般的に要求されるフレームのサービス品質(QoS:Quality of Service)が異なるため、帯域制御部124−1は、サブネット#2からサブネット#1へ伝送されるフレームに対して、サブネット#1に対応したサービス品質となるように帯域制御を実行する。
The bandwidth control unit 124-1 performs bandwidth control on the frame output from the transfer unit 130-2 corresponding to the
ID変換部125−1は、帯域制御部124−1によって帯域制御されたフレームに付与されたドメインIDをサブネット#1に固有のドメインIDに変換する。そして、ID変換部125−1は、ドメインID変換後のフレームを送信元登録部126−1へ出力する。
The ID conversion unit 125-1 converts the domain ID assigned to the frame whose bandwidth is controlled by the bandwidth control unit 124-1 into a domain ID unique to the
送信元登録部126−1は、サブネット#2からのID変換部125−1経由のフレーム、またはサブネット#1からの転送部130−1経由のフレームが入力されると、フレームの送信元アドレスを取得し、新たな宛先アドレスと出力ポートの対応関係を学習テーブル127−1に学習させる。すなわち、送信元登録部126−1は、フレームの送信元アドレスを取得するとともに、このフレームが入力された入力ポートを検知し、送信元アドレスおよび入力ポートをそれぞれ宛先アドレスおよび出力ポートとして学習テーブル127−1に登録する。
When a frame from the
ここで、フレームの送信元アドレスが示す通信端末装置は、フレームの入力ポートに接続されているため、この入力ポートからフレームを出力すれば、フレームは上記の通信端末装置に届くことになる。したがって、送信元登録部126−1は、入力されたフレームの送信元アドレスと入力ポートをそれぞれ宛先アドレスと出力ポートとして学習テーブル127−1に登録する。このとき、送信元登録部126−1は、フレームに付加されているフラグおよびドメインIDを同時に学習テーブル127−1に登録する。ここで登録されるフラグは、後述するように、フレームがサブネットを跨って伝送されるか否かを示すフラグである。 Here, since the communication terminal device indicated by the transmission source address of the frame is connected to the input port of the frame, if the frame is output from this input port, the frame reaches the communication terminal device. Therefore, the transmission source registration unit 126-1 registers the transmission source address and input port of the input frame in the learning table 127-1 as the destination address and output port, respectively. At this time, the transmission source registration unit 126-1 registers the flag and the domain ID added to the frame in the learning table 127-1 at the same time. The flag registered here is a flag indicating whether or not a frame is transmitted across subnets, as will be described later.
学習テーブル127−1は、フレームの宛先アドレスと出力ポートの対応関係を記憶する。すなわち、学習テーブル127−1は、L2スイッチ100に入力されたフレームの送信元アドレスと入力ポートの対応関係を宛先アドレスと出力ポートの対応関係として学習する。また、学習テーブル127−1は、宛先アドレスと出力ポートの対応関係の学習の際に参照されたフレームが、サブネットを跨って伝送されるものであるか否かを示す識別情報を、フラグとして記憶する。
The learning table 127-1 stores the correspondence between the destination address of the frame and the output port. That is, the learning table 127-1 learns the correspondence between the transmission source address and the input port of the frame input to the
具体的には、学習テーブル127−1は、例えば図4に示すように、宛先アドレス、送信元アドレス、ドメインID、出力ポート、およびフラグを記憶している。宛先アドレスは、既にL2スイッチ100によって中継されたフレームの送信元アドレスに一致し、送信元アドレスは、このフレームの宛先アドレスに一致する。
Specifically, the learning table 127-1 stores, for example, a destination address, a transmission source address, a domain ID, an output port, and a flag as illustrated in FIG. The destination address matches the source address of the frame already relayed by the
また、ドメインIDは、サブネット#1内で転送されるフレームについては、サブネット#1に対応するドメインID付与部121−1によって付与されたドメインIDがそのまま登録されるため、サブネット#1に固有のドメインID「sub1」となる。一方、サブネット#2からサブネット#1へ転送されるフレームについては、サブネット#2に対応するドメインID付与部121−2によって付与されたドメインIDがID変換部125−1によって変換され、得られたドメインIDが登録されるため、ドメインIDは、やはりサブネット#1に固有のドメインID「sub1」となる。
Further, since the domain ID assigned to the domain ID assigned by the domain ID assigning unit 121-1 corresponding to the
さらに、出力ポートは、サブネット#1内で転送されるフレームについては、入力ポートが入出力ポート部110−1に含まれるため、入出力ポート部110−1に備えられたポートのポート番号になるのに対し、サブネット#2からサブネット#1へ転送されるフレームについては、入力ポートが入出力ポート部110−2に含まれるため、入出力ポート部110−2に備えられたポートのポート番号となる。そして、サブネット#1内を転送されたフレームに応じたエントリにはフラグ「0」が記憶され、サブネットを跨いで転送されたフレームに応じたエントリにはフラグ「1」が記憶される。
Furthermore, the output port is the port number of the port provided in the input / output port unit 110-1 because the input port is included in the input / output port unit 110-1 for the frame transferred in the
転送部130−1は、ポートテーブル123−1から入力されるフレームをフラッディングする一方、宛先判定部122−1から直接入力されるフレームを設定された出力ポートに対応するドメイン処理部120−1またはドメイン処理部120−2へ出力する。具体的には、転送部130−1は、フラッディング処理部131およびフラグ判定部132を有している。
The forwarding unit 130-1 floods the frame input from the port table 123-1, while the domain processing unit 120-1 corresponding to the output port in which the frame directly input from the destination determination unit 122-1 is set or Output to the domain processing unit 120-2. Specifically, the transfer unit 130-1 includes a
フラッディング処理部131は、ポートテーブル123−1から出力されたフレームの出力ポートを、ポートテーブル123−1から通知されたすべてのフラッディングポートとするフラッディング処理を行う。すなわち、フラッディング処理部131は、宛先アドレスに対応する出力ポートが未学習のフレームがポートテーブル123−1から出力されるため、このフレームがフレームの入力ポート以外のポートすべてから出力されるようにフラッディング処理を実行する。
The
このとき、フラッディング処理部131は、それぞれのフラッディングポートから出力されるフレームを、該当するフレームを複製することにより生成し、それぞれのフレームの出力ポートをフラッディングポートに設定する。そして、フラッディング処理部131は、ポートテーブル123−1から通知されるフラッディングポートとドメインIDの対応関係を参照し、出力ポートがフレーム送信元と同一のサブネットに接続するポートである場合は、フレームにフラグ「0」を付加し、出力ポートがフレーム送信元と異なるサブネットに接続するポートである場合は、フレームにフラグ「1」を付加する。換言すれば、フラッディング処理部131は、フレームの送信元と同一サブネット内にフラッディングされるフレームにはフラグ「0」を付加し、サブネットを跨いでフラッディングされるフレームにはフラグ「1」を付加する。
At this time, the
フラグ判定部132は、フレームに付加されたフラグが「0」であるか「1」であるかを判定し、フラグ「0」が付加されたフレームをドメイン処理部120−1の送信元登録部126−1へ出力し、フラグ「1」が付加されたフレームをドメイン処理部120−2の帯域制御部124−2へ出力する。具体的には、フラグ判定部132は、宛先アドレスに対応する出力ポートが学習済みのフレームが宛先判定部122−1から入力されると、宛先判定部122−1によってフレームに付加されたフラグを参照し、フラグ「0」が付加されていればフレームを送信元登録部126−1へ出力し、フラグ「1」が付加されていればフレームをドメイン処理部120−2の帯域制御部124−2へ出力する。また、フラグ判定部132は、宛先アドレスに対応する出力ポートが未学習のフレームの複製がフラッディング処理部131から入力されると、フラグ「0」が付加されたフレームの複製を送信元登録部126−1へ出力し、フラグ「1」が付加されたフレームの複製をドメイン処理部120−2の帯域制御部124−2へ出力する。
The
次いで、上記のように構成されたL2スイッチ100の動作について、図5に示すフロー図を参照しながら説明する。以下においては、サブネット#1から送信されたフレームがL2スイッチ100に入力された場合の動作を具体的に示しながら説明するが、サブネット#2から送信されたフレームがL2スイッチ100に入力された場合も、各処理を実行する処理部の参照符号以外は同様の動作となる。
Next, the operation of the
まず、サブネット#1から送信されたフレームが入出力ポート部110−1に備えられたいずれかのポートから入力されると(ステップS101)、ドメインID付与部121−1によって、サブネット#1に固有のドメインID(例えば「sub1」)がフレームに付与される(ステップS102)。そして、宛先判定部122−1によって、フレームに含まれる宛先アドレスおよびフレームに付与されたドメインIDに対応する出力ポートが学習テーブル127−1に学習済みであるか否かが判断される(ステップS103)。
First, when a frame transmitted from the
この判断の結果、出力ポートが学習済みであれば(ステップS103Yes)、宛先判定部122−1によって、宛先アドレスおよびドメインIDに対応する出力ポートおよびフラグが学習テーブル127−1から取得され(ステップS104)、フレームにフラグが付加された上で、フレームの出力ポートが学習テーブル127−1から取得された出力ポートに設定され、転送部130−1のフラグ判定部132へ出力される。
If the result of this determination is that the output port has been learned (step S103 Yes), the destination determination unit 122-1 acquires the output port and flag corresponding to the destination address and domain ID from the learning table 127-1 (step S104). ) After the flag is added to the frame, the output port of the frame is set to the output port acquired from the learning table 127-1 and is output to the
ここで、フレームにフラグが付加されることにより、出力ポートが学習済みのフレームについては、このフレームがサブネットを跨って転送されるか否かを判断することが可能となる。具体的には、フレームにフラグ「0」が付加されれば、このフレームはサブネット#1内で転送されることを意味しており、フレームにフラグ「1」が付加されれば、このフレームはサブネット#1からサブネット#2へ転送されることを意味している。これは、学習テーブル127−1における学習時に、フレームがサブネット内で転送されたものであれば宛先アドレスと出力ポートの対応関係とともにフラグ「0」が記憶されており、フレームがサブネットを跨いで転送されたものであれば宛先アドレスと出力ポートの対応関係とともにフラグ「1」が記憶されているためである。
Here, by adding a flag to the frame, it is possible to determine whether or not this frame is transferred across subnets for frames whose output ports have been learned. Specifically, if the flag “0” is added to the frame, this means that the frame is transferred within the
一方、宛先アドレスおよびドメインIDに対応する出力ポートが学習テーブル127−1において未学習であれば(ステップS103No)、フレームがポートテーブル123−1を経由して、転送部130−1のフラッディング処理部131へ出力される。同時に、ポートテーブル123−1からフラッディング処理部131へフレームの入力ポート以外のすべてのポート(フラッディングポート)と各フラッディングポートに対応するドメインIDとが通知され、フラッディング処理部131によって、フレームをフラッディングする対象となるフラッディングポートが取得される(ステップS105)。
On the other hand, if the output port corresponding to the destination address and the domain ID has not been learned in the learning table 127-1 (No in step S103), the frame is sent to the flooding processing unit of the transfer unit 130-1 via the port table 123-1. It is output to 131. At the same time, all the ports (flooding ports) other than the frame input port and the domain ID corresponding to each flooding port are notified from the port table 123-1 to the
そして、フラッディング処理部131によって、フレームが複製され、それぞれのフレームの複製の出力ポートがフラッディングポートに設定されるとともに、出力ポートがサブネット#1に対応する入出力ポート部110−1のポートであればフラグ「0」が付加され、出力ポートがサブネット#2に対応する入出力ポート部110−2のポートであればフラグ「1」が付加される(ステップS106)。こうして出力ポートおよびフラグが設定されたフレームの複製は、それぞれフラグ判定部132へ出力される。
Then, the
ここで、フレームの複製にフラグが付加されることにより、出力ポートが未学習のフレームについては、このフレームの複製それぞれがサブネットを跨ってフラッディングされる複製であるか否かを判断することが可能となる。具体的には、フレームの複製にフラグ「0」が付加されれば、この複製はサブネット#1内にフラッディングされることを意味しており、フレームの複製にフラグ「1」が付加されれば、この複製はサブネット#1からサブネット#2へフラッディングされることを意味している。なお、フレームの複製は、それぞれ出力ポートおよびフラグが異なるものの、格納する情報自体は宛先アドレスおよび送信元アドレスを含めて同一であるため、以下においては特にフレームとフレームの複製とを区別することなく、両方をまとめて「フレーム」という。
Here, by adding a flag to the copy of the frame, it is possible to determine whether or not each copy of this frame is a duplicate that is flooded across subnets for a frame whose output port has not been learned. It becomes. Specifically, if the flag “0” is added to the copy of the frame, this means that the copy is flooded in the
宛先判定部122−1またはフラッディング処理部131からフレームがフラグ判定部132へ出力されると、フラグ判定部132によって、フレームに付加されたフラグが「1」であるか否かが判定される(ステップS107)。換言すれば、フラグ判定部132によって、フレームがサブネットを跨って転送されるものであるか否かが判定される。
When the frame is output from the destination determination unit 122-1 or the
この判定の結果、フレームにフラグ「1」が付加されていれば(ステップS107Yes)、フラグ判定部132によって、フレームがドメイン処理部120−2の帯域制御部124−2へ出力される。そして、帯域制御部124−2によって、フレームの帯域がサブネット#2に適合する帯域に制御され(ステップS108)、ID変換部125−2によって、フレームに付加されたドメインID(例えば「sub1」)がサブネット#2に固有のドメインID(例えば「sub2」)に変換される(ステップS109)。
As a result of this determination, if the flag “1” is added to the frame (Yes in step S107), the
そして、送信元登録部126−2によって、フレームの送信元アドレスと入力ポートの対応関係が宛先アドレスと出力ポートの対応関係として学習テーブル127−2に登録される(ステップS110)。このとき、送信元登録部126−2によって、フレームに付加されたドメインIDおよびフラグも同時に学習テーブル127−2に記憶される。したがって、ここでは、ドメインIDが変換済みであるため、サブネット#2に固有のドメインID(例えば「sub2」)とフラグ「1」とが学習テーブル127−2に記憶される。
Then, the correspondence between the transmission source address of the frame and the input port is registered in the learning table 127-2 as the correspondence between the destination address and the output port by the transmission source registration unit 126-2 (step S110). At this time, the domain ID and the flag added to the frame are simultaneously stored in the learning table 127-2 by the transmission source registration unit 126-2. Therefore, since the domain ID has been converted here, the domain ID (for example, “sub2”) unique to the
このように、学習テーブル127−2に宛先アドレスと出力ポートの対応関係が学習される際にフレームに付加されたフラグが同時に記憶されるため、この宛先アドレスに対するフレームの中継において、フレームがサブネットを跨いで転送されるか否かも同時に記憶されたことになる。すなわち、上記のようにフラグ「1」が記憶された場合には、同時に学習された宛先アドレスに対するフレームの中継はサブネットを跨ぐことを示している。これは、学習された宛先アドレスがサブネット#1から送信されたフレームの送信元アドレスに一致しているため、この宛先アドレスへサブネット#2から転送されるフレームは、サブネットを跨ぐことに合致している。
In this way, since the flag added to the frame when the correspondence relationship between the destination address and the output port is learned is simultaneously stored in the learning table 127-2, in the relay of the frame for this destination address, the frame has a subnet. Whether or not the data is transferred across the frame is also stored at the same time. That is, when the flag “1” is stored as described above, it indicates that the relay of the frame for the destination address learned at the same time crosses the subnet. This is because the learned destination address matches the transmission source address of the frame transmitted from the
送信元登録部126−2による学習テーブル127−2への登録後、フレームは、入出力ポート部110−2に備えられたポートのうちフレームに設定された出力ポートから出力される(ステップS111)。こうしてフレームが出力されることにより、フレームの宛先アドレスに対応する出力ポートが学習済みであれば、宛先アドレスに対応する通信端末装置がフレームの出力ポートに接続しているため、フレームが所望の通信端末装置によって受信されることになる。また、フレームの宛先アドレスに対応する出力ポートが未学習であれば、宛先アドレスに対応する通信端末装置がフレームの出力ポートに接続しているとは限らないが、接続している場合にはフレームが正しく受信された旨の応答フレームが再びL2スイッチ100によって中継されることにより、新たにアドレスとポートの対応関係が学習されるのに対し、接続していない場合には応答がなく、誤ったアドレスとポートの対応関係が学習されることがない。
After registration in the learning table 127-2 by the transmission source registration unit 126-2, the frame is output from the output port set in the frame among the ports provided in the input / output port unit 110-2 (step S111). . If the output port corresponding to the destination address of the frame has already been learned by outputting the frame in this way, the communication terminal device corresponding to the destination address is connected to the output port of the frame, so that the frame is in the desired communication. It will be received by the terminal device. In addition, if the output port corresponding to the destination address of the frame is not learned, the communication terminal device corresponding to the destination address is not necessarily connected to the output port of the frame. When the response frame indicating that the message is correctly received is relayed again by the
一方、フラグ判定部132におけるフラグの判定の結果、フレームにフラグ「0」が付加されていれば(ステップS107No)、フラグ判定部132によって、フレームがドメイン処理部120−1の送信元登録部126−1へ出力される。そして、送信元登録部126−1によって、フレームの送信元アドレスと入力ポートの対応関係が宛先アドレスと出力ポートの対応関係として学習テーブル127−1に登録される(ステップS110)。このとき、送信元登録部126−1によって、フレームに付加されたドメインIDおよびフラグも同意に学習テーブル127−1に記憶される。したがって、ここでは、ドメインIDがドメインID付与部121−1によって付与されたままであるため、サブネット#1に固有のドメインID(例えば「sub1」)とフラグ「0」とが学習テーブル127−1に記憶される。
On the other hand, if the
このように、学習テーブル127−1に宛先アドレスと出力ポートの対応関係が学習される際にフレームに付加されたフラグが同時に記憶されるため、この宛先アドレスに対するフレームの中継において、フレームがサブネットを跨いで転送されるか否かも同時に記憶されたことになる。すなわち、上記のようにフラグ「0」が記憶された場合には、同時に学習された宛先アドレスに対するフレームの中継はサブネットを跨がないことを示している。これは、学習された宛先アドレスがサブネット#1から送信されたフレームの送信元アドレスに一致しているため、この宛先アドレスへサブネット#1から転送されるフレームは、サブネットを跨がないことに合致している。
In this way, since the flag added to the frame when the correspondence relationship between the destination address and the output port is learned in the learning table 127-1 is stored at the same time, in the relay of the frame for this destination address, the frame has a subnet. Whether or not the data is transferred across the frame is also stored at the same time. That is, when the flag “0” is stored as described above, it indicates that the relay of the frame for the destination address learned at the same time does not cross the subnet. This is because the learned destination address matches the source address of the frame transmitted from the
送信元登録部126−1による学習テーブル127−1への登録後、フレームは、入出力ポート部110−1に備えられえたポートのうちフレームに設定された出力ポートから出力される(ステップS111)。 After registration in the learning table 127-1 by the transmission source registration unit 126-1, the frame is output from the output port set in the frame among the ports provided in the input / output port unit 110-1 (step S111). .
このように、本実施の形態においては、フラッディングを含めたフレームの中継時にフレームがサブネットを跨いで転送されるか否かを示すフラグを付加し、このフラグを含めて宛先アドレスに対応する出力ポートを学習テーブル127−1、127−2に学習させる。したがって、フレームの宛先アドレスに対応する出力ポートが学習済みである場合、学習テーブル127−1、127−2によって学習されたフラグを参照すれば、フレームがサブネットを跨いで転送されるか否かを容易に判断することができる。つまり、例えばサブネット内の通信とサブネット間の通信とで料金体系などが異なる場合でも、学習テーブル127−1、127−2から取得されてフレームに付加されるフラグを参照することにより、サブネット内の通信とサブネット間の通信を区別することができる。 As described above, in this embodiment, a flag indicating whether or not a frame is transferred across subnets when a frame including flooding is relayed is added, and the output port corresponding to the destination address including this flag is added. Are learned in the learning tables 127-1 and 127-2. Therefore, when the output port corresponding to the destination address of the frame has been learned, the flag learned by the learning tables 127-1 and 127-2 is used to determine whether the frame is transferred across the subnet. It can be easily judged. That is, for example, even if the fee structure is different between communication within the subnet and communication between subnets, by referring to the flag acquired from the learning tables 127-1 and 127-2 and added to the frame, It is possible to distinguish between communication and communication between subnets.
また、本実施の形態においては、サブネット#1およびサブネット#2がL2スイッチ100のみを介して接続されているため、2つのサブネットを接続するのに1つのL2スイッチのみで足りるとともに、すべてのポートを各サブネットに属する通信端末装置との接続に使用できる。結果として、ネットワークの構成に要するコストの増大を抑制することができる。
In the present embodiment, since
以上のように、本実施の形態によれば、フレームがサブネットを跨いで転送されるか否かのフラグを宛先アドレスと出力ポートの対応関係と同時に学習テーブルに記憶させるため、後に、学習テーブルに学習済みの宛先アドレスへフレームが中継される際には、このフレームがサブネットを跨いで転送されるか否かを容易に判断することができる。つまり、1つのL2スイッチ内でサブネットを跨ぐ中継か否かを区別することができ、ネットワークの構成に要するコストの増大を抑制しつつ、サブネット内の通信とサブネット間の通信とを区別することができる。 As described above, according to the present embodiment, the flag indicating whether or not the frame is transferred across the subnet is stored in the learning table simultaneously with the correspondence between the destination address and the output port. When a frame is relayed to a learned destination address, it can be easily determined whether or not this frame is transferred across subnets. In other words, it is possible to discriminate whether or not it is a relay across subnets within one L2 switch, and it is possible to distinguish between communications within a subnet and communications between subnets while suppressing an increase in the cost required for network configuration. it can.
なお、上記一実施の形態においては、送信元登録部126−1、126−2は、フレームが中継されるたびに学習テーブル127−1、127−2における学習を実行するものとしたが、フレームの送信元アドレスが既に宛先アドレスとして学習テーブル127−1、127−2に登録されている場合には、このフレームの送信元アドレスおよび入力ポートを改めて学習テーブル127−1、127−2に登録しなくても良い。ただし、上記一実施の形態のように、フレームが中継されるたびに学習を実行することにより、学習テーブル127−1、127−2を常に最新の状態に保つことができる。 In the above embodiment, the transmission source registration units 126-1 and 126-2 perform learning in the learning tables 127-1 and 127-2 every time a frame is relayed. Is already registered in the learning tables 127-1 and 127-2 as destination addresses, the source address and input port of this frame are newly registered in the learning tables 127-1 and 127-2. It is not necessary. However, the learning tables 127-1 and 127-2 can always be kept up-to-date by executing learning each time a frame is relayed as in the above embodiment.
また、上記一実施の形態においては、学習テーブル127−1、127−2をそれぞれ別々のドメイン処理部120−1、120−2に設けるものとしたが、これらの2つのテーブルを統合して1つの学習テーブルを用いるようにしても良い。学習テーブルを統合したとしても、学習テーブルに記憶されているドメインIDによって、参照すべき出力ポートが学習済みであるか否かを判断することは可能である。すなわち、サブネット#1から送信されたフレームに関しては、サブネット#1に対応するドメインIDが対応付けて記憶された出力ポートを検索し、サブネット#2から送信されたフレームに関しては、サブネット#2に対応するドメインIDが対応付けて記憶された出力ポートを検索すれば良い。同様に、ポートテーブル123−1、123−2を統合して1つのポートテーブルを用いるようにしても良い。
In the above-described embodiment, the learning tables 127-1 and 127-2 are provided in the separate domain processing units 120-1 and 120-2, respectively. Two learning tables may be used. Even if the learning tables are integrated, it is possible to determine whether or not the output port to be referred to has been learned based on the domain ID stored in the learning table. That is, for a frame transmitted from
さらに、上記一実施の形態においては、L2スイッチ100におけるフレームの経路学習方法について説明したが、この経路学習方法をコンピュータが読み取り可能な経路学習プログラムとして記述し、経路学習プログラムをコンピュータに実行させることにより、上記一実施の形態と同様の作用効果を得ることも可能である。
Further, in the above embodiment, the frame path learning method in the
以上の実施の形態に関し、さらに以下の付記を開示する。 Regarding the above embodiment, the following additional notes are disclosed.
(付記1)第1のサブネットに接続する入力ポートからフレームを取得する取得手段と、
前記取得手段によって取得されたフレームの宛先に対応する出力ポートを設定する設定手段と、
前記設定手段によって設定されたフレームの出力ポートが第1のサブネットに接続する場合に、出力ポートを介してフレームを第1のサブネットへ伝送する第1の伝送手段と、
前記設定手段によって設定されたフレームの出力ポートが第1のサブネットとは異なる第2のサブネットに接続する場合に、出力ポートを介してフレームを第2のサブネットへ伝送する第2の伝送手段と
を有することを特徴とするフレーム中継装置。
(Supplementary Note 1) Acquisition means for acquiring a frame from an input port connected to the first subnet;
Setting means for setting an output port corresponding to the destination of the frame acquired by the acquisition means;
First transmission means for transmitting a frame to the first subnet via the output port when the output port of the frame set by the setting means is connected to the first subnet;
Second transmission means for transmitting the frame to the second subnet via the output port when the output port of the frame set by the setting means is connected to a second subnet different from the first subnet; A frame relay device comprising:
(付記2)第1のサブネットに接続する入力ポートからフレームを取得する取得手段と、
前記取得手段によって取得されたフレームの宛先に対応する出力ポートを設定する設定手段と、
前記設定手段によって設定されたフレームの出力ポートが第1のサブネットとは異なる第2のサブネットに接続するか否かを示すフラグをフレームに付加する付加手段と、
前記取得手段によって取得されたフレームの送信元アドレスおよび入力ポートとともに前記付加手段によってフレームに付加されたフラグを、アドレスおよびポートの対応関係を記憶する学習テーブルに登録する登録手段と
を有することを特徴とするフレーム中継装置。
(Appendix 2) Acquisition means for acquiring a frame from an input port connected to the first subnet;
Setting means for setting an output port corresponding to the destination of the frame acquired by the acquisition means;
Adding means for adding to the frame a flag indicating whether or not the output port of the frame set by the setting means is connected to a second subnet different from the first subnet;
Registering means for registering a flag added to the frame by the adding means together with a transmission source address and an input port of the frame acquired by the acquiring means in a learning table storing a correspondence relationship between the address and the port. Frame relay device.
(付記3)前記設定手段は、
フレームの宛先アドレスが前記登録手段によって学習テーブルに登録済みである場合に、学習テーブルにおいてフレームの宛先アドレスに対応するポートをフレームの出力ポートとして設定することを特徴とする付記2記載のフレーム中継装置。
(Appendix 3) The setting means includes:
The frame relay device according to
(付記4)前記付加手段は、
前記設定手段によって設定された出力ポートに対応して学習テーブルに記憶されているフラグをフレームに付加することを特徴とする付記3記載のフレーム中継装置。
(Appendix 4) The additional means is:
The frame relay apparatus according to appendix 3, wherein a flag stored in the learning table is added to the frame in correspondence with the output port set by the setting means.
(付記5)前記設定手段は、
フレームの宛先アドレスが前記登録手段によって学習テーブルに未登録である場合に、フレームの入力ポート以外の全ポートを出力ポートとして設定することを特徴とする付記2記載のフレーム中継装置。
(Supplementary Note 5) The setting means includes:
The frame relay device according to
(付記6)前記付加手段は、
前記設定手段によって設定された出力ポートに応じてフレームを複製し、得られた複数の複製フレームのうち、第1のサブネットに対応する出力ポートが設定された複製フレームには第1のサブネットに接続することを示すフラグを付加し、第2のサブネットに対応する出力ポートが設定された複製フレームには第2のサブネットに接続することを示すフラグを付加することを特徴とする付記5記載のフレーム中継装置。
(Appendix 6) The additional means is:
The frame is duplicated according to the output port set by the setting means, and among the obtained duplicate frames, the duplicate frame in which the output port corresponding to the first subnet is set is connected to the first subnet. 6. A frame according to
(付記7)前記付加手段によってフレームに付加されたフラグがフレームの出力ポートが第2のサブネットに接続することを示す場合に、フレームの帯域を第2のサブネットに適した帯域に制御する帯域制御手段と、
前記帯域制御手段によって帯域が制御されたフレームを出力ポートから出力する出力手段と
をさらに有することを特徴とする付記2記載のフレーム中継装置。
(Supplementary note 7) Band control for controlling the bandwidth of the frame to a bandwidth suitable for the second subnet when the flag added to the frame by the adding means indicates that the output port of the frame is connected to the second subnet Means,
The frame relay apparatus according to
(付記8)コンピュータによって実行される経路学習プログラムであって、前記コンピュータに、
第1のサブネットに接続する入力ポートからフレームを取得する取得ステップと、
前記取得ステップにて取得されたフレームの宛先に対応する出力ポートを設定する設定ステップと、
前記設定ステップにて設定されたフレームの出力ポートが第1のサブネットとは異なる第2のサブネットに接続するか否かを示すフラグをフレームに付加する付加ステップと、
前記取得ステップにて取得されたフレームの送信元アドレスおよび入力ポートとともに前記付加ステップにてフレームに付加されたフラグを、アドレスおよびポートの対応関係を記憶する学習テーブルに登録する登録ステップと
を実行させることを特徴とする経路学習プログラム。
(Supplementary note 8) A route learning program executed by a computer,
An acquisition step of acquiring a frame from an input port connected to the first subnet;
A setting step for setting an output port corresponding to the destination of the frame acquired in the acquisition step;
An adding step of adding to the frame a flag indicating whether the output port of the frame set in the setting step is connected to a second subnet different from the first subnet;
A registration step of registering the flag added to the frame in the addition step together with the transmission source address and input port of the frame acquired in the acquisition step in a learning table that stores a correspondence relationship between the address and the port. A route learning program characterized by that.
(付記9)第1のサブネットに接続する入力ポートからフレームを取得する取得ステップと、
前記取得ステップにて取得されたフレームの宛先に対応する出力ポートを設定する設定ステップと、
前記設定ステップにて設定されたフレームの出力ポートが第1のサブネットとは異なる第2のサブネットに接続するか否かを示すフラグをフレームに付加する付加ステップと、
前記取得ステップにて取得されたフレームの送信元アドレスおよび入力ポートとともに前記付加ステップにてフレームに付加されたフラグを、アドレスおよびポートの対応関係を記憶する学習テーブルに登録する登録ステップと
を有することを特徴とする経路学習方法。
(Supplementary Note 9) An acquisition step of acquiring a frame from an input port connected to the first subnet;
A setting step for setting an output port corresponding to the destination of the frame acquired in the acquisition step;
An adding step of adding to the frame a flag indicating whether the output port of the frame set in the setting step is connected to a second subnet different from the first subnet;
A registration step of registering the flag added to the frame in the addition step together with the transmission source address and input port of the frame acquired in the acquisition step in a learning table that stores a correspondence relationship between the address and the port. A route learning method characterized by
本発明は、ネットワークの構成に要するコストの増大を抑制しつつ、サブネット内の通信とサブネット間の通信とを区別する場合に適用することができる。 The present invention can be applied to a case where communication within a subnet is distinguished from communication between subnets while suppressing an increase in cost required for the configuration of the network.
110−1、110−2 入出力ポート部
120−1、120−2 ドメイン処理部
121−1、121−2 ドメインID付与部
122−1、122−2 宛先判定部
123−1、123−2 ポートテーブル
124−1、124−2 帯域制御部
125−1、125−2 ID変換部
126−1、126−2 送信元登録部
127−1、127−2 学習テーブル
130−1、130−2 転送部
131 フラッディング処理部
132 フラグ判定部
110-1, 110-2 Input / output port unit 120-1, 120-2 Domain processing unit 121-1, 121-2 Domain ID assigning unit 122-1, 122-2 Destination determination unit 123-1, 123-2 port Tables 124-1, 124-2 Band control units 125-1, 125-2 ID conversion units 126-1, 126-2 Source registration units 127-1, 127-2 Learning tables 130-1, 130-2
Claims (7)
前記第1の取得手段によって取得されたフレームの宛先に対応する出力ポートを、学習テーブルに基づいて設定する第1の設定手段と、
第2のサブネットに接続する入力ポートからフレームを取得する第2の取得手段と、
前記第2の取得手段によって取得されたフレームの宛先に対応する出力ポートを設定する第2の設定手段と、
前記第2の設定手段によって設定されたフレームの出力ポートが前記第1のサブネットに接続するか否かを示すフラグをフレームに付加する付加手段と、
前記付加手段によってフレームに付加されたフラグと共に、前記第2の取得手段によって取得されたフレームの送信元アドレスおよび入力ポートを送信宛先アドレス及び出力ポートとして、前記学習テーブルに登録する登録手段と
を有することを特徴とするフレーム中継装置。 A first acquisition means for acquiring a frame from an input port connected to the first subnet,
First setting means for setting an output port corresponding to the destination of the frame acquired by the first acquiring means based on a learning table ;
Second acquisition means for acquiring a frame from an input port connected to the second subnet;
Second setting means for setting an output port corresponding to the destination of the frame acquired by the second acquiring means;
And adding means for adding a flag output port of the frame set by the second setting means indicates whether connecting to the first subnet to the frame,
Registering means for registering in the learning table the transmission source address and input port of the frame acquired by the second acquisition means as the transmission destination address and output port together with the flag added to the frame by the adding means; A frame relay apparatus characterized by that.
フレームの宛先アドレスが前記登録手段によって学習テーブルに登録済みである場合に、学習テーブルにおいてフレームの宛先アドレスに対応するポートをフレームの出力ポートとして設定することを特徴とする請求項1記載のフレーム中継装置。 The first setting means includes
2. The frame relay according to claim 1, wherein when the destination address of the frame has been registered in the learning table by the registration means, a port corresponding to the destination address of the frame is set as an output port of the frame in the learning table. apparatus.
フレームの宛先アドレスが前記登録手段によって学習テーブルに未登録である場合に、フレームの入力ポート以外の全ポートを出力ポートとして設定することを特徴とする請求項1記載のフレーム中継装置。 The first setting means includes
2. The frame relay apparatus according to claim 1, wherein when the destination address of the frame is not registered in the learning table by the registration means, all ports other than the input port of the frame are set as output ports.
前記第2の設定手段によって設定された出力ポートに応じてフレームを複製し、得られた複数の複製フレームのうち、第1のサブネットに対応する出力ポートが設定された複製フレームには第1のサブネットに接続することを示すフラグを付加し、第2のサブネットに対応する出力ポートが設定された複製フレームには第2のサブネットに接続することを示すフラグを付加することを特徴とする請求項3記載のフレーム中継装置。 The adding means includes
The frame is duplicated according to the output port set by the second setting means, and among the obtained duplicate frames, the duplicate frame in which the output port corresponding to the first subnet is set is the first The flag indicating that the connection is to the subnet is added, and the flag indicating that the connection is to the second subnet is added to the duplicate frame in which the output port corresponding to the second subnet is set. 3. The frame relay device according to 3.
前記帯域制御手段によって帯域が制御されたフレームを出力ポートから出力する出力手段と
をさらに有することを特徴とする請求項1記載のフレーム中継装置。 Bandwidth control means for controlling the bandwidth of the frame to a bandwidth suitable for the second subnet when the flag added to the frame by the addition means indicates that the output port of the frame is connected to the second subnet;
The frame relay apparatus according to claim 1, further comprising: an output unit that outputs from the output port a frame whose band is controlled by the band control unit.
第1のサブネットに接続する入力ポートからフレームを取得する第1の取得ステップと、
前記第1の取得ステップにて取得されたフレームの宛先に対応する出力ポートを、学習テーブルに基づいて設定する第1の設定ステップと、
第2のサブネットに接続する入力ポートからフレームを取得する第2の取得ステップと、
前記第2の取得ステップによって取得されたフレームの宛先に対応する出力ポートを設定する第2の設定ステップと、
前記第2の設定ステップにて設定されたフレームの出力ポートが前記第1のサブネットに接続するか否かを示すフラグをフレームに付加する付加ステップと、
前記付加ステップによってフレームに付加されたフラグと共に、前記第2の取得ステップにて取得されたフレームの送信元アドレスおよび入力ポートを送信宛先アドレス及び出力ポートとして、前記学習テーブルに登録する登録ステップと
を実行させることを特徴とする経路学習プログラム。 A route learning program executed by a computer, the computer
A first acquisition step of acquiring a frame from an input port connected to the first subnet,
A first setting step of setting an output port corresponding to the destination of the frame acquired in the first acquisition step based on a learning table ;
A second acquisition step of acquiring a frame from an input port connected to the second subnet;
A second setting step of setting an output port corresponding to the destination of the frame acquired by the second acquiring step;
An adding step of adding a flag output port of the frame set by the second setting step indicates whether to connect to the first subnet to the frame,
A registration step of registering in the learning table, with the flag added to the frame in the addition step, the transmission source address and input port of the frame acquired in the second acquisition step as a transmission destination address and output port, and A route learning program characterized by being executed.
前記第1の取得ステップにて取得されたフレームの宛先に対応する出力ポートを、学習テーブルに基づいて設定する第1の設定ステップと、
第2のサブネットに接続する入力ポートからフレームを取得する第2の取得ステップと、
前記第2の取得ステップによって取得されたフレームの宛先に対応する出力ポートを設定する第2の設定ステップと、
前記第2の設定ステップにて設定されたフレームの出力ポートが第1のサブネットに接続するか否かを示すフラグをフレームに付加する付加ステップと、
前記付加ステップによってフレームに付加されたフラグと共に、前記第2の取得ステップにて取得されたフレームの送信元アドレスおよび入力ポートを送信宛先アドレス及び出力ポートとして、前記学習テーブルに登録する登録ステップと
を有することを特徴とする経路学習方法。 A first acquisition step of acquiring a frame from an input port connected to the first subnet,
A first setting step of setting an output port corresponding to the destination of the frame acquired in the first acquisition step based on a learning table ;
A second acquisition step of acquiring a frame from an input port connected to the second subnet;
A second setting step of setting an output port corresponding to the destination of the frame acquired by the second acquiring step;
An adding step of adding to the frame a flag indicating whether or not the output port of the frame set in the second setting step is connected to the first subnet;
A registration step of registering in the learning table, with the flag added to the frame in the addition step, the transmission source address and input port of the frame acquired in the second acquisition step as a transmission destination address and output port, and A route learning method characterized by comprising:
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012083209A JP5360257B2 (en) | 2012-03-30 | 2012-03-30 | Frame relay apparatus, route learning program, and route learning method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012083209A JP5360257B2 (en) | 2012-03-30 | 2012-03-30 | Frame relay apparatus, route learning program, and route learning method |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2008034501A Division JP5012553B2 (en) | 2008-02-15 | 2008-02-15 | Frame relay apparatus, route learning program, and route learning method |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2012130084A JP2012130084A (en) | 2012-07-05 |
JP5360257B2 true JP5360257B2 (en) | 2013-12-04 |
Family
ID=46646513
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012083209A Expired - Fee Related JP5360257B2 (en) | 2012-03-30 | 2012-03-30 | Frame relay apparatus, route learning program, and route learning method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5360257B2 (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5954248B2 (en) | 2013-04-30 | 2016-07-20 | 日立金属株式会社 | Network relay device |
JP6036525B2 (en) | 2013-04-30 | 2016-11-30 | 日立金属株式会社 | Network relay device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH09233110A (en) * | 1996-02-26 | 1997-09-05 | Hitachi Cable Ltd | Multi-port bridge with virtual lan function |
JPH1032597A (en) * | 1996-07-17 | 1998-02-03 | Nec Corp | Inter-lan connection device |
JP2004304371A (en) * | 2003-03-28 | 2004-10-28 | Fujitsu Ltd | Switch device of layer 2 |
JP2005217715A (en) * | 2004-01-29 | 2005-08-11 | Fujitsu Access Ltd | Layer 2 switch having vlan inter segment transfer function |
JP2007288748A (en) * | 2006-04-20 | 2007-11-01 | Yamaha Corp | Switching hub, router and virtual lan system |
-
2012
- 2012-03-30 JP JP2012083209A patent/JP5360257B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2012130084A (en) | 2012-07-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8995444B2 (en) | Method and system for extending routing domain to non-routing end stations | |
CN102857416B (en) | A kind of realize the method for virtual network, controller and virtual network | |
EP2502389B1 (en) | Method for the provision of gateway anycast virtual mac reachability in extended subnets | |
US8798064B2 (en) | Method and system of frame forwarding with link aggregation in distributed ethernet bridges | |
CN104348726B (en) | Message forwarding method and device | |
US9838315B2 (en) | Stretched subnet routing | |
US20140156906A1 (en) | Virtual Trunking Over Physical Links | |
JPWO2006095508A1 (en) | Flooding suppression method | |
EP3038300A1 (en) | Tunnel switching method, device and switch | |
US20140344424A1 (en) | System, method and computer-readable medium | |
CN104348717A (en) | Message forwarding method and device | |
US8218446B2 (en) | Frame transfer route confirmation method, node, frame transfer route confirmation program and frame transfer route confirmation system | |
US20200412640A1 (en) | Network device, network control method, and program | |
JP6109954B2 (en) | System and method for pass-through mode in a virtual chassis system | |
JP5012553B2 (en) | Frame relay apparatus, route learning program, and route learning method | |
CN108880969B (en) | Method and device for establishing link in SDN network | |
JP5360257B2 (en) | Frame relay apparatus, route learning program, and route learning method | |
JP2013046090A (en) | Communication device and communication system | |
JP6191703B2 (en) | Communication control system, communication control method, and communication control program | |
US9225667B2 (en) | Communication system and network relay apparatus | |
US20110222541A1 (en) | Network System, Edge Node, and Relay Node | |
WO2006098028A1 (en) | Network system and network connection device | |
US11863350B2 (en) | Fast convergence of E-Tree with a dual homed root node | |
WO2017170155A1 (en) | Communication system, flow control apparatus, flow processing apparatus, and control method | |
US20130159549A1 (en) | Device communications over unnumbered interfaces |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20120330 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130510 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130514 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130712 |
|
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: 20130806 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130819 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |