JP2009027758A - Network relay apparatus - Google Patents

Network relay apparatus Download PDF

Info

Publication number
JP2009027758A
JP2009027758A JP2008283025A JP2008283025A JP2009027758A JP 2009027758 A JP2009027758 A JP 2009027758A JP 2008283025 A JP2008283025 A JP 2008283025A JP 2008283025 A JP2008283025 A JP 2008283025A JP 2009027758 A JP2009027758 A JP 2009027758A
Authority
JP
Japan
Prior art keywords
packet
network relay
relay device
multicast
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008283025A
Other languages
Japanese (ja)
Other versions
JP4295812B2 (en
Inventor
Tomohiko Kono
智彦 河野
Kazuo Sukai
和雄 須貝
Daiki Yano
大機 矢野
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2008283025A priority Critical patent/JP4295812B2/en
Publication of JP2009027758A publication Critical patent/JP2009027758A/en
Application granted granted Critical
Publication of JP4295812B2 publication Critical patent/JP4295812B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To perform multicasting, at a network relay apparatus, through link aggregation over a plurality of boards. <P>SOLUTION: When sending a multicast packet to a port that performs link aggregation over a plurality of packet processing boards, in a network relay apparatus, a receiving-side packet processing board sends the packet to a cross bar switch while adding thereto a bit map designating the packet processing board to which the packet is to be sent. In that case, the packet processing board to which all physical ports belonging to all link aggregation ports that send out multicast packets are connected is instructed to send the packet. The cross bar switch sends the packet to the transmitting-side packet processing board indicated by the bit map. All the transmitting-side packet processing boards select output destination physical ports according to the same algorithm and if the output destination physical port belongs to the present board, the packet is sent thereto but if the physical port belongs to any other board, the packet is discarded. <P>COPYRIGHT: (C)2009,JPO&INPIT

Description

本発明は、ネットワークの中継を行うネットワーク中継装置に関する。   The present invention relates to a network relay device that relays a network.

一般的に、ネットワーク機器間を配線するためには、リピータハブやレイヤ2スイッチといったネットワーク中継装置が利用されている。リピータハブは、複数のネットワーク機器を電気的に単純に接続するための装置である。一方、レイヤ2スイッチは、入力したパケットをその宛先アドレスに応じて最適な物理ポートに転送する機能を備えている。近年のオフィスでは、ネットワーク機器の増加に伴うトラフィックの増大を抑制するため、リピータハブではなく、レイヤ2スイッチを用いることが多い。また、近年では、より大規模なネットワークを構築するため、レイヤ3スイッチと呼ばれるネットワーク中継装置も利用されている。レイヤ3スイッチは、レイヤ2スイッチのブリッジ機能に加え、ルータ機能も備えている。   In general, a network relay device such as a repeater hub or a layer 2 switch is used for wiring between network devices. The repeater hub is a device for simply connecting a plurality of network devices electrically. On the other hand, the layer 2 switch has a function of transferring an input packet to an optimum physical port according to the destination address. In recent offices, a layer 2 switch is often used instead of a repeater hub in order to suppress an increase in traffic accompanying an increase in network equipment. In recent years, a network relay device called a layer 3 switch is also used to construct a larger-scale network. The layer 3 switch has a router function in addition to the bridge function of the layer 2 switch.

上述したレイヤ2スイッチやレイヤ3スイッチの中には、リンクアグリゲーションと呼ばれる機能を備えるものもある。かかる機能は、LANスイッチ間等に接続された複数の物理ポートを1つの論理ポートとして扱うことにより帯域の拡大や冗長性の確保を実現する機能である(特許文献1参照)。   Some of the above-described layer 2 switches and layer 3 switches have a function called link aggregation. Such a function is a function that realizes expansion of bandwidth and securing of redundancy by treating a plurality of physical ports connected between LAN switches as one logical port (see Patent Document 1).

特開2002−9866号公報Japanese Patent Laid-Open No. 2002-9866

ネットワーク中継装置は、100Mbps、1Gbps、10Gbpsと益々高速化されるネットワークの伝送速度に対応する必要があり、また、マルチキャストを行うアプリケーションの増加やリンクアグリゲーション機能の搭載など、より複雑な処理を行う必要がある。そこで、本発明は、ネットワーク中継装置において、より効率的なネットワークの中継処理を可能とし、高速化に対応可能な技術を提供することを目的とする。   The network relay device needs to cope with an increasing network transmission speed of 100 Mbps, 1 Gbps, and 10 Gbps, and needs to perform more complicated processing such as an increase in multicast applications and a link aggregation function. There is. SUMMARY OF THE INVENTION An object of the present invention is to provide a technology that enables more efficient network relay processing in a network relay device and can cope with higher speeds.

上記課題を解決するため、本発明の第1のネットワーク中継装置を次のように構成した。すなわち、複数の物理ポートを論理的に束ねることにより1つの論理ポートとして取り扱うことが可能なネットワーク中継装置であって、パケットを入力するパケット入力部と、前記論理ポートに出力すべきパケットについて、該パケットに含まれる宛先アドレス情報と該パケットを用いるアプリケーションを特定するための識別情報とを抽出する抽出部と、前記論理ポートを構成する物理ポートのうち、前記パケットの出力に用いる物理ポートを前記宛先アドレス情報と前記識別情報とに応じて選択する物理ポート選択部と、前記選択された物理ポートを用いて前記パケットを前記宛先アドレスに出力するパケット出力部と、を備えることを要旨とする。   In order to solve the above problems, the first network relay device of the present invention is configured as follows. That is, a network relay device that can be handled as one logical port by logically bundling a plurality of physical ports, the packet input unit for inputting a packet, and the packet to be output to the logical port, An extraction unit that extracts destination address information included in the packet and identification information for identifying an application that uses the packet; and a physical port used for output of the packet among the physical ports constituting the logical port is the destination The gist includes a physical port selection unit that selects according to address information and the identification information, and a packet output unit that outputs the packet to the destination address using the selected physical port.

アプリケーションを特定するための識別情報としては、例えば、TCP/UDPポート番号を挙げることができる。本発明では、論理ポートによってパケットを出力する際、このような識別情報とパケットの宛先アドレス情報とに応じて実際にパケットを出力する物理ポートを選択する。こうすることにより、同一アドレス宛や同一アプリケーション宛のパケットを同じフローに属するパケットとして扱い、同じ物理ポートから出力することができる。同じフローに属するパケットを異なる物理ポートから出力した場合には、僅かなタイミングのずれによって、後から送信したパケットが先に送信したパケットよりも早く送信先に到達してしまうという、いわゆるパケットの追い越し問題が発生する場合がある。パケットの追い越しがあった場合には、そのパケットを受信した装置において、再度パケットの順序を復元する処理が発生してしまう。そのため、本発明によれば、このようなパケットの追い越し問題を避けることができるため、効率的にネットワークを中継することが可能となる。   As identification information for specifying an application, for example, a TCP / UDP port number can be cited. In the present invention, when a packet is output by a logical port, a physical port that actually outputs the packet is selected according to such identification information and the destination address information of the packet. In this way, packets addressed to the same address or application can be handled as packets belonging to the same flow and output from the same physical port. When packets belonging to the same flow are output from different physical ports, a so-called packet overtaking, in which a later transmitted packet reaches the destination earlier than a previously transmitted packet due to a slight timing shift, Problems may occur. When a packet is overtaken, processing for restoring the order of the packets again occurs in the device that has received the packet. Therefore, according to the present invention, it is possible to avoid such a packet overtaking problem, and thus it is possible to relay the network efficiently.

上記第1のネットワーク中継装置において、前記物理ポート選択部は、前記宛先アドレス情報と前記識別情報とを用いた所定のハッシュ関数によってハッシュ値を求め、該ハッシュ値に対応付けられた物理ポートを選択するものとしてもよい。こうすることにより、宛先アドレス情報や識別情報に応じて効率的に物理ポートの使い分けを行うことが可能となる。   In the first network relay device, the physical port selection unit obtains a hash value by a predetermined hash function using the destination address information and the identification information, and selects a physical port associated with the hash value It is good also as what to do. By doing so, it is possible to efficiently use the physical port according to the destination address information and the identification information.

上記課題を解決するため、本発明の第2のネットワーク中継装置を次のように構成した。すなわち、複数の物理ポートを論理的に束ねることにより1つの論理ポートとして取り扱うことが可能なネットワーク中継装置であって、所定数の回線を収容するとともに、該各回線に対するパケットの入出力を制御するパケット制御部を複数備え、該各パケット制御部は、前記論理ポートに出力すべきパケットについて、該パケットが当該パケット制御部の処理対象であるか否かを判定する判定部と、前記判定部が処理対象であると判定した場合に、前記パケットを出力するパケット出力部とを備えることを要旨とする。   In order to solve the above problems, the second network relay device of the present invention is configured as follows. That is, a network relay device that can be handled as one logical port by logically bundling a plurality of physical ports, accommodates a predetermined number of lines, and controls input / output of packets to / from each line. A plurality of packet control units, each of the packet control units, for a packet to be output to the logical port, a determination unit for determining whether the packet is a processing target of the packet control unit; The gist of the present invention is to include a packet output unit that outputs the packet when it is determined to be a processing target.

論理ポートは、複数の物理ポートによって構成される回線であるため、複数のパケット制御部に跨って設定されている場合がある。そのため、本発明では、論理ポートを用いたパケットの出力時には、各パケット制御部が、それぞれ独立してパケットを出力するか否かを判断するものとした。こうすることにより、処理の負担が分散され、効率的にパケットの出力を行うことが可能となる。   Since the logical port is a line composed of a plurality of physical ports, it may be set across a plurality of packet control units. Therefore, in the present invention, when outputting a packet using a logical port, each packet control unit determines whether or not to output a packet independently. By doing so, the processing load is distributed and packets can be output efficiently.

上記第2のネットワーク中継装置において、前記パケット出力部は、前記判定部が処理対象でないと判定した場合に、前記パケットを破棄するものとしてもよい。このような構成であれば、冗長なパケット出力に伴う混乱を回避することが可能となる。   In the second network relay device, the packet output unit may discard the packet when the determination unit determines that the packet is not a processing target. With such a configuration, it is possible to avoid confusion associated with redundant packet output.

パケット制御部が、出力すべきパケットが自分の処理対象であるか否かを判定するためには、例えば、上記第2のネットワーク中継装置において、前記各パケット制御部は、更に、前記論理ポートを構成する物理ポートのうち前記パケットの出力に用いる物理ポートを所定の設定に基づき選択する物理ポート選択部を備え、前記判定部は、前記選択された物理ポートが、当該パケット制御部の制御対象である場合に、前記パケットが、当該パケット制御部の処理対象であると判定するといった構成によって行うことができる。   In order for the packet control unit to determine whether or not the packet to be output is its processing target, for example, in the second network relay device, each of the packet control units further includes the logical port. A physical port selection unit that selects a physical port to be used for outputting the packet based on a predetermined setting from among the physical ports to be configured; and the determination unit is configured such that the selected physical port is a target to be controlled by the packet control unit. In some cases, the packet can be determined to be processed by the packet control unit.

かかる構成のネットワーク中継装置において、前記物理ポート選択部は、前記パケットに含まれる宛先アドレス情報と該パケットを用いるアプリケーションを特定するための識別情報とを用いた所定のハッシュ関数によってハッシュ値を求め、該ハッシュ値に対応付けられた物理ポートを選択するものとしてもよい。こうすることにより、同じフローに属するパケットを同じ物理ポートから出力することが可能となる。   In the network relay device having such a configuration, the physical port selection unit obtains a hash value by a predetermined hash function using destination address information included in the packet and identification information for specifying an application using the packet, The physical port associated with the hash value may be selected. In this way, packets belonging to the same flow can be output from the same physical port.

上記課題を解決するため、本発明の第3のネットワーク中継装置を次のように構成した。すなわち、複数の物理ポートによる通信を制御可能なネットワーク中継装置であって、所定数の回線を収容するとともに、該各回線に対するパケットの入出力を制御するパケット制御部を複数備え、該各パケット制御部は、入力したパケットがユニキャストパケットであるかマルチキャストパケットであるかを判定するパケット種別判定部と、ユニキャストパケットを入力した場合に、該ユニキャストパケットを転送すべき回線を所定の設定に基づき選択し、該回線を収容するパケット制御部に前記ユニキャストパケットを転送するユニキャスト出力回線選択部と、マルチキャストパケットを入力した場合に、所定の設定に基づき、前記各パケット制御部の少なくとも一部に該マルチキャストパケットを配布するマルチキャストパケット配布部と、前記マルチキャストパケットが配布された場合に、該マルチキャストパケットを出力する回線を、所定の設定に基づき選択するマルチキャスト出力回線選択部と、を備えることを要旨とする。   In order to solve the above problems, the third network relay device of the present invention is configured as follows. That is, a network relay device capable of controlling communication through a plurality of physical ports, which accommodates a predetermined number of lines and includes a plurality of packet control units for controlling input / output of packets to / from each line. A packet type determination unit that determines whether an input packet is a unicast packet or a multicast packet, and when a unicast packet is input, a line to which the unicast packet is transferred is set to a predetermined setting. And a unicast output line selector that forwards the unicast packet to a packet controller that accommodates the line, and at least one of the packet controllers based on a predetermined setting when a multicast packet is input. Multicast packet distribution to distribute the multicast packet If, in the case where the multicast packet is distributed, a line for outputting the multicast packet, and summarized in that comprises a multicast output line selection unit, the selecting based on a predetermined setting.

本発明によれば、入力したパケットがユニキャストパケットであれば、入力側のパケット制御部でそのパケットの出力を行う回線を選択し、該回線が接続される出力側のパケット制御部にパケットを転送する。マルチキャストパケットであれば、入力側のパケット制御部から、マルチキャストパケット配布部経由で、一つあるいは複数の出力側のパケット制御部にパケットを転送する。各々の出力側のパケット制御部では、出力を行う一つあるいは複数の回線を選択する。従って、マルチキャストパケットは、マルチキャストパケット配布部と、出力側のパケット制御部の両方で、複数に展開されるため、装置内のトラフィックの増加を抑え、高性能なマルチキャスト中継を実現することができる。   According to the present invention, if the input packet is a unicast packet, the packet control unit on the input side selects the line on which the packet is output, and the packet is sent to the packet control unit on the output side to which the line is connected. Forward. If it is a multicast packet, the packet is transferred from the packet controller on the input side to one or more packet controllers on the output side via the multicast packet distributor. Each output side packet control unit selects one or a plurality of lines to be output. Accordingly, since the multicast packet is deployed in plural by both the multicast packet distribution unit and the output side packet control unit, an increase in traffic in the apparatus can be suppressed and high-performance multicast relay can be realized.

上記第3のネットワーク中継装置において、該ネットワーク中継装置は複数の物理ポートを論理的に束ねることにより1つの論理ポートとして取り扱うことが可能であり、前記ユニキャスト出力回線選択部は、前記選択した回線が前記論理ポートであった場合に、更に、該論理ポートを構成する物理ポートのうち前記ユニキャストパケットの出力に用いる物理ポートを所定の設定に基づき選択するものとしてもよい。こうすることにより、論理ポートを用いてユニキャストパケットを出力することができる。   In the third network relay device, the network relay device can handle a plurality of physical ports as a single logical port by logically bundling a plurality of physical ports, and the unicast output line selection unit can select the selected line. Is the logical port, a physical port used for outputting the unicast packet may be selected based on a predetermined setting from among the physical ports constituting the logical port. By doing so, a unicast packet can be output using a logical port.

また、上記第3のネットワーク中継装置において、該ネットワーク中継装置は複数の物理ポートを論理的に束ねることにより1つの論理ポートとして取り扱うことが可能であり、前記マルチキャスト出力回線選択部は、前記選択した回線が前記論理ポートであった場合に、更に、該論理ポートを構成する物理ポートのうち前記マルチキャストパケットの出力に用いる物理ポートを所定の設定に基づき選択するものとしてもよい。こうすることにより、論理ポートを用いてマルチキャストパケットを出力することができる。   In the third network relay device, the network relay device can handle a plurality of physical ports as a single logical port by logically bundling a plurality of physical ports, and the multicast output line selector selects the selected port. When the line is the logical port, a physical port used for output of the multicast packet may be selected based on a predetermined setting among physical ports constituting the logical port. By doing so, it is possible to output a multicast packet using a logical port.

かかる構成のネットワーク中継装置において、前記マルチキャスト出力回線選択部は、前記選択した物理ポートが当該パケット制御部の制御対象外である場合に、前記配布されたマルチキャストパケットを破棄するものとしてもよい。このような構成であれば、複数の物理回線を束ねて一つの回線のごとく扱い、一つに束ねられた複数の物理回線のうちのいずれかの物理回線に障害が発生したときに出力先を、束ねられた複数の物理回線内の他の物理回線に切り替える際に、束ねられた複数の物理回線のいずれかを収容する全てのパケット制御部にパケットを送っておき、出力回線選択部で、束ねられた複数の物理回線のうちの一本だけからパケットを出力し、他の物理回線へは出力する前にパケットを廃棄するように制御することにより、高速に物理回線を切り替えることができる。   In the network relay device having such a configuration, the multicast output line selection unit may discard the distributed multicast packet when the selected physical port is not controlled by the packet control unit. In such a configuration, a plurality of physical lines are bundled and handled as one line, and an output destination is set when a failure occurs in any one of the plurality of physical lines bundled together. When switching to another physical line in the bundled physical lines, the packet is sent to all the packet control units that accommodate any of the bundled physical lines, and the output line selection unit By controlling to output a packet from only one of the bundled physical lines and discard the packet before outputting to other physical lines, the physical line can be switched at high speed.

本発明において上述した種々の態様は、適宜、組み合わせたり、一部を省略して適用することができる。また、本発明は、上述した種々のネットワーク中継装置としての構成に限られず、例えば、ネットワークの中継方法やネットワークを中継するためのコンピュータプログラム、かかるプログラムを記録したコンピュータ読み取り可能な記録媒体等としても構成することができる。いずれの構成においても、上述した各態様を適宜、適用可能である。コンピュータが読み取り可能な記録媒体としては、例えば、フレキシブルディスクやCD−ROM、DVD−ROM、光磁気ディスク、メモリカード、ハードディスク等の種々の媒体を利用することができる。   The various aspects described above in the present invention can be applied by appropriately combining or omitting some of them. Further, the present invention is not limited to the configuration as the various network relay devices described above, and may be, for example, a network relay method, a computer program for relaying the network, a computer-readable recording medium storing such a program, or the like. Can be configured. In any configuration, the above-described aspects can be appropriately applied. As a computer-readable recording medium, various media such as a flexible disk, a CD-ROM, a DVD-ROM, a magneto-optical disk, a memory card, and a hard disk can be used.

以下、本発明の実施の形態について実施例に基づき次の順序で説明する。
A.ネットワーク中継装置の概略構成:
B.各テーブルの構造:
(B1)経路テーブル:
(B2)リンクアグリゲーションテーブル:
C.ネットワーク中継装置の動作概要:
(C1)ユニキャスト中継時:
(C2)マルチキャスト中継時:
D.パケット入力処理:
E.パケット出力処理:
Hereinafter, embodiments of the present invention will be described in the following order based on examples.
A. Schematic configuration of network relay device:
B. The structure of each table:
(B1) Route table:
(B2) Link aggregation table:
C. Overview of network relay device operation:
(C1) During unicast relay:
(C2) During multicast relay:
D. Packet input processing:
E. Packet output processing:

A.ネットワーク中継装置の概略構成:
図1は、実施例としてのネットワーク中継装置100の概略構成を示す説明図である。本実施例のネットワーク中継装置100は、いわゆるLANスイッチであり、ブリッジ機能やルータ機能を備えるとともに、リンクアグリゲーション機能も備えている。リンクアグリゲーションとは、複数の物理ポートを束ねて1つの論理ポートとして取り扱うことが可能な機能であり、帯域幅の拡大や冗長性の確保を図ることができる。図1では、5本の物理ポートを束ねて構成した論理ポートLA1と、2本の物理ポートを束ねて構成した論理ポートLA2とを示した。各論理ポートは、リンクアグリゲーションID(図中の「LA−ID」)と呼ばれる識別番号によって判別することができる。
A. Schematic configuration of network relay device:
FIG. 1 is an explanatory diagram illustrating a schematic configuration of a network relay device 100 as an embodiment. The network relay device 100 according to this embodiment is a so-called LAN switch, and has a bridge function and a router function, and also has a link aggregation function. Link aggregation is a function capable of bundling a plurality of physical ports and handling them as one logical port, and can increase bandwidth and ensure redundancy. FIG. 1 shows a logical port LA1 configured by bundling five physical ports and a logical port LA2 configured by bundling two physical ports. Each logical port can be identified by an identification number called a link aggregation ID (“LA-ID” in the figure).

ネットワーク中継装置100は、大まかに分けて、制御ユニット110と、クロスバスイッチ120と、パケット制御部130(以下、「PPU130」と記載。)と、ネットワークインターフェース部140(以下、「NIF140」と記載。)により構成されている。本実施例では、クロスバスイッチ120に3つのPPU130が接続され、各PPU130には、それぞれ、1つまたは2つのNIF140が接続されているものとした。   The network relay device 100 is roughly divided into a control unit 110, a crossbar switch 120, a packet control unit 130 (hereinafter referred to as “PPU 130”), and a network interface unit 140 (hereinafter referred to as “NIF 140”). ). In this embodiment, three PPUs 130 are connected to the crossbar switch 120, and one or two NIFs 140 are connected to each PPU 130, respectively.

制御ユニット110は、ネットワーク中継装置100の全体制御を行うユニットであり、内部には、CPUやメモリなどを備えている。制御ユニット110は、図示していないPCIバスによって各PPU130と接続されており、このPCIバス経由で各PPU130の制御を行う。また、制御ユニット110は、ネットワークによって接続された管理用コンピュータに対して、Webベースの設定用ユーザインタフェースを提供する。管理者は、このユーザインタフェースを利用することにより、経路テーブルなどの設定を行うことができる。その他、制御ユニット110は、各PPU130に対する経路テーブルの配布やルーティングプロトコルの処理などを行う。   The control unit 110 is a unit that performs overall control of the network relay device 100, and includes a CPU, a memory, and the like. The control unit 110 is connected to each PPU 130 via a PCI bus (not shown), and controls each PPU 130 via this PCI bus. The control unit 110 also provides a web-based setting user interface to a management computer connected via a network. The administrator can set the route table and the like by using this user interface. In addition, the control unit 110 performs distribution of a routing table to each PPU 130 and processing of a routing protocol.

PPU130は、パケットの入出力を制御するためのモジュールである。各PPU130には、図中に#0、#1、#2と示したように、それぞれに識別番号が付されている。各PPU130は、CPU131、ROM132、RAM133、検索エンジン134、テーブル記憶部135を備えている。ROM133には、PPU130を制御するためのプログラムが記録されており、CPU131は、RAM133をワークエリアとして用いることによりかかるプログラムを実行する。   The PPU 130 is a module for controlling packet input / output. Each PPU 130 is assigned an identification number, as indicated by # 0, # 1, and # 2 in the figure. Each PPU 130 includes a CPU 131, a ROM 132, a RAM 133, a search engine 134, and a table storage unit 135. A program for controlling the PPU 130 is recorded in the ROM 133, and the CPU 131 executes the program by using the RAM 133 as a work area.

検索エンジン134は、テーブル記憶部135に記録された各種テーブルを用いて経路検索を行う。本実施例において、経路検索とは、入力したパケットの宛先アドレス等に応じてそのパケットを出力するインタフェースを検索することをいう。検索エンジン134は、ソフトウェア的に実現することも可能であるが、処理を高速に行うために、経路検索用に専用に設計されたASICによって構成することが好ましい。   The search engine 134 performs route search using various tables recorded in the table storage unit 135. In this embodiment, the route search refers to searching for an interface that outputs a packet in accordance with the destination address of the input packet. Although the search engine 134 can be realized by software, it is preferable that the search engine 134 is configured by an ASIC designed exclusively for route search in order to perform processing at high speed.

テーブル記憶部135には、経路テーブルやリンクアグリゲーションテーブル等が記録されている。これらのテーブルの詳細については後述する。テーブル記憶部135は、例えば、CAM(Content-Address Memory)とよばれる特殊なメモリやDRAM等によって構成することができる。   The table storage unit 135 stores a route table, a link aggregation table, and the like. Details of these tables will be described later. The table storage unit 135 can be constituted by, for example, a special memory called CAM (Content-Address Memory), a DRAM, or the like.

NIF140は、10BASE−5や10BASE−T、100BASE−TX等のネットワーク回線をネットワーク中継装置100に対して物理的に接続するためのモジュールである。NIF140は、パケット転送エンジン141(以下、「PFP」と称する。)と、ネットワーク回線を接続するための物理ポート142とを備えている。PFP141は、PPU130からの指示に基づいて物理ポート142に対するパケットの転送を制御する。各PFP141および物理ポート142には、図示するようにそれぞれ識別番号が付されている。   The NIF 140 is a module for physically connecting a network line such as 10BASE-5, 10BASE-T, and 100BASE-TX to the network relay device 100. The NIF 140 includes a packet transfer engine 141 (hereinafter referred to as “PFP”) and a physical port 142 for connecting a network line. The PFP 141 controls packet transfer to the physical port 142 based on an instruction from the PPU 130. Each PFP 141 and physical port 142 are assigned identification numbers as shown in the figure.

クロスバスイッチ120は、PPU130間でパケットの転送を行う際に、その伝送路を高速にスイッチングするための素子である。PPU130は、クロスバスイッチ120を介してパケットの転送を行う際に、そのパケットに対して、ビットマップ、MCフラグ、出力先情報といった付加情報を添付する。伝送路のスイッチングは、こうして付加されたビットマップを解析することによって行う。   The crossbar switch 120 is an element for switching the transmission path at high speed when transferring a packet between the PPUs 130. When the PPU 130 transfers a packet via the crossbar switch 120, the PPU 130 attaches additional information such as a bitmap, an MC flag, and output destination information to the packet. Transmission path switching is performed by analyzing the bitmap thus added.

図2は、付加情報とパケットの概略構造を示す説明図である。図示するビットマップの3つのビットは左側から順に、それぞれPPU#0、PPU#1、PPU#2にパケットを転送するか否かを表している。そのため、例えば、ビットマップとして「001」と設定されれば、そのパケットはクロスバスイッチ120によってPPU#2に転送される。また、「110」と設定されれば、PPU#0とPPU#1の両者に転送される。「MCフラグ」は、転送するパケットの種別を表すためのフラグである。「0」であればユニキャストパケット、「1」であればマルチキャストパケットであることを表す。出力先情報とは、そのパケットを出力するPPU130、PFP141、物理ポート142の各識別番号を指定するための情報である。この出力先情報は、ユニキャストパケットを転送する場合に用いられる。   FIG. 2 is an explanatory diagram showing a schematic structure of additional information and a packet. The three bits of the illustrated bitmap indicate whether or not to transfer packets to PPU # 0, PPU # 1, and PPU # 2 in order from the left side. Therefore, for example, if “001” is set as a bitmap, the packet is transferred to PPU # 2 by the crossbar switch 120. If it is set to “110”, it is transferred to both PPU # 0 and PPU # 1. The “MC flag” is a flag for indicating the type of packet to be transferred. “0” indicates a unicast packet, and “1” indicates a multicast packet. The output destination information is information for designating identification numbers of the PPU 130, PFP 141, and physical port 142 that output the packet. This output destination information is used when transferring a unicast packet.

パケットには、宛先MACアドレス、送信元MACアドレス、宛先IPアドレス、送信元IPアドレス、宛先TCPポート番号、送信元TCPポート番号、データ等の情報が含まれる。本実施例の説明において「宛先アドレス」とは、これらのうち宛先MACアドレスのことをいうものとする。しかし、宛先IPアドレスを適用しても特に差し支えはない。また、本実施例における「パケット」という用語は、いわゆる「イーサネット(登録商標)フレーム」と同義であるものとする。 The packet includes information such as a destination MAC address, a source MAC address, a destination IP address, a source IP address, a destination TCP port number, a source TCP port number, and data. In the description of this embodiment, “destination address” refers to a destination MAC address among these. However, there is no problem even if the destination IP address is applied. Further, the term “packet” in the present embodiment is synonymous with a so-called “Ethernet (registered trademark) frame”.

B.各テーブルの構造:
(B1)経路テーブル:
図3は、テーブル記憶部135に記憶された経路テーブルの概略構造を示す説明図である。経路テーブルは、入力したパケットの宛先アドレスをキーとしてその出力先インタフェースを検索するためのテーブルである。
B. The structure of each table:
(B1) Route table:
FIG. 3 is an explanatory diagram showing a schematic structure of the route table stored in the table storage unit 135. The route table is a table for searching for an output destination interface using the destination address of the input packet as a key.

図示した例では、宛先アドレスAに対しては、出力先インタフェースとして、PPU#0、PFP#0、物理ポート#1が対応付けられ、宛先アドレスBに対しては、リンクアグリゲーションID#1の論理ポートが対応付けられているものとした。ここで、各PPU130に割り当てられるPPU番号は、2進数で「0000」から「1110」までの値とし、「1111」は、その出力先インタフェースが論理ポートである旨を示す識別子として取り扱うものとした。   In the illustrated example, destination address A is associated with PPU # 0, PFP # 0, and physical port # 1 as output destination interfaces, and for destination address B, the logic of link aggregation ID # 1. Assume that ports are associated. Here, the PPU number assigned to each PPU 130 is a binary number from “0000” to “1110”, and “1111” is handled as an identifier indicating that the output destination interface is a logical port. .

図示する宛先アドレスCは、マルチキャストアドレスであるものとした。マルチキャストとは、予め登録した複数の宛先に同一内容のパケットを複製して配布することをいう。そのため、マルチキャストアドレスに対しては図示するように複数の出力先インタフェース対応付けられている場合がある。図では、以下の3つの出力先インタフェースが1つのマルチキャストアドレスCに登録されている例を示した。
(1)PPU#1,PFP#0,物理ポート#0;
(2)PPU#1,PFP#1,物理ポート#0;
(3)リンクアグリゲーションID#2の論理ポート;
The destination address C shown in the figure is assumed to be a multicast address. Multicast refers to copying and distributing packets having the same contents to a plurality of destinations registered in advance. Therefore, a multicast address may be associated with a plurality of output destination interfaces as illustrated. In the figure, an example in which the following three output destination interfaces are registered in one multicast address C is shown.
(1) PPU # 1, PFP # 0, physical port # 0;
(2) PPU # 1, PFP # 1, physical port # 0;
(3) Logical port of link aggregation ID # 2;

マルチキャストアドレスに対しては、クロスバスイッチ120のスイッチングに用いるビットマップも経路テーブル内に予め登録されるものとした。こうすることにより、PPU130は、出力先インタフェースとなる各PPU130に迅速にマルチキャストパケットを転送することができる。   For the multicast address, the bitmap used for switching of the crossbar switch 120 is also registered in advance in the route table. By doing so, the PPU 130 can quickly transfer the multicast packet to each PPU 130 serving as an output destination interface.

以上で説明した経路テーブルは、基本的に、上述した管理用コンピュータを用いて管理者が設定する。しかし、ここでは詳しい説明は省略するが、ユニキャストアドレスについてはMACアドレス学習処理によって、マルチキャストアドレスについてはIGMPスヌーピングによって自動的に設定することも可能である。MACアドレス学習処理を行う場合には、図4に示すようなポートテーブルが用いられる。ポートテーブルには、物理ポート番号と、その物理ポートが属するPPU番号やPFP番号もしくはリンクアグリゲーションIDが対応付けて記録されている。従って、各PPU130は、入力したパケットの送信元アドレスと、ポートテーブルを参照して得られたPPU番号やリンクアグリゲーションIDとを対応付けて経路テーブルに記録することにより、自動的に経路テーブルを設定することができる。   The route table described above is basically set by the administrator using the management computer described above. However, although detailed explanation is omitted here, it is also possible to automatically set a unicast address by MAC address learning processing and a multicast address by IGMP snooping. When performing the MAC address learning process, a port table as shown in FIG. 4 is used. In the port table, a physical port number and a PPU number, a PFP number, or a link aggregation ID to which the physical port belongs are recorded in association with each other. Therefore, each PPU 130 automatically sets the route table by associating the source address of the input packet with the PPU number and link aggregation ID obtained by referring to the port table and recording them in the route table. can do.

(B2)リンクアグリゲーションテーブル:
図5は、テーブル記憶部135に記録されたリンクアグリゲーションテーブルの概略構造を示す説明図である。リンクアグリゲーションテーブルには、リンクアグリゲーションID毎に、その論理ポートを構成する物理ポートの組とその数(パス数)が定義されている。図5には、図1で例示した論理ポートLA1のリンクアグリゲーションテーブルを示した。図中、「En」とあるのは、「Enable」の意であり、そのエントリが有効であるか否かを示すためのフラグである。「1」であれば有効であり、「0」であれば無効である旨を表す。このテーブルによれば、以下に挙げる5つの物理ポートによって論理ポートLA2が構成されていることとなる。
(B2) Link aggregation table:
FIG. 5 is an explanatory diagram showing a schematic structure of the link aggregation table recorded in the table storage unit 135. In the link aggregation table, for each link aggregation ID, a set of physical ports constituting the logical port and the number (path number) are defined. FIG. 5 shows a link aggregation table of the logical port LA1 exemplified in FIG. In the figure, “En” means “Enable” and is a flag indicating whether or not the entry is valid. “1” indicates that it is valid, and “0” indicates that it is invalid. According to this table, the logical port LA2 is composed of the following five physical ports.

(1)PPU#1、PFP#1、物理ポート#1;
(2)PPU#1、PFP#1、物理ポート#2;
(3)PPU#2、PFP#0、物理ポート#0;
(4)PPU#2、PFP#0、物理ポート#1;
(5)PPU#2、PFP#0、物理ポート#2;
(1) PPU # 1, PFP # 1, physical port # 1;
(2) PPU # 1, PFP # 1, physical port # 2;
(3) PPU # 2, PFP # 0, physical port # 0;
(4) PPU # 2, PFP # 0, physical port # 1;
(5) PPU # 2, PFP # 0, physical port # 2;

ネットワーク中継装置100は、以上で説明した経路テーブルやリンクアグリゲーションテーブルを用いて経路検索を行うことにより、入力したパケットを最適な出力先インタフェースから出力することができる。   The network relay device 100 can output the input packet from the optimum output destination interface by performing a route search using the route table and the link aggregation table described above.

C.ネットワーク中継装置の動作概要:
(C1)ユニキャスト中継時:
図6は、ユニキャストパケット入力時のネットワーク中継装置100の基本的な中継動作の概要を示す説明図である。まず、ユニキャストパケットを入力した入力側PPU#0は、そのパケットの宛先アドレスに対応付けられた出力先インタフェースを経路テーブルから検索する。そして、入力側PPU#0は、出力先インタフェースを付加情報によって指定して出力側のPPU#2にパケットを転送する。パケットの転送を受けた出力側PPU#2は、こうして指定された出力先インタフェースからパケットを出力する。
C. Overview of network relay device operation:
(C1) During unicast relay:
FIG. 6 is an explanatory diagram showing an outline of a basic relay operation of the network relay device 100 when a unicast packet is input. First, the input-side PPU # 0 that has input the unicast packet searches the routing table for the output destination interface associated with the destination address of the packet. Then, the input side PPU # 0 designates the output destination interface by the additional information and transfers the packet to the output side PPU # 2. Upon receiving the packet transfer, the output-side PPU # 2 outputs the packet from the output destination interface thus designated.

図7は、上述した入力側PPU#0の経路検索において、出力先インタフェースとしてリンクアグリゲーションIDが検索された場合の動作を示す説明図である。この場合には、入力側PPU#0は、更に、そのリンクアグリゲーションIDに対応したリンクアグリゲーションテーブルを参照して、登録された出力先インタフェースの中から所定の方法により1つの出力先インタフェースを選択する。かかる選択方法については後述する。そして、PPU#0は、選択された出力先インタフェースを付加情報によって指定して出力側PPU#2にパケット転送する。パケットの転送を受けたPPU#2は、こうして指定された出力先インタフェースからパケットを出力する。   FIG. 7 is an explanatory diagram showing an operation when a link aggregation ID is searched as an output destination interface in the route search of the input side PPU # 0 described above. In this case, the input-side PPU # 0 further refers to the link aggregation table corresponding to the link aggregation ID, and selects one output destination interface from the registered output destination interfaces by a predetermined method. . This selection method will be described later. Then, PPU # 0 designates the selected output destination interface with the additional information and transfers the packet to output PPU # 2. Receiving the packet transfer, PPU # 2 outputs the packet from the output destination interface thus designated.

以上で説明したように本実施例のネットワーク中継装置100は、ユニキャストパケットを入力した場合には、そのパケットを入力した入力側PPU130で、リンクアグリゲーションに伴う処理も含めた詳細な経路検索を行う。そのため、出力側PPU130は、論理ポートの使用の有無にかかわらず、入力側PPU130によって指定された物理ポートからパケットを出力すればよい。従って、出力側PPU130の負荷を軽減することができる。   As described above, when a unicast packet is input, the network relay device 100 according to the present embodiment performs a detailed route search including processing associated with link aggregation at the input side PPU 130 that has input the packet. . Therefore, the output side PPU 130 may output a packet from the physical port designated by the input side PPU 130 regardless of whether or not the logical port is used. Therefore, the load on the output side PPU 130 can be reduced.

(C2)マルチキャスト中継時:
図8は、マルチキャストパケット入力時のネットワーク中継装置100の基本的な中継動作の概要を示す説明図である。まず、マルチキャストパケットを入力した入力側PPU#0は、経路テーブルからビットマップを検索する。そして、そのビットマップを付加してパケットをクロスバスイッチ120に転送する。クロスバスイッチは、パケットに付加されたビットマップを解析し、そのビットマップに対応する各PPU130に、パケットを複製して配布する。こうして、パケットの配布を受けた出力側PPU#1,#2は、そのパケットの宛先アドレスをキーとして経路テーブルから出力先インタフェースを検索し、検索された物理ポートからパケットを出力する。ただし、マルチキャストパケットについては経路テーブルに複数の出力先インタフェースが対応付けられているため、各PPU130は、検索された出力先インタフェースのうち、自分が管理する出力インタフェースについてのみパケットの出力を行えばよい。
(C2) During multicast relay:
FIG. 8 is an explanatory diagram showing an outline of a basic relay operation of the network relay device 100 when a multicast packet is input. First, the input-side PPU # 0 that has input the multicast packet searches for a bitmap from the route table. Then, the bit map is added and the packet is transferred to the crossbar switch 120. The crossbar switch analyzes the bitmap attached to the packet, and copies and distributes the packet to each PPU 130 corresponding to the bitmap. Thus, the output side PPUs # 1 and # 2 that have received the packet distribution search the output destination interface from the route table using the destination address of the packet as a key, and output the packet from the searched physical port. However, since a plurality of output destination interfaces are associated with the routing table for the multicast packet, each PPU 130 may output the packet only for the output interface managed by itself among the searched output destination interfaces. .

図9は、出力側PPU#1、#2の経路検索において出力先インタフェースとしてリンクアグリゲーションIDが検索された場合の動作を示す説明図である。この場合には、出力側PPU#1、#2は、更に、そのリンクアグリゲーションIDに対応したリンクアグリゲーションテーブルを参照して、登録された出力先物理ポートの中から所定の方法により一つの出力先物理ポートを選択する。出力側PPU#1、#2は、こうして選択された出力先物理ポートからパケットを出力する。ただし、選択された出力先物理ポートが、自分の管理下でない場合にはパケットを破棄する(図のPPU#2参照)。   FIG. 9 is an explanatory diagram showing an operation when a link aggregation ID is searched as an output destination interface in the route search of the output side PPUs # 1 and # 2. In this case, the output side PPUs # 1 and # 2 further refer to the link aggregation table corresponding to the link aggregation ID, and select one output destination from the registered output destination physical ports by a predetermined method. Select a physical port. The output side PPUs # 1 and # 2 output packets from the output destination physical ports thus selected. However, if the selected output destination physical port is not under its own management, the packet is discarded (see PPU # 2 in the figure).

このようにリンクアグリゲーションの出力先物理ポート選択処理を行う場所を、ユニキャストの場合は入力側PPU#0であるのに対し、マルチキャストの場合は出力側PPU#1、#2に変えている理由を以下で説明する。   The reason why the link aggregation output destination physical port selection processing is changed to the input side PPU # 0 in the case of unicast while the location of the link aggregation output destination physical port selection process is changed to the output side PPU # 1 and # 2 in the case of multicast. Is described below.

ユニキャストの場合には、パケットを一つ受信したときに、装置から一つだけパケットを送出すれば良いため、リンクアグリゲーションの出力先物理ポート選択処理を1回だけ行えばよく、入力側PPU#0で処理を行っても処理性能ネックにならない。   In the case of unicast, only one packet needs to be transmitted from the device when one packet is received. Therefore, the output destination physical port selection process for link aggregation need only be performed once, and the input side PPU # Processing at 0 does not cause a processing performance bottleneck.

これに対してマルチキャストの場合には、パケットを一つ受信したときに、一般に複数の物理ポート、および、複数のリンクアグリゲーションポートからパケットを送出する必要があり、さらに、複数のリンクアグリゲーションポート毎に、それぞれ一つの出力先物理ポートを選択する処理を行う必要があるため、入力側PPU#0で、全出力リンクアグリゲーションポートに対応する回数だけ、出力先物理ポートを選択する処理を行うと入力側PPU#0のパケット処理性能が、出力リンクアグリゲーションポート数に比例して低下してしまう、という問題があり、これを解決するためである。   On the other hand, in the case of multicast, when one packet is received, it is generally necessary to send the packet from a plurality of physical ports and a plurality of link aggregation ports, and for each of the plurality of link aggregation ports. Since it is necessary to perform processing for selecting one output destination physical port, the input side PPU # 0 performs processing for selecting the output destination physical port for the number of times corresponding to all output link aggregation ports. This is to solve the problem that the packet processing performance of PPU # 0 decreases in proportion to the number of output link aggregation ports.

出力側PPU#1、#2で自分が管理する出力先物理ポートについてのみ、リンクアグリゲーションポートの出力先物理ポートを選択する処理を行うようにすることにより、マルチキャストで、複数のリンクアグリゲーションポートにパケットを送出する場合でも、出力先物理ポートを選択する処理を複数のPPU#1、#2で分散して行うことができ、装置のマルチキャスト中継性能を向上させることができる。   Only the output destination physical ports managed by the output side PPUs # 1 and # 2 are subjected to the process of selecting the output destination physical port of the link aggregation port, so that packets are transmitted to a plurality of link aggregation ports by multicast. Can be distributed among a plurality of PPUs # 1 and # 2 and the multicast relay performance of the apparatus can be improved.

ここで、一つのリンクアグリゲーションポートに属する複数の物理ポートが、複数のPPU#1、#2に跨って存在する場合には、リンクアグリゲーションポートの出力先物理ポートを選択する処理を、複数のPPU間で同一のアルゴリズムに従って行う必要がある。   Here, when a plurality of physical ports belonging to one link aggregation port exist across a plurality of PPUs # 1 and # 2, a process of selecting an output destination physical port of the link aggregation port is performed. Need to follow the same algorithm.

これは、複数のPPU#1、#2間で、もし異なるアルゴリズムに従って行ってしまうと、どのPPU#1、#2でも、自分の管理下の物理ポートが選択されず、該リンクアグリゲーションポートに属する物理ポートからパケットが1個も送出されない、という問題や、逆に、複数のPPU#1、#2で、それぞれ自分の管理下の物理ポートが選択され、一つのリンクアグリゲーションポートに属する複数の物理ポートから、パケットが合計で複数回送出されてしまう、という問題があるためである。   If this is performed according to a different algorithm between a plurality of PPUs # 1 and # 2, the physical port under their management is not selected for any PPU # 1 or # 2, and belongs to the link aggregation port. The problem is that no packet is transmitted from the physical port, and conversely, a plurality of PPUs # 1 and # 2 each select a physical port under their management, and a plurality of physical units belonging to one link aggregation port. This is because there is a problem that a packet is sent out a plurality of times in total from the port.

以上で説明したように、本実施例のネットワーク中継装置100は、マルチキャストパケットを入力した場合には、そのパケットの出力側となるPPU130で詳細な経路検索およびリンクアグリゲーションに伴う処理を行う。従って、入力側PPU130の負担を軽減し、負荷の分散を図ることが可能となる。   As described above, when a multicast packet is input, the network relay device 100 according to the present embodiment performs processing associated with detailed route search and link aggregation at the PPU 130 on the output side of the packet. Therefore, it is possible to reduce the burden on the input side PPU 130 and to distribute the load.

D.パケット入力処理:
以下では、上述した各中継動作を実現するための詳細な処理について説明する。図10は、各PPU130が実行するパケット入力処理のフローチャートである。まず、PPU130は、NIF140を介してパケットを入力すると(ステップS10)、そのパケットの宛先アドレスをキーとして経路テーブルを検索する(ステップS11)。検索の結果、ビットマップが検索された場合には(ステップS12:1)、入力したパケットがマルチキャストパケットであると判定し、付加情報のMCフラグをオンにして(ステップS13)、ステップS17に処理を移行する。PPU番号、PFP番号、物理ポート番号が検索された場合には(ステップS12:2)、ステップS16に処理を移す。
D. Packet input processing:
Below, the detailed process for implement | achieving each relay operation mentioned above is demonstrated. FIG. 10 is a flowchart of packet input processing executed by each PPU 130. First, when a packet is input via the NIF 140 (step S10), the PPU 130 searches the route table using the destination address of the packet as a key (step S11). If the bitmap is searched as a result of the search (step S12: 1), it is determined that the input packet is a multicast packet, the MC flag of the additional information is turned on (step S13), and the process proceeds to step S17. To migrate. When the PPU number, PFP number, and physical port number are searched (step S12: 2), the process proceeds to step S16.

上記ステップS11の検索において、リンクアグリゲーションIDが検索された場合には(ステップS12:3)、次のような処理を行う。まず、入力したパケットの宛先アドレスと宛先TCPポート番号を用いて、以下の手順によりハッシュ値を計算する(ステップS14)。   When the link aggregation ID is searched in the search in step S11 (step S12: 3), the following processing is performed. First, a hash value is calculated by the following procedure using the destination address and destination TCP port number of the input packet (step S14).

(1)宛先アドレスと宛先TCPポート番号とを8ビットずつに区切り、それぞれを加算する。ただし、桁上がりは無視する。
(2)加算値をビット逆順し、ハッシュ値とする。ハッシュ値の取り得る範囲は0〜255である。
(1) The destination address and the destination TCP port number are divided into 8 bits, and each is added. However, carry is ignored.
(2) The added value is reversed in bit order to obtain a hash value. The possible range of the hash value is 0-255.

更に、このハッシュ値を用いて次の計算を行う。ただし、計算結果の小数点以下は切り捨てるものとする。   Further, the following calculation is performed using this hash value. However, the calculation result shall be rounded down.

エントリ番号=((ハッシュ値)×(論理ポートを構成する物理ポートの数))/256;   Entry number = ((hash value) × (number of physical ports constituting the logical port)) / 256;

そして、リンクアグリゲーションテーブルから、このエントリ番号に対応するPPU番号,PFP番号,物理ポート番号を検索し(ステップS15)、検索結果を出力先情報として付加情報に設定する(ステップS16)。上記ステップS11においてPPU番号,PFP番号,物理ポート番号が検索された場合には、かかる検索結果を付加情報に設定する。   Then, the PPU number, PFP number, and physical port number corresponding to the entry number are searched from the link aggregation table (step S15), and the search result is set as additional information as output destination information (step S16). When the PPU number, PFP number, and physical port number are searched in step S11, the search result is set as additional information.

次に、PPU130は、上記ステップS11またはS15によって検索されたPPU番号に応じてビットマップを付加情報に設定する(ステップS17)。例えば、PPU#0が検索された場合には、ビットマップは「100」となり、PPU#1が検索された場合には「010」となる。上記ステップS11においてビットマップが検索された場合には、検索されたビットマップを付加情報に設定する。   Next, the PPU 130 sets a bitmap as additional information in accordance with the PPU number searched in step S11 or S15 (step S17). For example, when PPU # 0 is searched, the bitmap is “100”, and when PPU # 1 is searched, it is “010”. When a bitmap is retrieved in step S11, the retrieved bitmap is set as additional information.

最後に、PPU130は、付加情報とともにパケットをクロスバスイッチ120に転送する(ステップS18)。クロスバスイッチ120は、パケットの転送を受けると、付加情報内のビットマップにより指定されたPPU130に対してパケットと付加情報を転送する。ビットマップによって複数のPPU130が指定されていた場合には、付加情報とパケットを複製してそれぞれのPPU130に配布する。   Finally, the PPU 130 transfers the packet together with the additional information to the crossbar switch 120 (step S18). When the crossbar switch 120 receives the transfer of the packet, the crossbar switch 120 transfers the packet and the additional information to the PPU 130 specified by the bitmap in the additional information. When a plurality of PPUs 130 are specified by the bitmap, the additional information and the packet are copied and distributed to each PPU 130.

E.パケット出力処理:
図11は、各PPU130が実行するパケット出力処理のフローチャートである。まず、PPU130は、クロスバスイッチ120からパケットを入力すると(ステップS30)、そのパケットの付加情報に設定されたMCフラグの状態をチェックする(ステップS31)。MCフラグがオフの場合(ステップS31:No)、すなわち、入力したパケットがユニキャストパケットである場合には、その付加情報には上記パケット入力処理によって既に出力先情報が設定されているため、PPU130は、付加情報を解析して(ステップS32)、出力先インタフェースとして指定されたPFP141、物理ポート142からパケットを出力する(ステップS33)。
E. Packet output processing:
FIG. 11 is a flowchart of packet output processing executed by each PPU 130. First, when a packet is input from the crossbar switch 120 (step S30), the PPU 130 checks the state of the MC flag set in the additional information of the packet (step S31). If the MC flag is off (step S31: No), that is, if the input packet is a unicast packet, the output information is already set in the additional information by the packet input process, so the PPU 130 Analyzes the additional information (step S32), and outputs the packet from the PFP 141 and the physical port 142 designated as the output destination interface (step S33).

MCフラグがオンの場合には(ステップS31:Yes)、入力したパケットはマルチキャストパケットであるため、入力側PPU130によって出力先インタフェースは指定されていない。そこで、以下の処理により出力側PPU130で経路検索を行う。まず、パケットの宛先アドレスをキーとして経路テーブルから出力先インタフェースを検索する(ステップS34)。マルチキャストパケットについては、図3で示したように、複数の出力先インタフェースが検索される場合がある。次に、検索された出力先インタフェースの中に、リンクアグリゲーションIDが存在するか否かを判定する(ステップS35)。リンクアグリゲーションIDが存在する場合には(ステップS35:Yes)、入力したパケットの宛先アドレス、宛先TCPポート番号を用いて上述した方法によりハッシュ値を計算して(ステップS36)、更に、エントリ番号を計算する。そして、このエントリ番号に対応したPPU番号、PFP番号,物理ポート番号をリングアグリゲーションテーブルから検索する(ステップS37)。リンクアグリゲーションIDが含まれない場合には(ステップS35:No)、これらの処理(ステップS36およびS37)は行わない。   When the MC flag is on (step S31: Yes), since the input packet is a multicast packet, the output destination interface is not specified by the input side PPU 130. Therefore, the route search is performed by the output side PPU 130 by the following processing. First, the output destination interface is searched from the route table using the destination address of the packet as a key (step S34). As for a multicast packet, as shown in FIG. 3, a plurality of output destination interfaces may be searched. Next, it is determined whether or not a link aggregation ID exists in the searched output destination interface (step S35). When the link aggregation ID exists (step S35: Yes), the hash value is calculated by the method described above using the destination address and destination TCP port number of the input packet (step S36), and the entry number is further changed. calculate. Then, the PPU number, PFP number, and physical port number corresponding to this entry number are searched from the ring aggregation table (step S37). If the link aggregation ID is not included (step S35: No), these processes (steps S36 and S37) are not performed.

次に、PPU130は、上述の処理により検索された出力先インタフェース毎に、そのインタフェースが自分の制御対象のインタフェースであるか否かをチェックする(ステップS38)。かかるチェックは、検索された出力先インタフェースの番号が、自分のPPU番号および自分の管理するPFP番号であるか否かをチェックすることにより行う。出力先インタフェースが、自分の制御対象でない場合には(ステップS38:No)、そのインタフェース宛のパケットは破棄する(ステップS39)。自分の制御対象である場合には(ステップS38:Yes)、そのインタフェースからパケットを出力する(ステップS40)。   Next, the PPU 130 checks, for each output destination interface searched by the above-described processing, whether or not the interface is its own control target interface (step S38). Such a check is performed by checking whether or not the retrieved output destination interface number is its own PPU number and its own managed PFP number. If the output destination interface is not its own control target (step S38: No), the packet addressed to that interface is discarded (step S39). If it is the subject of control (step S38: Yes), the packet is output from the interface (step S40).

以上で説明したように、パケットの出力を行うPPU130は、ユニキャストパケットの転送を受けた場合には、予め入力側のPPU130によって指定されたインタフェースからパケットの出力を行い、マルチキャストパケットの転送を受けた場合には、リンクアグリゲーションに伴う処理も含めた詳細な経路検索を行う。こうすることにより、パケットの種別に応じて効率的に処理を分散させることができる。   As described above, when receiving a unicast packet transfer, the PPU 130 that outputs a packet outputs a packet from the interface designated in advance by the PPU 130 on the input side and receives the multicast packet transfer. In the case of a failure, a detailed route search including processing associated with link aggregation is performed. By doing so, processing can be efficiently distributed according to the type of packet.

なお、上述したパケット入力処理および出力処理では、ハッシュ値の計算において、宛先アドレスと宛先TCPポート番号を利用するものとした。しかし、ハッシュ値の計算は、他の情報、例えば、宛先MACアドレスや送信元MACアドレス、宛先IPアドレス、送信元IPアドレス、宛先TCPポート番号、送信元TCPポート番号、MPLSプロトコルによる通信においてはラベル情報などを併せて用いるものとしてもよい。   In the packet input process and output process described above, the destination address and the destination TCP port number are used in the calculation of the hash value. However, the hash value is calculated using other information such as a destination MAC address, a source MAC address, a destination IP address, a source IP address, a destination TCP port number, a source TCP port number, and a label in communication using the MPLS protocol. Information or the like may be used together.

[発明の効果]
本発明によれば、パケットを論理ポートから出力する場合には、その宛先アドレスやTCPポート番号に応じてハッシュ値を計算し、実際に出力する物理ポートを選択する。従って、同じフローに属するパケットは同じ物理ポートから出力されることとなり、パケットの追い越しを避けることができる。
[The invention's effect]
According to the present invention, when a packet is output from a logical port, a hash value is calculated according to the destination address and TCP port number, and a physical port to be actually output is selected. Therefore, packets belonging to the same flow are output from the same physical port, and packet overtaking can be avoided.

また、本発明によれば、入力したパケットがユニキャストパケットであるかマルチキャストパケットであるかによって経路検索を行う処理を各パケット制御部に分散させることができる。   Further, according to the present invention, it is possible to distribute the process of performing a route search to each packet control unit depending on whether the input packet is a unicast packet or a multicast packet.

また、本発明によれば、各パケット制御部は、マルチキャストパケット出力時に、他のパケット制御部宛に対するパケットの破棄を行う。従って、冗長なパケット出力による混乱を回避することができる。   Further, according to the present invention, each packet control unit discards a packet addressed to another packet control unit when outputting a multicast packet. Therefore, confusion due to redundant packet output can be avoided.

以上のことから、本発明のネットワーク中継装置は、効率的にネットワークの中継を行うことができ、処理の高速化およびスループットの向上を図ることが可能となる。   From the above, the network relay device of the present invention can efficiently perform network relay, and can increase the processing speed and throughput.

ネットワーク中継装置100の概略構成を示す説明図である。2 is an explanatory diagram showing a schematic configuration of a network relay device 100. FIG. 付加情報とパケットの概略構造を示す説明図である。It is explanatory drawing which shows the schematic structure of additional information and a packet. 経路テーブルの概略構造を示す説明図である。It is explanatory drawing which shows schematic structure of a route table. ポートテーブルの概略構造を示す説明図である。It is explanatory drawing which shows schematic structure of a port table. リンクアグリゲーションテーブルの概略構造を示す説明図である。It is explanatory drawing which shows schematic structure of a link aggregation table. ユニキャストパケット入力時の基本的な中継動作の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the basic relay operation | movement at the time of a unicast packet input. ユニキャストパケット入力時に出力先インタフェースとしてリンクアグリゲーションIDが検索された場合の動作を示す説明図である。It is explanatory drawing which shows operation | movement when link aggregation ID is searched as an output destination interface at the time of a unicast packet input. マルチキャストパケット入力時の基本的な中継動作の概要を示す説明図である。It is explanatory drawing which shows the outline | summary of the basic relay operation | movement at the time of a multicast packet input. マルチキャストパケット入力時に出力先インタフェースとしてリンクアグリゲーションIDが検索された場合の動作を示す説明図である。It is explanatory drawing which shows operation | movement when link aggregation ID is searched as an output destination interface at the time of a multicast packet input. パケット入力処理のフローチャートである。It is a flowchart of a packet input process. パケット出力処理のフローチャートである。It is a flowchart of a packet output process.

符号の説明Explanation of symbols

100...ネットワーク中継装置
110...制御ユニット
120...クロスバスイッチ
130...パケット制御部
131...CPU
132...ROM
133...RAM
134...検索エンジン
135...テーブル記憶部
140...ネットワークインターフェース部
141...パケット転送エンジン
142...物理ポート
DESCRIPTION OF SYMBOLS 100 ... Network relay apparatus 110 ... Control unit 120 ... Crossbar switch 130 ... Packet control part 131 ... CPU
132 ... ROM
133 ... RAM
134 ... Search engine 135 ... Table storage unit 140 ... Network interface unit 141 ... Packet transfer engine 142 ... Physical port

Claims (7)

複数の物理ポートによる通信を制御可能なネットワーク中継装置であって、
所定数の回線を収容するとともに、該各回線に対するパケットの入出力を制御するパケット制御部を複数備え、
該各パケット制御部は、
入力したパケットがユニキャストパケットであるかマルチキャストパケットであるかを判定するパケット種別判定部と、
ユニキャストパケットを入力した場合に、該ユニキャストパケットを転送すべき回線を所定の設定に基づき選択し、該回線を収容するパケット制御部に前記ユニキャストパケットを転送するユニキャスト出力回線選択部と、
マルチキャストパケットを入力した場合に、所定の設定に基づき、前記各パケット制御部の少なくとも一部に該マルチキャストパケットを配布するマルチキャストパケット配布部と、
前記マルチキャストパケットが配布された場合に、該マルチキャストパケットを出力する回線を、所定の設定に基づき選択するマルチキャスト出力回線選択部と、
を備えるネットワーク中継装置。
A network relay device capable of controlling communication by a plurality of physical ports,
A plurality of packet control units for accommodating a predetermined number of lines and controlling input / output of packets to / from each line,
Each packet control unit
A packet type determination unit that determines whether the input packet is a unicast packet or a multicast packet;
A unicast output line selection unit that selects a line to which the unicast packet is to be transferred based on a predetermined setting when the unicast packet is input, and transfers the unicast packet to a packet control unit that accommodates the line; ,
A multicast packet distribution unit that distributes the multicast packet to at least a part of each packet control unit based on a predetermined setting when a multicast packet is input;
A multicast output line selection unit that selects a line that outputs the multicast packet based on a predetermined setting when the multicast packet is distributed;
A network relay device comprising:
請求項1に記載のネットワーク中継装置であって、
該ネットワーク中継装置は複数の物理ポートを論理的に束ねることにより1つの論理ポートとして取り扱うことが可能であり、
前記ユニキャスト出力回線選択部は、前記選択した回線が前記論理ポートであった場合に、更に、該論理ポートを構成する物理ポートのうち前記ユニキャストパケットの出力に用いる物理ポートを所定の設定に基づき選択する、ネットワーク中継装置。
The network relay device according to claim 1,
The network relay device can be handled as one logical port by logically bundling a plurality of physical ports,
When the selected line is the logical port, the unicast output line selection unit further sets a physical port used for output of the unicast packet among physical ports constituting the logical port to a predetermined setting. Network relay device to select based on.
請求項1に記載のネットワーク中継装置であって、
該ネットワーク中継装置は複数の物理ポートを論理的に束ねることにより1つの論理ポートとして取り扱うことが可能であり、
前記マルチキャスト出力回線選択部は、前記選択した回線が前記論理ポートであった場合に、更に、該論理ポートを構成する物理ポートのうち前記マルチキャストパケットの出力に用いる物理ポートを所定の設定に基づき選択する、ネットワーク中継装置。
The network relay device according to claim 1,
The network relay device can be handled as one logical port by logically bundling a plurality of physical ports,
When the selected line is the logical port, the multicast output line selection unit further selects a physical port used for output of the multicast packet from physical ports constituting the logical port based on a predetermined setting. Network relay device.
請求項3に記載のネットワーク中継装置であって、
前記マルチキャスト出力回線選択部は、前記選択された物理ポートが当該パケット制御部の制御対象外である場合に、前記配布されたマルチキャストパケットを破棄する、ネットワーク中継装置。
The network relay device according to claim 3,
The multicast output line selection unit is a network relay device that discards the distributed multicast packet when the selected physical port is not controlled by the packet control unit.
請求項2に記載のネットワーク中継装置であって、
前記ユニキャスト出力回線選択部は、前記ユニキャストパケットに含まれる宛先アドレス情報と該ユニキャストパケットを用いるアプリケーションを特定するための識別情報とを用いた所定のハッシュ関数によってハッシュ値を求め、該ハッシュ値に対応付けられた物理ポートを選択する、ネットワーク中継装置。
The network relay device according to claim 2,
The unicast output line selection unit obtains a hash value by a predetermined hash function using destination address information included in the unicast packet and identification information for specifying an application using the unicast packet, and the hash A network relay device that selects the physical port associated with the value.
請求項3に記載のネットワーク中継装置であって、
前記マルチキャスト出力回線選択部は、前記マルチキャストパケットに含まれる宛先アドレス情報と該マルチキャストパケットを用いるアプリケーションを特定するための識別情報とを用いた所定のハッシュ関数によってハッシュ値を求め、該ハッシュ値に対応付けられた物理ポートを選択する、ネットワーク中継装置。
The network relay device according to claim 3,
The multicast output line selection unit obtains a hash value by a predetermined hash function using destination address information included in the multicast packet and identification information for specifying an application using the multicast packet, and corresponds to the hash value Network relay device that selects the attached physical port.
請求項3に記載のネットワーク中継装置であって、
前記マルチキャストパケットが配布されたそれぞれのマルチキャスト出力回線部は、同じ設定に基づいて前記物理ポートを選択する、ネットワーク中継装置。
The network relay device according to claim 3,
Each multicast output line unit to which the multicast packet is distributed selects the physical port based on the same setting.
JP2008283025A 2008-11-04 2008-11-04 Network relay device Expired - Lifetime JP4295812B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008283025A JP4295812B2 (en) 2008-11-04 2008-11-04 Network relay device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008283025A JP4295812B2 (en) 2008-11-04 2008-11-04 Network relay device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2003183934A Division JP2005020492A (en) 2003-06-27 2003-06-27 Network repeater

Publications (2)

Publication Number Publication Date
JP2009027758A true JP2009027758A (en) 2009-02-05
JP4295812B2 JP4295812B2 (en) 2009-07-15

Family

ID=40399045

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008283025A Expired - Lifetime JP4295812B2 (en) 2008-11-04 2008-11-04 Network relay device

Country Status (1)

Country Link
JP (1) JP4295812B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011234063A (en) * 2010-04-27 2011-11-17 Fujitsu Ltd Relay device and transfer method
US8611361B2 (en) 2009-12-17 2013-12-17 Hitachi Cable, Ltd. Switching hub, line card and frame relay method
JP2014060639A (en) * 2012-09-19 2014-04-03 Alaxala Networks Corp Network relay apparatus and network relay method
US10595255B2 (en) 2017-06-26 2020-03-17 Renesas Electronics Corporation Wireless communication apparatus, system, and method
JP2020529749A (en) * 2017-08-01 2020-10-08 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited Methods and equipment for conditional broadcasting of network configuration data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8611361B2 (en) 2009-12-17 2013-12-17 Hitachi Cable, Ltd. Switching hub, line card and frame relay method
JP2011234063A (en) * 2010-04-27 2011-11-17 Fujitsu Ltd Relay device and transfer method
JP2014060639A (en) * 2012-09-19 2014-04-03 Alaxala Networks Corp Network relay apparatus and network relay method
US10595255B2 (en) 2017-06-26 2020-03-17 Renesas Electronics Corporation Wireless communication apparatus, system, and method
JP2020529749A (en) * 2017-08-01 2020-10-08 アリババ・グループ・ホールディング・リミテッドAlibaba Group Holding Limited Methods and equipment for conditional broadcasting of network configuration data
JP7180954B2 (en) 2017-08-01 2022-11-30 アリババ・グループ・ホールディング・リミテッド Method and apparatus for conditional broadcasting of network configuration data

Also Published As

Publication number Publication date
JP4295812B2 (en) 2009-07-15

Similar Documents

Publication Publication Date Title
US10536324B2 (en) Per-prefix LFA FRR with bit indexed explicit replication
US7808930B2 (en) Dynamic multipoint tree rearrangement
US9590903B2 (en) Systems and methods for optimizing layer three routing in an information handling system
US9923812B2 (en) Triple-tier anycast addressing
US7835378B2 (en) Root node redundancy for multipoint-to-multipoint transport trees
US8594090B2 (en) Multicasting using a multitiered distributed virtual bridge hierarchy
JP4593484B2 (en) Data communication system and method
US8089964B2 (en) Transporting multicast over MPLS backbone using virtual interfaces to perform reverse-path forwarding checks
US7693169B2 (en) Transmission apparatus and frame transmission method
CA2555545A1 (en) Interface bundles in virtual network devices
US20060176880A1 (en) Mesh mirroring with path tags
JP2005020492A (en) Network repeater
US9054974B2 (en) Reliably transporting packet streams using packet replication
JP4295812B2 (en) Network relay device
WO2021082812A1 (en) Message sending method and first network device
JP2007274305A (en) Ring network, communication device, and method of managing operation used therefor
CN111654437B (en) Message forwarding method and device based on data center
US11032185B2 (en) Communication system, edge node, communication method and program
US8699485B2 (en) Multicast over lag and IRB in a routing device
CN113973020B (en) Method, device and system for sending multicast message
WO2012094914A1 (en) Method for processing multicast messages and switched access device
JP4751213B2 (en) Link aggregation processing apparatus and processing method
US9634927B1 (en) Post-routed VLAN flooding
US7656790B2 (en) Handling link failures with re-tagging
JP4108844B2 (en) ATM relay device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20081104

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090410

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4295812

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120417

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130417

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140417

Year of fee payment: 5

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

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

EXPY Cancellation because of completion of term