JP2008193310A - Buffer management method of router and router using the management method - Google Patents

Buffer management method of router and router using the management method Download PDF

Info

Publication number
JP2008193310A
JP2008193310A JP2007024254A JP2007024254A JP2008193310A JP 2008193310 A JP2008193310 A JP 2008193310A JP 2007024254 A JP2007024254 A JP 2007024254A JP 2007024254 A JP2007024254 A JP 2007024254A JP 2008193310 A JP2008193310 A JP 2008193310A
Authority
JP
Japan
Prior art keywords
packet data
router
discard
buffer
flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2007024254A
Other languages
Japanese (ja)
Other versions
JP4838739B2 (en
Inventor
Ryosuke Yokobayashi
亮介 横林
Hiroo Doi
博生 土井
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.)
Central Research Institute of Electric Power Industry
Original Assignee
Central Research Institute of Electric Power Industry
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 Central Research Institute of Electric Power Industry filed Critical Central Research Institute of Electric Power Industry
Priority to JP2007024254A priority Critical patent/JP4838739B2/en
Publication of JP2008193310A publication Critical patent/JP2008193310A/en
Application granted granted Critical
Publication of JP4838739B2 publication Critical patent/JP4838739B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To improve throughput performance of a communication network by effectively suppressing generation of RTO by actively suppressing discard of a plurality of packet data in the same window and discard of resent packet data when transferring packet data. <P>SOLUTION: Packet data out of those data made discard candidates by an RED function of the router which are managed every flow to which the packet data belong, whose preferential count decreasing in value when fetched by a buffer of the router does not satisfy a discard condition, and which are resent are not discarded; and packet data out of those data input in succession to the router which have the preferential count satisfy the discard condition and are not resent are discarded. <P>COPYRIGHT: (C)2008,JPO&INPIT

Description

本発明は、ルータのバッファ管理方法並びにその管理方法を用いたルータに関する。さらに詳述すると、本発明は、通信ネットワークの輻輳によるルータのバッファからのパケットデータの廃棄を制御する技術に関する。   The present invention relates to a router buffer management method and a router using the management method. More specifically, the present invention relates to a technique for controlling discarding of packet data from a router buffer due to communication network congestion.

本明細書において、パケットデータとは、通信ネットワークにおいて転送されるデータであってパケットに分割されたデータを意味するものとして用いている。また、フローとは、送信側と受信側との一対一の通信のことを意味するものとして用いている。また、ウィンドウとは、通信ネットワークへ一度に送信するパケット数を決める量のことを意味するものとして用いている。   In this specification, packet data is used to mean data transferred in a communication network and divided into packets. The flow is used to mean one-to-one communication between the transmission side and the reception side. The window is used to mean an amount for determining the number of packets transmitted to the communication network at a time.

通信ネットワークを構成する通信機器であるルータはバッファを持っており、処理能力を上回る大量のパケットデータが一度に送信されてきた場合には一時的にそのパケットデータをバッファに蓄積することでトラヒックの変動を吸収する。しかし、トラヒック量やユーザ数が想定以上に増加して入力されるパケットデータ量がルータの持つバッファ容量を超えてしまう場合には、パケットデータはバッファから溢れて廃棄される。   A router, which is a communication device that constitutes a communication network, has a buffer. When a large amount of packet data exceeding the processing capacity is transmitted at a time, the packet data is temporarily stored in the buffer to reduce traffic. Absorb fluctuations. However, if the amount of traffic and the number of users increase more than expected and the amount of input packet data exceeds the buffer capacity of the router, the packet data overflows from the buffer and is discarded.

通信ネットワークの輻輳制御は、大部分のアプリケーションがデータ転送用プロトコルとして用いるTransmission Control Protocol(以下、TCPと表記する)の機能により行われる。TCPは、ルータのバッファでのパケットデータの廃棄を送信端で検出し、一度に送信できるパケット量を決めるウィンドウサイズを減少させることによって通信ネットワークへのパケットデータ送出量を減らす制御を行って過度な輻輳を抑制する。また、TCPは廃棄されたパケットデータの再送も行う。   The congestion control of the communication network is performed by a transmission control protocol (hereinafter referred to as TCP) function that is used by most applications as a data transfer protocol. TCP detects the discard of packet data in the buffer of the router at the transmitting end, and performs control to reduce the amount of packet data sent to the communication network by reducing the window size that determines the amount of packets that can be transmitted at once. Reduce congestion. TCP also resends discarded packet data.

TCPは、具体的には、単一フローの同一ウィンドウ内で二以上のパケットデータが廃棄された場合、パケットデータの送出を一定時間待った後にウィンドウサイズを1に戻して再送を開始するRetransmission Time Out(以下、RTOと表記する)と呼ばれる動作を行う。また、複数のフローに亘ってパケットデータが廃棄された場合にはTCPが同期してこれらのフローに係る複数のウィンドウサイズを揃って減少させ、これによって通信ネットワークの伝送能力を大きく下回ってパケットデータ送出量が絞られることになり、通信ネットワークのスループット即ち通信データの伝送量が低下する。   Specifically, when two or more packet data are discarded in the same window of a single flow, TCP waits for a certain period of time to send packet data, then returns the window size to 1 and starts retransmission. Retransmission Time Out (Hereinafter referred to as RTO) is performed. In addition, when packet data is discarded over a plurality of flows, the TCP synchronizes and reduces a plurality of window sizes related to these flows, thereby greatly reducing the transmission capacity of the communication network. The amount of transmission is reduced, and the throughput of the communication network, that is, the transmission amount of communication data decreases.

上記のRTOの発生即ち待ち時間発生に伴うデータ伝送遅延の問題並びにTCPが同期して動作して複数のウィンドウサイズを揃って減少させる問題を解決するために従来からアクティブキュー管理方式が提案されている。その代表的なものにRandom Early Detection(以下、REDと表記する)がある。REDは、バッファが溢れてルータに入力されるパケットデータが連続して廃棄されることを防止するため、バッファが一杯になる前に、ルータに入力されるパケットデータを確率的に廃棄する。これによって、TCPのパケットデータ送出量が制御されると共に、通信ネットワークの過度な輻輳状態が回避される。   Conventionally, an active queue management method has been proposed to solve the problem of data transmission delay due to the occurrence of RTO, that is, the waiting time and the problem that TCP operates synchronously and reduces a plurality of window sizes. Yes. A typical example is Random Early Detection (hereinafter referred to as RED). RED probabilistically discards packet data that is input to the router before the buffer is full in order to prevent the buffer from overflowing and continuously discarding packet data that is input to the router. As a result, the amount of TCP packet data transmitted is controlled, and an excessive congestion state of the communication network is avoided.

RED機能を活用した従来のパケットデータ伝送の制御方法としては、例えば、パケットデータを伝送するネットワークシステムがある(特許文献1)。このネットワークシステムは、図6に示すように、ネットワークの入り口に設けられて当該ネットワーク内に入ってきたパケットデータのネットワークにおける生存期間を示す変数であって経由してきたノード数が多いほど小さくなる変数であるTime to Live(以下、TTLと表記する)フィールド値を予め定められた値に設定する少なくとも一つのエッジノードと、転送すべきパケットデータ108が入力されるとTTLフィールド値の小さなパケットデータをキュー104,105,106のうち優先度の高いキューへ割り当てると共にTTLフィールド値の大きなパケットデータをキュー104,105,106のうち優先度の低いキューへ割り当てるTTL識別器102を有するフロー識別器103及び優先度の高いキューに割り当てられたパケットデータから順にTTLフィールド値を1減じた後に次のノードに出力する処理を行うスケジューラ107を備えた少なくとも一つのノード101とから構成される。そして、RED機能によるパケットデータの廃棄においてTTLフィールド値を考慮することによってより多くのノードを経由してきたパケットデータの廃棄率を小さくするものである。   As a conventional packet data transmission control method utilizing the RED function, for example, there is a network system that transmits packet data (Patent Document 1). As shown in FIG. 6, this network system is a variable that is provided at the entrance of a network and that indicates the lifetime of packet data that has entered the network, and decreases as the number of nodes that have passed through the network system increases. When the time-to-live (hereinafter referred to as TTL) field value is set to a predetermined value and the packet data 108 to be transferred is input, packet data having a small TTL field value is A flow discriminator 103 having a TTL discriminator 102 that allocates packet data having a large TTL field value to a queue having a low priority among the queues 104, 105, and 106, and assigns the packet data having a large TTL field value to the queue having a low priority among the queues 104, 105, and 106; Assigned to a high priority queue Composed of at least one node 101 Metropolitan with a scheduler 107 from the obtained packet data performs processing to output to the next node after the TTL field value by subtracting 1 in this order. Then, by considering the TTL field value in discarding packet data by the RED function, the discard rate of packet data that has passed through more nodes is reduced.

特開2003−348140号JP 2003-348140 A

しかしながら、特許文献1のネットワークシステムは、同一ウィンドウ内の複数パケットデータの廃棄率や再送されたパケットデータの廃棄率を小さくする仕組みを有するものではない。このため、同一ウィンドウ内の複数パケットデータの廃棄や再送されたパケットデータの廃棄によるRTOの発生を効果的に抑制することはできず、通信ネットワークのスループット性能を十分に向上させることができるとは言い難い。   However, the network system of Patent Document 1 does not have a mechanism for reducing the discard rate of multiple packet data in the same window or the discard rate of retransmitted packet data. For this reason, it is not possible to effectively suppress the occurrence of RTO due to the discard of multiple packet data within the same window or the discard of retransmitted packet data, and the throughput performance of the communication network can be sufficiently improved. It's hard to say.

そこで、本発明は、同一ウィンドウ内の複数パケットデータの廃棄や再送されたパケットデータの廃棄を積極的に抑制することによってRTOの発生を効果的に抑制して通信ネットワークのスループット性能を向上させることができるルータのバッファ管理方法並びにその管理方法を用いたルータを提供することを目的とする。   Therefore, the present invention effectively suppresses the occurrence of RTO and improves the throughput performance of the communication network by actively suppressing the discarding of a plurality of packet data within the same window and the discarding of retransmitted packet data. It is an object of the present invention to provide a router buffer management method capable of performing the above and a router using the management method.

かかる目的を達成するため、請求項1記載のルータのバッファ管理方法は、ルータのRED機能によって廃棄候補とされたパケットデータのうちパケットデータが属するフロー毎に管理されてルータのバッファに取り込まれると値が低減する優遇カウントが廃棄条件を満たしていないものと再送されたものとは廃棄せず、ルータに続いて入力されるパケットデータの中から優遇カウントが廃棄条件を満たし且つ再送されたものではないものを廃棄するようにしている。   In order to achieve this object, the router buffer management method according to claim 1 is managed for each flow to which packet data belongs among packet data determined as discard candidates by the RED function of the router, and is taken into the buffer of the router. The preferential count for which the value is reduced does not satisfy the discard condition and the retransmitted one is not discarded, and the preferential count satisfies the discard condition and is retransmitted from the packet data input after the router. I try to dispose of things that I don't have.

また、請求項2記載のルータは、RED機能によってパケットデータを廃棄するか否かを判定するRED実行手段と、RED実行手段の判定結果に基づいて値が変化する廃棄フラグを管理する廃棄フラグ管理手段と、廃棄フラグの値に基づいてパケットデータが廃棄候補か否かを判定する廃棄フラグ判定手段と、パケットデータがバッファに取り込まれると値が低減する優遇カウントをフロー毎に管理する優遇カウント管理手段と、優遇カウントが廃棄条件を満たしているか否かを判定する優遇カウント判定手段と、パケットデータのシーケンス番号をフロー毎に管理する再生パケットデータ管理手段と、フロー毎に管理されるシーケンス番号に基づいてパケットデータが再送されたものか否かを判定する再送パケットデータ判定手段とを有するようにしている。   According to another aspect of the present invention, there is provided a router for managing whether or not to discard packet data by a RED function, and a discard flag management for managing a discard flag whose value changes based on a determination result of the RED execution unit. And a discard flag determination unit that determines whether or not the packet data is a discard candidate based on the value of the discard flag, and a preferential count management that manages a preferential count that decreases when the packet data is loaded into the buffer for each flow. Means, preferential count determination means for determining whether or not the preferential count satisfies the discard condition, reproduction packet data management means for managing the sequence number of the packet data for each flow, and a sequence number managed for each flow And retransmission packet data determination means for determining whether the packet data has been retransmitted based on I have to so that.

したがって、このルータのバッファ管理方法並びにその管理方法を用いたルータによると、パケットデータが属するフローの優遇カウントに基づいて同一フローのパケットデータを一定数だけ廃棄しないように優遇することにより、同一フローの複数パケットデータの廃棄が抑制される。さらに、再送されたパケットデータの廃棄が抑制される。   Therefore, according to the buffer management method of this router and the router using the management method, the same flow can be obtained by preferentially not discarding a certain number of packet data of the same flow based on the preferential count of the flow to which the packet data belongs. The discarding of multiple packet data is suppressed. Further, discarding of retransmitted packet data is suppressed.

さらに、本発明のルータのバッファ管理方法は、従来用いられてきたREDと同様にルータに機能を持たせることによって従来のTCPと協調して動作するものであるので、通信ネットワークの端末側に対応する機能を持たせる必要がない。   Furthermore, since the router buffer management method of the present invention operates in cooperation with conventional TCP by providing a function to the router in the same manner as RED that has been used in the past, it is compatible with the terminal side of a communication network. It is not necessary to have the function to do.

本発明のルータのバッファ管理方法並びにその管理方法を用いたルータによれば、同一フローの複数パケットデータの廃棄が抑制されることにより同一ウィンドウの複数パケットデータの廃棄が抑制されると共に再送されたパケットデータの廃棄が抑制されるので、RTOの発生を効果的に抑制することが可能であり、通信ネットワークのスループット性能の向上を図ることができる。   According to the buffer management method of the router of the present invention and the router using the management method, the discard of a plurality of packet data of the same flow is suppressed and the discard of the plurality of packet data of the same window is suppressed and retransmitted. Since discarding of packet data is suppressed, the occurrence of RTO can be effectively suppressed, and the throughput performance of the communication network can be improved.

さらに、本発明のルータのバッファ管理方法によれば、通信ネットワークの端末側に対応する機能を持たせる必要がないので、容易に実施可能であるという利点を有する。   Furthermore, according to the buffer management method of the router of the present invention, since it is not necessary to provide a function corresponding to the terminal side of the communication network, there is an advantage that it can be easily implemented.

以下、本発明の構成を図面に示す最良の形態に基づいて詳細に説明する。   Hereinafter, the configuration of the present invention will be described in detail based on the best mode shown in the drawings.

図1から図3に、本発明のルータのバッファ管理方法の実施形態の一例を示す。このルータのバッファ管理方法は、ルータのRED機能によって廃棄候補とされたパケットデータのうちパケットデータが属するフロー毎に管理されてルータのバッファに取り込まれると値が低減する優遇カウントが廃棄条件を満たしていないものと再送されたものとは廃棄せず、ルータに続いて入力されるパケットデータの中から優遇カウントが廃棄条件を満たし且つ再送されたものではないものを廃棄するようにしている。   1 to 3 show an example of an embodiment of a router buffer management method of the present invention. In this buffer management method of the router, the preferential count whose value is reduced when it is managed for each flow to which the packet data belongs out of the packet data that is considered as a discard candidate by the router RED function and taken into the router buffer satisfies the discard condition. The packets that have not been retransmitted and the ones that have been retransmitted are not discarded, but the packet data that is input following the router is discarded if the preferential count satisfies the discard condition and has not been retransmitted.

上記ルータのバッファ管理方法は、本発明のバッファ管理方法を用いたルータとして実現される。本実施形態のルータは、RED機能によってパケットデータを廃棄するか否かを判定するRED実行手段と、RED実行手段の判定結果に基づいて値が変化する廃棄フラグを管理する廃棄フラグ管理手段と、廃棄フラグの値に基づいてパケットデータが廃棄候補か否かを判定する廃棄フラグ判定手段と、パケットデータがバッファに取り込まれると値が低減する優遇カウントをフロー毎に管理する優遇カウント管理手段と、優遇カウントが廃棄条件を満たしているか否かを判定する優遇カウント判定手段と、パケットデータのシーケンス番号をフロー毎に管理する再生パケットデータ管理手段と、フロー毎に管理されるシーケンス番号に基づいてパケットデータが再送されたものか否かを判定する再送パケットデータ判定手段とを有するものである。   The router buffer management method is realized as a router using the buffer management method of the present invention. The router of the present embodiment includes a RED execution unit that determines whether or not to discard packet data by the RED function, a discard flag management unit that manages a discard flag whose value changes based on a determination result of the RED execution unit, A discard flag determining means for determining whether or not the packet data is a discard candidate based on the value of the discard flag; a preferential count managing means for managing a preferential count for which the value is reduced for each flow when the packet data is taken into the buffer; Preferential count determination means for determining whether the preferential count satisfies the discard condition, a reproduction packet data management means for managing the sequence number of the packet data for each flow, and a packet based on the sequence number managed for each flow Having retransmission packet data determination means for determining whether or not the data has been retransmitted A.

本発明のルータのバッファ管理方法の実行にあたっては、まず、通信ネットワーク上に設置されたルータにパケットデータが入力される(S1)。   In executing the router buffer management method of the present invention, first, packet data is input to a router installed on a communication network (S1).

本発明が対象とする通信ネットワークは、具体的にはTCP/IP通信ネットワークである。なお、TCP/IP通信ネットワークのことを以降では単にネットワークと表記する。   The communication network targeted by the present invention is specifically a TCP / IP communication network. Hereinafter, the TCP / IP communication network is simply referred to as a network.

また、本実施形態では、TCPとして、TCPの様々なバージョンの中でほとんどのOperating Systemで実装されているTCP Renoバージョンを用いた場合について説明する。   In the present embodiment, a description will be given of a case where the TCP Reno version implemented in most operating systems is used as the TCP among various versions of TCP.

TCPはそれ自体がネットワークの過度な輻輳を抑制する機能を有する。具体的には、TCP Renoバージョンは、輻輳ウィンドウ(Congestion Windowのこと)によってネットワークへ一度に送信できるパケットデータ量を変化させてパケットデータ送出量を制御する(例えば、W.R Stevens;TCP/IP Illustrated,Volume1:The Protocols,Addison Wesley Longman,1994年を参照)。   TCP itself has a function of suppressing excessive network congestion. Specifically, the TCP Reno version controls the amount of packet data transmitted by changing the amount of packet data that can be transmitted to the network at once by a congestion window (Congestion Windows) (for example, WR Stevens; TCP / IP Illustrated, Volume 1: The Protocols, Addison Wesley Longman, see 1994).

送信側のTCPは、データが正常に送られたことを確認する確認応答パケットを受信側から受け取るたびにウィンドウサイズを増加させる。その増加幅は1パケットから始まり、2、4・・と指数関数的に大きくなるが、パケットデータ廃棄時にウィンドウサイズが直前の半分に自動設定される閾値を越えた場合には増加幅が1パケットずつになる。前者はスロースタート(Slow Start)フェーズ、後者は輻輳回避(Congestion Avoidance)フェーズと呼ばれる。そして、このようなウィンドウサイズの増加は、ネットワークの輻輳によってパケットデータの廃棄が発生するまで続けられる。   The TCP on the transmission side increases the window size every time an acknowledgment packet for confirming that data has been transmitted normally is received from the reception side. The increase width starts from one packet and increases exponentially as 2, 4,..., But when the packet size is discarded, if the window size exceeds the threshold automatically set to the previous half, the increase width is 1 packet. It becomes one by one. The former is called a slow start phase, and the latter is called a congestion avoidance phase. The increase in the window size is continued until packet data is discarded due to network congestion.

パケットデータの廃棄の検出方式とその後の再送動作には、RTOとFast Retransmissionとの二種類がある。RTOは、同一ウィンドウ内の複数パケットデータの廃棄等によって確認応答パケットが届くまでの時間がタイマ設定時間を超過することでパケットデータの廃棄を検出する方式である。この場合、TCPは、パケットデータの送出を一定時間を待った後に輻輳ウィンドウサイズを1パケットに戻してスロースタートから再送を開始する。   There are two types of packet data discarding detection methods and subsequent retransmission operations: RTO and Fast Retransmission. RTO is a method for detecting packet data discarding when a time until an acknowledgment packet arrives due to discarding of a plurality of packet data in the same window exceeds a timer setting time. In this case, TCP waits for a certain period of time to send packet data, then returns the congestion window size to 1 packet, and starts retransmission from slow start.

一方、Fast Retransmissionは、同一ウィンドウ内の単一パケットデータを廃棄することにより、次に送信するべきパケットを示す番号が同一になっている確認応答パケットが三回届くことでパケットデータの廃棄を検出する方式である。この場合、TCPは、軽微な輻輳状態と判断し、輻輳ウィンドウサイズを直前の半分にして直ちに再送を開始する。   On the other hand, Fast Retransmission detects the discard of packet data by discarding single packet data in the same window and receiving an acknowledgment packet with the same number indicating the packet to be transmitted next three times. It is a method to do. In this case, the TCP determines that the congestion state is slight, and immediately starts retransmission by reducing the congestion window size to the previous half.

また、本実施形態では、バッファとRED機能とレイヤ4の処理能力とを少なくとも有し、ネットワークを接続するための中継装置として利用されるルータが用いられる。   In the present embodiment, a router that has at least a buffer, a RED function, and a layer 4 processing capability and is used as a relay device for connecting networks is used.

続いて、ルータのRED実行手段は、ルータに入力されたパケットデータを廃棄するか否かをRED機能によって判定する(S2)。なお、本発明のルータのバッファ管理方法に係る演算や各種の処理を実際に行うのはルータの演算部や制御部であって例えばCPU(Central Processing Unit;中央処理装置のこと)であるが、本明細書においては単にルータと表記したり、演算部や制御部に構成される手段として表記する。   Subsequently, the RED executing means of the router determines whether or not to discard the packet data input to the router by the RED function (S2). Note that the arithmetic unit and the control unit of the router that actually perform the calculation and various processes related to the buffer management method of the present invention are, for example, a CPU (Central Processing Unit). In the present specification, it is simply expressed as a router, or as means configured in a calculation unit or a control unit.

RED機能自体は周知の技術であるのでここでは詳細については省略する(例えば、S.Floyd and V.Jacobson;Random early detection gateways for congestion avoidance,IEEE/ACM Trans.Netw.,vol.1,no.4,pp.397−413,1993年8月を参照)。なお、RED機能はルータに実装される。   Since the RED function itself is a well-known technique, details are omitted here (for example, S. Floyd and V. Jacobson; Random early detection gateways for congestion avoidance, IEEE / ACM Trans. Netw., Vol. 1, no. 4, pp. 397-413, August 1993). The RED function is mounted on the router.

本発明で用いられるRED機能の具体的なアルゴリズムは以下のとおりである。REDは、現在のバッファ長の短期的な変動の影響を受けないように一定期間のバッファ長を平均化した平均バッファ長の増加に従ってパケットデータ廃棄率を0より大きい値にし更に増加させる。平均バッファ長Qaは、パケットデータ到着毎に指数平均(EWMA:Exponential Weighted Moving Average)を用いて現在のバッファ長Qから数式1により計算される。   A specific algorithm of the RED function used in the present invention is as follows. RED further increases the packet data discard rate to a value greater than 0 in accordance with an increase in the average buffer length obtained by averaging the buffer lengths over a certain period so as not to be affected by short-term fluctuations in the current buffer length. The average buffer length Qa is calculated according to Equation 1 from the current buffer length Q using exponential average (EWMA: Exponential Weighted Moving Average) for each arrival of packet data.

(数1)Qa←(1−Wq)Qa+WqQ
ここに、Qa:平均バッファ長,Wq:現在のバッファ長の重みを決定するパラメータ(ただし、0<Wq<1),Q:現在のバッファ長。
(Expression 1) Qa ← (1-Wq) Qa + WqQ
Here, Qa: average buffer length, Wq: parameter for determining the weight of the current buffer length (where 0 <Wq <1), Q: current buffer length.

そして、平均バッファ長Qaに対して最小閾値MINth及び最大閾値MAXthの二つの閾値を設けてパケットデータの廃棄処理が行なわれる。具体的には、図2に示すように、パケットデータ廃棄率は、平均バッファ長QaがMINthから増加を始め、平均バッファ長QaがMAXthのときにMAXpとなる。そして、平均バッファ長QaがMAXthを超えると全てのパケットが廃棄される。   Then, two threshold values of the minimum threshold value MINth and the maximum threshold value MAXth are provided for the average buffer length Qa, and the packet data discarding process is performed. Specifically, as shown in FIG. 2, the packet data discard rate becomes MAXp when the average buffer length Qa starts to increase from MINth and the average buffer length Qa is MAXth. When the average buffer length Qa exceeds MAXth, all packets are discarded.

これらMINth,MAXth,MAXpの閾値はREDのパラメータであり、これらパラメータによってパケットデータ廃棄の程度が決まる。廃棄の程度が過剰の場合には不必要なRTOが多くなり、不足の場合にはバッファ溢れによってやはりRTOが多くなる。そのため、RED機能を適切に作動させるためには、パケットデータの廃棄の過不足が生じないように閾値を最適に設定することによってRTOの抑制効果を最大とする必要がある。   The thresholds of these MINth, MAXth, and MAXp are RED parameters, and the degree of packet data discard is determined by these parameters. When the degree of discard is excessive, unnecessary RTO increases, and when it is insufficient, RTO increases due to buffer overflow. Therefore, in order to properly operate the RED function, it is necessary to maximize the effect of suppressing RTO by optimally setting the threshold value so as not to cause excessive or insufficient discarding of packet data.

S2の処理において、ルータに入力されたパケットデータをRED機能によって廃棄すると判定した場合には(S2;Yes)、ルータの廃棄フラグ管理手段は廃棄フラグDfの値を1増やす(S3)。   In the process of S2, if it is determined that the packet data input to the router is to be discarded by the RED function (S2; Yes), the discard flag management means of the router increases the value of the discard flag Df by 1 (S3).

廃棄フラグDfは、RED機能によるパケットデータの廃棄指令を後に続く処理に引き継ぐための変数であり、ルータあるいはバッファを単位として設定される。   The discard flag Df is a variable for taking over a packet data discard command by the RED function for subsequent processing, and is set in units of routers or buffers.

廃棄フラグDfは、0,1,2のいずれかの値をとり、パケットデータの廃棄処理の当初の段階で0に設定され、RED機能によって廃棄指令が出された場合に1となる。そして、ルータは廃棄フラグDfの値が1の状態で本発明の制御方法の要件を満たす即ち廃棄すべきパケットデータを探し、要件を満たすパケットデータが出現する前にRED機能によって廃棄指令が更に出された場合に廃棄フラグDfの値が2となる。なお、廃棄フラグDfの最大値は2とする。   The discard flag Df takes one of 0, 1, and 2 and is set to 0 at the initial stage of the packet data discarding process, and becomes 1 when a discard command is issued by the RED function. Then, the router searches for packet data that satisfies the requirements of the control method of the present invention with the value of the discard flag Df being 1, that is, discards further instructions by the RED function before packet data that satisfies the requirements appears. In this case, the value of the discard flag Df becomes 2. Note that the maximum value of the discard flag Df is 2.

一方、パケットデータをRED機能によって廃棄しないと判定した場合には(S2;No)、ルータの廃棄フラグ判定手段は廃棄フラグDfの値を確認する(S4)。   On the other hand, when it is determined that the packet data is not discarded by the RED function (S2; No), the discard flag determination unit of the router confirms the value of the discard flag Df (S4).

そして、廃棄フラグDfの値が0である場合には(S4;No)、ルータの優遇カウント管理手段は処理対象のパケットデータが属するフローの優遇カウントFcの値を1減らす(S7)。そして、ルータは当該パケットデータをバッファに取り込んで(S13)当該パケットデータに関する処理を終える(END)。   When the value of the discard flag Df is 0 (S4; No), the preferential count management unit of the router decreases the value of the preferential count Fc of the flow to which the packet data to be processed belongs by 1 (S7). Then, the router takes the packet data into the buffer (S13), and finishes the processing related to the packet data (END).

優遇カウントFcは、同一ウィンドウ内の複数パケットデータの廃棄を回避するための変数であり、フロー毎に管理される。なお、ルータに入力されるパケットデータのフローはIPヘッダのアドレス番号によって識別される。   The preferential count Fc is a variable for avoiding discard of a plurality of packet data in the same window, and is managed for each flow. The flow of packet data input to the router is identified by the address number in the IP header.

優遇カウントFcは、処理開始時(START)に初期優遇値Nに設定される。初期優遇値Nは、1〜60程度の範囲、好ましくは30〜60程度の範囲、最も好ましくは50程度に設定されることが考えられるが、60を超える値であっても構わない。なお、優遇カウントFcはゼロやマイナスの値になる場合がある。   The preferential count Fc is set to the initial preferential value N at the start of processing (START). The initial preferential value N is set to a range of about 1 to 60, preferably about 30 to 60, and most preferably about 50, but may be a value exceeding 60. The preferential count Fc may be zero or a negative value.

S3の処理に引き続いて、若しくはS4の処理において廃棄フラグDfの値が0より大きい場合には(S4;Yes)、ルータの廃棄フラグ判定手段は廃棄フラグDfの値を確認する(S5)。   Subsequent to the process of S3 or when the value of the discard flag Df is greater than 0 in the process of S4 (S4; Yes), the discard flag determination unit of the router confirms the value of the discard flag Df (S5).

そして、廃棄フラグDfの値が2でない場合には(S5;No)、ルータの優遇カウント判定手段は処理対象のパケットデータが属するフローの優遇カウントFcの値を確認する(S6)。   If the value of the discard flag Df is not 2 (S5; No), the preferential count determination unit of the router confirms the value of the preferential count Fc of the flow to which the packet data to be processed belongs (S6).

そして、優遇カウントFcの値が0より大きい場合には(S6;Yes)、ルータの優遇カウント管理手段は処理対象のパケットデータが属するフローの優遇カウントFcの値を1減らす(S8)。そして、ルータは当該パケットデータをバッファに取り込んで(S14)当該パケットデータに関する処理を終える(END)。   When the value of the preferential count Fc is larger than 0 (S6; Yes), the preferential count management unit of the router decreases the value of the preferential count Fc of the flow to which the packet data to be processed belongs by 1 (S8). Then, the router takes the packet data into the buffer (S14), and finishes the processing related to the packet data (END).

このように、本発明では、フローの優遇カウントFcの値が0より大きい場合には、そのフローに属するパケットデータを廃棄しない。これによって、同一フローの同一ウィンドウ内の複数パケットデータの廃棄が抑制されてRTOの発生が抑制される。   Thus, in the present invention, when the value of the flow preferential count Fc is larger than 0, packet data belonging to the flow is not discarded. As a result, the discarding of a plurality of packet data in the same window of the same flow is suppressed, and the occurrence of RTO is suppressed.

ここで、図3(A)に示すように、RED機能では、廃棄するパケットデータP1が単に確率的に選択され、次に廃棄するパケットデータP5も単に確率的に選択される。すなわち、既に廃棄したパケットデータP1と次に廃棄するパケットデータP5とが同一ウィンドウのものであるか否かを考慮することなくパケットデータを廃棄するので、同一ウィンドウ内の複数パケットデータの廃棄が抑制されずに行われることになり、RTOが発生してネットワークのスループット性能が低下してしまう。   Here, as shown in FIG. 3A, in the RED function, the packet data P1 to be discarded is simply selected probabilistically, and the packet data P5 to be discarded next is also simply selected probabilistically. That is, since the packet data is discarded without considering whether the already discarded packet data P1 and the next discarded packet data P5 are in the same window, the discarding of a plurality of packet data in the same window is suppressed. In other words, RTO occurs and the throughput performance of the network decreases.

これに対して本発明の場合には、既に廃棄したパケットデータP1が属するフローに係る新たに入力されたパケットデータを一定数だけ廃棄しないように優遇する処理を行うことで同一ウィンドウの複数パケットデータの廃棄を確率的に回避する。   On the other hand, in the case of the present invention, a plurality of packet data in the same window is obtained by performing a preferential treatment so that a predetermined number of newly input packet data related to the flow to which the already discarded packet data P1 belongs is not discarded. Probabilistic avoidance of disposal.

具体的には、図3(B)に示すように、フローの優遇カウントFcを用いてフローの優遇性を考慮することにより、廃棄したパケットデータP1が属するフローの優遇カウントFcが0より大きく優遇性が高い場合にはRED機能によって廃棄として選択されたパケットデータP5の廃棄を回避し、続けて入力されるパケットデータを順に調べて廃棄条件を満たすパケットデータP7を見つけ出して廃棄する。これによって、パケットデータP1が既に廃棄されたウィンドウと同一ウィンドウのパケットデータP5の廃棄が回避され、RTOの発生が回避されてネットワークのスループット性能の低下が防止される。   Specifically, as shown in FIG. 3B, the flow preferential count Fc is used to consider the flow preferentiality, so that the flow preferential count Fc to which the discarded packet data P1 belongs is greater than 0. If it is high, the packet data P5 selected to be discarded by the RED function is avoided, and subsequently input packet data is sequentially examined to find and discard the packet data P7 satisfying the discard condition. As a result, the discard of the packet data P5 in the same window as the window in which the packet data P1 has already been discarded is avoided, the occurrence of RTO is avoided, and the deterioration of the network throughput performance is prevented.

なお、優遇処理はパケットデータが廃棄されたフローを対象とするため、短いフローのみが有利になることはない。また、優遇カウントFcはルータを通過するパケットデータが多いフローほど早く消費されるため、大きな帯域を占めるフローのみが有利になることはない。すなわち、本発明では、特定の特質を有するフローのみが極端に優遇されたり抑制されたりすることがないので、偏りのないパケットデータ伝送の制御が行われる。   Since the preferential treatment is intended for a flow in which packet data is discarded, only a short flow is not advantageous. In addition, since the preferential count Fc is consumed earlier as the flow with more packet data passing through the router, only the flow occupying a large band is not advantageous. In other words, in the present invention, only flows having specific characteristics are not extremely favored or suppressed, so that control of packet data transmission without bias is performed.

続いて、S5の処理において廃棄フラグDfの値が2である場合(S5;Yes)、並びに、S6の処理において優遇カウントFcの値が0以下の場合には(S6;No)、ルータの再送パケットデータ判定手段はパケットデータの属性として処理対象のパケットデータが再送されたパケットデータか否かを判定する(S9)。   Subsequently, when the value of the discard flag Df is 2 in the process of S5 (S5; Yes) and when the value of the preferential count Fc is 0 or less in the process of S6 (S6; No), the router resends. The packet data determination means determines whether the packet data to be processed is retransmitted packet data as an attribute of the packet data (S9).

処理対象のパケットデータが再送されたパケットデータか否かは、ルータに入力されたパケットデータのTCPヘッダのシーケンス番号をフロー毎に管理することによって識別される。再送パケットデータ管理手段はパケットデータのシーケンス番号をフロー毎に管理する。   Whether or not the packet data to be processed is retransmitted packet data is identified by managing the sequence number of the TCP header of the packet data input to the router for each flow. The retransmission packet data management means manages the sequence number of the packet data for each flow.

そして、処理対象のパケットデータが再送されたパケットデータである場合には(S9;Yes)、ルータはS8の処理に移行して優遇カウント管理手段は処理対象のパケットデータが属するフローの優遇カウントFcの値を1減らす(S8)。そして、ルータは当該パケットデータをバッファに取り込んで(S14)当該パケットデータに関する処理を終える(END)。   If the packet data to be processed is retransmitted packet data (S9; Yes), the router proceeds to the process of S8, and the preferential count management means preferentially counts Fc of the flow to which the packet data to be processed belongs. 1 is decreased by 1 (S8). Then, the router takes the packet data into the buffer (S14), and finishes the processing related to the packet data (END).

これによって、パケットデータが既に廃棄されたフローから再送されたパケットデータの廃棄が回避され、RTOの発生が回避されてネットワークのスループット性能の低下が防止される。   As a result, discarding of packet data retransmitted from a flow in which packet data has already been discarded is avoided, occurrence of RTO is avoided, and deterioration of network throughput performance is prevented.

一方、再送されたパケットデータでない場合には(S9;No)、ルータは当該パケットデータをバッファに取り込むことなく廃棄する(S10)。   On the other hand, if it is not retransmitted packet data (S9; No), the router discards the packet data without taking it into the buffer (S10).

続いて、ルータの廃棄フラグ管理手段は廃棄フラグDfの値を1減らし(S11)、優遇カウント管理手段は処理対象のパケットデータが属するフローの優遇カウントFcを初期優遇値Nにする(S12)。そして、ルータは当該パケットデータに関する処理を終える(END)。   Subsequently, the discard flag management unit of the router decrements the value of the discard flag Df by 1 (S11), and the preferential count management unit sets the preferential count Fc of the flow to which the packet data to be processed belongs to the initial preferential value N (S12). Then, the router finishes the processing related to the packet data (END).

そして、ルータは、S1の処理に戻り、ルータに新たに入力されたパケットデータについてS1からS14までの処理を繰り返す。   Then, the router returns to the processing of S1, and repeats the processing from S1 to S14 for the packet data newly input to the router.

なお、ルータ若しくはバッファ単位の廃棄フラグDfの値、及びフロー毎の優遇カウントFcの値は次に入力されたパケットデータの処理をする際にそのまま用いられる。このため、ルータの廃棄フラグ管理手段及び優遇カウント管理手段はこれらの値を記憶したままS1の処理に戻る。さらに、再送パケットデータ管理手段はフロー毎に管理されてS9の処理で利用される入力されたパケットデータのTCPヘッダのシーケンス番号を記憶したままS1の処理に戻る。   Note that the value of the discard flag Df for each router or buffer and the value of the preferential count Fc for each flow are used as they are when processing the next input packet data. For this reason, the discard flag management means and the preferential count management means of the router return to the processing of S1 while storing these values. Further, the retransmission packet data management means returns to the process of S1 while storing the sequence number of the TCP header of the input packet data managed for each flow and used in the process of S9.

したがって、先に入力されたパケットデータに対してRED機能による最初の廃棄指令が出されると(S2;Yes)廃棄フラグDf=1となる(S3)。そして、当該パケットデータが属するフローの優遇性(S6)と当該パケットデータの属性(S9)とから当該パケットデータを廃棄しないと判定した場合には、廃棄フラグDf=1のまま次に入力されたパケットデータの処理に移る。そして、次に入力されたパケットデータについてはRED機能による廃棄指令が出されない場合であっても(S2;No)、廃棄フラグDf=1であってRED機能による廃棄指令継続状態即ちパケットデータの廃棄待ち状態であると判断され(S4;Yes)、RED機能による廃棄指令が出されていないパケットデータについても当該パケットデータが属するフローの優遇性(S6)と当該パケットデータの属性(S9)とから当該パケットデータの廃棄の可否について判断する。また、廃棄フラグDf=1の状態で次に入力されたパケットデータについてもRED機能による廃棄指令が出された場合には(S2;Yes)、廃棄フラグDf=2となって(S3)、フローの優遇性を考慮しない処理に変わる(S5;Yes)。そして、これにより、再送されたパケットデータを除く全てのパケットデータが廃棄されるので、パケットデータの廃棄が滞らなくなり、パケットデータの廃棄の過度な抑制が防がれてバッファ溢れが防止される。   Therefore, when the first discard command by the RED function is issued for the previously input packet data (S2; Yes), the discard flag Df = 1 is set (S3). If it is determined that the packet data is not to be discarded based on the preferentialness of the flow to which the packet data belongs (S6) and the attribute (S9) of the packet data, the next input is made with the discard flag Df = 1. Move on to packet data processing. Even if the discard command by the RED function is not issued for the next input packet data (S2; No), the discard flag Df = 1 and the discard command continuation state by the RED function, that is, discard of the packet data For packet data that is determined to be in a waiting state (S4; Yes) and for which no discard instruction has been issued by the RED function, the preferentialness of the flow to which the packet data belongs (S6) and the attribute (S9) of the packet data It is determined whether or not the packet data can be discarded. Also, when a discard command is issued by the RED function for the next input packet data in the state of the discard flag Df = 1 (S2; Yes), the discard flag Df = 2 is set (S3), and the flow It changes to the processing which does not consider the preferential property of (S5; Yes). As a result, all the packet data except the retransmitted packet data is discarded, so that the discarding of the packet data is not delayed, excessive suppression of the discarding of the packet data is prevented, and the buffer overflow is prevented.

なお、上述の形態は本発明の好適な形態の一例ではあるがこれに限定されるものではなく、本発明の要旨を逸脱しない範囲において種々変形実施可能である。例えば、本実施形態では、RED機能による廃棄制御と優遇カウントFcに基づく廃棄制御と再送であるか否かに基づく廃棄制御とをルータに入力されたパケットデータ毎に逐次行うようにしているが、これに限られず、廃棄フラグDfが1から2となる間にルータに入力されるパケットデータを全てバッファへ取り込み、バッファの中からこの期間で最小の優遇カウントFcを持つパケットデータを選択して廃棄するようにしても良い。なお、この場合もバッファでの滞留時間は変わらないので遅延を起こすことなくデータ伝送を行うことができる。そして、これにより、優遇カウントFcの初期値である初期優遇値Nは例えば99999など単に十分に大きな値にしておけば良いのでネットワークのトラヒック状況に応じて設定する手間を省くことができ、且つ、REDによる廃棄制御によって廃棄が指令された場合に優遇カウントFcの残存状況にかかわらず常にいずれかのパケットデータが選択され廃棄されるので本発明の性能を十分に発揮させることができる。   In addition, although the above-mentioned form is an example of the suitable form of this invention, it is not limited to this, A various deformation | transformation implementation is possible in the range which does not deviate from the summary of this invention. For example, in this embodiment, the discard control by the RED function, the discard control based on the preferential count Fc, and the discard control based on whether or not the retransmission is performed sequentially for each packet data input to the router. Not limited to this, all packet data input to the router while the discard flag Df changes from 1 to 2 is taken into the buffer, and the packet data having the smallest preferential count Fc in this period is selected from the buffer and discarded. You may make it do. In this case as well, since the dwell time in the buffer does not change, data transmission can be performed without causing a delay. As a result, the initial preferential value N, which is the initial value of the preferential count Fc, may be simply set to a sufficiently large value such as 99999, so that it is possible to save the trouble of setting according to the traffic situation of the network, and When discarding is instructed by the discard control by RED, any packet data is always selected and discarded regardless of the remaining status of the preferential count Fc, so that the performance of the present invention can be fully exhibited.

また、本実施形態では、パケットデータが属するフローの優遇性(S6)とパケットデータの属性(S9)との両方を考慮してパケットデータを廃棄するか否かを判定するようにしているが、これに限られず、パケットデータが属するフローの優遇性のみを考慮するようにしても良い。この場合もRED機能によって廃棄するパケットデータを単に確率的に選択する場合と比べて同一ウィンドウ内の複数パケットデータの廃棄が抑制されるので本発明の性能を発揮させることができる。そして、この場合には、レイヤ3の処理能力を有するルータを用いれば良いので、レイヤ4の処理能力を有するルータを用いる場合と比べてコストダウンを図ることができる。   In this embodiment, it is determined whether or not to discard the packet data in consideration of both the preferentialness (S6) of the flow to which the packet data belongs and the attribute (S9) of the packet data. However, the present invention is not limited to this, and only the preferentialness of the flow to which the packet data belongs may be considered. Also in this case, since the discarding of a plurality of packet data in the same window is suppressed as compared with the case where the packet data to be discarded is simply selected probabilistically by the RED function, the performance of the present invention can be exhibited. In this case, since a router having a layer 3 processing capability may be used, the cost can be reduced compared to the case of using a router having a layer 4 processing capability.

また、本実施形態では、廃棄フラグDf=2の場合に(S5;Yes)、フローの優遇性(S6)を考慮しない一方でパケットデータの属性(S9)は考慮するようにしているが、これに限られず、フローの優遇性(S6)及びパケットデータの属性(S9)のどちらも考慮しないようにしても良い。具体的には、本実施形態のS5の処理においてYesの場合には次にS10の処理を行ってそのままパケットデータの廃棄を行うようにしても良い。   In this embodiment, when the discard flag Df = 2 (S5; Yes), the flow data preferentiality (S6) is not considered, but the packet data attribute (S9) is considered. However, the flow preferentiality (S6) and the packet data attribute (S9) may not be considered. Specifically, in the case of Yes in the process of S5 of the present embodiment, the process of S10 may be performed next to discard the packet data as it is.

さらに、本実施形態では、TCPとしてRenoバージョンを用いた場合を前提とした例について主に説明したが、本発明が適用可能なTCPのバージョンはこれに限られるものではなく、TCPの他のバージョンに対しても適用が可能である。なお、同一ウィンドウ内の複数パケットデータが廃棄された場合や再送されたパケットデータが廃棄された場合にデータ送出量を抑制する機能を有するTCPに適用した場合に本発明の効果が特に発揮される。   Furthermore, in this embodiment, an example based on the premise that the Reno version is used as TCP has been mainly described. However, the TCP version to which the present invention is applicable is not limited to this, and other versions of TCP It is possible to apply to. The present invention is particularly effective when applied to TCP having a function of suppressing the data transmission amount when a plurality of packet data in the same window is discarded or when retransmitted packet data is discarded. .

本発明のルータのバッファ管理方法並びにその管理方法を用いたルータの性能評価の実施例を図4及び図5を用いて説明する。   An embodiment of the router buffer management method of the present invention and router performance evaluation using the management method will be described with reference to FIGS.

本実施例における性能評価は計算機シミュレーションによって行った。シミュレーション用ソフトはOPNET社のOPNET Modelerバージョン11.5を用いた。そして、図4に示すクライアントであるユーザU1,U2,…,U16(以下、ユーザUxと表記する),サーバS1,S2,…,S16(以下、サーバSxと表記する),ユーザ側ルータR0,サーバ側ルータR1,ユーザUxとユーザ側ルータR0との間及びサーバSxとサーバ側ルータR1との間のリンクL1,ユーザ側ルータR0とサーバ側ルータR1との間のボトルネック回線L2からなるネットワークモデルでシミュレーションを行なった。   The performance evaluation in this example was performed by computer simulation. As the simulation software, OPNET Modeler version 11.5 of OPNET was used. 4, users U1, U2,..., U16 (hereinafter referred to as user Ux), servers S1, S2,..., S16 (hereinafter referred to as server Sx), user-side routers R0, A network composed of a server side router R1, a link between the user Ux and the user side router R0, a link L1 between the server Sx and the server side router R1, and a bottleneck line L2 between the user side router R0 and the server side router R1. Simulation was performed with the model.

ユーザUxとサーバSxとの間はそれぞれ一対一でFTP(File Transfer Protocolのこと)によるファイル転送を行うものとした。そして、サーバ側ルータR1に本発明のルータのバッファ管理方法を実装させた。なお、ユーザ側ルータR0は、パケットデータの宛先IPアドレスを参照して当該データを宛先のユーザUxに単に振り分ける機能のみを有するものであって、RED機能によるパケットデータの廃棄制御等は行わない。すなわち、本実施例のネットワークモデルでは、サーバSxからユーザUxへ向かうトラヒックがサーバ側ルータR1のバッファを溢れさせる一方で、ユーザUxからサーバSxへ向かうトラヒックは微小であってユーザ側ルータR0のバッファを溢れさせることはない。   File transfer by FTP (File Transfer Protocol) is performed one-to-one between the user Ux and the server Sx. The server-side router R1 is mounted with the router buffer management method of the present invention. The user-side router R0 has only a function of referring to the destination IP address of the packet data and simply distributing the data to the destination user Ux, and does not perform packet data discard control or the like by the RED function. That is, in the network model of the present embodiment, the traffic from the server Sx to the user Ux overflows the buffer of the server side router R1, while the traffic from the user Ux to the server Sx is very small and the buffer of the user side router R0. Will not overflow.

また、リンクL1のリンク帯域を100Mbps、伝送遅延を1msとした。また、ボトルネック回線L2のリンク帯域を8Mbps、伝送遅延を200msとした。なお、ボトルネック回線L2のリンク帯域は、輻輳が発生する程度に小さくすることを考慮して設定した。また、ボトルネック回線L2の伝送遅延は、ルータR0及びR1のMAC(Media Access Controlのこと)層バッファによる変動吸収の影響を無視できるようにパケットデータがMAC層バッファに入らない設定としているため、これに伴うMAC層バッファでの遅延の減少分をボトルネック回線L2の伝送遅延によって補うことを考慮して設定した。   The link bandwidth of the link L1 is 100 Mbps, and the transmission delay is 1 ms. The link bandwidth of the bottleneck line L2 is 8 Mbps, and the transmission delay is 200 ms. Note that the link bandwidth of the bottleneck line L2 is set in consideration of making it small enough to cause congestion. In addition, the transmission delay of the bottleneck line L2 is set so that packet data does not enter the MAC layer buffer so that the influence of fluctuation absorption by the MAC (Media Access Control) layer buffer of the routers R0 and R1 can be ignored. This is set in consideration of compensating for the decrease in delay in the MAC layer buffer due to this by the transmission delay of the bottleneck line L2.

ユーザUxとサーバSxとはTCP Renoを実装し、最大ウィンドウサイズは65,535byte、パケットサイズは1,500byteとした。   The user Ux and the server Sx implement TCP Reno, the maximum window size is 65,535 bytes, and the packet size is 1,500 bytes.

サーバ側ルータR1のRED機能は、事前の検討も踏まえてRTO発生の抑制効果が最大となるようにバッファの最小閾値MINth=9パケット,バッファの最大閾値MAXth=46パケット,最大廃棄率MAXp=1/6とした。なお、サーバ側ルータR1のRED機能がこれらの条件を有する場合を最適廃棄ケースと呼ぶ。   The RED function of the server side router R1 is based on the prior examination, so that the effect of suppressing the occurrence of RTO is maximized, the minimum buffer threshold MINth = 9 packets, the maximum buffer threshold MAXth = 46 packets, the maximum discard rate MAXp = 1 / 6. The case where the RED function of the server side router R1 has these conditions is called an optimum discard case.

ユーザUxとサーバSxとの間(以下、ユーザUx〜サーバSxと表記する)の各フローのうち、ユーザU3〜サーバS3,ユーザU4〜サーバS4,…,ユーザU16〜サーバS16の14フローは、先に帯域を占める先行トラヒックを模擬するものとして無限長のファイルが常時送信される設定にした。すなわち、ボトルネック回線L2の帯域が、ファイル長が限定されない14フローに先行して占められていることになる。なお、事前の検討によって先行フロー数を7以上にすると輻輳が発生することを確認した上で、輻輳を発生させるに十分なフロー数とすることを考慮して14フローとした。   Of the flows between the user Ux and the server Sx (hereinafter referred to as the user Ux to the server Sx), the 14 flows of the user U3 to the server S3, the user U4 to the server S4,. In order to simulate the preceding traffic occupying the band first, an infinite length file is set to be transmitted constantly. That is, the bandwidth of the bottleneck line L2 is occupied in advance of 14 flows whose file length is not limited. In addition, after confirming that congestion occurs when the number of preceding flows is 7 or more as a result of prior examination, the number of flows is set to 14 in consideration of the number of flows sufficient to generate congestion.

一方、ユーザU1〜サーバS1並びにユーザU2〜サーバS2の2フローは、後から二つ同時に入ってくる追加トラヒックを模擬するものとして300Kbyteの固定長ファイルが20秒周期で送信される設定にした。これにより、サーバ側ルータR1のバッファからパケットデータが溢れて周期的に輻輳状態が発生する状態が模擬される。なお、追加トラヒックのファイル長は特に限定されるものではないが、事前の検討に基づいて最も大きな輻輳を発生させる長さとした。また、追加フロー数は1以上であれば輻輳が発生するところ、先行フローと同様に輻輳を発生させるに十分なフロー数とすることを考慮して2フローとした。   On the other hand, the two flows of the user U1 to the server S1 and the user U2 to the server S2 are set so that a fixed-length file of 300 Kbytes is transmitted at a cycle of 20 seconds as a simulation of additional traffic that enters two later. As a result, a state in which packet data overflows from the buffer of the server side router R1 and a congestion state occurs periodically is simulated. Although the file length of the additional traffic is not particularly limited, it is set to a length that generates the largest congestion based on prior examination. In addition, when the number of additional flows is 1 or more, congestion occurs. Therefore, the number of flows is set to 2 in consideration of the number of flows sufficient to generate congestion in the same manner as the preceding flow.

なお、このモデルでは、ボトルネック回線L2の帯域、フロー数、バッファサイズを同一の倍率で拡大・縮小しても同じ結果が得られる。したがって、このネットワークモデルによって、本実施例のネットワーク規模に限られることなく、現実的な大規模ネットワークについての本発明の効果を検証することができる。   In this model, the same result can be obtained even if the bandwidth, the number of flows, and the buffer size of the bottleneck line L2 are enlarged or reduced at the same magnification. Therefore, this network model can verify the effect of the present invention on a realistic large-scale network without being limited to the network scale of the present embodiment.

シミュレーション時間は600秒とした。すなわち、この間に30回の追加トラヒックが発生し、その度にネットワークが輻輳状態になる。   The simulation time was 600 seconds. That is, 30 additional traffics occur during this time, and the network becomes congested each time.

ここで、従来のREDに対しては、トラヒック状況によって最適なパラメータ設定が異なるので効果が安定しないという問題点が指摘されている(S.Flod, R.Gummadi and S.Shenker;Adaptive RED:An Algorithm for Increasing the Robustness of RED's Active Queue Management,Technical Report,2001年8月を参照)。   Here, it has been pointed out that the effect of the conventional RED is not stable because the optimum parameter setting differs depending on the traffic situation (S.Flod, R.Gummadi and S.Shenker; Adaptive RED: An (See Algorithm for Increasing the Robustness of RED's Active Queue Management, Technical Report, August 2001).

そこで、本実施例では、最適廃棄ケースの最適設定からのずれによるRTO発生頻度の増加に対する本発明の抑制効果を評価した。具体的には、最適廃棄ケースを基準として、追加トラヒックを3フローに増加させて輻輳を大きくすることでREDの廃棄率が不足するようにした不足廃棄ケース、及び、先行トラヒックを10フローに減少させて輻輳を小さくすることでREDの廃棄率が過剰となるようにした過剰廃棄ケースについてもシミュレーションを行った。   Therefore, in this example, the suppression effect of the present invention against the increase in the RTO occurrence frequency due to the deviation from the optimum setting of the optimum disposal case was evaluated. Specifically, with the optimal discard case as a standard, the additional traffic is increased to 3 flows and congestion is increased to reduce the RED discard rate, and the preceding traffic is reduced to 10 flows. A simulation was also performed for an excessive discard case in which the RED discard rate was excessive by reducing congestion.

さらに、本発明のルータのバッファ管理方法の設定として、優遇カウントFcの初期優遇値Nを0から60まで5ずつ変化させた場合それぞれについてシミュレーションを行った。なお、初期優遇値N=0の場合は、本発明の処理のうち再送されたパケットデータの廃棄の回避処理のみが実行されている場合となる。   Furthermore, as a setting of the buffer management method of the router of the present invention, a simulation was performed for each case where the initial preferential value N of the preferential count Fc was changed by 5 from 0 to 60. In the case of the initial preferential value N = 0, only the avoidance process for discarding retransmitted packet data is executed in the process of the present invention.

また、本発明のルータのバッファ管理方法の効果の検証を行うためにサーバ側ルータR1にRED機能のみを実装させた場合を比較例として設定した。   Further, in order to verify the effect of the router buffer management method of the present invention, a case where only the RED function is implemented in the server side router R1 is set as a comparative example.

そして、本実施例では、1回の輻輳につき全フロー数のうちRTOが発生するフロー数の割合をRTO発生率とし、比較例を基準としたRTO発生率の減少効果で本発明の性能評価を行った。なお、RTO発生率は30回の平均で求めた。ここで、RTOが発生した場合の待ち時間のTCPのデフォルト設定は3秒であり、しかも輻輳の程度が大きい場合には更に増加する仕組みとなっており、RTOが1回発生すると3秒以上の待ち時間が生じ、その分データ伝送が遅延してユーザUxの利便性を害することになる。   In this embodiment, the ratio of the number of RTOs generated in one flow of congestion per one congestion is defined as the RTO occurrence rate, and the performance evaluation of the present invention is performed by the RTO occurrence rate reduction effect based on the comparative example. went. Note that the RTO occurrence rate was determined by averaging 30 times. Here, the default setting of the waiting time TCP when an RTO occurs is 3 seconds, and further increases when the degree of congestion is large. When an RTO occurs once, it exceeds 3 seconds. A waiting time is generated, and the data transmission is delayed correspondingly, thereby impairing the convenience of the user Ux.

以上の条件を用い、廃棄条件ケース(すなわち、最適廃棄ケース,不足廃棄ケース,過剰廃棄ケース)別に、本発明のルータのバッファ管理方法に係る初期優遇値Nの値別のシミュレーションと比較例のシミュレーションとを行った。そして、本発明を適用した場合の廃棄条件ケース別のRTO発生率について初期優遇値Nの変化に対する推移として図5に示す結果が得られた。   Using the above-described conditions, a simulation according to the value of the initial preferential value N according to the buffer management method of the router of the present invention and a simulation of a comparative example for each discard condition case (that is, an optimal discard case, an insufficient discard case, and an excessive discard case) And went. And the result shown in FIG. 5 was obtained as a transition with respect to the change of the initial preferential value N about the RTO occurrence rate according to the disposal condition case when the present invention is applied.

いずれの廃棄条件ケースにおいても、RTO発生率は初期優遇値Nの増加に伴って急激に減少し、初期優遇値N=20付近から変化が緩やかになった。そして、初期優遇値N=50で最も小さい値(不足廃棄ケースでは二番目に小さい値)となった。なお、RTO発生の減少効果は、特定のフローだけでなく、全フローで生じていた。   In any disposal condition case, the RTO occurrence rate decreased rapidly with the increase of the initial preferential value N, and the change became moderate from around the initial preferential value N = 20. The initial preferential value N = 50 was the smallest value (second smallest value in the case of insufficient disposal). It should be noted that the effect of reducing the occurrence of RTO occurred not only in specific flows but also in all flows.

一方、比較例のRTO発生率は、最適廃棄ケースで9.5%,不足廃棄ケースで15.6%,過剰廃棄ケースで15.2%となった。   On the other hand, the RTO occurrence rate of the comparative example was 9.5% in the optimum disposal case, 15.6% in the insufficient disposal case, and 15.2% in the excess disposal case.

これらから、比較例のRTO発生率に対する本発明を適用した場合のRTO発生率の減少効果を[(比較例のRTO発生率)−(本発明のRTO発生率)]/(比較例のRTO発生率)×100(%)によって算出した。なお、本発明のRTO発生率は初期優遇値N=50の場合の値を用いた。その結果、本発明によるRTO発生率の減少効果は、最適廃棄ケースで88%,不足廃棄ケースで82%,過剰廃棄ケースで78%となった。   From these, the reduction effect of the RTO generation rate when the present invention is applied to the RTO generation rate of the comparative example is [(RTO generation rate of the comparative example) − (RTO generation rate of the present invention)] / (RTO generation of the comparative example) Rate) × 100 (%). In addition, the value in the case of the initial preferential value N = 50 was used for the RTO occurrence rate of the present invention. As a result, the reduction effect of the RTO occurrence rate according to the present invention was 88% in the optimum disposal case, 82% in the insufficient disposal case, and 78% in the excess disposal case.

以上の結果から、本発明の制御方法を用いることによって従来の制御方法である比較例と比べてRTOの発生が大きく抑制されることが確認された。   From the above results, it was confirmed that the use of the control method of the present invention greatly suppresses the occurrence of RTO compared to the comparative example which is a conventional control method.

また、いずれの廃棄条件ケースにおいても初期優遇値N=50で最小値(不足廃棄ケースでは二番目に小さい値)となったことから、本発明を用いる場合、初期優遇値Nの設定は好ましくは30〜60程度、最も好ましくは50程度とすれば良いことが確認された。   Moreover, since the initial preferential value N = 50 is the minimum value (the second smallest value in the case of insufficient waste) in any disposal condition case, the initial preferential value N is preferably set when using the present invention. It was confirmed that it should be about 30 to 60, most preferably about 50.

また、本発明の制御方法はいずれの廃棄条件ケースにおいても安定した性能を発揮するものであってネットワークのトラヒック状況の変化による大きな性能低下は見られず、本発明を用いた場合にはネットワークの状況変化のスループット性能への影響は小さいことが確認された。さらに、このことから、トラヒック状況によって最適なパラメータ設定が異なるので効果が安定しないという従来のRED機能の問題点も改善できることが確認された。   In addition, the control method of the present invention exhibits stable performance in any disposal condition case, and no significant performance degradation is observed due to changes in the traffic situation of the network. It was confirmed that the influence of the situation change on the throughput performance was small. Further, it was confirmed that the problem of the conventional RED function that the effect is not stable because the optimum parameter setting differs depending on the traffic situation can be improved.

本発明のルータのバッファ管理方法の実施形態の一例を説明するフローチャートである。It is a flowchart explaining an example of embodiment of the buffer management method of the router of this invention. パケットデータの廃棄率と閾値との間の関係を示す図である。It is a figure which shows the relationship between the discard rate of packet data, and a threshold value. 本発明による同一ウィンドウ内の複数パケットデータ廃棄並びに再送されたパケットデータ廃棄の回避を説明する概念図である。It is a conceptual diagram explaining avoidance of multiple packet data discard and retransmitted packet data within the same window according to the present invention. 実施例のシミュレーションモデルの構成を説明する図である。It is a figure explaining the structure of the simulation model of an Example. 実施例における本発明を適用した場合のRTO発生率の結果を示す図である。It is a figure which shows the result of the RTO incidence rate at the time of applying this invention in an Example. 従来のパケットデータ伝送の制御方法におけるネットワークノードの構成を示すブロック図である。It is a block diagram which shows the structure of the network node in the control method of the conventional packet data transmission.

符号の説明Explanation of symbols

U1,U2,…,U16 ユーザ
S1,S2,…,S16 サーバ
L1 リンク
L2 ボトルネック回線
R0,R1 ルータ
U1, U2, ..., U16 users S1, S2, ..., S16 server L1 link L2 bottleneck line R0, R1 router

Claims (2)

ルータのRED機能によって廃棄候補とされたパケットデータのうち前記パケットデータが属するフロー毎に管理されて前記ルータのバッファに取り込まれると値が低減する優遇カウントが廃棄条件を満たしていないものと再送されたものとは廃棄せず、前記ルータに続いて入力されるパケットデータの中から前記優遇カウントが廃棄条件を満たし且つ再送されたものではないものを廃棄することを特徴とするルータのバッファ管理方法。   Of the packet data determined as discard candidates by the RED function of the router, the preferential count whose value decreases when it is managed for each flow to which the packet data belongs and is taken into the buffer of the router is retransmitted as not satisfying the discard condition. A buffer management method for a router, wherein the preferential count satisfies a discard condition and is not retransmitted from packet data subsequently input to the router without discarding the packet data . RED機能によってパケットデータを廃棄するか否かを判定するRED実行手段と、前記RED実行手段の判定結果に基づいて値が変化する廃棄フラグを管理する廃棄フラグ管理手段と、前記廃棄フラグの値に基づいて前記パケットデータが廃棄候補か否かを判定する廃棄フラグ判定手段と、前記パケットデータがバッファに取り込まれると値が低減する優遇カウントをフロー毎に管理する優遇カウント管理手段と、前記優遇カウントが廃棄条件を満たしているか否かを判定する優遇カウント判定手段と、前記パケットデータのシーケンス番号をフロー毎に管理する再生パケットデータ管理手段と、前記フロー毎に管理されるシーケンス番号に基づいて前記パケットデータが再送されたものか否かを判定する再送パケットデータ判定手段とを有することを特徴とするルータ。
A RED executing means for determining whether or not to discard packet data by the RED function; a discard flag managing means for managing a discard flag whose value changes based on a determination result of the RED executing means; and a value of the discard flag. A discard flag determining unit that determines whether or not the packet data is a discard candidate based on the preferential count managing unit that manages a preferential count that decreases when the packet data is taken into the buffer for each flow; and the preferential count Based on preferential count determination means for determining whether or not the packet condition is satisfied, reproduction packet data management means for managing the sequence number of the packet data for each flow, and the sequence number managed for each flow Retransmission packet data determination means for determining whether or not the packet data has been retransmitted; Router which is characterized in that.
JP2007024254A 2007-02-02 2007-02-02 Router buffer management method and router using the management method Expired - Fee Related JP4838739B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007024254A JP4838739B2 (en) 2007-02-02 2007-02-02 Router buffer management method and router using the management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007024254A JP4838739B2 (en) 2007-02-02 2007-02-02 Router buffer management method and router using the management method

Publications (2)

Publication Number Publication Date
JP2008193310A true JP2008193310A (en) 2008-08-21
JP4838739B2 JP4838739B2 (en) 2011-12-14

Family

ID=39752983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007024254A Expired - Fee Related JP4838739B2 (en) 2007-02-02 2007-02-02 Router buffer management method and router using the management method

Country Status (1)

Country Link
JP (1) JP4838739B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011193239A (en) * 2010-03-15 2011-09-29 Chugoku Electric Power Co Inc:The Apparatus and method for controlling congestion
JP2011223186A (en) * 2010-04-07 2011-11-04 Chugoku Electric Power Co Inc:The Congestion controller and congestion control method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102868577A (en) * 2012-10-09 2013-01-09 盛科网络(苏州)有限公司 Weighted random early detection (WRED) automated testing method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005006088A (en) * 2003-06-12 2005-01-06 Nec Access Technica Ltd Device and system for band control

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005006088A (en) * 2003-06-12 2005-01-06 Nec Access Technica Ltd Device and system for band control

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011193239A (en) * 2010-03-15 2011-09-29 Chugoku Electric Power Co Inc:The Apparatus and method for controlling congestion
JP2011223186A (en) * 2010-04-07 2011-11-04 Chugoku Electric Power Co Inc:The Congestion controller and congestion control method

Also Published As

Publication number Publication date
JP4838739B2 (en) 2011-12-14

Similar Documents

Publication Publication Date Title
CN109120544B (en) Transmission control method based on host end flow scheduling in data center network
JP3970138B2 (en) Congestion control device in Ethernet switch
JP4080911B2 (en) Bandwidth monitoring device
WO2018210117A1 (en) Congestion control method, network device, and network interface controller thereof
US7706261B2 (en) Queue-based active queue management process
US6826147B1 (en) Method and apparatus for aggregate flow control in a differentiated services network
WO2020236277A1 (en) System and method for facilitating tracer packets in a data-driven intelligent network
WO2019157867A1 (en) Method for controlling traffic in packet network, and device
US20060203730A1 (en) Method and system for reducing end station latency in response to network congestion
CN108989235B (en) Message forwarding control method and device
CN109714267B (en) Transmission control method and system for managing reverse queue
US8730813B2 (en) Apparatus for performing packet-shaping on a packet flow
CN107852371B (en) Data packet network
EP1240753A1 (en) Congestion control method for a packet-switched network
CN112995048B (en) Blocking control and scheduling fusion method of data center network and terminal equipment
CN113242183A (en) Data stream sending control method and device, intelligent terminal and storage medium
CN107852372B (en) Data packet network
CN113055301A (en) Congestion control method and related equipment
JP2008118281A (en) Communication device
JP4838739B2 (en) Router buffer management method and router using the management method
WO2021101640A1 (en) Method and apparatus of packet wash for in-time packet delivery
Abu et al. Inferring and controlling congestion in CCN via the pending interest table occupancy
Abu et al. Leveraging the pending interest table occupancy for congestion control in CCN
Yasuda et al. A probabilistic interest packet aggregation for content-centric networking
Wechta et al. The interaction of the TCP flow control procedure in end nodes on the proposed flow control mechanism for use in IEEE 802.3 switches

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20100106

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110512

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110531

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110725

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20110927

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110930

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

Free format text: PAYMENT UNTIL: 20141007

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees