JP2008166881A - Link aggregation circuit, and method for optimizing link aggregation access control logic - Google Patents

Link aggregation circuit, and method for optimizing link aggregation access control logic Download PDF

Info

Publication number
JP2008166881A
JP2008166881A JP2006350808A JP2006350808A JP2008166881A JP 2008166881 A JP2008166881 A JP 2008166881A JP 2006350808 A JP2006350808 A JP 2006350808A JP 2006350808 A JP2006350808 A JP 2006350808A JP 2008166881 A JP2008166881 A JP 2008166881A
Authority
JP
Japan
Prior art keywords
link aggregation
distribution logic
distribution
counter
ports
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.)
Pending
Application number
JP2006350808A
Other languages
Japanese (ja)
Inventor
Kentaro Motoyama
謙太郎 本山
Toshikazu Ando
利和 安藤
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.)
NEC Corp
Original Assignee
NEC Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by NEC Corp filed Critical NEC Corp
Priority to JP2006350808A priority Critical patent/JP2008166881A/en
Publication of JP2008166881A publication Critical patent/JP2008166881A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a link aggregation circuit which can automatically select an access control logic corresponding to variation in properties of a network. <P>SOLUTION: A control section 11 automatically detects the fact that an improper access control logic is detected based on the contents of a discard counter 13 for counting discarded packets, and a port counter 14 for counting the flow rate of each link aggregation port 15-1 to 15-n. The control section 11 sets a proper access control logic in a distribution protocol processing section 12 depending on the detection results. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明はリンクアグリゲーション回路、ネットワーク装置及びそれに用いるリンクアグリゲーション振り分け論理最適化法に関し、特にリンクアグリゲーション機能を用いるネットワーク装置に関する。   The present invention relates to a link aggregation circuit, a network device, and a link aggregation distribution logic optimization method used therefor, and more particularly to a network device using a link aggregation function.

ネットワーク装置においては、ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことによって、高速なパケット通信を可能とするリンクアグリゲーション機能を用いるものがある(例えば、特許文献1参照)。   Some network devices use a link aggregation function that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link (see, for example, Patent Document 1).

この場合、ネットワーク装置では、パケットの複数のリンクアグリゲーションポートへの振り分けをパケットの振り分け論理(プロトコル)にしたがって行っており、そのパケットの振り分け論理の設定は保守者が手動にて行っている。   In this case, in the network device, the packet is distributed to a plurality of link aggregation ports according to the packet distribution logic (protocol), and the setting of the packet distribution logic is manually performed by the maintenance person.

上記のパケットの振り分け論理としては、リンクアグリゲーションの論理ポートを構成する複数の物理ポートへの均等な(厳密には、ほぼ均等な)帯域分配を可能にする方法が提案されている(例えば、特許文献2参照)。   As the packet distribution logic, there has been proposed a method that enables equal (strictly, almost equal) bandwidth distribution to a plurality of physical ports constituting a logical port for link aggregation (for example, a patent). Reference 2).

この特許文献2記載の方法では、トラフィック分散制御装置としてのデータ伝送装置が、リンクアグリゲーションの論理ポートを構成する複数の物理ポートにトラフィックを分散させるために、ハッシュ関数を用いて受信パケットの宛先アドレス及び送信元アドレスからハッシュ値を計算し、宛先の物理ポートを決定している。   In the method described in Patent Document 2, a data transmission apparatus as a traffic distribution control apparatus uses a hash function to send a destination address of a received packet in order to distribute traffic to a plurality of physical ports constituting a logical port of link aggregation. The hash value is calculated from the source address and the destination physical port is determined.

上記のデータ伝送装置は、複数の物理ポートのそれぞれからのパケットの出力流量を計測する計測手段と、計数された出力流量について複数の物理ポート間の流量比を算出する算出手段と、算出された流量比を複数の物理ポート間の帯域分配比率にフィードバックして宛先の物理ポートを決定するためのハッシュ値の個数割り当ての変更を行う制御手段とを備えている。   The data transmission device includes: a measuring unit that measures an output flow rate of a packet from each of a plurality of physical ports; a calculating unit that calculates a flow rate ratio between the plurality of physical ports for the counted output flow rate; And a control means for changing the number allocation of hash values for determining the destination physical port by feeding back the flow rate ratio to the bandwidth distribution ratio among the plurality of physical ports.

特開2005−236631号公報JP 2005-236631 A 特開2006−005437号公報JP 2006-005437 A

上述した従来のネットワーク装置では、パケットの振り分け論理として適切な振り分け論理が指定されていない場合、リンクアグリゲーションポートのそれぞれに流れるパケットに大きな偏りが発生し、リンクアグリゲーションポートの出力流量より大きなパケットがそのポートに流入した場合、本来流すべきパケットの廃棄が発生することになる。   In the above-described conventional network device, when an appropriate distribution logic is not designated as a packet distribution logic, a large deviation occurs in the packets flowing to each of the link aggregation ports, and packets larger than the output flow rate of the link aggregation port are When it flows into the port, a packet that should be flown is discarded.

通常、パケットの振り分け論理は保守者が設定するが、適切な振り分け論理を設定するためにはネットワークの性質を把握しておく必要がある。また、例え、設定時点で適切な振り分け論理を指定したとしても、時間経過とともに流入するパケットの性質が変化した場合、振り分け論理が不適切なものになってしまう。   Normally, the packet distribution logic is set by the maintainer, but in order to set an appropriate distribution logic, it is necessary to understand the nature of the network. Even if an appropriate distribution logic is specified at the time of setting, the distribution logic becomes inappropriate if the properties of the incoming packets change with time.

従来、リンクアグリゲーションを行うネットワーク装置においては、振り分け論理の選択作業を保守者が手動で行っているので、適切な振り分け論理を選択するためにネットワークの性質を把握する必要があるが、複数の装置で構成されたネットワークの性質を把握することは困難なため、適切な振り分け論理を選択することができないという問題がある。   Conventionally, in a network device that performs link aggregation, since the maintenance operator manually performs distribution logic selection work, it is necessary to grasp the nature of the network in order to select an appropriate distribution logic. Since it is difficult to grasp the nature of the network configured with the above, there is a problem that an appropriate distribution logic cannot be selected.

また、従来のネットワーク装置では、例え1度ネットワークの性質を把握して適切な振り分け論理を設定したとしても、ネットワーク機器の変更、時間経過によるネットワークの性質の変化によって最適な振り分け論理が変化するが、保守者の手動設定では性質の変化の把握に時間がかかり、適切な振り分け論理を選択することができないという問題がある。   In the conventional network device, even if the network characteristics are grasped once and an appropriate distribution logic is set, the optimal distribution logic changes due to the change of the network equipment and the change of the network characteristics over time. In the manual setting by the maintenance person, it takes time to grasp the change in properties, and there is a problem that an appropriate distribution logic cannot be selected.

上記の特許文献1に記載の技術は、リンクアグリゲーション機能を無効とすることなく、輻輳発生箇所に向けたデータパケットの送出を抑止する技術であり、特許文献2に記載の技術はパケットの振り分け論理の一種であるので、上述した問題を解決することはできない。   The technique described in Patent Document 1 described above is a technique for suppressing transmission of data packets toward a congestion occurrence place without invalidating the link aggregation function. The technique described in Patent Document 2 is a packet distribution logic. Therefore, the above-mentioned problem cannot be solved.

そこで、本発明の目的は上記の問題点を解消し、ネットワークの性質の変化に対応した振り分け論理を自動的に選択することができるリンクアグリゲーション回路、ネットワーク装置及びそれに用いるリンクアグリゲーション振り分け論理最適化法を提供することにある。   SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to solve the above-described problems and to automatically select a distribution logic corresponding to a change in network properties, a link aggregation circuit, a network device, and a link aggregation distribution logic optimization method used therefor Is to provide.

本発明による第1のリンクアグリゲーション回路は、ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーションを使用するレイヤ2を扱うリンクアグリゲーション回路であって、
前記リンクアグリゲーションのための複数のポートと、MAC(Media Access Control)振り分け論理を自動的に最適化する制御手段と、その最適化したMAC振り分け論理にて前記複数のポートに流入パケットを振り分ける振り分け処理手段とを備えている。
The first link aggregation circuit according to the present invention is a link aggregation circuit that handles layer 2 that uses link aggregation that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link. There,
A plurality of ports for link aggregation, control means for automatically optimizing MAC (Media Access Control) distribution logic, and distribution processing for distributing incoming packets to the plurality of ports by the optimized MAC distribution logic Means.

本発明による第2のリンクアグリゲーション回路は、ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーションを使用するレイヤ2を扱うリンクアグリゲーション回路であって、
前記リンクアグリゲーションのための複数のポートと、廃棄されたパケットをカウントする廃棄カウンタと、前記複数のポート各々の流量をカウントするポートカウンタと、予め設定された振り分け論理にて前記複数のポートに流入パケットを振り分ける振り分け処理手段と、前記廃棄カウンタ及び前記ポートカウンタ各々の内容に基づいて不適切な振り分け論理が選択されたことを検出しかつその検出結果に応じて前記振り分け処理手段に適切な振り分け論理を設定する制御手段とを備えている。
The second link aggregation circuit according to the present invention is a link aggregation circuit that handles layer 2 that uses link aggregation that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link. There,
A plurality of ports for link aggregation, a discard counter that counts discarded packets, a port counter that counts the flow rate of each of the plurality of ports, and flows into the plurality of ports by a preset distribution logic A distribution processing means for distributing packets, and detecting that an inappropriate distribution logic is selected based on the contents of each of the discard counter and the port counter, and an appropriate distribution logic for the distribution processing means according to the detection result And control means for setting.

本発明によるネットワーク装置は、上記の第1及び第2のリンクアグリゲーション回路のいずれかを備えている。   A network device according to the present invention includes any one of the first and second link aggregation circuits.

本発明による第1のリンクアグリゲーション振り分け論理最適化法は、ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーションを使用するレイヤ2を扱うリンクアグリゲーション回路に用いるリンクアグリゲーション振り分け論理最適化法であって、
前記リンクアグリゲーション回路が、MAC(Media Access Control)振り分け論理を自動的に最適化する制御処理と、その最適化したMAC振り分け論理にて前記リンクアグリゲーションのための前記複数のポートに流入パケットを振り分ける振り分け処理とを実行している。
The first link aggregation distribution logic optimization method according to the present invention handles layer 2 using link aggregation that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link. A link aggregation distribution logic optimization method used in a link aggregation circuit,
The link aggregation circuit automatically optimizes MAC (Media Access Control) distribution logic, and distributes inflow packets to the plurality of ports for link aggregation using the optimized MAC distribution logic. Processing and executing.

本発明による第2のリンクアグリゲーション振り分け論理最適化法は、ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーションを使用するレイヤ2を扱うリンクアグリゲーション回路に用いるリンクアグリゲーション振り分け論理最適化法であって、
前記リンクアグリゲーション回路に、前記リンクアグリゲーションのための複数のポートと、廃棄されたパケットをカウントする廃棄カウンタと、前記複数のポート各々の流量をカウントするポートカウンタとを設け、
前記リンクアグリゲーション回路が、予め設定された振り分け論理にて前記複数のポートに流入パケットを振り分ける振り分け処理と、前記廃棄カウンタ及び前記ポートカウンタ各々の内容に基づいて不適切な振り分け論理が選択されたことを検出しかつその検出結果に応じて前記振り分け処理に適切な振り分け論理を設定する制御処理とを実行している。
The second link aggregation distribution logic optimization method according to the present invention handles layer 2 using link aggregation that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link. A link aggregation distribution logic optimization method used in a link aggregation circuit,
The link aggregation circuit includes a plurality of ports for the link aggregation, a discard counter that counts discarded packets, and a port counter that counts the flow rate of each of the plurality of ports,
The link aggregation circuit selects a distribution process that distributes inflow packets to the plurality of ports using a predetermined distribution logic, and inappropriate distribution logic is selected based on the contents of the discard counter and the port counter. And a control process for setting an appropriate distribution logic for the distribution process according to the detection result.

すなわち、本発明のリンクアグリゲーション振り分け論理最適化法は、ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーション[IEEE(Institute of Electrical and Electronic Engineers)802.3ad,IEEE802.3ad−2000,IEEE802.3−2002)を使用するレイヤ2[OSI(Open System Interconnection)ネットワーク参照モデルのデータリンク層)を扱うネットワーク装置において、MAC(Media Access Control:媒体アクセス制御)振り分け論理を自動的に最適化し、各リンクアグリゲーションポートに流入パケットを振り分けることを特徴としている。   That is, the link aggregation distribution logic optimization method of the present invention is a link aggregation [IEEE of Institute of Electrical and Electronic that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link. (Engineerers) 802.3ad, IEEE802.3ad-2000, IEEE802.3-2002) Layer 2 (OSI (Open System Interconnection) network reference model data link layer) in a network device that handles MAC (Media Access Control): (Media access control) The distribution logic is automatically optimized and sent to each link aggregation port. It is characterized by distributing packets.

より具体的に説明すると、本発明のリンクアグリゲーション振り分け論理最適化法では、制御部において、廃棄されたパケットをカウントする廃棄カウンタ及び各リンクアグリゲーションポートの流量をカウントするポートカウンタの内容によって不適切な振り分け論理(プロトコル)が選択されたことを自動的に検出し、その検出結果に応じて振り分けプロトコル処理部に適切な振り分け論理を設定している。これによって、本発明のリンクアグリゲーション振り分け論理最適化法では、不適切な振り分け論理から適切な振り分け論理に処理を戻すことが可能となる。   More specifically, in the link aggregation distribution logic optimization method of the present invention, the control unit is inappropriate depending on the contents of the discard counter that counts discarded packets and the port counter that counts the flow rate of each link aggregation port. It is automatically detected that a distribution logic (protocol) has been selected, and an appropriate distribution logic is set in the distribution protocol processing unit according to the detection result. Thus, in the link aggregation distribution logic optimization method of the present invention, it is possible to return the processing from an inappropriate distribution logic to an appropriate distribution logic.

したがって、本発明のリンクアグリゲーション振り分け論理最適化法では、制御部において廃棄カウンタ及びポートカウンタの内容によって不適切な振り分け論理を選択して動的に検出し、その検出結果に応じて振り分けプロトコル処理部に適切な振り分け論理を設定しているので、時間経過に伴うパケットの性質の変化に対応したパケットの振り分け論理を選択することが可能となる。   Accordingly, in the link aggregation distribution logic optimization method of the present invention, an inappropriate distribution logic is selected and dynamically detected by the control unit according to the contents of the discard counter and the port counter, and a distribution protocol processing unit according to the detection result Therefore, it is possible to select a packet distribution logic corresponding to a change in the packet properties with the passage of time.

また、本発明のリンクアグリゲーション振り分け論理最適化法では、廃棄カウンタの値と閾値とを見て、待ち時間より速く閾値の確認処理を行うので、最適な振り分け論理を選択する処理が廃棄カウンタの値と閾値とを見ない場合と比べて高速に比較することが可能となる。   Also, in the link aggregation distribution logic optimization method of the present invention, the threshold value is checked faster than the waiting time by looking at the value of the discard counter and the threshold value, so the process of selecting the optimal distribution logic is the value of the discard counter value. Compared with the case where the threshold value is not seen, it is possible to compare at high speed.

本発明のリンクアグリゲーション振り分け論理最適化法では、上記の効果を発揮するために、使用する振り分け論理を限定していないので、どのような振り分け論理でも適用することが可能となる。よって、本発明のリンクアグリゲーション振り分け論理最適化法では、ネットワークの性質の変化に対応した振り分け論理を自動的に選択することが可能となる。   In the link aggregation distribution logic optimization method of the present invention, any distribution logic can be applied because the distribution logic to be used is not limited in order to achieve the above effect. Therefore, in the link aggregation distribution logic optimization method of the present invention, it is possible to automatically select a distribution logic corresponding to a change in network properties.

本発明は、上記のような構成及び動作とすることで、ネットワークの性質の変化に対応した振り分け論理を自動的に選択することができるという効果が得られる。   According to the present invention having the configuration and operation as described above, it is possible to automatically select a distribution logic corresponding to a change in network properties.

次に、本発明の実施例について図面を参照して説明する。図1は本発明の一実施例によるネットワーク装置におけるリングアグリゲーション回路の構成を示すブロック図である。図1において、リングアグリゲーション回路1はリンクアグリゲーションを行うネットワーク装置の回路であり、制御部11と、プロトコル処理部12と、廃棄カウンタ13と、ポートカウンタ14と、リンクアグリゲーションを行うリンクアグリゲーションポート(以下、ポートとする)15−1〜15−n(nは正の整数)と、入力ポート16とから構成されている。   Next, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing a configuration of a ring aggregation circuit in a network device according to an embodiment of the present invention. In FIG. 1, a ring aggregation circuit 1 is a circuit of a network device that performs link aggregation, and includes a control unit 11, a protocol processing unit 12, a discard counter 13, a port counter 14, and a link aggregation port (hereinafter referred to as link aggregation port) that performs link aggregation. , And 15) to 15-n (n is a positive integer) and an input port 16.

制御部11は適切なパケットの振り分け論理(プロトコル)の種別を振り分けプロトコル処理部12に設定する機能と、廃棄カウンタ13及びポートカウンタ14各々の内容を読み取る機能とを備えている。   The control unit 11 has a function of setting an appropriate packet distribution logic (protocol) type in the distribution protocol processing unit 12 and a function of reading the contents of the discard counter 13 and the port counter 14.

振り分けプロトコル処理部12は、制御部11によって指定されたパケットの振り分け論理によって、入力ポート16から流入したパケットをポート15−1〜15−nのいずれかに振り分ける機能を持つ。   The distribution protocol processing unit 12 has a function of distributing a packet flowing in from the input port 16 to one of the ports 15-1 to 15-n by the packet distribution logic designated by the control unit 11.

振り分け論理としては、一般的にDA[Destination MAC(Media Access Control:媒体アクセス制御)アドレス]振り分け(DAによる振り分け)、SA(Source MACアドレス)振り分け(SAによる振り分け)、DA+SA振り分け(DAとSAとの排他的論理和による振り分け)がある。   As distribution logic, generally, DA [Destination MAC (Media Access Control) address] distribution (distribution by DA), SA (Source MAC address) distribution (distribution by SA), DA + SA distribution (DA and SA) Distribution by exclusive OR).

単純に流入したパケットを順番にポートに振り分けることは、経路による一部パケットの遅延や逆転等が発生するので行っていない。振り分け論理そのものについては、本発明とは直接関係しないので、その詳細な説明を省略する。   Simply distributing incoming packets to ports in order is not done because some packets are delayed or reversed by the route. Since the distribution logic itself is not directly related to the present invention, its detailed description is omitted.

廃棄カウンタ13は入力ポート16からパケットが流入した時に、ポート15−1〜15−nにパケットを流出させる場合、ポート15−1〜15−nに流出させることができずに廃棄されたパケットをカウントする機能を持つ。入力ポート16の流量がすべてのポート15−1〜15−nの流量の合計値より大きく、パケットを振り分けることができずに廃棄された場合、振り分けプロトコル処理部12によって特定のパケットが、ポート15−1〜15−nが持つ流量を超えて振り分けられ、廃棄された時に廃棄カウンタ13がカウントされる。   When a packet flows out to the ports 15-1 to 15-n when a packet flows in from the input port 16, the discard counter 13 cannot discard the packets that cannot be discharged to the ports 15-1 to 15-n. Has the function to count. When the flow rate of the input port 16 is larger than the total value of the flow rates of all the ports 15-1 to 15 -n and the packet cannot be distributed and is discarded, a specific packet is transferred to the port 15 by the distribution protocol processing unit 12. The disposal counter 13 is counted when it is sorted and discarded beyond the flow rate of -1 to 15-n.

ポートカウンタ14は各ポート15−1〜15−nの流量をカウントする機能を持つ。ポート15−1〜15−nは、リンクアグリゲーションを行うポートである   The port counter 14 has a function of counting the flow rates of the ports 15-1 to 15-n. Ports 15-1 to 15-n are ports that perform link aggregation.

多くのリンクアグリゲーションを扱うネットワーク装置においては、1つのリンクアグリゲーションに対して保守者の指定によって自由に複数のポートを割り当てることができる。つまり、ポート15−1〜15−nは保守者によって複数のポートを増設し、または減設することができる。   In a network apparatus that handles many link aggregations, a plurality of ports can be freely assigned to one link aggregation according to the designation of a maintenance person. That is, the ports 15-1 to 15-n can be increased or decreased by a maintenance person.

尚、本実施例ではリンクアグリゲーション回路1内に制御部11があるが、振り分けプロトコル処理部12に任意の振り分け論理を設定することができ、廃棄カウンタ13及びポートカウンタ14を定期的に監視することができるのであれば、リンクアグリゲーション回路1の外部装置として設置してもよい。また、ポートカウンタ14は、一般に、RMON(Remote network MONitoring)[RFC(Request For Comments)1757]、RMON2(RFC2021)で知られる詳細カウンタによって、より精度の高い帯域情報を使用してもよい。   In this embodiment, the control unit 11 is provided in the link aggregation circuit 1. However, an arbitrary distribution logic can be set in the distribution protocol processing unit 12, and the discard counter 13 and the port counter 14 are regularly monitored. If possible, it may be installed as an external device of the link aggregation circuit 1. Further, the port counter 14 may use band information with higher accuracy by a detailed counter generally known as RMON (Remote network MONITORING) [RFC (Request For Comments) 1757] or RMON2 (RFC2021).

図2は図1の制御部11の動作を示すフローチャートである。これら図1及び図2を参照して本発明の一実施例によるリンクアグリゲーション振り分け論理最適化法について説明する。   FIG. 2 is a flowchart showing the operation of the control unit 11 of FIG. A link aggregation distribution logic optimization method according to an embodiment of the present invention will be described with reference to FIGS.

制御部11はポート15−1〜15−nの廃棄カウンタ13の閾値の初期値、及びポートカウンタ14の評価値を設定する(図2ステップS1)。ここで、廃棄カウンタ13の閾値をc、カウンタ値閾値をθとする。また、ステップS1の処理では初期の振り分け論理を設定する。振り分け論理がα0 〜αm ある時、現時点での最適なプロトコル値αmax をα0 として、設定値αはα0 とする。さらに、ステップS1の処理では初期の単位時間を設定する。この時の単位時間をtとする。 The control unit 11 sets the initial value of the threshold value of the discard counter 13 of the ports 15-1 to 15-n and the evaluation value of the port counter 14 (step S1 in FIG. 2). Here, the threshold value of the discard counter 13 is c, and the counter value threshold value is θ. In the process of step S1, an initial distribution logic is set. When the sorting logic is alpha 0 to? M, the optimum protocol value alpha max at present as alpha 0, the set value alpha is set to alpha 0. Furthermore, an initial unit time is set in the process of step S1. The unit time at this time is assumed to be t.

続いて、制御部11は上記の単位時間t分だけ時間待ちを行う(図2ステップS2)。また、制御部11は単位時間t内でも廃棄カウンタ値cn が閾値cを越えた場合、次のステップS3の処理に遷移する。 Subsequently, the control unit 11 waits for the unit time t (step S2 in FIG. 2). If the discard counter value c n exceeds the threshold value c even within the unit time t, the control unit 11 transitions to the next step S3.

次に、制御部11は閾値を確認する(図2ステップS3)。制御部11はこの閾値の確認において、単位時間t内の廃棄カウンタ値cn が閾値cを超えた場合、ステップS5の処理を実施する。 Next, the control part 11 confirms a threshold value (FIG. 2, step S3). When the discard counter value c n within the unit time t exceeds the threshold value c in the confirmation of the threshold value, the control unit 11 performs the process of step S5.

それ以外の場合、リンクアグリゲーションをするポートがP0 〜Pm あり、それぞれの単位時間t内に通過したパケットカウント数をそれぞれX0 〜Xm 、平均値をXp とした時、単位時間t当たりの分散値は、
σ=Σ(Xp −Xn 2 /Xp
である。制御部11は係数β(0<β)をかけた値である現在の評価値θn (θn =β*σ)がθ≦θn である時、ステップS5の処理へ遷移し、それ以外ではステップS4の処理へ遷移する。
In other cases, there are P 0 to P m ports that perform link aggregation, and X 0 to X m are the packet counts that passed within each unit time t, and X p is the unit time t The variance value per unit is
σ = Σ (X p −X n ) 2 / X p
It is. When the current evaluation value θ nn = β * σ), which is a value obtained by multiplying the coefficient β (0 <β), is θ ≦ θ n , the control unit 11 transitions to the process of step S5, and otherwise Then, the process proceeds to step S4.

制御部11は廃棄カウンタ値cn も閾値cを越えず、評価値θよりも低い遷移であるので、単位時間tをより短く設定し、係数βの値をより大きく設定し、廃棄カウント13の閾値cをより小さく設定する(図2ステップS4)。更新された単位時間をtnew 、係数βをβnew 、廃棄カウント値cをcnew とした場合、
new ←t−e00(0<e00<<t)
βnew ←β−e01(0<e01<<β)
new ←c−e02(0<e101 <<c)
と設定する。但し、tnew 、βnew 、cnew はいずれも下限値を持ち、下限値より小さな値が設定された場合には下限値に置き換えるものとする。
Since the discard counter value c n does not exceed the threshold c and is a transition lower than the evaluation value θ, the control unit 11 sets the unit time t shorter, sets the value of the coefficient β larger, The threshold value c is set smaller (step S4 in FIG. 2). When the updated unit time is t new , the coefficient β is β new , and the discard count value c is c new ,
t new ← t-e 00 ( 0 <e 00 << t)
β new ← β−e 01 (0 <e 01 << β)
c new ← c−e 02 (0 <e 101 << c)
And set. However, t new , β new , and c new all have a lower limit value, and when a value smaller than the lower limit value is set, it is replaced with the lower limit value.

制御部11は最適な振り分け論理を確認する(図2ステップS5)。制御部11は廃棄カウンタ値cn がcn <cで、かつ最適な振り分け論理αmax の廃棄カウンタ値を越える時、現在の振り分け論理αn を最適な振り分け論理αmax とする。 The control unit 11 confirms the optimum distribution logic (step S5 in FIG. 2). The control unit 11 is a drop counter value c n is c n <c, and optimal distribution when exceeding the drop counter value of logical alpha max, the optimum allocation logic alpha max current distribution logic alpha n.

また、制御部11は廃棄カウンタ値cn がc≦cn で、かつ最適な振り分け論理αmax のステップS2の処理の滞在時間より現在のステップS2の処理の滞在時間の方が長い時、現在の振り分け論理αn を最適な振り分け論理αmax とする。 In addition, the control unit 11 determines that the current counter time c n is c ≦ c n and the current stay time of the process of step S2 is longer than the stay time of the process of step S2 of the optimum distribution logic α max. the sorting logic α n and the optimal allocation logic α max.

さらに、制御部11はステップS5で次の振り分け論理を選択する。現在の振り分け論理がαn の時、αn+1 を次の最適な振り分け論理αmax とする。 Further, the control unit 11 selects the next distribution logic in step S5. When the current distribution logic is α n , α n + 1 is set as the next optimal distribution logic α max .

制御部11は現在の振り分け論理αn が最後の振り分け論理αm を超えない時(図2ステップS6)、ステップS2の処理へ遷移し、それ以外の時(図2ステップS6)、ステップS7の処理へ遷移する。 When the current distribution logic α n does not exceed the last distribution logic α m (step S6 in FIG. 2), the control unit 11 makes a transition to the process of step S2, and otherwise (step S6 in FIG. 2) Transition to processing.

制御部11はステップS5の処理で設定した最適な振り分け論理αmax を選択して現在の振り分け論理αn として設定する(図2ステップS7)。この後、制御部11は単位時間tをより大きく設定し、係数βの値をより小さく設定し、廃棄カウント閾値cをより大きく設定する(図2ステップS8)。 The control unit 11 selects the optimum distribution logic α max set in the process of step S5 and sets it as the current distribution logic α n (step S7 in FIG. 2). Thereafter, the control unit 11 sets the unit time t to be larger, sets the value of the coefficient β to be smaller, and sets the discard count threshold c to be larger (step S8 in FIG. 2).

更新された単位時間tをtnew 、係数βをβnew 、廃棄カウント値cをcnew とした場合、
new ←t+e10(0<e00<e10<<t)
βnew ←β+e11(0<e01<e11<<β)
new ←c+e12(0<e101 <e12<<c)
と設定する。但し、tnew 、βnew 、cnew はそれぞれ上限値を持ち、上限値より大きな値が設定された場合には上限値に置き換えるものとする。
When the updated unit time t is t new , the coefficient β is β new , and the discard count value c is c new ,
t new ← t + e 10 (0 <e 00 <e 10 << t)
β new ← β + e 11 (0 <e 01 <e 11 << β)
c new ← c + e 12 (0 <e 101 <e 12 << c)
And set. However, t new , β new , and c new each have an upper limit value, and when a value larger than the upper limit value is set, it is replaced with the upper limit value.

このように、本実施例では、廃棄されたパケットをカウントする廃棄カウンタ13及び各ポート15−1〜15−nの流量をカウントするポートカウンタ14各々の内容によって不適切な振り分け論理が選択されたことを自動的に検出し、その検出結果に応じて振り分けプロトコル処理部12に適切な振り分け論理を設定しているので、時間経過に伴うパケットの性質の変化に対応した振り分け論理を選択することができる。   Thus, in this embodiment, an inappropriate distribution logic is selected depending on the contents of the discard counter 13 that counts discarded packets and the port counter 14 that counts the flow rates of the ports 15-1 to 15-n. Since an appropriate distribution logic is set in the distribution protocol processing unit 12 in accordance with the detection result, it is possible to select a distribution logic corresponding to a change in packet properties over time. it can.

また、本実施例では、上記のステップS2で廃棄カウンタ13の値と閾値とを見て待ち時間より速くステップS3の処理を行うので、最適な振り分け論理を選択する処理が廃棄カウンタ13の値と閾値とを見ない場合と比べて高速に比較することができる。   In the present embodiment, the process of step S3 is performed faster than the waiting time by looking at the value of the discard counter 13 and the threshold value in the above step S2, so that the process of selecting the optimum distribution logic is the value of the discard counter 13 Compared to the case where the threshold value is not seen, the comparison can be made at high speed.

さらに、本実施例では、上記の効果を発揮するために、使用する振り分け論理を限定していないので、どのような振り分け論理にでも適用するこができる。   Furthermore, in the present embodiment, the distribution logic to be used is not limited in order to exert the above-described effect, so that any distribution logic can be applied.

本発明の一実施例によるネットワーク装置におけるリングアグリゲーション回路の構成を示すブロック図である。It is a block diagram which shows the structure of the ring aggregation circuit in the network device by one Example of this invention. 図1の制御部の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the control part of FIG.

符号の説明Explanation of symbols

1 リングアグリゲーション回路
11 制御部
12 プロトコル処理部
13 廃棄カウンタ
14 ポートカウンタ
15−1〜15−n リンクアグリゲーションポート
16 入力ポート
1 Ring aggregation circuit
11 Control unit
12 Protocol processing part
13 Discard counter
14 port counter 15-1 to 15-n link aggregation port
16 input ports

Claims (11)

ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーションを使用するレイヤ2を扱うリンクアグリゲーション回路であって、
前記リンクアグリゲーションのための複数のポートと、MAC(Media Access Control)振り分け論理を自動的に最適化する制御手段と、その最適化したMAC振り分け論理にて前記複数のポートに流入パケットを振り分ける振り分け処理手段とを有することを特徴とするリンクアグリゲーション回路。
A link aggregation circuit that handles layer 2 using link aggregation that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link,
A plurality of ports for link aggregation, control means for automatically optimizing MAC (Media Access Control) distribution logic, and distribution processing for distributing incoming packets to the plurality of ports by the optimized MAC distribution logic And a link aggregation circuit.
廃棄されたパケットをカウントする廃棄カウンタと、前記複数のポート各々の流量をカウントするポートカウンタとを含み、
前記制御手段は、前記廃棄カウンタ及び前記ポートカウンタ各々の内容に基づいてMAC振り分け論理を最適化し、その最適化したMAC振り分け論理を前記振り分け処理手段に設定することを特徴とする請求項1記載のリンクアグリゲーション回路。
A discard counter that counts discarded packets, and a port counter that counts the flow rate of each of the plurality of ports,
2. The control unit according to claim 1, wherein the control unit optimizes a MAC distribution logic based on contents of the discard counter and the port counter, and sets the optimized MAC distribution logic in the distribution processing unit. Link aggregation circuit.
前記制御手段は、前記廃棄カウンタの値と予め設定された閾値とを比較して前記最適化したMAC振り分け論理を前記振り分け処理手段に設定するための所定時間間隔の待ち時間より速く前記閾値の確認処理を行うことを特徴とする請求項2記載のリンクアグリゲーション回路。   The control means compares the value of the discard counter with a preset threshold value and confirms the threshold faster than a waiting time of a predetermined time interval for setting the optimized MAC distribution logic in the distribution processing means. 3. The link aggregation circuit according to claim 2, wherein processing is performed. 前記制御手段は、前記廃棄カウンタ及び前記ポートカウンタ各々の内容に基づいて予め保持された複数のMAC振り分け論理の中から最適なMAC振り分け論理を選択することを特徴とする請求項2または請求項3記載のリンクアグリゲーション回路。   The said control means selects the optimal MAC distribution logic from the some MAC distribution logic currently hold | maintained beforehand based on the content of each of the said discard counter and the said port counter. The link aggregation circuit described. ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーションを使用するレイヤ2を扱うリンクアグリゲーション回路であって、
前記リンクアグリゲーションのための複数のポートと、廃棄されたパケットをカウントする廃棄カウンタと、前記複数のポート各々の流量をカウントするポートカウンタと、予め設定された振り分け論理にて前記複数のポートに流入パケットを振り分ける振り分け処理手段と、前記廃棄カウンタ及び前記ポートカウンタ各々の内容に基づいて不適切な振り分け論理が選択されたことを検出しかつその検出結果に応じて前記振り分け処理手段に適切な振り分け論理を設定する制御手段とを有することを特徴とするリンクアグリゲーション回路。
A link aggregation circuit that handles layer 2 using link aggregation that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link,
A plurality of ports for link aggregation, a discard counter that counts discarded packets, a port counter that counts the flow rate of each of the plurality of ports, and flows into the plurality of ports by a preset distribution logic A distribution processing means for distributing packets, and detecting that an inappropriate distribution logic is selected based on the contents of each of the discard counter and the port counter, and an appropriate distribution logic for the distribution processing means according to the detection result And a control means for setting the link aggregation circuit.
請求項1から請求項5のいずれかに記載のリンクアグリゲーション回路を有することを特徴とするネットワーク装置。   A network apparatus comprising the link aggregation circuit according to claim 1. ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーションを使用するレイヤ2を扱うリンクアグリゲーション回路に用いるリンクアグリゲーション振り分け論理最適化法であって、
前記リンクアグリゲーション回路が、MAC(Media Access Control)振り分け論理を自動的に最適化する制御処理と、その最適化したMAC振り分け論理にて前記リンクアグリゲーションのための前記複数のポートに流入パケットを振り分ける振り分け処理とを実行することを特徴とするリンクアグリゲーション振り分け論理最適化法。
A link aggregation distribution logic optimization method used in a link aggregation circuit that handles layer 2 that uses link aggregation that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link. ,
The link aggregation circuit automatically optimizes MAC (Media Access Control) distribution logic, and distributes inflow packets to the plurality of ports for link aggregation using the optimized MAC distribution logic. A link aggregation distribution logic optimization method characterized by executing processing.
前記リンクアグリゲーション回路に、廃棄されたパケットをカウントする廃棄カウンタと、前記複数のポート各々の流量をカウントするポートカウンタとを設け、
前記リンクアグリゲーション回路が、前記制御処理において、前記廃棄カウンタ及び前記ポートカウンタ各々の内容に基づいてMAC振り分け論理を最適化し、その最適化したMAC振り分け論理を前記振り分け処理に設定することを特徴とする請求項7記載のリンクアグリゲーション振り分け論理最適化法。
The link aggregation circuit is provided with a discard counter that counts discarded packets, and a port counter that counts the flow rate of each of the plurality of ports,
In the control process, the link aggregation circuit optimizes a MAC distribution logic based on contents of the discard counter and the port counter, and sets the optimized MAC distribution logic in the distribution process. The link aggregation distribution logic optimization method according to claim 7.
前記リンクアグリゲーション回路が、前記制御処理において、前記廃棄カウンタの値と予め設定された閾値とを比較して前記最適化したMAC振り分け論理を前記振り分け処理に設定するための所定時間間隔の待ち時間より速く前記閾値の確認処理を行うことを特徴とする請求項8記載のリンクアグリゲーション振り分け論理最適化法。   In the control process, the link aggregation circuit compares the value of the discard counter with a preset threshold value and sets the optimized MAC distribution logic in the distribution process based on a waiting time of a predetermined time interval. 9. The link aggregation distribution logic optimization method according to claim 8, wherein the threshold value confirmation process is performed quickly. 前記リンクアグリゲーション回路が、前記制御処理において、前記廃棄カウンタ及び前記ポートカウンタ各々の内容に基づいて予め保持された複数のMAC振り分け論理の中から最適なMAC振り分け論理を選択することを特徴とする請求項8または請求項9記載のリンクアグリゲーション振り分け論理最適化法。   The link aggregation circuit, in the control process, selects an optimum MAC distribution logic from a plurality of MAC distribution logics held in advance based on contents of the discard counter and the port counter. Item 10. The link aggregation distribution logic optimization method according to item 8 or claim 9. ネットワークを構成する複数のリンクを理論的に一つのリンクとして取り扱うことで高速なパケット通信を可能とするリンクアグリゲーションを使用するレイヤ2を扱うリンクアグリゲーション回路に用いるリンクアグリゲーション振り分け論理最適化法であって、
前記リンクアグリゲーション回路に、前記リンクアグリゲーションのための複数のポートと、廃棄されたパケットをカウントする廃棄カウンタと、前記複数のポート各々の流量をカウントするポートカウンタとを設け、
前記リンクアグリゲーション回路が、予め設定された振り分け論理にて前記複数のポートに流入パケットを振り分ける振り分け処理と、前記廃棄カウンタ及び前記ポートカウンタ各々の内容に基づいて不適切な振り分け論理が選択されたことを検出しかつその検出結果に応じて前記振り分け処理に適切な振り分け論理を設定する制御処理とを実行することを特徴とするリンクアグリゲーション振り分け論理最適化法。
A link aggregation distribution logic optimization method used in a link aggregation circuit that handles layer 2 that uses link aggregation that enables high-speed packet communication by theoretically treating a plurality of links constituting a network as one link. ,
The link aggregation circuit includes a plurality of ports for the link aggregation, a discard counter that counts discarded packets, and a port counter that counts the flow rate of each of the plurality of ports,
The link aggregation circuit selects a distribution process that distributes inflow packets to the plurality of ports using a predetermined distribution logic, and inappropriate distribution logic is selected based on the contents of the discard counter and the port counter. And a control process for setting a distribution logic suitable for the distribution process in accordance with the detection result.
JP2006350808A 2006-12-27 2006-12-27 Link aggregation circuit, and method for optimizing link aggregation access control logic Pending JP2008166881A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006350808A JP2008166881A (en) 2006-12-27 2006-12-27 Link aggregation circuit, and method for optimizing link aggregation access control logic

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006350808A JP2008166881A (en) 2006-12-27 2006-12-27 Link aggregation circuit, and method for optimizing link aggregation access control logic

Publications (1)

Publication Number Publication Date
JP2008166881A true JP2008166881A (en) 2008-07-17

Family

ID=39695783

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006350808A Pending JP2008166881A (en) 2006-12-27 2006-12-27 Link aggregation circuit, and method for optimizing link aggregation access control logic

Country Status (1)

Country Link
JP (1) JP2008166881A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010103616A (en) * 2008-10-21 2010-05-06 Oki Networks Co Ltd Communication device, communication method, and program
US8565087B2 (en) 2009-11-12 2013-10-22 Hitachi, Ltd. Apparatus having packet allocation function and packet allocation method
CN103763210A (en) * 2014-01-22 2014-04-30 杭州华三通信技术有限公司 Flow load sharing method and device based on link aggregation

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010103616A (en) * 2008-10-21 2010-05-06 Oki Networks Co Ltd Communication device, communication method, and program
US8565087B2 (en) 2009-11-12 2013-10-22 Hitachi, Ltd. Apparatus having packet allocation function and packet allocation method
CN103763210A (en) * 2014-01-22 2014-04-30 杭州华三通信技术有限公司 Flow load sharing method and device based on link aggregation
CN103763210B (en) * 2014-01-22 2017-03-08 杭州华三通信技术有限公司 A kind of flow load sharing method and apparatus based on link aggregation

Similar Documents

Publication Publication Date Title
CN111316605B (en) Layer 3 fair rate congestion control notification
US8520517B2 (en) Switch fabric end-to-end congestion avoidance mechanism
CN107204931B (en) Communication device and method for communication
US8072888B2 (en) Controlling congestion in a packet switched data network
CN111788803B (en) Flow management in a network
US8867360B2 (en) Method and apparatus for lossless behavior for multiple ports sharing a buffer pool
TWI543568B (en) Reducing headroom
JP2017034678A5 (en)
US9350665B2 (en) Congestion mitigation and avoidance
JP2004522337A (en) Congestion management in computer networks
US6977943B2 (en) Method and system for traffic management in packet networks using random early marking
JP4726978B2 (en) Congestion control device and congestion control method
EP1704491B1 (en) A method and systems for resource bunlding in a communications network
JP2008166881A (en) Link aggregation circuit, and method for optimizing link aggregation access control logic
US20140362706A1 (en) Method of determining packet path in vlan, and vlan system using energy saving path
CN108243117B (en) Flow monitoring method and device and electronic equipment
Simaiya et al. IRED algorithm for improvement in performance of mobile ad hoc networks
JP4046228B2 (en) Flow control method and frame processing apparatus
CN114499735B (en) Service transmission method, system and computer readable storage medium
JP5788827B2 (en) Communication device
JP5992862B2 (en) Frame marking circuit
JP2001244968A (en) Packet transfer rate determining method and packet transfer device
JP2006319748A (en) Method, program and system for controlling congestion