[go: up one dir, main page]

JP2015050479A - Packet switch, packet switching method and band control program - Google Patents

Packet switch, packet switching method and band control program Download PDF

Info

Publication number
JP2015050479A
JP2015050479A JP2013178526A JP2013178526A JP2015050479A JP 2015050479 A JP2015050479 A JP 2015050479A JP 2013178526 A JP2013178526 A JP 2013178526A JP 2013178526 A JP2013178526 A JP 2013178526A JP 2015050479 A JP2015050479 A JP 2015050479A
Authority
JP
Japan
Prior art keywords
flow
unit
packet
input
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.)
Pending
Application number
JP2013178526A
Other languages
Japanese (ja)
Inventor
久野 隆治
Takaharu Kuno
隆治 久野
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.)
O F NETWORKS CO Ltd
Fujikura Ltd
Oki Electric Industry Co Ltd
Original Assignee
O F NETWORKS CO Ltd
Fujikura Ltd
Oki Electric Industry Co 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 O F NETWORKS CO Ltd, Fujikura Ltd, Oki Electric Industry Co Ltd filed Critical O F NETWORKS CO Ltd
Priority to JP2013178526A priority Critical patent/JP2015050479A/en
Publication of JP2015050479A publication Critical patent/JP2015050479A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

【課題】 入力IF部及び出力IF部間の転送量を抑え、フロー毎の帯域保証やフロー間の帯域の公平性を実現できる、多くのフローを収容可能なパケット交換装置を提供する。【解決手段】 各入力IF部は、入力パケットのフローを識別するフロー識別部と、フローに係るパケットをバッファリングする予定のパケット交換部の出力バッファが輻輳状態にあること、入力流量が閾値を超えていることを条件にフロー毎に流量制限を行う流量制限部と、上記出力バッファの輻輳及び又は非輻輳状態の通知を受けてその情報を流量制限部に設定する輻輳指示部とを備える。出力IF部に関連して、出力バッファの状態を周期的に監視し、各入力IF部に通知する状態通知部を設けている。【選択図】 図2PROBLEM TO BE SOLVED: To provide a packet switching apparatus capable of accommodating a large number of flows, which can suppress a transfer amount between an input IF unit and an output IF unit and realize a bandwidth guarantee for each flow and a fairness of a bandwidth between flows. Each input IF unit includes a flow identification unit that identifies a flow of an input packet and an output buffer of a packet switching unit that is scheduled to buffer a packet related to the flow in a congested state. A flow restriction unit that restricts the flow rate for each flow on the condition that it exceeds the limit, and a congestion instruction unit that receives notification of the congestion and / or non-congestion state of the output buffer and sets the information in the flow restriction unit. In relation to the output IF unit, a status notification unit that periodically monitors the status of the output buffer and notifies each input IF unit is provided. [Selection] Figure 2

Description

本発明は、パケット交換装置、パケット交換方法及び帯域制御プログラムに関し、例えば、パケット交換方式を利用した通信網で用いられるノード装置に適用し得るものである。   The present invention relates to a packet switching device, a packet switching method, and a bandwidth control program, and can be applied to, for example, a node device used in a communication network using a packet switching method.

LAN(Local Area Network)やインターネットなどのネットワークは、パケット交換方式と呼ばれる通信方式を利用した通信網である。これらのネットワークでは、ノード装置としてパケット交換機が使用される。パケット交換方式は情報をパケットと呼ばれる単位に分割して送信する。このため、パケット単位での待ち合わせが可能となり、複数のユーザで回線を共有し、効率良く並列に転送することができる。   A network such as a LAN (Local Area Network) or the Internet is a communication network using a communication method called a packet switching method. In these networks, a packet switch is used as a node device. In the packet switching method, information is divided into units called packets and transmitted. For this reason, it becomes possible to wait in units of packets, and a line can be shared by a plurality of users and efficiently transferred in parallel.

一方、近年、ネットワークを利用して提供されるサービスやアプリケーションの多様化に伴って、様々な通信品質を保証する必要性が高まってきている。通信品質を表す指標には、データ廃棄率、伝搬遅延時間、伝搬遅延ゆらぎなどがある。例えば、リアルタイム性を必要とする音声通信や動画通信では、低廃棄率、低遅延及び低遅延ゆらぎの保証が要求される。一方、それほどリアルタイム性を必要としないデータ通信では低廃棄率の保証が要求される。   On the other hand, in recent years, with the diversification of services and applications provided using a network, there is an increasing need to guarantee various communication qualities. The index representing the communication quality includes a data discard rate, a propagation delay time, a propagation delay fluctuation, and the like. For example, in voice communication and video communication that require real-time performance, guarantee of a low discard rate, low delay, and low delay fluctuation is required. On the other hand, a low discard rate guarantee is required for data communications that do not require real-time performance.

サービスやアプリケーションの違いによって、それぞれの通信品質レベルを保証するために、サービスやアプリケーション毎に優先度を決め、その優先度に従って、パケットを出力する優先制御機能を有するパケット交換装置の要求が高まってきている。   Due to differences in services and applications, in order to guarantee the respective communication quality levels, priority is determined for each service and application, and the demand for packet switching devices having a priority control function for outputting packets according to the priority has increased. ing.

また、通信事業者が利用者に対し、通信サービスに対応する最低帯域を保証したり、最大制限帯域で利用可能な帯域を制限したりする帯域制御機能も必要となってきている。   In addition, a bandwidth control function is required for a communication carrier to guarantee a minimum bandwidth corresponding to a communication service to a user and to limit a usable bandwidth by a maximum restricted bandwidth.

そこで、このような優先制御機能や帯域制御機能を有するパケット交換装置が提案されている(例えば、特許文献1参照)。特許文献1に開示されているパケット交換装置は、複数の入力インタフェース部、複数の出力インタフェース部及びパケット交換部を備えている。入力インタフェース部は、受信したユーザパケットを、優先度に従ってパケット交換部に転送する。パケット交換部は、入力インタフェース部から受け取ったユーザパケットを、その宛先アドレスに基づいて、対応する出力インタフェース部に送る。出力インタフェース部は、ユーザパケットの優先度に応じたパケットキューと、それらのキューをグループ化したキューグループを有している。各キューグループには、通信サービス契約で定められた最低保証帯域が割り当てられていて、各キューグループからの読出し帯域を制御することにより、最低帯域の保証や、利用者間での余剰帯域の割り当ての公平性を実現している。また、キューグループからの読み出しの際に、キューグループ内の優先度に従って、読出し制御することにより、通信品質レベルが保証される。   Therefore, a packet switching apparatus having such a priority control function and a bandwidth control function has been proposed (for example, see Patent Document 1). The packet switching device disclosed in Patent Document 1 includes a plurality of input interface units, a plurality of output interface units, and a packet switching unit. The input interface unit transfers the received user packet to the packet switching unit according to the priority. The packet switching unit sends the user packet received from the input interface unit to the corresponding output interface unit based on the destination address. The output interface unit has a packet queue corresponding to the priority of user packets and a queue group in which these queues are grouped. Each queue group is allocated the minimum guaranteed bandwidth specified in the communication service contract. By controlling the read bandwidth from each queue group, the minimum bandwidth is guaranteed and the surplus bandwidth is allocated between users. Realization of fairness. Further, when reading from the queue group, the communication quality level is guaranteed by performing read control according to the priority in the queue group.

しかしながら、特許文献1に開示されているパケット交換装置では、複数の入力インタフェース部から1つの出力インタフェース部にパケットを送るときに、各入力インタフェース部からのパケットの合計が、パケット交換部と、出力インタフェース部との間の伝送帯域を超過してしまうと、出力インタフェース部にパケットが到着する前に、パケット廃棄が発生することになる。このため、帯域制御が不完全になり、最低帯域の保証や、各利用者間の公平性の維持したい場合、その実現が困難になる。   However, in the packet switching device disclosed in Patent Document 1, when a packet is sent from a plurality of input interface units to one output interface unit, the total number of packets from each input interface unit is the packet switching unit and the output If the transmission bandwidth with the interface unit is exceeded, packet discarding occurs before the packet arrives at the output interface unit. For this reason, the bandwidth control becomes incomplete, and it is difficult to realize the minimum bandwidth guarantee and the fairness among users.

この課題を解決した発明として、特許文献2に開示されているパケット交換装置がある。特許文献2に開示されているパケット交換装置は、出力インタフェース部において、各入力インタフェース部から受け取る送信要求量に応じて送信許可量を算出し、入力インタフェース部では、送信許可量に応じて、送信を行う。出力インタフェース部で帯域を管理されるので、入力インタフェース部と出力インタフェース部との間など、出力インタフェース部が受け取るまでのパケットの廃棄がなくなり、各契約の最低帯域の保証や、各利用者間の公平性の維持が実現される。   As an invention that solves this problem, there is a packet switching device disclosed in Patent Document 2. The packet switching device disclosed in Patent Document 2 calculates a transmission permission amount according to a transmission request amount received from each input interface unit in an output interface unit, and the input interface unit performs transmission according to the transmission permission amount. I do. Since the bandwidth is managed by the output interface unit, packets are not discarded until the output interface unit receives them, such as between the input interface unit and the output interface unit, guaranteeing the minimum bandwidth of each contract, and between users Maintaining fairness is achieved.

特開平11−346246JP-A-11-346246 特開2011−82912JP2011-82912

しかしながら、特許文献2に開示されているパケット交換装置では、パケットキュー毎の送信要求量を入力インタフェース部から出力インタフェース部に送信し、出力インタフェース部で各送信要求量と最低保証帯域などの情報から各パケットキューの送信許可量を計算し、そのパケットキュー毎の送信許可量を出力インタフェース部から入力インタフェース部へ送信する必要がある。そのため、パケットキュー及びパケットキューグループが多くなると、入力インタフェース部から出力インタフェース部への転送情報の増大や、出力インタフェース部での計算処理負荷の増大等の要因により、パケット交換装置の実現が困難になる。   However, in the packet switching device disclosed in Patent Document 2, the transmission request amount for each packet queue is transmitted from the input interface unit to the output interface unit, and the output interface unit uses information such as each transmission request amount and the minimum guaranteed bandwidth. It is necessary to calculate the transmission permission amount of each packet queue and transmit the transmission permission amount for each packet queue from the output interface unit to the input interface unit. For this reason, when the number of packet queues and packet queue groups increases, it becomes difficult to realize a packet switching device due to factors such as an increase in transfer information from the input interface unit to the output interface unit and an increase in calculation processing load on the output interface unit. Become.

本発明は、上記事情に鑑みてなされたもので、入力インタフェース部及び出力インタフェース部間の転送情報量を低く抑え、フロー毎(ここでのフローはフロー群であっても良い)の帯域保証や、フロー間の帯域の公平性を実現できる、多くのフローを経済的に収容可能なパケット交換装置、パケット交換方法及び帯域制御プログラムを提供しようとしたものである。   The present invention has been made in view of the above circumstances, suppresses the amount of transfer information between the input interface unit and the output interface unit, and guarantees bandwidth for each flow (the flow here may be a flow group). An object of the present invention is to provide a packet switching apparatus, a packet switching method, and a bandwidth control program capable of realizing a fairness of bandwidth between flows and economically accommodating many flows.

第1の本発明は、パケットが入力される複数の入力インタフェース手段と、パケットを出力する複数の出力インタフェース手段と、上記各入力インタフェース手段からのパケットを宛先に応じた上記出力インタフェース手段に出力する、複数の入力バッファ、パケットスイッチ及び複数の出力バッファを有するパケット交換手段とを備えたパケット交換装置において、(1)上記各入力インタフェース手段が、(1−1)入力されたパケットのフローを識別するフロー識別部と、(1−2)フロー毎に流量制限を行うものであって、フローに係るパケットをバッファリングする予定の上記出力バッファが輻輳状態にあること、並びに、入力流量が閾値を超えていることを条件に流量制限を行う流量制限部と、(1−3)フローに係るパケットをバッファリングする予定の上記出力バッファの輻輳及び又は非輻輳状態の通知を受けて上記流量制限部に上記出力バッファの状態を設定する輻輳指示部とを備え、(2)上記各出力インタフェース手段に関連して、当該出力インタフェース手段に対応する上記出力バッファの状態を周期的に監視し、上記出力バッファの輻輳及び又は非輻輳状態を、上記出力バッファがバッファリングするパケットの送信元の上記各入力インタフェース手段に通知する状態通知部を設けたことを特徴とする。   According to a first aspect of the present invention, a plurality of input interface means for inputting a packet, a plurality of output interface means for outputting a packet, and a packet from each of the input interface means is output to the output interface means corresponding to a destination. A packet switching device comprising a plurality of input buffers, a packet switch, and a packet switching means having a plurality of output buffers. (1) Each of the input interface means (1-1) identifies a flow of an input packet. (1-2) The flow is limited for each flow, the output buffer that is scheduled to buffer packets related to the flow is in a congested state, and the input flow rate has a threshold value. A flow restriction unit that restricts the flow on the condition that it exceeds, and (1-3) a packet related to the flow A congestion instruction unit for receiving a notification of congestion and / or non-congestion state of the output buffer to be buffered, and setting the state of the output buffer in the flow restriction unit, and (2) related to each output interface means And periodically monitoring the state of the output buffer corresponding to the output interface means, and each input interface of the transmission source of the packet buffered by the output buffer for the congestion and / or non-congestion state of the output buffer. A state notifying unit for notifying the means is provided.

第2の本発明の帯域制御プログラムは、パケットが入力される複数の入力インタフェース手段と、パケットを出力する複数の出力インタフェース手段と、上記各入力インタフェース手段からのパケットを宛先に応じた上記出力インタフェース手段に出力する、複数の入力バッファ、パケットスイッチ及び複数の出力バッファを有するパケット交換手段とを備えたパケット交換装置に搭載されるコンピュータを、(1)入力されたパケットのフローを識別するフロー識別部と、(2)フロー毎に流量制限を行うものであって、フローに係るパケットをバッファリングする予定の上記出力バッファが輻輳状態にあること、並びに、入力流量が閾値を超えていることを条件に流量制限を行う流量制限部と、(3)フローに係るパケットをバッファリングする予定の上記出力バッファの輻輳及び又は非輻輳状態の通知を受けて上記流量制限部に上記出力バッファの状態を設定する輻輳指示部と、(4)上記出力バッファの状態を周期的に監視し、上記出力バッファの輻輳及び又は非輻輳状態を、上記出力バッファがバッファリングするパケットの送信元の上記各入力インタフェース手段に通知する状態通知部として機能させることを特徴とする。   A bandwidth control program according to a second aspect of the present invention includes a plurality of input interface means for inputting a packet, a plurality of output interface means for outputting the packet, and the output interface according to the destination of the packet from each of the input interface means (1) a flow identification for identifying a flow of an input packet; (1) identifying a flow of an input packet; and a computer mounted on a packet switching device having a plurality of input buffers, a packet switch, and a packet switching unit having a plurality of output buffers. (2) The flow rate is limited for each flow, the output buffer that is scheduled to buffer packets related to the flow is in a congested state, and the input flow rate exceeds the threshold value. A flow restriction unit that restricts the flow rate to the condition; and (3) buffering packets related to the flow. A congestion instruction unit for receiving the notification of congestion and / or non-congestion state of the output buffer to be set, and setting the state of the output buffer in the flow restriction unit; and (4) periodically monitoring the state of the output buffer. The output buffer is configured to function as a state notification unit that notifies the input interface means of the transmission source of the packet buffered by the output buffer.

第3の本発明は、パケットが入力される複数の入力インタフェース手段と、パケットを出力する複数の出力インタフェース手段と、上記各入力インタフェース手段からのパケットを宛先に応じた上記出力インタフェース手段に出力する、複数の入力バッファ、パケットスイッチ及び複数の出力バッファを有するパケット交換手段とを備えたパケット交換装置におけるパケット交換方法において、(1)上記各入力インタフェース手段に設けられたフロー識別部は、入力されたパケットのフローを識別し、(2)上記各入力インタフェース手段に設けられた流量制限部は、フローに係るパケットをバッファリングする予定の上記出力バッファが輻輳状態にあること、並びに、入力流量が閾値を超えていることを条件に、フロー毎に流量制限を行い、(3)上記各入力インタフェース手段に設けられた輻輳指示部は、フローに係るパケットをバッファリングする予定の上記出力バッファの輻輳及び又は非輻輳状態の通知を受けて上記流量制限部に上記出力バッファの状態を設定し、(4)上記各出力インタフェース手段に関連して設けられた状態通知部は、当該出力インタフェース手段に対応する上記出力バッファの状態を周期的に監視し、上記出力バッファの輻輳及び又は非輻輳状態を、上記出力バッファがバッファリングするパケットの送信元の上記各入力インタフェース手段に通知することを特徴とする。   According to a third aspect of the present invention, a plurality of input interface means for inputting a packet, a plurality of output interface means for outputting a packet, and a packet from each of the input interface means is output to the output interface means corresponding to a destination. In the packet switching method in a packet switching device comprising a plurality of input buffers, a packet switch, and a packet switching means having a plurality of output buffers, (1) the flow identification unit provided in each input interface means is input (2) the flow rate limiting unit provided in each of the input interface means that the output buffer scheduled to buffer the packet related to the flow is in a congested state, and that the input flow rate is The flow is limited for each flow on condition that the threshold is exceeded. (3) The congestion instruction unit provided in each of the input interface means receives the notification of the congestion and / or the non-congestion state of the output buffer that is scheduled to buffer the packet related to the flow, and outputs the output to the flow restriction unit. (4) a status notification unit provided in association with each output interface means periodically monitors the status of the output buffer corresponding to the output interface means, and The congestion and / or non-congestion state is notified to each input interface means of the transmission source of the packet buffered by the output buffer.

本発明によれば、入力インタフェース部及び出力インタフェース部間の転送情報量を低く抑え、フロー毎の帯域保証や、フロー間の帯域の公平性を実現できる、多くのフローを経済的に収容可能なパケット交換装置、パケット交換方法及び帯域制御プログラムを提供できる。   According to the present invention, the amount of transfer information between the input interface unit and the output interface unit can be kept low, the bandwidth can be guaranteed for each flow, and the fairness of the bandwidth between the flows can be economically accommodated. A packet switching device, a packet switching method, and a bandwidth control program can be provided.

第1の実施形態のパケット交換装置の機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the packet switching apparatus of 1st Embodiment. 第1の実施形態のパケット交換装置の動作説明用のブロック図である。It is a block diagram for explaining the operation of the packet switching apparatus according to the first embodiment. 第1の実施形態のパケット交換装置における流量制限方法の説明図(その1)である。It is explanatory drawing (the 1) of the flow volume limiting method in the packet switching apparatus of 1st Embodiment. 第1の実施形態のパケット交換装置における流量制限方法の説明図(その2)である。It is explanatory drawing (the 2) of the flow volume limiting method in the packet switching apparatus of 1st Embodiment. 第1の実施形態のパケット交換装置における、流量制限用の閾値を変更する処理(アルゴリズム)を示すフローチャートである。It is a flowchart which shows the process (algorithm) which changes the threshold value for flow volume restrictions in the packet switching apparatus of 1st Embodiment. 第1の実施形態のパケット交換装置における、閾値超過時に流量制限を受ける優先度を変更する処理(アルゴリズム)を示すフローチャートである。It is a flowchart which shows the process (algorithm) which changes the priority which receives flow volume restrictions when the threshold value is exceeded in the packet switching apparatus of 1st Embodiment. 第1の実施形態のパケット交換装置が流量制限用の閾値を変更する処理を行うことにより輻輳状態を解消できることの説明図である。It is explanatory drawing that the packet switching apparatus of 1st Embodiment can eliminate a congestion state by performing the process which changes the threshold value for flow volume limitation. 第1の実施形態のパケット交換装置が閾値超過時に流量制限を受ける優先度を変更する処理を行うことにより輻輳状態を解消できることの説明図である。It is explanatory drawing that a congestion state can be eliminated by performing the process which the packet switching apparatus of 1st Embodiment changes the priority which receives flow volume restriction | limiting when a threshold value is exceeded. 第2の実施形態のパケット交換装置の機能的な構成を示すブロック図である。It is a block diagram which shows the functional structure of the packet switching apparatus of 2nd Embodiment.

(A)第1の実施形態
以下、本発明によるパケット交換装置、パケット交換方法及び帯域制御プログラムの第1の実施形態を、図面を参照しながら説明する。
(A) First Embodiment Hereinafter, a first embodiment of a packet switching apparatus, a packet switching method, and a bandwidth control program according to the present invention will be described with reference to the drawings.

(A−1)第1の実施形態の構成
図1は、第1の実施形態のパケット交換装置1の機能的な構成を示すブロック図である。第1の実施形態のパケット交換装置1は、全てをハードウェアで構成しても良く、一部をハードウェアで構成し、残部をCPUとCPUが実行するプログラムで構成するようにしても良く、いずれの構成方法を採用した場合であっても、機能的には、図1で表すことができる。例えば、後述するフロー識別部102、流量制限部103、スレーブ側帯域制御部105、マスタ側帯域制御部204などを、CPUとCPUが実行するプログラムで構成することができる。
(A-1) Configuration of the First Embodiment FIG. 1 is a block diagram showing a functional configuration of the packet switching apparatus 1 of the first embodiment. The packet switching device 1 of the first embodiment may be configured entirely by hardware, partially configured by hardware, and the rest by a CPU and a program executed by the CPU. Whichever configuration method is employed, it can be functionally represented in FIG. For example, a flow identification unit 102, a flow rate limiting unit 103, a slave side bandwidth control unit 105, a master side bandwidth control unit 204, and the like, which will be described later, can be configured by a CPU and a program executed by the CPU.

図1において、パケット交換装置1は、複数の入出力インタフェース部2−0〜2−X(Xは2以上の整数)、1つのパケット交換部3を少なくとも有する。複数の入出力インタフェース部2−0〜2−Xと、1つのパケット交換部3とを1ユニットとし、パケット交換装置1が、このようなユニットを複数個有していても良い。   In FIG. 1, the packet switching device 1 includes at least a plurality of input / output interface units 2-0 to 2-X (X is an integer of 2 or more) and one packet switching unit 3. The plurality of input / output interface units 2-0 to 2-X and one packet switching unit 3 may be one unit, and the packet switching apparatus 1 may include a plurality of such units.

図1では、入出力インタフェース部2−0の詳細構成を示しているが、入出力インタフェース部2−0〜2−Xは、同様な内部構成を有する。以下では、複数の入出力インタフェース部2−0〜2−Xを区別する枝番「−0」〜「−X」を適宜省略して、入出力インタフェース部2(2−0〜2−X)の詳細構成を説明する。なお、図1で枝番を省略しているが、入出力インタフェース部2−0の詳細構成を示しているので、正しくは枝番「−0」が付与されるものである。   Although FIG. 1 shows a detailed configuration of the input / output interface unit 2-0, the input / output interface units 2-0 to 2-X have the same internal configuration. In the following, the branch numbers “−0” to “−X” that distinguish the plurality of input / output interface units 2-0 to 2-X are omitted as appropriate, and the input / output interface units 2 (2-0 to 2-X) are omitted. The detailed structure of will be described. Although the branch number is omitted in FIG. 1, since the detailed configuration of the input / output interface unit 2-0 is shown, the branch number “−0” is correctly given.

入出力インタフェース部2は、対応する入力ポートPINから入力されたパケットをパケット交換部3に転送する入力インタフェース部100と、パケット交換部3から受け取ったパケットを出力ポートPOUTに出力する出力インタフェース部200とを有している。   The input / output interface unit 2 transfers the packet input from the corresponding input port PIN to the packet switching unit 3, and the output interface unit 200 outputs the packet received from the packet switching unit 3 to the output port POUT. And have.

パケット交換部3は、入力インタフェース部100−a(aは0〜X)からパケットが入力されると、パケットの宛先を解析し、その宛先に応じた出力インタフェース部200−b(bは0〜X)にパケットを与えるものである。同一の入出力インタフェース部2−aに属する入力インタフェース部100−aからのパケットを、出力インタフェース部200−aに与えることもできるようにパケット交換装置1が構成されていても良く、また、同一の入出力インタフェース部2−aに属する入力インタフェース部100−aからのパケットを、出力インタフェース部200−aに与えることができないようにパケット交換装置1が構成されていても良い。   When a packet is input from the input interface unit 100-a (a is 0 to X), the packet switching unit 3 analyzes the destination of the packet, and the output interface unit 200-b (b is 0 to 0) corresponding to the destination. X) is a packet. The packet switching apparatus 1 may be configured so that packets from the input interface unit 100-a belonging to the same input / output interface unit 2-a can be given to the output interface unit 200-a. The packet switching device 1 may be configured such that packets from the input interface unit 100-a belonging to the input / output interface unit 2-a cannot be given to the output interface unit 200-a.

入力インタフェース部100は、パケット受信部101、フロー識別部102、流量制限部103、スレーブ側帯域制御部105及び送信制御部104を有する。   The input interface unit 100 includes a packet reception unit 101, a flow identification unit 102, a flow rate restriction unit 103, a slave side bandwidth control unit 105, and a transmission control unit 104.

パケット受信部101は、入力ポートPINからの受信パケットを受け取り、フロー識別部102に与えるものである。   The packet receiving unit 101 receives a received packet from the input port PIN and gives it to the flow identifying unit 102.

フロー識別部102は、パケット受信部101からの受信パケットのIPアドレス、ポート番号、優先識別子、その他の情報に基づいてパケット種別を識別し、識別情報とパケットとを後段の流量制限部103に与えるものである。ここで、優先識別子などで定まる優先度の段階は複数段階であれば良く、2段階に限定されない。例えば、優先度0〜7の8段階であっても良い(後述する図6参照)。   The flow identifying unit 102 identifies the packet type based on the IP address, port number, priority identifier, and other information of the received packet from the packet receiving unit 101, and provides the identification information and the packet to the subsequent flow rate limiting unit 103. Is. Here, the priority level determined by the priority identifier may be a plurality of levels, and is not limited to two levels. For example, there may be eight levels of priority 0 to 7 (see FIG. 6 described later).

流量制限部103は、受信したパケットを含め契約ユーザ毎に入力帯域をモニタし、スレーブ側帯域制御部105の輻輳指示部402からの指示に従い、パケット交換部3のいずれかの出力バッファ302の輻輳時には、契約ユーザ毎に予め設定された1つ又は複数の閾値の超過具合によって流量を制限したり、非輻輳時には、流量を制限することなく後段の送信制御部104にパケットを送信したりするものである。また、流量制限部103は、スレーブ側帯域制御部105の流量制限基準設定部403の指示に従って、1又は複数の契約ユーザについて、契約ユーザ毎の閾値を変更したり、流量制限する優先度を切り替えたりするものである。   The flow rate limiting unit 103 monitors the input bandwidth for each contract user including the received packet, and in accordance with an instruction from the congestion instruction unit 402 of the slave side bandwidth control unit 105, the congestion of any output buffer 302 of the packet switching unit 3 Sometimes, the flow rate is limited by exceeding one or a plurality of threshold values set in advance for each contract user, or when non-congested, the packet is transmitted to the transmission control unit 104 in the subsequent stage without limiting the flow rate. It is. Further, the flow restriction unit 103 changes the threshold for each contract user or switches the priority for restricting the flow for one or a plurality of contract users in accordance with an instruction from the flow restriction reference setting unit 403 of the slave side bandwidth control unit 105. It is something to do.

送信制御部104は、入力ポートPINからの契約ユーザ毎のパケットと、後述するマスタ側帯域制御部204の制御パケット送信部412からの制御パケットを多重し、パケット交換部3に送信するものである。   The transmission control unit 104 multiplexes a packet for each contract user from the input port PIN and a control packet from a control packet transmission unit 412 of the master side bandwidth control unit 204 described later, and transmits the multiplexed packet to the packet switching unit 3. .

スレーブ側帯域制御部105は、制御パケット受信部401、輻輳指示部402及び流量制限基準設定部403を有する。   The slave side bandwidth control unit 105 includes a control packet reception unit 401, a congestion instruction unit 402, and a flow rate restriction reference setting unit 403.

制御パケット受信部401は、出力インタフェース部200から与えられた制御パケットを受信するものである。   The control packet receiving unit 401 receives a control packet given from the output interface unit 200.

輻輳指示部402は、パケット交換部3における出力バッファ302−0〜302−Xの輻輳状態に応じて、全契約ユーザに対し、流量制限部103における流量制限を実施するか否かの指示を流量制限部103に対して行うものである。例えば、出力バッファ302−1が輻輳状態であれば、出力バッファ302−1を通過するフローの契約ユーザに対する流量制限を実施する。   The congestion instruction unit 402 instructs all the contract users to execute the flow restriction in the flow restriction unit 103 according to the congestion state of the output buffers 302-0 to 302-X in the packet switching unit 3. This is performed for the restriction unit 103. For example, if the output buffer 302-1 is in a congested state, the flow rate restriction for the contract user of the flow passing through the output buffer 302-1 is performed.

流量制限基準設定部403は、契約ユーザ毎に設定された流量制限部103内の、入力帯域に対し、1又は複数の閾値の設定値を変更したり、若しくは、閾値超過時に制限する優先度の上限値を変更したりするものである。   The flow restriction reference setting unit 403 changes the setting value of one or a plurality of thresholds for the input band in the flow restriction unit 103 set for each contract user, or the priority of restriction when the threshold is exceeded. The upper limit value is changed.

出力インタフェース部200は、受信制御部201、パケット振分部202、
パケット送信部203及びマスタ側帯域制御部204を有する。
The output interface unit 200 includes a reception control unit 201, a packet distribution unit 202,
A packet transmission unit 203 and a master side bandwidth control unit 204 are included.

受信制御部201は、パケット交換部3から出力されたパケットを受信し、その受信したパケットをパケット振分部202に与えるものである。   The reception control unit 201 receives the packet output from the packet switching unit 3 and gives the received packet to the packet sorting unit 202.

パケット振分部202は、受信制御部201からパケットを受け取ると、ユーザパケットか制御パケットかを識別し、ユーザパケットをパケット送信部203に振り分け、制御パケットを入力インタフェース部100のスレーブ側帯域制御部105に振り分けるものである。   When receiving a packet from the reception control unit 201, the packet distribution unit 202 identifies whether it is a user packet or a control packet, distributes the user packet to the packet transmission unit 203, and distributes the control packet to the slave side bandwidth control unit of the input interface unit 100. 105.

パケット送信部203は、パケット振分部202からのユーザパケットを出力ポートPOUTに出力するものである。   The packet transmission unit 203 outputs the user packet from the packet distribution unit 202 to the output port POUT.

マスタ側帯域制御部204は、輻輳状態生成部411と制御パケット送信部412とを有する。   The master side bandwidth control unit 204 includes a congestion state generation unit 411 and a control packet transmission unit 412.

輻輳状態生成部411は、パケット交換部3の出力バッファ輻輳状態をモニタし、スレーブ側帯域制御部105へ輻輳状態を通知するための制御パケットを生成するものである。   The congestion state generation unit 411 monitors the output buffer congestion state of the packet switching unit 3 and generates a control packet for notifying the slave side bandwidth control unit 105 of the congestion state.

制御パケット送信部412は、輻輳状態生成部411が生成した制御パケットを入力インタフェース部100の送信制御部104へ送信するものである。   The control packet transmission unit 412 transmits the control packet generated by the congestion state generation unit 411 to the transmission control unit 104 of the input interface unit 100.

パケット交換部3は、複数の入力バッファ300−0〜300−X、パケットスイッチ301及び複数の出力バッファ302−0〜302−Xを有する。   The packet switching unit 3 includes a plurality of input buffers 300-0 to 300-X, a packet switch 301, and a plurality of output buffers 302-0 to 302-X.

各入力バッファ300−0〜300−Xは、対応する入力インタフェース部100−0〜100−Xから出力されたパケットを受信してバッファリングするものである。   Each of the input buffers 300-0 to 300-X receives and buffers packets output from the corresponding input interface units 100-0 to 100-X.

パケットスイッチ301は、入力バッファ300−0〜300−Xが受信したパケットをその宛先に応じてスイッチングして、該当する出力バッファ302−0〜302−Xに出力するものである。   The packet switch 301 switches the packets received by the input buffers 300-0 to 300-X according to their destinations, and outputs the packets to the corresponding output buffers 302-0 to 302-X.

各出力バッファ302−0〜302−Xは、パケットスイッチ301からのパケットを、対応する出力インタフェース部200−0〜200−Xへ転送するために適宜バッファリングするものである。ここで、出力バッファ302−0〜302−Xの輻輳状態は、対応する出力インタフェース部200−0〜200−Xの輻輳状態生成部411から読み出し可能となされている。   Each of the output buffers 302-0 to 302-X appropriately buffers the packet from the packet switch 301 in order to transfer the packet to the corresponding output interface unit 200-0 to 200-X. Here, the congestion state of the output buffers 302-0 to 302-X can be read from the congestion state generation unit 411 of the corresponding output interface units 200-0 to 200-X.

(A−2)第1の実施形態の動作
次に、第1の実施形態のパケット交換装置1における動作(パケット交換方法)を、図2を参照しながら説明する。
(A-2) Operation of the First Embodiment Next, the operation (packet switching method) in the packet switching device 1 of the first embodiment will be described with reference to FIG.

図2は、動作説明用の図面である。図2では、説明の簡単化を期して、入出力インタフェース部の数が3個であって、同一の入出力インタフェース部2−a(aは0〜X;ここでのXは2)に属する入力インタフェース部100−aからのパケットを、出力インタフェース部200−aに与えることができないようにパケット交換装置1が構成されている場合の例を示している。図2を用い、入出力インタフェース部2−0及び2−1の入力ポートPIN−0及びPIN−1から入力されるパケットを入出力インタフェース部2−2の出力ポートPOUT−2に出力する場合の動作例を説明する。図2では、各入出力インタフェース部2−0〜2−2に関し、動作説明に必要なブロックのみを示している。   FIG. 2 is a drawing for explaining the operation. In FIG. 2, for the sake of simplicity of explanation, the number of input / output interface units is three and belongs to the same input / output interface unit 2-a (a is 0 to X; X here is 2). An example in which the packet switching apparatus 1 is configured so that a packet from the input interface unit 100-a cannot be given to the output interface unit 200-a is shown. When the packet input from the input ports PIN-0 and PIN-1 of the input / output interface units 2-0 and 2-1 is output to the output port POUT-2 of the input / output interface unit 2-2 using FIG. An operation example will be described. In FIG. 2, only the blocks necessary for operation explanation are shown for the input / output interface units 2-0 to 2-2.

ここで、入出力インタフェース部2−0には、契約ユーザAと契約ユーザBのパケットが入力され、入出力インタフェース部2−1には、契約ユーザCと契約ユーザDのパケットが入力されているとする。   Here, the packets of the contract user A and the contract user B are input to the input / output interface unit 2-0, and the packets of the contract user C and the contract user D are input to the input / output interface unit 2-1. And

入出力インタフェース部2−0及び2−1に入力されたユーザパケット(以下、ユーザパケットを単にパケットと呼ぶ)はそれぞれ、パケット受信部101−0、101−1を経た後、フロー識別部102−0、102−1において、各契約ユーザ毎にフロー識別され、流量制限部103−0、103−1に入力される。   User packets input to the input / output interface units 2-0 and 2-1 (hereinafter, user packets are simply referred to as packets) pass through the packet receiving units 101-0 and 101-1, respectively, and then flow identification units 102- At 0 and 102-1, the flow is identified for each contract user and input to the flow rate restriction units 103-0 and 103-1.

各流量制限部103−0、103−1には、後述する図3(a)に示すような2つの流量制限閾値(以下、第1閾値R1、第2閾値R2と呼ぶ)が契約ユーザ毎に設定されており、契約ユーザ毎に、入力流量(入力データ量)が第1閾値R1、第2閾値R2を超過したか否かをモニタし、モニタ結果に応じて、適宜、流量制限を行なう。図3(a)の例では、第1閾値R1と第2閾値R2の2つの閾値を用いているが、流量制限閾値は2つに限定されず、1つでも、3つ以上であっても良い。   Each flow restriction unit 103-0, 103-1 has two flow restriction thresholds (hereinafter referred to as first threshold value R1 and second threshold value R2) as shown in FIG. It is set, and for each contract user, it is monitored whether or not the input flow rate (input data amount) exceeds the first threshold value R1 and the second threshold value R2, and the flow rate is appropriately limited according to the monitoring result. In the example of FIG. 3A, two threshold values, the first threshold value R1 and the second threshold value R2, are used, but the flow rate restriction threshold value is not limited to two, and may be one or three or more. good.

各流量制限部103−0、103−1から出力されたパケットは、送信制御部104−0、104−1を経て、パケット交換部3に与えられる。パケット交換部3において、入力されたパケットは、入力バッファ300−0、300−1でバッファリングされた後、パケットスイッチ301でパケットの宛先に応じて交換され、宛先に対応する出力バッファ302−2に送信される。   The packets output from the flow rate limiting units 103-0 and 103-1 are given to the packet switching unit 3 through the transmission control units 104-0 and 104-1. In the packet switching unit 3, the input packet is buffered by the input buffers 300-0 and 300-1, and then switched according to the destination of the packet by the packet switch 301, and the output buffer 302-2 corresponding to the destination Sent to.

図2は、入出力インタフェース部2−0の契約ユーザA及び契約ユーザB、並びに、入出力インタフェース部2−1の契約ユーザC及び契約ユーザDの全てのユーザのパケットが同一の出力バッファ302−2に送信される例を示している。   FIG. 2 shows an output buffer 302-in which all the packets of the contract user A and contract user B of the input / output interface unit 2-0 and the contract user C and contract user D of the input / output interface unit 2-1 are the same. 2 shows an example of transmission.

出力バッファ302−2にバッファリングされたパケットは、入出力インタフェース部2−2の受信制御部201−2に送られ、パケット振分部202−2でパケット送信部203−2に振り分けられ、パケット送信部203−2により出力ポートPOUT−2へ送信される。受信制御部201−2で受信可能なデータ量は、パケット振分部202−2及びパケット送信部203−2を経ても減少することなく、出力ポートPOUT−2に送信される。   The packet buffered in the output buffer 302-2 is sent to the reception control unit 201-2 of the input / output interface unit 2-2, and is distributed to the packet transmission unit 203-2 by the packet distribution unit 202-2. The data is transmitted to the output port POUT-2 by the transmission unit 203-2. The amount of data that can be received by the reception control unit 201-2 is transmitted to the output port POUT-2 without decreasing even after passing through the packet distribution unit 202-2 and the packet transmission unit 203-2.

ここで、パケット交換部3の出力バッファ302−2は、例えば、契約ユーザA、B、C、Dの各データ量の合計データ量が、入出力インタフェース部2−2の出力ポートPOUT−2のデータ量を継続的に上回ることがなければ、輻輳は生じることはなく、データの過剰な蓄積は発生しない(輻輳状態“0”)。   Here, the output buffer 302-2 of the packet switching unit 3 has, for example, the total data amount of each of the contract users A, B, C, and D stored in the output port POUT-2 of the input / output interface unit 2-2. If the amount of data is not continuously exceeded, congestion does not occur and excessive accumulation of data does not occur (congestion state “0”).

しかし、契約ユーザA、B、C、Dの各データ量の合計データ量が、出力ポートPOUT−2への送信データ量よりも継続して上回れば、輻輳が発生する(輻輳状態“1”)。   However, if the total data amount of each contract user A, B, C, D exceeds the amount of data transmitted to the output port POUT-2, congestion occurs (congestion state “1”). .

入出力インタフェース部2−2の輻輳状態生成部411−2は、予め設定されている監視間隔にて周期的に出力バッファ302−2が輻輳状態か否かをモニタし、モニタの結果を含む入出力インタフェース部2−0、2−1宛の制御パケットを生成して制御パケット送信部412−2に与えて送信させる。このような制御パケットは、送信制御部104−2からパケット交換部3に送信され、パケット交換部3を介して入出力インタフェース部2−0、2−1の受信制御部201−0、201−1に与えられる。   The congestion state generation unit 411-2 of the input / output interface unit 2-2 periodically monitors whether or not the output buffer 302-2 is in a congestion state at a preset monitoring interval, and includes an input including the monitoring result. Control packets addressed to the output interface units 2-0 and 2-1 are generated and given to the control packet transmission unit 412-2 for transmission. Such a control packet is transmitted from the transmission control unit 104-2 to the packet switching unit 3, and via the packet switching unit 3, the reception control units 201-0 and 201- of the input / output interface units 2-0 and 2-1. Is given to 1.

各入出力インタフェース部2−0、2−1において、受信制御部201−0、201−1で受信した制御パケットは、パケット振分部202−0、202−1によって制御パケット受信部401−0、401−1に振り分けられる。各制御パケット受信部401−0、401−1は、受信した制御パケットから、どの入出力インタフェース部への出力バッファにおける輻輳及び又は非輻輳状態であるかを判別し(例えば、制御パケットの送信元アドレスから判別し)、輻輳状態の有無を流量制限基準設定部403−0、403−1及び輻輳指示部402−0、402−1へ通知する。   In each of the input / output interface units 2-0 and 2-1, control packets received by the reception control units 201-0 and 201-1 are transmitted to the control packet reception unit 401-0 by the packet distribution units 202-0 and 202-1. , 401-1. Each control packet receiving unit 401-0, 401-1 determines from the received control packet which input / output interface unit the output buffer is congested and / or uncongested (for example, the source of the control packet) The flow rate restriction reference setting units 403-0 and 403-1 and the congestion instruction units 402-0 and 402-1 are notified of the presence or absence of a congestion state.

各輻輳指示部402−0、402−1は、上述した入出力インタフェース部2−2の輻輳状態生成部411−2がパケット交換部3の出力バッファ302−2の輻輳状態をモニタする周期と同じ周期で、通知された輻輳状態の有無を監視し、その監視結果を流量制限部103−0、103−1へ通知する。   Each congestion instruction unit 402-0 and 402-1 has the same period as the congestion state generation unit 411-2 of the input / output interface unit 2-2 described above monitors the congestion state of the output buffer 302-2 of the packet switching unit 3. At a cycle, the presence / absence of the notified congestion state is monitored, and the monitoring result is notified to the flow restriction units 103-0 and 103-1.

各流量制限部103−0、103−1は、通知された輻輳状態の有無情報に基づいて、必要に応じて、契約ユーザ毎の流量制限を実施する。非輻輳状態であれば、流量制限部103−0、103−1は、流量を制限することなく、入力パケットを送信制御部104−0、104−1へ送信する。一方、輻輳状態であれば、流量制限部103−0、103−1は流量制限を実施する。例えば、流量制限は、入力パケットの廃棄である。   Each flow restriction unit 103-0 and 103-1 performs flow restriction for each contract user as necessary based on the notified congestion state presence / absence information. If it is a non-congested state, the flow restriction units 103-0 and 103-1 transmit the input packet to the transmission control units 104-0 and 104-1, without restricting the flow rate. On the other hand, if it is a congestion state, the flow restriction units 103-0 and 103-1 perform flow restriction. For example, the flow restriction is discarding of input packets.

以下、流量制限方法を、図3を参照しながら説明する。図3(a)は、流量制限部103(103−0又は103−1)への入力流量(入力データの合計データ量)を示し、図3(b)は、流量制限部103(103−0又は103−1)からの出力流量を示し、入力流量と出力流量との差分が制限を受けた流量である。   Hereinafter, the flow rate limiting method will be described with reference to FIG. FIG. 3A shows the input flow rate (total data amount of input data) to the flow restriction unit 103 (103-0 or 103-1), and FIG. 3B shows the flow restriction unit 103 (103-0). Alternatively, the output flow rate from 103-1) is shown, and the difference between the input flow rate and the output flow rate is a limited flow rate.

図3に示す流量制限方法の例では、契約ユーザ毎に入力されるパケットは、高優先パケット(図3では高優先フレームと表記している;以下、高優先フレームと呼ぶ)と低優先パケット(図3では低優先フレームと表記している;以下、低優先フレームと呼ぶ)の2分され、流量制限部103は、高優先フレーム及び低優先フレームの合計のデータ量(以下、入力流量と呼ぶ)を、第1閾値R1及び第2閾値R2と比較して、流量の具体的な制限方法を決定する。例えば、優先度が0〜7の8段階があり、優先度0〜4のフレームを低優先フレームとし、優先度5〜7のフレームを高優先フレームとする。契約ユーザAからのフレーム(パケット)の優先度が6であれば、流量制限部103は、高優先フレームと識別し、契約ユーザBからのフレーム(パケット)の優先度が4であれば、流量制限部103は、低優先フレームと識別する。   In the example of the flow rate limiting method shown in FIG. 3, the packets input for each contracted user are high priority packets (indicated as high priority frames in FIG. 3; hereinafter referred to as high priority frames) and low priority packets ( In FIG. 3, it is described as a low-priority frame; hereinafter referred to as a low-priority frame, and is divided into two. ) Is compared with the first threshold value R1 and the second threshold value R2, and a specific flow rate limiting method is determined. For example, there are eight stages with priorities of 0 to 7. Frames with priorities 0 to 4 are set as low priority frames, and frames with priorities 5 to 7 are set as high priority frames. If the priority of the frame (packet) from the contract user A is 6, the flow restriction unit 103 identifies it as a high priority frame, and if the priority of the frame (packet) from the contract user B is 4, the flow rate The restriction unit 103 identifies the frame as a low priority frame.

2つの閾値のうち大きい方の第1閾値R1を入力流量が超えている場合には、流量制限部103は、高優先フレーム及び低優先フレームの区別なく、第1閾値R1まで流量を制限する。図3(b)の第6周期T6の前半期間t1〜t2は、かかる流量制限が実行されている期間である。   When the input flow rate exceeds the larger first threshold value R1 of the two threshold values, the flow rate limiting unit 103 limits the flow rate to the first threshold value R1 without distinguishing between the high priority frame and the low priority frame. The first half period t1 to t2 of the sixth cycle T6 in FIG. 3B is a period in which such flow rate restriction is performed.

また、第1閾値R1を入力流量は超過していないが、第2閾値R2を入力流量が超えている場合には、流量制限部103は、低優先フレームのみを第2閾値R2まで流量制限する。図3(b)の第2周期T2、第4周期T4、第6周期T6の期間t2〜t3は、かかる流量制限が実行されている期間である。   If the input flow rate does not exceed the first threshold value R1, but the input flow rate exceeds the second threshold value R2, the flow restriction unit 103 restricts the flow rate of only the low priority frame to the second threshold value R2. . Periods t2 to t3 of the second period T2, the fourth period T4, and the sixth period T6 in FIG. 3B are periods in which such flow rate restriction is performed.

さらに、第2閾値R2を入力流量が越えていない場合には、流量制限部103は、低優先フレーム及び高優先フレームの区別なく、流量制限を実施しない。図3(b)の第6周期T6の期間t3以降の期間は、かかる流量制限が実行されない期間である。   Furthermore, when the input flow rate does not exceed the second threshold value R2, the flow rate limiting unit 103 does not perform the flow rate limitation without distinguishing between the low priority frame and the high priority frame. The period after the period t3 of the sixth cycle T6 in FIG. 3B is a period in which such flow rate restriction is not executed.

流量制限実施の有無は、輻輳状態の監視周期毎に指示される輻輳状態の有無に基づく。図3(b)の第5周期T5は、入力流量が少なくとも第2閾値R2を越えているが、この周期は、非輻輳状態の周期であって、流量制限実施が行わない期間であるので、流量制限部103は、低優先フレーム及び高優先フレームの区別なく、流量制限を実施しない。   The presence / absence of the flow rate restriction is based on the presence / absence of a congestion state instructed at every congestion state monitoring period. In the fifth cycle T5 of FIG. 3B, the input flow rate exceeds at least the second threshold value R2, but this cycle is a non-congested cycle and the flow rate restriction is not performed. The flow restriction unit 103 does not restrict the flow without distinguishing between low priority frames and high priority frames.

図4は、流量制限部103に入力されたフレームが全て高優先フレームの場合を示している。流量制限部103への入力流量は、図4(a)に示すように、第2閾値R2を越えることはあっても第1閾値R1を越えることがない程度であったとする。この場合において、宛先側で輻輳状態が生じて流量制限を行うことになっても、入力流量が第2閾値R2を越える周期がないため、図4(B)に示すように、流量制限部103は流量制限を実施せず、宛先側における輻輳状態が継続し続ける。   FIG. 4 shows a case where all the frames input to the flow restriction unit 103 are high priority frames. As shown in FIG. 4A, it is assumed that the input flow rate to the flow rate limiting unit 103 does not exceed the first threshold value R1 even though it exceeds the second threshold value R2. In this case, even if a congestion state occurs on the destination side and the flow rate is limited, there is no period in which the input flow rate exceeds the second threshold value R2, and therefore, as shown in FIG. Does not limit the flow rate, and the congestion on the destination side continues.

図4とは異なり、入力されたフレームが全て低優先フレームの場合でも、第2閾値R2を超過しないために輻輳状態が継続することがあり、また、高優先フレーム及び低優先フレームが混在して入力される場合であっても、第2閾値R2を超過しないために輻輳状態が継続することがある。   Unlike FIG. 4, even when all the input frames are low priority frames, the congestion state may continue because the second threshold R2 is not exceeded, and high priority frames and low priority frames are mixed. Even if it is input, the congestion state may continue because the second threshold value R2 is not exceeded.

以上のような輻輳状態の継続を回避するため、第1の実施形態では、流量制限基準設定部403を設けて、閾値R1及びR2を動的に変更したり、若しくは、流量制限する優先度を動的に変更したりすることとした。なお、図4に示すような輻輳状態が継続することは稀であるとして、流量制限基準設定部403を設けないようにしても良い。   In order to avoid the continuation of the congestion state as described above, in the first embodiment, a flow rate restriction reference setting unit 403 is provided to change the thresholds R1 and R2 dynamically, or to set priority for restricting the flow rate. It was decided to change it dynamically. Note that it is rare that the congestion state as shown in FIG. 4 continues, and the flow rate restriction reference setting unit 403 may not be provided.

流量制限基準設定部403は、閾値R1及びR2の動的な変更だけを行なうものであっても良く、また、閾値超過時に流量制限を受ける優先度の動的な変更だけを行うものであっても良く、さらに、閾値R1及びR2の動的な変更と閾値超過時に流量制限を受ける優先度の動的な変更との両者を行うものであっても良い。   The flow rate restriction reference setting unit 403 may only change the threshold values R1 and R2 dynamically, or only change the priority of receiving the flow restriction when the threshold value is exceeded. Moreover, both the dynamic change of the threshold values R1 and R2 and the dynamic change of the priority that receives the flow restriction when the threshold value is exceeded may be performed.

図5は、閾値R1及びR2を変更する処理(アルゴリズム)を示すフローチャートである。図5は、1人の契約ユーザに対する処理を示しており、図5に示す処理が各契約ユーザについて実行される。   FIG. 5 is a flowchart showing processing (algorithm) for changing the threshold values R1 and R2. FIG. 5 shows processing for one contract user, and the processing shown in FIG. 5 is executed for each contract user.

図5に示す開始すると、流量制限基準設定部403は、その契約ユーザuの第1及び第2の閾値R1[u]及びR2[u]としてその契約ユーザuに係るデフォルト値r1[u]、r2[u]を設定し、閾値を変更させる輻輳状態の周期連続回数Cより1だけ小さい境界値(を表すパラメータ)に値cを設定し、閾値を変更する際の減少幅M(を表すパラメータ)に初期値mを設定し、閾値下限値(を表すパラメータ)Lに値lを設定する(ステップS10)。上述した境界値Cは、逆に見れば、それまでの閾値を維持する、輻輳状態の周期連続回数の上限値Cである。また、第1及び第2の閾値のデフォルト値r1[u]及びr2[u]間には、r1[u]>r2[u]なる関係がある。   When the start shown in FIG. 5 starts, the flow rate restriction reference setting unit 403 sets the default value r1 [u] for the contract user u as the first and second thresholds R1 [u] and R2 [u] of the contract user u, A parameter representing a decrease width M (when a threshold value is changed by setting a value c to a boundary value (representing a parameter) that is smaller by one than the number C of consecutive periods of congestion in which r2 [u] is changed and the threshold value is changed. ) Is set to an initial value m, and a value l is set to a threshold lower limit value (a parameter representing) L (step S10). In other words, the boundary value C described above is the upper limit value C of the number of consecutive cycles in a congested state that maintains the previous threshold. Further, there is a relationship r1 [u]> r2 [u] between the default values r1 [u] and r2 [u] of the first and second threshold values.

その後、輻輳状態の周期の連続回数値countを初期値0にする(ステップS11)。   Thereafter, the continuous count value count of the congestion state cycle is set to an initial value 0 (step S11).

流量制限基準設定部403は、新たな通知周期になると、その周期の輻輳及び又は非輻輳の通知内容は輻輳状態“1”か否かを判別する(ステップS12)。非輻輳状態“0”であれば、上述したステップS10に戻って、デフォルトの設定に戻す。   When a new notification cycle is reached, the flow restriction reference setting unit 403 determines whether the notification content of congestion and / or non-congestion in that cycle is a congestion state “1” (step S12). If the non-congested state is “0”, the process returns to step S10 described above to return to the default setting.

一方、新たな通知周期の状態が輻輳状態“1”であれば、流量制限基準設定部403は、連続回数値countを1インクリメントした後(ステップS13)、その値countが閾値を維持する周期連続回数の上限値Cを越えたか否かを判別する(ステップS14)。値countが上限値Cを越えていなければ、流量制限基準設定部403は、上述したステップS12に戻って、次の周期の輻輳及び又は非輻輳の通知を待ち受ける。これに対して、値countが上限値Cを越えれば(輻輳状態“1”の周期の連続回数が所定回数を超えれば)、流量制限基準設定部403は、小さい方の閾値R2[u]を閾値下限値Lと比較することを通じて、閾値を小さくする余地があるか否かを判別する(ステップS15)。閾値を小さくする余地がなければ、流量制限基準設定部403は、上述したステップS12に戻って、次の周期の輻輳及び又は非輻輳の通知を待ち受ける。これに対して、閾値を小さくする余地があれば、流量制限基準設定部403は、第1及び第2の閾値R1[u]及びR2[u]をそれぞれ、Mだけ小さい値に変更し(ステップS16)、上述したステップS11に戻る。   On the other hand, if the state of the new notification cycle is the congestion state “1”, the flow restriction reference setting unit 403 increments the continuous count value count by 1 (step S13), and then continues the cycle in which the value count maintains the threshold value. It is determined whether or not the upper limit value C is exceeded (step S14). If the value count does not exceed the upper limit value C, the flow restriction reference setting unit 403 returns to step S12 described above and waits for notification of congestion and / or non-congestion in the next cycle. On the other hand, if the value count exceeds the upper limit C (if the number of consecutive periods of the congestion state “1” exceeds the predetermined number), the flow rate restriction reference setting unit 403 sets the smaller threshold R2 [u]. By comparing with the threshold lower limit L, it is determined whether or not there is room for reducing the threshold (step S15). If there is no room to decrease the threshold, the flow restriction reference setting unit 403 returns to step S12 described above and waits for notification of congestion and / or non-congestion in the next cycle. On the other hand, if there is room to reduce the threshold, the flow restriction reference setting unit 403 changes the first and second thresholds R1 [u] and R2 [u] to values smaller by M (step S16), the process returns to the above-described step S11.

以上のようにして、輻輳状態の周期がC回連続する毎に、第1及び第2の閾値R1[u]及びR2[u]がMずつ小さくなっていき、非輻輳状態の周期が生じれば、デフォルトの状態に戻る。   As described above, the first and second thresholds R1 [u] and R2 [u] are decreased by M every time the period of the congestion state continues C times, and the period of the non-congestion state is generated. Returns to the default state.

図5では、第1の閾値R1[u]を所定の単位(M)分だけ小さくする輻輳状態の周期の連続回数と、第2の閾値R2[u]を所定の単位(M)分だけ小さくする輻輳状態の周期の連続回数とが同じであったが、これらの連続回数が異なっていても良い。また、図5では、第1の閾値R1[u]を小さくする単位量(M)と、第2の閾値R2[u]を小さくする単位量とが同じであったが、これらの単位量が異なっていても良い。   In FIG. 5, the number of consecutive periods of the congestion state in which the first threshold value R1 [u] is decreased by a predetermined unit (M) and the second threshold value R2 [u] are decreased by a predetermined unit (M). The number of continuous periods of the congestion state to be performed is the same, but the number of continuous times may be different. In FIG. 5, the unit amount (M) for decreasing the first threshold value R1 [u] is the same as the unit amount for decreasing the second threshold value R2 [u]. It may be different.

図6は、閾値超過時に流量制限を受ける優先度を変更する処理(アルゴリズム)を示すフローチャートである。図6は、1人の契約ユーザに対する処理を示しており、図6に示す処理が各契約ユーザについて実行される。   FIG. 6 is a flowchart showing a process (algorithm) for changing the priority for receiving the flow restriction when the threshold is exceeded. FIG. 6 shows processing for one contract user, and the processing shown in FIG. 6 is executed for each contract user.

図6に示す開始すると、流量制限基準設定部403は、その契約ユーザuの第1及び第2の閾値R1[u]及びR2[u]を超過した際にフレームを廃棄する最も高い優先度PRI1[u]及びPRI2[u]として、その契約ユーザuに係るデフォルト値pri1[u]、pri2[u]を設定し、閾値を変更させる輻輳状態の周期連続回数Cより1だけ小さい境界値(を表すパラメータ)に値cを設定する(ステップS20)。ここで、優先度は0〜7であり、値pri1[u]及びpri2[u]はそれぞれ、0より大きく7より小さい値である。また、値pri1[u]及びpri2[u]間には、pri1[u]>pri2[u]なる関係がある。大きい第1閾値R1を超過した方が、より廃棄されるフレームを大きくするため、このような関係がある。   Starting from FIG. 6, the flow restriction reference setting unit 403 discards the frame when the first and second thresholds R1 [u] and R2 [u] of the contract user u are exceeded. As [u] and PRI2 [u], default values pri1 [u] and pri2 [u] relating to the contract user u are set, and a boundary value (1) smaller than the continuous number of times C of the congestion state in which the threshold value is changed. The value c is set in (representing parameter) (step S20). Here, the priority is 0 to 7, and the values pri1 [u] and pri2 [u] are values greater than 0 and less than 7, respectively. Further, there is a relationship of pri1 [u]> pri2 [u] between the values pri1 [u] and pri2 [u]. Since the frame that is discarded is larger when the large first threshold value R1 is exceeded, there is such a relationship.

その後、流量制限基準設定部403は、輻輳状態“1”の周期の連続回数が所定回数Cを超えることを監視する(ステップS21〜S24)。輻輳状態“1”の周期の連続回数が所定回数Cを超えることを監視する処理は、図5の場合と同様な処理である(図5のステップS11〜S14参照)。   Thereafter, the flow restriction reference setting unit 403 monitors whether the continuous number of periods of the congestion state “1” exceeds the predetermined number C (steps S21 to S24). The process of monitoring whether the continuous number of periods of the congestion state “1” exceeds the predetermined number C is the same process as in FIG. 5 (see steps S11 to S14 in FIG. 5).

輻輳状態“1”の周期の連続回数が所定回数を超えた場合には(ステップS24で「YES」)、流量制限基準設定部403は、第1閾値R1に関するフレームを廃棄する最も高い優先度PRI1[u]が最高優先度(7)に達しているか否かを判別し、最高優先度に達していない場合には、フレームを廃棄する最も高い優先度PRI1[u]を1だけ高い優先度に変更し、最高優先度に達していればそのままとすると共に、第2閾値R2に関するフレームを廃棄する最も高い優先度PRI2[u]が最高優先度(7)に達しているか否かを判別し、最高優先度に達していない場合には、フレームを廃棄する最も高い優先度PRI2[u]を1だけ高い優先度に変更し、最高優先度に達していればそのままとし(ステップS25)、その後、上述したステップS21に戻る。   When the number of continuous periods of the congestion state “1” exceeds the predetermined number (“YES” in step S24), the flow restriction reference setting unit 403 discards the frame related to the first threshold value R1 with the highest priority PRI1. It is determined whether or not [u] has reached the highest priority (7). If the highest priority has not been reached, the highest priority PRI1 [u] for discarding the frame is set to a priority higher by one. And if it has reached the highest priority, it is left as it is, and it is determined whether or not the highest priority PRI2 [u] for discarding the frame relating to the second threshold R2 has reached the highest priority (7), If the highest priority has not been reached, the highest priority PRI2 [u] for discarding the frame is changed to a priority higher by 1, and if the highest priority has been reached, it remains as it is (step S25). It returns to the step S21, which was mentioned.

以上のようにして、輻輳状態の周期がC回連続する毎に、閾値超過時に流量制限を受ける優先度の上限値PRI1[u]及びPRI2[u]が1段階高まり、非輻輳状態の周期が生じればデフォルトの状態に戻る。   As described above, every time the congestion state cycle continues C times, the upper limit values PRI1 [u] and PRI2 [u] of the priority for receiving the flow restriction when the threshold value is exceeded are increased by one level, and the cycle of the non-congestion state is increased. If it happens, it will return to the default state.

図6では、第1閾値R1に関するフレームを廃棄する最も高い優先度PRI1[u]を1段階高める輻輳状態の周期の連続回数と、第2閾値R2に関するフレームを廃棄する最も高い優先度PRI2[u]を1段階高める輻輳状態の周期の連続回数とが同じであったが、これらの連続回数が異なっていても良い。また、図6では、フレームを廃棄する最も高い優先度PRI1[u]及びPRI2[u]を高める優先度の増加単位は1に限定されず、パラメータPRI1[u]及びPRI2[u]で異なっていても良い。   In FIG. 6, the number of consecutive periods of the congestion state in which the highest priority PRI1 [u] for discarding the frame related to the first threshold R1 is increased by one level, and the highest priority PRI2 [u for discarding the frame related to the second threshold R2 ] Is the same as the continuous number of periods of the congestion state that increases the level by one step, but these continuous numbers may be different. Further, in FIG. 6, the increment unit of the priority for raising the highest priority PRI1 [u] and PRI2 [u] for discarding the frame is not limited to 1, and differs depending on the parameters PRI1 [u] and PRI2 [u]. May be.

図7(b)は、流量制限基準設定部403が図5に示す閾値の変更処理を行う場合の流量制限の様子を示す説明図であり、図7(a)(上述した図4と同一の図面)は、図5に示す閾値の変更処理を行わない場合の流量制限の様子を示す説明図である。   FIG. 7B is an explanatory diagram showing the flow rate restriction when the flow rate restriction reference setting unit 403 performs the threshold value changing process shown in FIG. 5, and FIG. 7A is the same as FIG. (Drawing) is explanatory drawing which shows the mode of the flow volume restriction | limiting when not performing the change process of the threshold value shown in FIG.

図7(a)は、高優先フレームのみのため固定値の第1閾値R1を超過しない限り、流量が制限されることはない場合を示している。図7(b)は、図5に示す処理(アルゴリズム)を実施した結果、第1閾値R1及び第2閾値R2が小さな値に変更され、図7(a)の場合と同じ入力流量でも、第1閾値R1を超過した箇所が生じ、流量が制限される場合を示している。   FIG. 7A shows a case where the flow rate is not limited unless the fixed first threshold value R1 is exceeded because only the high priority frame is used. In FIG. 7B, as a result of performing the processing (algorithm) shown in FIG. 5, the first threshold value R1 and the second threshold value R2 are changed to small values, and the same input flow rate as in FIG. 1 shows a case where a portion exceeding the threshold value R1 occurs and the flow rate is limited.

このような流量制限により、パケット(フロー)の宛先に対応する出力バッファの輻輳状態が解消され、非輻輳状態が通知されると、第1閾値R1及び第2閾値R2はデフォルト値に復帰する。   By such a flow rate limitation, when the congestion state of the output buffer corresponding to the destination of the packet (flow) is resolved and the non-congestion state is notified, the first threshold value R1 and the second threshold value R2 are restored to the default values.

図8(b)は、流量制限基準設定部403が図6に示す閾値超過時に流量制限を受ける優先度の変更処理を行う場合の流量制限の様子を示す説明図であり、図8(a)(上述した図4と同一の図面)は、図6に示す閾値超過時に流量制限を受ける優先度の変更処理を行わない場合の流量制限の様子を示す説明図である。   FIG. 8B is an explanatory diagram showing the state of flow restriction when the flow restriction reference setting unit 403 performs priority changing processing for receiving flow restriction when the threshold is exceeded as shown in FIG. (Same drawing as FIG. 4 mentioned above) is explanatory drawing which shows the mode of the flow restriction | limiting when not performing the change process of the priority which receives a flow restriction | limiting at the time of exceeding the threshold value shown in FIG.

優先度は、例えば、VLAN(IEEE802.1Q Virtual Local Area Network)における優先度であるCoS値を用いたり、IPv4(Internet Protocol Version4)におけるIPヘッダ内のToS(Type of Service)の値を用いたり、IPv6(Internet Protocol Version6)におけるIPヘッダ内のTC(Traffic Class)の値を用いることで決定される。図8の説明では、各フレームは、VLANにおける優先度であるCoS値を優先値として適用する場合を示している。図8は、CoS=4のフレームだけが入力されている場合である。閾値超過時に流量制限を受けるデフォルトの優先度は、第1閾値R1に関してはCoS=6以下であり、第2閾値R2に関してはCoS=3以下であったとする。   As the priority, for example, a CoS value that is a priority in VLAN (IEEE 802.1Q Virtual Local Area Network) is used, or a ToS (Type of Service) value in an IP header in IPv4 (Internet Protocol Version 4) is used. It is determined by using the value of TC (Traffic Class) in the IP header in IPv6 (Internet Protocol Version 6). In the description of FIG. 8, each frame shows a case where a CoS value that is a priority in the VLAN is applied as a priority value. FIG. 8 shows a case where only a frame with CoS = 4 is input. Assume that the default priority for receiving a flow restriction when the threshold is exceeded is CoS = 6 or less for the first threshold R1, and CoS = 3 or less for the second threshold R2.

閾値超過時に流量制限を受ける優先度の変更処理を実行しない図8(a)の場合であれば、入力フレームの優先度がCoS=4であるため、入力流量が第2閾値R2を超過しても流量が制限されることはない。   In the case of FIG. 8A in which priority change processing for receiving flow rate restriction when the threshold value is exceeded is not executed, the input flow rate exceeds the second threshold value R2 because the priority of the input frame is CoS = 4. However, the flow rate is not limited.

一方、輻輳状態の周期が連続し、閾値超過時に流量制限を受ける優先度の変更処理により、その優先度が変更されたとする。例えば、第1閾値R1に関してCoS=7以下であり、第2閾値R2に関してはCoS=4以下に変更されたとする。この変更により、優先度がCoS=4のフレームは、入力流量が第2閾値R2を超過した場合に制限されるフレームになり、図8(b)に示すように流量制限を受けることになる。   On the other hand, it is assumed that the priority is changed by the priority changing process in which the period of the congestion state continues and the flow rate is restricted when the threshold value is exceeded. For example, it is assumed that CoS = 7 or less with respect to the first threshold value R1, and CoS = 4 or less with respect to the second threshold value R2. As a result of this change, the frame with the priority CoS = 4 becomes a frame that is restricted when the input flow rate exceeds the second threshold R2, and is subjected to flow rate restriction as shown in FIG. 8B.

このような流量制限により、パケット(フロー)の宛先に対応する出力バッファの輻輳状態が解消され、非輻輳状態が通知されると、閾値超過時に流量制限を受ける優先度はデフォルト値に復帰する。   By such a flow rate restriction, when the congestion state of the output buffer corresponding to the destination of the packet (flow) is resolved and a non-congestion state is notified, the priority of receiving the flow restriction when the threshold is exceeded returns to the default value.

上述したように、流量制限基準設定部403は、閾値R1及びR2の動的な変更だけを行なうものであっても良く(図5参照)、また、閾値超過時に流量制限を受ける優先度の動的な変更だけを行うものであっても良く(図6参照)、さらに、閾値R1及びR2の動的な変更と閾値超過時に流量制限を受ける優先度の動的な変更との両者を行うものであっても良い。   As described above, the flow rate restriction reference setting unit 403 may only change the threshold values R1 and R2 dynamically (see FIG. 5). (See FIG. 6). Further, both the dynamic change of the thresholds R1 and R2 and the dynamic change of the priority that receives the flow restriction when the threshold is exceeded are performed. It may be.

3番目の設定方法としては、例えば、以下のような3つの方法を挙げることができる。   Examples of the third setting method include the following three methods.

第1は、閾値をこれ以上小さくできなくなるまでは、閾値R1及びR2の変更だけを行い(図5参照)、それでも輻輳状態が継続する場合に、閾値超過時に流量制限を受ける優先度の変更を開始するようにしても良い(図6参照)。逆に、閾値超過時に流量制限を受ける優先度をこれ以上大きくできなくなるまでは、閾値超過時に流量制限を受ける優先度の変更だけを行い、それでも輻輳状態が継続する場合に、閾値R1及びR2の変更を開始するようにしても良い。   First, change the thresholds R1 and R2 only until the threshold can no longer be reduced (see FIG. 5), and if the congestion continues, change the priority to receive flow restriction when the threshold is exceeded. You may make it start (refer FIG. 6). Conversely, until the priority for receiving the flow restriction when the threshold is exceeded cannot be increased any more, only the priority for receiving the flow restriction when the threshold is exceeded is changed, and if the congestion state continues, the thresholds R1 and R2 The change may be started.

第2は、輻輳状態が継続し、流量制限基準の変更が最初に必要になったとき(輻輳状態の周期の連続回数が所定回数に最初になったとき)は、閾値R1及びR2の変更を行い(図5参照)、次に、流量制限基準の変更が必要になったときは、閾値超過時に流量制限を受ける優先度の変更を行い(図6参照)、次に、流量制限基準の変更が必要になったときは、閾値R1及びR2の変更を行い、以下同様にして、流量制限基準の変更が必要になるごとに、閾値超過時に流量制限を受ける優先度の変更と、閾値R1及びR2の変更とを交互に実行するようにしても良い。   Second, when the congestion state continues and the flow restriction criterion needs to be changed for the first time (when the continuous number of periods of the congestion state becomes the predetermined number first), the threshold values R1 and R2 are changed. (Refer to Fig. 5) Next, when it is necessary to change the flow restriction standard, change the priority to receive the flow restriction when the threshold is exceeded (see Figure 6), and then change the flow restriction standard Is changed, the thresholds R1 and R2 are changed, and in the same manner, whenever the change of the flow restriction standard is required, the priority change for receiving the flow restriction when the threshold is exceeded, and the thresholds R1 and R1 are changed. The change of R2 may be executed alternately.

第3は、輻輳状態が継続し、流量制限基準の変更が必要になる毎に、閾値R1及びR2の変更と、閾値超過時に流量制限を受ける優先度の変更とを行うようにしても良い。   Thirdly, whenever the congestion state continues and the change of the flow restriction criterion becomes necessary, the thresholds R1 and R2 may be changed and the priority for receiving the flow restriction when the threshold is exceeded may be changed.

(A−3)第1の実施形態の効果
第1の実施形態によれば、出力インタフェース部側で、パケット交換部の出力バッファの輻輳状態を監視し、輻輳状態を入力インタフェース部側に通知して、入力インタフェース部側で必要に応じて各フローの流量帯域制限を実施してフレームを出力するので、複数の入力インタフェース部からの複数のフローが1つの入出力インタフェース部に集中して出力されるような場合でも、パケット交換部あるいは出力インタフェース部でのパケット廃棄を極力発生させることなく、帯域保証、契約ユーザ間の公平性を実現することが可能となる。
(A-3) Effect of First Embodiment According to the first embodiment, the output interface unit monitors the congestion state of the output buffer of the packet switching unit, and notifies the input interface unit of the congestion state. Since the input interface unit restricts the flow bandwidth of each flow as necessary and outputs a frame, a plurality of flows from a plurality of input interface units are concentrated and output to one input / output interface unit. Even in such a case, it is possible to realize bandwidth guarantee and fairness among contracting users without generating packet discarding at the packet switching unit or output interface unit as much as possible.

また、第1の実施形態によれば、出力インタフェース部側から入力インタフェース部側へ通知される帯域制御用の情報は出力ポートに属するパケット交換部の出力バッファの輻輳及び又は非輻輳状態(“1”又は“0”)であるため、帯域制御用情報の伝送量は非常に少なく、複数ポートをまとめて専用フレームとしてパケット交換部の専用ポートを使って同報フレームにて送信するなど、制御フレーム量を抑えることができる。これは、帯域制御用情報をユーザパケットと同じインチャネルで転送する場合には非常に効果的である。   Further, according to the first embodiment, the bandwidth control information notified from the output interface unit side to the input interface unit side is the congestion and / or non-congestion state (“1” of the output buffer of the packet switching unit belonging to the output port). "Or" 0 "), the amount of transmission of bandwidth control information is very small. Control frames such as sending multiple frames together as dedicated frames and sending them in broadcast frames using dedicated ports of the packet switching unit The amount can be reduced. This is very effective when the bandwidth control information is transferred in the same in-channel as the user packet.

さらに、第1の実施形態によれば、帯域制御用情報が輻輳及び又は非輻輳の2値と少なく、送信制限帯域の処理方法がシンプルであるため、非常に小さい回路規模でハードウェア化することが容易であり、かつ、制御周期を高速化できるという効果がある。   Furthermore, according to the first embodiment, the bandwidth control information is as small as two values of congestion and / or non-congestion, and the processing method of the transmission limited bandwidth is simple, so hardware can be realized with a very small circuit scale. Is effective and the control cycle can be speeded up.

さらにまた、第1の実施形態によれば、輻輳が発生しない場合には、任意の契約ユーザが大きい帯域を占有している場合でも静的に流量制限がかかることはなく、輻輳が発生する場合でも当該出力ポートに属する全契約ユーザ一斉に輻輳指示を与えるが、契約ユーザの個々に閾値を設けることで少ない入力帯域の契約ユーザが存在している場合でも、大きな帯域を占有している契約ユーザ間での帯域制御を実施するため、公平性を実現することが可能となる。   Furthermore, according to the first embodiment, when congestion does not occur, even when any contract user occupies a large band, the flow rate is not statically restricted, and congestion occurs. However, all the contract users belonging to the output port are given a congestion instruction at the same time, but even if there are contract users with a small input bandwidth by providing a threshold for each contract user, the contract user who occupies a large bandwidth It is possible to achieve fairness because bandwidth control is performed between them.

また、第1の実施形態によれば、輻輳状態の監視周期を短くして実施することにより、帯域を占有する契約ユーザに対して迅速に制限をかけることが可能であり、閾値の数を増やすことで細やかな優先フレームの制御が可能であり、全契約ユーザの任意の閾値の合計を出力ポートの出力可能帯域以下にすることで、任意の閾値以上の優先度のフレームの保証帯域の確保も可能である。   Further, according to the first embodiment, it is possible to quickly limit the contract user who occupies the bandwidth by increasing the monitoring period of the congestion state, and increase the number of thresholds. Therefore, detailed priority frame control is possible, and by ensuring that the total of arbitrary thresholds of all contracted users is less than or equal to the output possible bandwidth of the output port, it is possible to secure a guaranteed bandwidth for frames with priority higher than the arbitrary threshold. Is possible.

さらに、第1の実施形態によれば、輻輳状態の周期が連続した場合に、流量制限の基準を変更するようにしたので、輻輳状態が徒に長く続くことを防止することができる。   Furthermore, according to the first embodiment, when the period of the congestion state continues, the reference of the flow rate restriction is changed, so that the congestion state can be prevented from continuing for a long time.

(B)第2の実施形態
次に、本発明によるパケット交換装置、パケット交換方法及び帯域制御プログラムの第2の実施形態を、第1の実施形態との相違点を中心に簡単に説明する。
(B) Second Embodiment Next, a second embodiment of the packet switching apparatus, the packet switching method, and the bandwidth control program according to the present invention will be briefly described with a focus on differences from the first embodiment.

図9は、第2の実施形態のパケット交換装置1Aの機能的な構成を示すブロック図であり、第1の実施形態のパケット交換装置1の説明で用いた図2に対応する図面である。図9において、
第1の実施形態では、パケット交換部3の出力バッファ302−0〜302−Xの輻輳状態の情報をユーザパケットと同じインチャネルで転送するものを示した。しかし、この情報の情報量は2値(1ビットを適用可能)であるため、各出力インタフェース部200から各入力インタフェース部に対して、各々1本の制御線を別途設けて情報の転送を実施することも可能である。
FIG. 9 is a block diagram illustrating a functional configuration of the packet switching apparatus 1A according to the second embodiment, and corresponds to FIG. 2 used in the description of the packet switching apparatus 1 according to the first embodiment. In FIG.
In the first embodiment, the congestion state information of the output buffers 302-0 to 302-X of the packet switching unit 3 is transferred in the same in-channel as the user packet. However, since the information amount of this information is binary (one bit can be applied), each output interface unit 200 provides a separate control line to each input interface unit to transfer information. It is also possible to do.

第2の実施形態のパケット交換装置1Aは、パケット交換部3の出力バッファ302−2、302−3の輻輳及び又は非輻輳の状態を“1”又は“0”で示すレベル信号で伝送するように構成したものである。   The packet switching apparatus 1A according to the second embodiment transmits the congestion and / or non-congestion state of the output buffers 302-2 and 302-3 of the packet switching unit 3 using a level signal indicated by “1” or “0”. It is configured.

第2の実施形態では、ユーザパケットと同じインチャネルで転送していたものを別の信号線で容易に構成することが可能であるため、インチャネルの場合にユーザパケットに混じって転送が必要であったインチャネル方式で発生するユーザパケットの帯域圧迫が完全になくす効果を奏する。また、輻輳監視周期においても、制御パケット化などが不要となる点で、第1の実施形態より高速にすることができる
また、インチャネルを用いないことで、入力インタフェース部100側に存在していた、制御パケット受信部401や、送信制御部104内のパケット多重化機能部や、出力インタフェース部200側に存在していたパケット振分部202や、制御パケット送信部412などを不要とすることができ、更なる回路の縮小が可能である
図9では、上述した動作例を説明した図2の単一の出力ポートであった点に代えて、複数の出力ポートを有する場合を示しているが、出力ポートの増加があった場合でも、輻輳指示部402や流量制限基準設定部403の種類が増える程度で回路規模として大きくならず、契約ユーザ数やポート数に比例して回路規模の増大を招くことはなく、流量制限部内にバッファを設けて使う必要がないという効果も奏する。
In the second embodiment, what is transferred in the same in-channel as the user packet can be easily configured by another signal line. Therefore, in the case of in-channel, it is necessary to transfer the packet in the user packet. There is an effect that the band compression of the user packet generated by the in-channel method is completely eliminated. Also, in the congestion monitoring period, control packetization or the like is unnecessary, and the speed can be made higher than that of the first embodiment. Also, by not using in-channel, it exists on the input interface unit 100 side. Further, the control packet receiving unit 401, the packet multiplexing function unit in the transmission control unit 104, the packet distribution unit 202 existing on the output interface unit 200 side, the control packet transmission unit 412, and the like are not required. FIG. 9 shows a case where a plurality of output ports are provided instead of the single output port of FIG. 2 for explaining the above-described operation example. However, even if the number of output ports increases, the circuit scale does not increase as the types of the congestion instruction unit 402 and the flow rate restriction reference setting unit 403 increase. Not causing an increase in circuit scale in proportion to the betting amount, effect so that there is no need to use it a buffer provided in the flow restriction portion.

(C)他の実施形態
上記実施形態の説明においても、種々変形実施形態に言及したが、さらに、以下に例示するような変形実施形態を挙げることができる。
(C) Other Embodiments In the description of the above-described embodiment, various modified embodiments have been referred to. However, modified embodiments as exemplified below can be cited.

上記実施形態では、輻輳状態生成部を出力インタフェース部に設けたものを示したが、これに限定されるものではない。例えば、帯域制御用情報(輻輳状態の有無)の授受に、アウトチャネルの転送方式を適用する場合であれば、輻輳状態生成部は出力インタフェース部ではなく、パケット交換部の各出力バッファに関連して設けるようにしても良い。また例えば、輻輳状態生成部を、出力インタフェース部やパケット交換部ではなく、専用のボードに設けるようにしても良い。   In the embodiment described above, the congestion state generation unit is provided in the output interface unit. However, the present invention is not limited to this. For example, if an out-channel transfer method is applied to transfer bandwidth control information (presence / absence of congestion state), the congestion state generation unit is not related to the output interface unit but to each output buffer of the packet switching unit. It may be provided. Further, for example, the congestion state generation unit may be provided on a dedicated board instead of the output interface unit or the packet switching unit.

上記実施形態では、フローと契約ユーザが1対1で対応する場合を示したが、これに限定されるものではない。例えば、1契約ユーザについて複数のフローを設定するようにしても良い。   In the above embodiment, the flow and the contract user correspond to each other on a one-to-one basis. However, the present invention is not limited to this. For example, a plurality of flows may be set for one contract user.

上記実施形態の動作説明では、入力インタフェース部が2つの場合に言及したが、入力インタフェース部が2つ以上で良いことは勿論であり、2つ以上の場合でも同様の効果を奏することができる。閾値の数や優先度の段階数も、上述した数に限定されないことは勿論である。   In the description of the operation of the above embodiment, the case where there are two input interface units is mentioned, but it is needless to say that there may be two or more input interface units, and the same effect can be obtained even when there are two or more input interface units. Of course, the number of thresholds and the number of priority levels are not limited to the above-described numbers.

上記実施形態では、入力インタフェース部と出力インタフェース部とが一体化された入出力インタフェース部を備える構成(例えば、同一ボード上に入力インタフェース部と出力インタフェース部とが搭載されている構成)を示したが、入力インタフェース部と出力インタフェース部とが別体であっても良いことは勿論である。   In the above embodiment, a configuration including an input / output interface unit in which an input interface unit and an output interface unit are integrated (for example, a configuration in which an input interface unit and an output interface unit are mounted on the same board) is shown. However, it goes without saying that the input interface unit and the output interface unit may be separate.

上記実施形態では、輻輳及び又は非輻輳状態を通知するための制御パケットを定期的に常時送信するものを示したが、この通知方式に限定されるものではない。例えば、輻輳状態の監視は定期的に常時行っても、通知は、輻輳状態を一旦検出した以降、輻輳状態が解消し、解消してから所定時間経過するまでの期間の間で定期的に行うようにしても良い。   In the above-described embodiment, the control packet for notifying the congestion and / or the non-congestion state is regularly transmitted. However, the present invention is not limited to this notification method. For example, even if the congestion state is regularly monitored, the notification is periodically performed during a period from when the congestion state is once detected until the predetermined time elapses after the congestion state is resolved. You may do it.

上記実施形態では、全ての契約ユーザ(フロー)について閾値の数が同じ場合を示したが、契約ユーザによって、流量制御に係る閾値の数が異なっていても良い。例えば、契約帯域が大きい契約ユーザは他の契約ユーザより閾値の数を多くするようにしても良い。   Although the case where the number of threshold values is the same for all contract users (flows) has been described in the above embodiment, the number of threshold values related to flow rate control may differ depending on the contract user. For example, a contract user with a large contract bandwidth may have a larger number of thresholds than other contract users.

上記実施形態では、輻輳状態が連続しているときに、1周期でも非輻輳状態が生じると、直ちに、閾値等をデフォルト状態に復帰させるものを示したが、デフォルト状態に復帰させる非輻輳状態の周期に関しても、2周期以上連続することなどを条件とするようにしても良い。   In the above embodiment, when the non-congestion state occurs even in one cycle when the congestion state is continuous, the threshold value etc. is immediately returned to the default state. Regarding the period, the condition may be that two or more periods are continuous.

1、1A…パケット交換装置、2−0〜2−X…入出力インタフェース部、
100…入力インタフェース部、
101…パケット受信部、102…フロー識別部、103…流量制限部、104…送信制御部、401…制御パケット受信部、402…輻輳指示部、403…流量制限基準設定部、
200…出力インタフェース部、
201…受信制御部、202…パケット振分部、203…パケット送信部、411…輻輳状態生成部、412…制御パケット送信部、
3…パケット交換部、
300−0〜300−X…入力バッファ、301…パケットスイッチ、302−0〜302−X…出力バッファ。
1, 1A ... packet switching device, 2-0 to 2-X ... input / output interface unit,
100: Input interface section,
DESCRIPTION OF SYMBOLS 101 ... Packet receiving part, 102 ... Flow identification part, 103 ... Flow restriction part, 104 ... Transmission control part, 401 ... Control packet receiving part, 402 ... Congestion instruction part, 403 ... Flow restriction reference setting part,
200 ... output interface part,
201: Reception control unit, 202 ... Packet distribution unit, 203 ... Packet transmission unit, 411 ... Congestion state generation unit, 412 ... Control packet transmission unit,
3 ... Packet switching part,
300-0 to 300-X ... input buffer, 301 ... packet switch, 302-0 to 302-X ... output buffer.

Claims (7)

パケットが入力される複数の入力インタフェース手段と、パケットを出力する複数の出力インタフェース手段と、上記各入力インタフェース手段からのパケットを宛先に応じた上記出力インタフェース手段に出力する、複数の入力バッファ、パケットスイッチ及び複数の出力バッファを有するパケット交換手段とを備えたパケット交換装置において、
上記各入力インタフェース手段が、
入力されたパケットのフローを識別するフロー識別部と、
フロー毎に流量制限を行うものであって、フローに係るパケットをバッファリングする予定の上記出力バッファが輻輳状態にあること、並びに、入力流量が閾値を超えていることを条件に流量制限を行う流量制限部と、
フローに係るパケットをバッファリングする予定の上記出力バッファの輻輳及び又は非輻輳状態の通知を受けて上記流量制限部に上記出力バッファの状態を設定する輻輳指示部とを備え、
上記各出力インタフェース手段に関連して、
当該出力インタフェース手段に対応する上記出力バッファの状態を周期的に監視し、上記出力バッファの輻輳及び又は非輻輳状態を、上記出力バッファがバッファリングするパケットの送信元の上記各入力インタフェース手段に通知する状態通知部を設けた
ことを特徴とするパケット交換装置。
A plurality of input interface means for inputting packets, a plurality of output interface means for outputting packets, and a plurality of input buffers and packets for outputting packets from the respective input interface means to the output interface means corresponding to the destination In a packet switching device comprising a switch and a packet switching means having a plurality of output buffers,
Each of the input interface means is
A flow identifier for identifying the flow of the input packet;
The flow restriction is performed for each flow, and the flow restriction is performed on the condition that the output buffer that is scheduled to buffer packets related to the flow is in a congested state and that the input flow rate exceeds the threshold value. A flow restriction unit;
A congestion indication unit that sets a state of the output buffer in the flow rate limiting unit in response to notification of congestion and / or non-congestion state of the output buffer that is scheduled to buffer packets related to the flow,
In relation to each output interface means above,
The state of the output buffer corresponding to the output interface means is periodically monitored, and the congestion and / or non-congestion state of the output buffer is notified to each input interface means of the packet source buffered by the output buffer. A packet switching device characterized in that a state notification unit is provided.
上記流量制限部は、フロー毎に流量制限を行う閾値として複数適用し、入力流量が、高い閾値を超えるほど、優先度が高いパケットをも流量制限の対象とすることを特徴とする請求項1に記載のパケット交換装置。   The flow rate limiting unit applies a plurality of thresholds for limiting the flow rate for each flow, and the higher the input flow rate exceeds the higher threshold value, the higher the priority the packet is the target of the flow rate limitation. The packet switching device described in 1. フローに係るパケットをバッファリングする予定の上記出力バッファの輻輳状態の連続期間に応じ、流量制限を行う基準を厳しくするように変更する流量制限基準設定部を有することを特徴とする請求項1又は2に記載のパケット交換装置。   2. A flow rate restriction reference setting unit that changes a flow restriction reference so as to be strict according to a continuous period of congestion of the output buffer that is scheduled to buffer packets related to a flow. 3. The packet switching device according to 2. 上記流量制限基準設定部は、上記出力バッファの輻輳状態の連続期間が長くなるに従い、上記閾値を小さくすることを特徴とする請求項3に記載のパケット交換装置。   4. The packet switching apparatus according to claim 3, wherein the flow rate restriction reference setting unit decreases the threshold as the continuous period of the congestion state of the output buffer becomes longer. 上記流量制限基準設定部は、上記出力バッファの輻輳状態の連続期間が長くなるに従い、上記閾値を超過した際に流量制限が行われるパケットの優先度を高くすることを特徴とする請求項3又は4に記載のパケット交換装置。   The flow rate restriction reference setting unit increases the priority of a packet whose flow rate is restricted when the threshold value is exceeded as the continuous period of the congestion state of the output buffer becomes longer. 5. The packet switching device according to 4. パケットが入力される複数の入力インタフェース手段と、パケットを出力する複数の出力インタフェース手段と、上記各入力インタフェース手段からのパケットを宛先に応じた上記出力インタフェース手段に出力する、複数の入力バッファ、パケットスイッチ及び複数の出力バッファを有するパケット交換手段とを備えたパケット交換装置に搭載されるコンピュータを、
入力されたパケットのフローを識別するフロー識別部と、
フロー毎に流量制限を行うものであって、フローに係るパケットをバッファリングする予定の上記出力バッファが輻輳状態にあること、並びに、入力流量が閾値を超えていることを条件に流量制限を行う流量制限部と、
フローに係るパケットをバッファリングする予定の上記出力バッファの輻輳及び又は非輻輳状態の通知を受けて上記流量制限部に上記出力バッファの状態を設定する輻輳指示部と、
上記出力バッファの状態を周期的に監視し、上記出力バッファの輻輳及び又は非輻輳状態を、上記出力バッファがバッファリングするパケットの送信元の上記各入力インタフェース手段に通知する状態通知部と
して機能させることを特徴とする帯域制御プログラム。
A plurality of input interface means for inputting packets, a plurality of output interface means for outputting packets, and a plurality of input buffers and packets for outputting packets from the respective input interface means to the output interface means corresponding to the destination A computer mounted in a packet switching device comprising a switch and a packet switching means having a plurality of output buffers;
A flow identifier for identifying the flow of the input packet;
The flow restriction is performed for each flow, and the flow restriction is performed on the condition that the output buffer that is scheduled to buffer packets related to the flow is in a congested state and that the input flow rate exceeds the threshold value. A flow restriction unit;
A congestion instruction unit for receiving a notification of congestion and / or a non-congestion state of the output buffer scheduled to buffer packets related to a flow, and setting the state of the output buffer in the flow rate limiting unit;
As a state notification unit for periodically monitoring the state of the output buffer and notifying the input interface means of the source of the packet buffered by the output buffer of the congestion and / or non-congestion state of the output buffer. A bandwidth control program characterized by functioning.
パケットが入力される複数の入力インタフェース手段と、パケットを出力する複数の出力インタフェース手段と、上記各入力インタフェース手段からのパケットを宛先に応じた上記出力インタフェース手段に出力する、複数の入力バッファ、パケットスイッチ及び複数の出力バッファを有するパケット交換手段とを備えたパケット交換装置におけるパケット交換方法において、
上記各入力インタフェース手段に設けられたフロー識別部は、入力されたパケットのフローを識別し、
上記各入力インタフェース手段に設けられた流量制限部は、フローに係るパケットをバッファリングする予定の上記出力バッファが輻輳状態にあること、並びに、入力流量が閾値を超えていることを条件に、フロー毎に流量制限を行い、
上記各入力インタフェース手段に設けられた輻輳指示部は、フローに係るパケットをバッファリングする予定の上記出力バッファの輻輳及び又は非輻輳状態の通知を受けて上記流量制限部に上記出力バッファの状態を設定し、
上記各出力インタフェース手段に関連して設けられた状態通知部は、当該出力インタフェース手段に対応する上記出力バッファの状態を周期的に監視し、上記出力バッファの輻輳及び又は非輻輳状態を、上記出力バッファがバッファリングするパケットの送信元の上記各入力インタフェース手段に通知する
ことを特徴とするパケット交換方法。
A plurality of input interface means for inputting packets, a plurality of output interface means for outputting packets, and a plurality of input buffers and packets for outputting packets from the respective input interface means to the output interface means corresponding to the destination In a packet switching method in a packet switching device comprising a switch and a packet switching means having a plurality of output buffers,
The flow identification unit provided in each of the input interface means identifies the flow of the input packet,
The flow rate limiting unit provided in each input interface means the flow on condition that the output buffer that is scheduled to buffer packets related to the flow is in a congested state and that the input flow rate exceeds a threshold value. Limit the flow rate every time,
The congestion instruction unit provided in each of the input interface means receives the notification of the congestion and / or the non-congestion state of the output buffer that is scheduled to buffer the packet related to the flow, and sets the state of the output buffer to the flow restriction unit. Set,
The status notification unit provided in association with each output interface means periodically monitors the status of the output buffer corresponding to the output interface means, and indicates whether the output buffer is congested and / or uncongested. A packet switching method comprising: notifying each input interface means of a transmission source of a packet to be buffered by a buffer.
JP2013178526A 2013-08-29 2013-08-29 Packet switch, packet switching method and band control program Pending JP2015050479A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013178526A JP2015050479A (en) 2013-08-29 2013-08-29 Packet switch, packet switching method and band control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013178526A JP2015050479A (en) 2013-08-29 2013-08-29 Packet switch, packet switching method and band control program

Publications (1)

Publication Number Publication Date
JP2015050479A true JP2015050479A (en) 2015-03-16

Family

ID=52700185

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013178526A Pending JP2015050479A (en) 2013-08-29 2013-08-29 Packet switch, packet switching method and band control program

Country Status (1)

Country Link
JP (1) JP2015050479A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401603A (en) * 2019-07-25 2019-11-01 北京百度网讯科技有限公司 Method and device for processing information

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002261766A (en) * 2001-02-28 2002-09-13 Matsushita Electric Ind Co Ltd Congestion control method and congestion control device
JP2007166421A (en) * 2005-12-15 2007-06-28 Mitsubishi Electric Corp Packet processing device
JP2007258787A (en) * 2006-03-20 2007-10-04 Fujitsu Ltd Flow control method and flow control apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002261766A (en) * 2001-02-28 2002-09-13 Matsushita Electric Ind Co Ltd Congestion control method and congestion control device
JP2007166421A (en) * 2005-12-15 2007-06-28 Mitsubishi Electric Corp Packet processing device
JP2007258787A (en) * 2006-03-20 2007-10-04 Fujitsu Ltd Flow control method and flow control apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110401603A (en) * 2019-07-25 2019-11-01 北京百度网讯科技有限公司 Method and device for processing information
CN110401603B (en) * 2019-07-25 2023-07-28 北京百度网讯科技有限公司 Method and device for processing information

Similar Documents

Publication Publication Date Title
US10708197B2 (en) Network data processor having per-input port virtual output queues
JP7512456B2 (en) Packet scheduling method, scheduler, network device, and network system
US20110158248A1 (en) Dynamic prioritized fair share scheduling scheme in over-subscribed port scenario
US9197570B2 (en) Congestion control in packet switches
US8971317B2 (en) Method for controlling data stream switch and relevant equipment
US8665719B2 (en) Variable packet-size backplanes for switching and routing systems
US11165710B2 (en) Network device with less buffer pressure
CN104836750A (en) Data center network flow scheduling method based on round-robin
Wu et al. SPMLD: Sub-packet based multipath load distribution for real-time multimedia traffic
CN102752192A (en) Bandwidth allocation method of forwarding and control element separation (ForCES) transmission mapping layer based on stream control transmission protocol (SCTP)
US10063481B1 (en) Network endpoint congestion management
WO2020108020A1 (en) Congestion control processing method, message forwarding apparatus, and message receiving apparatus
CN106330710B (en) Data flow scheduling method and device
WO2023116611A1 (en) Queue control method and apparatus
TW200303670A (en) Inverse multiplexing of managed traffic flows over a multi-star network
JP2015050479A (en) Packet switch, packet switching method and band control program
JP5753918B2 (en) Network relay device
Osuo-Genseleke et al. Performance measures for congestion control techniques in a wireless sensor network
Dong et al. Reducing Tail Latency in Proactive Congestion Control via Moderate Speculation
JP2006054711A (en) Network switch
Chen et al. On meeting deadlines in datacenter networks
Domżał et al. The impact of congestion control mechanisms on network performance after failure in flow-aware networks
CA2271669A1 (en) Method and system for scheduling packets in a telecommunications network
JP2015177534A (en) Packet exchange device, and packet exchange method
JP2014233052A (en) Packet switch, packet switching method and band control program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20150519

A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A711

Effective date: 20160427

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20160517

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A821

Effective date: 20160427

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20170313

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170411

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170609

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20171031