JP2005354738A - Atm cell transfer apparatus - Google Patents

Atm cell transfer apparatus Download PDF

Info

Publication number
JP2005354738A
JP2005354738A JP2005229016A JP2005229016A JP2005354738A JP 2005354738 A JP2005354738 A JP 2005354738A JP 2005229016 A JP2005229016 A JP 2005229016A JP 2005229016 A JP2005229016 A JP 2005229016A JP 2005354738 A JP2005354738 A JP 2005354738A
Authority
JP
Japan
Prior art keywords
packet
priority
queue
transmission time
scheduled transmission
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
JP2005229016A
Other languages
Japanese (ja)
Other versions
JP4135007B2 (en
Inventor
Seiji Kozuki
清司 上月
Takeshi Aimoto
毅 相本
Yoshihiko Sakata
善彦 阪田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2005229016A priority Critical patent/JP4135007B2/en
Publication of JP2005354738A publication Critical patent/JP2005354738A/en
Application granted granted Critical
Publication of JP4135007B2 publication Critical patent/JP4135007B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a shaping device effectively utilizing communication path bands. <P>SOLUTION: There are provided a queue 100 for high-priority packets and a queue 101 for low-priority packets and if there is no transmission waiting packet in the priority queue in spite of a time to transmit a packet from the priority queue 100, a transmission waiting packet in the read non-priority queue 101 is transmitted by giving a high priority thereto. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、パケット転送網に接続されるパケット中継装置に関し、更に詳しくはパケット中継装置内のトラヒックシェーピング装置に関する。   The present invention relates to a packet relay device connected to a packet transfer network, and more particularly to a traffic shaping device in a packet relay device.

インターネット等のネットワークにおけるパケット転送では、ユーザは、情報系列を数十バイト〜数万バイト程度の長さのデータ列(ペイロード)に分割し、通信プロトコル毎に決められているフォーマットに従って宛先情報や制御情報(ヘッダ)を付加したパケットを用いて情報を転送する。パケットの長さはプロトコル毎に異なり、IP(Internet Protocol)の様にパケット毎に可変長のものと、ATM(Asynchronous Transfer Mode)の様に固定長のものがある。   In packet transfer in a network such as the Internet, a user divides an information sequence into a data string (payload) having a length of several tens to several tens of thousands of bytes, and destination information and control according to a format determined for each communication protocol. Information is transferred using a packet to which information (header) is added. The packet length differs for each protocol, and there is a variable length for each packet such as IP (Internet Protocol) and a fixed length such as ATM (Asynchronous Transfer Mode).

近年、公衆パケット網において安価なサービスが適用されるようになり、複数の私設網を公衆パケット網を介して接続した仮想私設網(Virtual Private Network:VPN)が注目されている。図2に公衆網を介した企業ネットワークの接続図を示す。図2において、私設網A41と私設網B42は公衆網40を介して接続されている。一般に、公衆網を介して通信を行う場合、ユーザはパケット転送前に公衆網の管理者との間に、送信帯域やパケット転送の優先度に関する契約を行う。ユーザ・公衆網管理者間の契約が成立し、端末が公衆網に向けてパケットを転送し始めると、公衆網の入口に位置している中継装置402で端末の送信帯域を監視し、契約内容に違反している端末のパケットの優先度を下げたり、あるいは違反パケットを廃棄したりする。この公衆網側の監視機能をUPC(Usage Parameter Control)という。通信途中でパケットが廃棄されても、通常は受信端末でパケット廃棄が生じたことを認識して送信端末に向けてパケット再送要求が出され、送信端末がパケットを再送する機能を備えているので、最終的な情報の欠落はないが、転送遅延が非常に大きくなってしまうことや、再送パケットによって網が輻輳(込み合うこと)する原因にもなるために、パケット廃棄は生じないことが望ましい。そこで、公衆網に向けてパケットを送信している中継装置401では、公衆網のUPCによってパケットが廃棄されない様に送信帯域を制御してパケットを送信することが必要となる。このパケット送信帯域を制御する機能をトラヒックシェーピング機能、あるいは単にシェーピング機能という。シェーピング機能を実現するためのシェーピング装置は、上述の様な、公衆網に直接接続されている中継装置の他に、ユーザの送信端末や、あるいは私設網へ向けてパケットを送信する公衆網の出口部分に必要な場合もある。 In recent years, inexpensive services have been applied to public packet networks, and virtual private networks (VPNs) in which a plurality of private networks are connected via public packet networks have attracted attention. FIG. 2 shows a connection diagram of a corporate network through a public network. In FIG. 2, a private network A 41 and a private network B 42 are connected via a public network 40. In general, when communicating via a public network, a user makes a contract with a public network administrator regarding the transmission bandwidth and priority of packet transfer before packet transfer. When a contract between the user and the public network manager is established and the terminal starts to transfer packets toward the public network, the relay band 402 located at the entrance of the public network monitors the transmission band of the terminal, and the contract contents Decrease the priority of the packet of the terminal that violates or discard the violating packet. This monitoring function on the public network side is called UPC (Usage Parameter Control). Even if a packet is discarded during communication, the receiving terminal normally recognizes that the packet has been discarded, and a packet retransmission request is issued to the transmitting terminal, and the transmitting terminal has a function to retransmit the packet. Although there is no final loss of information, it is desirable that packet discard does not occur because the transfer delay becomes very large and the network is congested by the retransmitted packets. Therefore, it is necessary for the relay apparatus 401 that transmits a packet toward the public network to control the transmission band and transmit the packet so that the packet is not discarded by the UPC of the public network. This function of controlling the packet transmission band is called a traffic shaping function or simply a shaping function. In addition to the relay device directly connected to the public network as described above, the shaping device for realizing the shaping function is a user's transmission terminal or an exit of the public network that transmits packets toward the private network. It may be necessary for the part.

公衆網がユーザに提供するサービス、すなわちユーザ・公衆網管理者間の契約は、公衆網内に常時一定の帯域を確保してからパケットを転送する契約と、公衆網ATM内の帯域を確保せずにパケットを転送するベストエフォート系の契約に大別される。前者は、公衆網内で他のユーザのトラヒック量の影響を受けずに常に一定の帯域でパケットを転送できるため、音声等の転送に適している。後者は、他のユーザのトラヒック量によっては、転送遅延が大きくなったり、あるいは網内でパケットが廃棄されることもあるが、一般に固定帯域契約よりも安価であり、FTP(File Transfer Protocol)や電子メール等のバースト的(突発的)なデータ系トラヒックの転送に用いられている。最近では、ベストエフォート系の契約ながら公衆網が混雑しているときでも一定帯域を保証するクラスが提案されている(ATMでは、GFR(Guaranteed Frame Rate)と呼ばれている)。このクラスでは、パケット転送前に最低保証帯域と最大転送帯域を契約し、公衆網内が混雑していないときには最大転送帯域でパケットを転送し、網が混雑してきた場合でも最低保証帯域分は必ず転送される。 The service provided by the public network to the user, that is, the contract between the user and the public network administrator is to secure a certain bandwidth within the public network and then forward the packet, and to secure the bandwidth within the public network ATM. It is roughly classified into a best-effort contract that forwards packets without using a network. The former is suitable for transferring voice and the like because it can always transfer packets in a fixed band without being affected by the traffic volume of other users in the public network. In the latter case, depending on the traffic volume of other users, the transfer delay may increase or the packet may be discarded in the network. However, the latter is generally cheaper than the fixed bandwidth contract, and FTP (File Transfer Protocol) or It is used for transferring bursty (sudden) data traffic such as electronic mail. Recently, a class that guarantees a certain bandwidth even when the public network is congested despite a best effort contract has been proposed (referred to as GFR (Guaranteed Frame Rate) in ATM). In this class, the minimum guaranteed bandwidth and the maximum transfer bandwidth are contracted before packet transfer, packets are transferred at the maximum transfer bandwidth when the public network is not congested, and the minimum guaranteed bandwidth is always guaranteed even when the network is congested. Transferred.

シェーピング装置の実現方法に関しては、例えば、特開平9-307566号公報“トラフィックシェーピング装置”(従来技術1)に述べられている。従来技術1はATMに関して記述されている。従来技術1では、シェーピングを行いたい契約単位(例えば、VC(Virtual Connection))毎にキューを備え、セル(一般に、ATMで用いる固定長パケットを特に“セル”と称する)送信時に送信したVCの次のセルを送信することができる時刻(以下、送信予定時刻)を計算し、それを二分木構造を用いて記憶している。すなわち、二分木の底辺は各VCの送信予定時刻が記憶されており、送信予定時刻が早い(時間的に過去にあるもの)時刻のVCが勝ち上がっていき、最終的に最も送信予定時刻が早いVCが選び出される。従って、二分木の頂点には最も優先して送信されるべきVCの送信予定時刻(底辺にある値の一つ)が記憶されている。送信予定時刻の計算およびソーティングは、セル送信時の他に、送信待ちセルがない状態でセルを受信したときにも行なわれる。これにより、前回セル送信時のソーティング結果(二分木構造)を利用してソーティングを行うことができるため、log(VC数)のオーダの処理時間で最優先に送信すべきVCを選び出すことができる。 A method for realizing a shaping device is described in, for example, Japanese Patent Application Laid-Open No. 9-307566 “Traffic Shaping Device” (Prior Art 1). Prior art 1 is described with respect to ATM. In the prior art 1, a queue is provided for each contract unit (for example, VC (Virtual Connection)) to be shaped, and the VC of the VC transmitted at the time of transmitting a cell (generally, a fixed-length packet used in ATM is particularly referred to as “cell”). A time at which the next cell can be transmitted (hereinafter, “scheduled transmission time”) is calculated and stored using a binary tree structure. That is, at the bottom of the binary tree, the scheduled transmission time of each VC is stored, the VC of the time when the scheduled transmission time is early (the one that is in the past in time) wins up, and finally the scheduled transmission time is the most. An early VC is selected. Therefore, a VC transmission scheduled time (one of the values at the bottom) to be transmitted with the highest priority is stored at the top of the binary tree. The calculation and sorting of the scheduled transmission time is performed not only at the time of cell transmission, but also when a cell is received without a transmission waiting cell. Thus, since sorting can be performed using the sorting result (binary tree structure) at the previous cell transmission, a VC to be transmitted with the highest priority can be selected in the processing time of the order of log (number of VCs). .

通常、通信路に送信されているパケットの中には、重要なパケットとさほど重要でないパケットが混在している。ここで、重要なパケットとは、telnet等の低遅延転送が要求されるトラヒックのパケットであり、さほど重要でないパケットとは、電子メールの様な遅延が大きくなっても影響が少ないトラヒックのパケットのことである。この様に重要なパケットとさほど重要でないパケットが混在している場合では、網が輻輳しているときにでも重要なパケットを優先して先に送信する優先制御を行うことが重要となる。そこで、通常パケットのヘッダ部分には、そのパケットの優先度を示すフィールドが準備されている。例えば、IPパケットの場合にはサービスタイプ(Type of Service)フィールドであり、ATMセルの場合にはCLP(Cell Loss Priority)ビットである。尚、以下では、簡単のために優先度は2段階(高優先度/低優先度)して説明するが、IPパケットでは更に細かい優先度を与えることもできる。また、高優先度が割り当てられたパケットを高優先度パケット、低優先度が割り当てられたパケットを低優先度パケットと記述する。   Usually, in packets transmitted on a communication path, important packets and less important packets are mixed. Here, an important packet is a traffic packet that requires low-latency transfer such as telnet, and a less important packet is a traffic packet that has little influence even when the delay is large, such as e-mail. That is. In the case where important packets and less important packets are mixed, it is important to perform priority control in which important packets are preferentially transmitted even when the network is congested. Therefore, a field indicating the priority of the packet is prepared in the header portion of the normal packet. For example, in the case of an IP packet, it is a service type (Type of Service) field, and in the case of an ATM cell, it is a CLP (Cell Loss Priority) bit. In the following, for the sake of simplicity, the priority will be described in two stages (high priority / low priority), but a finer priority can be given to IP packets. A packet assigned a high priority is described as a high priority packet, and a packet assigned a low priority is described as a low priority packet.

帯域保証を行うベストエフォート系のサービスに対して、従来のシェーピング装置を適用すると、全パケットを高優先度で送信することになる。保証帯域を超えた高優先度パケットは、UPC機能によって優先度が下げられるが、このとき、上記の重要パケット・非重要パケットを考慮せずに、高優先度パケット・低優先度パケットを決定するため、重要なtelnetが低優先度パケットになったり、さほど重要でないWebのパケットが高優先度パケットになったりすることもあり、これはユーザにとって望ましい優先度の割り当てではない。シェーピング装置内で、重要パケットを高優先度パケットに、非重要パケットを低優先度パケットに割り当てることは容易であるが、高優先度パケットの送信帯域が保証帯域以下になるようにシェーピングを行わないと、UPCで無作為に優先度が下げられることになるので、これもユーザにとって望ましい優先度の割り当てではない。また、重要パケットのトラヒック量が少ない場合には保証帯域をできないが、主な課金の対象は保証帯域分であるので保証帯域を有効に使い切ることが重要である。 If a conventional shaping device is applied to a best-effort service that guarantees bandwidth, all packets are transmitted with high priority. The high priority packet exceeding the guaranteed bandwidth is lowered in priority by the UPC function. At this time, the high priority packet and the low priority packet are determined without considering the above important packet and non-important packet. Therefore, an important telnet may become a low-priority packet, or a less important Web packet may become a high-priority packet, which is not a priority assignment desirable for the user. Within a shaping device, it is easy to assign important packets to high-priority packets and non-important packets to low-priority packets, but do not perform shaping so that the transmission bandwidth of high-priority packets is below the guaranteed bandwidth. Then, since the priority is randomly lowered by UPC, this is also not a priority assignment desirable for the user. In addition, when the traffic amount of important packets is small, the guaranteed bandwidth cannot be obtained. However, since the main billing target is the guaranteed bandwidth, it is important to use up the guaranteed bandwidth effectively.

本発明の第1の目的は、同一相手先に送信するパケットの内の優先して送信すべきパケットを保証帯域(パケット転送前に契約)で送信し、通信路帯域に余裕があれば、優先パケットの送信帯域と非優先パケットの送信帯域の合計帯域が最大転送帯域(パケット転送前に契約)以下になる様に非優先パケットを送信する様なシェーピング装置を提供することである。 A first object of the present invention is to transmit a packet to be preferentially transmitted among packets transmitted to the same destination in a guaranteed bandwidth (contract before packet transfer), and if there is a margin in the communication channel bandwidth, priority is given. It is an object of the present invention to provide a shaping device that transmits a non-priority packet so that the total bandwidth of the packet transmission band and the non-priority packet transmission band is equal to or less than the maximum transfer band (contract before packet transfer).

本発明の第2の目的は、上述のユーザにとって望ましい優先度割り当てを行い、更に、さほど重要でないパケットの一部を高優先度パケットとして送信することで保証帯域を有効に利用する様なシェーピング装置を提供することである。 A second object of the present invention is a shaping apparatus that performs priority allocation desirable for the above-mentioned user, and further uses a guaranteed bandwidth effectively by transmitting a part of a less important packet as a high priority packet. Is to provide.

本発明の第3の目的は、ATM網において上位レイヤのパケット単位で帯域保証を行うGFRサービスに対応したシェーピング装置を提供することである。 A third object of the present invention is to provide a shaping device corresponding to a GFR service that guarantees a bandwidth in units of packets in an upper layer in an ATM network.

上記第1の課題を解決するために、本発明においては、パケット中継装置の回線対応部内のシェーピング部に、ユーザ毎に高優先度パケットを蓄積するためのキュー(以下、優先キュー)と、低優先度パケットを蓄積するためのキュー(以下、非優先キュー)を備える。優先キュー、および非優先キューはおのおの1つであってもよいし、複数個のキューが存在してもよい。   In order to solve the first problem, in the present invention, a queue (hereinafter referred to as a priority queue) for storing high priority packets for each user, A queue for storing priority packets (hereinafter referred to as a non-priority queue) is provided. Each of the priority queue and the non-priority queue may be one, or a plurality of queues may exist.

また、優先キューに蓄積されている送信待ちパケットの先頭パケットの送信予定時刻は保証帯域を守る様に計算し、非優先キューに蓄積されている送信待ちパケットの先頭パケットの送信予定時刻はすぐに送信される時刻を計算し、優先キュー/非優先キューを含めた送信帯域(最大契約帯域)に対応する送信予定時刻を計算するための送信予定時刻計算回路を備える。更に、優先キューから読出されたパケットには高優先度を与え、非優先キューから読出されたパケットには低優先度を与える優先度情報付与回路を備える。送信予定時刻計算回路と優先度情報付与回路によって、重要パケットを高優先度パケットとして保証帯域で送信することができ、かつ残りの帯域(最大契約帯域−保証帯域)で非重要パケットを低優先度パケットとして送信することができる。 In addition, the scheduled transmission time of the first packet of transmission waiting packets stored in the priority queue is calculated so as to protect the guaranteed bandwidth, and the scheduled transmission time of the first packet of transmission waiting packets stored in the non-priority queue is immediately A scheduled transmission time calculation circuit for calculating a transmission time and calculating a scheduled transmission time corresponding to a transmission band (maximum contract bandwidth) including the priority queue / non-priority queue is provided. Further, a priority information adding circuit is provided that gives a high priority to a packet read from the priority queue and gives a low priority to a packet read from the non-priority queue. With the scheduled transmission time calculation circuit and priority information addition circuit, important packets can be transmitted in the guaranteed bandwidth as high-priority packets, and non-important packets in the remaining bandwidth (maximum contract bandwidth-guaranteed bandwidth) with low priority It can be sent as a packet.

前記送信予定時刻計算回路は、優先キューの送信予定時刻を計算する際に、優先キューのキュー長(蓄積パケット数)を参照し、一定量以上のパケットが蓄積されている場合には保証帯域を守らずにすぐに送信される時刻を送信予定時刻として計算してもよい。これにより、シェーピングしている為に優先キューの蓄積パケット数が多くなり、キューから溢れてしまう現象を回避することができる。 The scheduled transmission time calculation circuit refers to the queue length (number of accumulated packets) of the priority queue when calculating the scheduled transmission time of the priority queue, and if the packet exceeds a certain amount, the guaranteed bandwidth is calculated. The time that is transmitted immediately without observing may be calculated as the scheduled transmission time. As a result, the number of packets accumulated in the priority queue increases due to shaping, and the phenomenon of overflow from the queue can be avoided.

上記第2の課題を解決するために、本発明においては、前記優先度付与回路に、優先キューからパケットを送信すべき時刻になっているのに関わらず優先キューに送信待ちパケットがない場合に、読出された非優先キューの送信待ちパケットに対して高優先度を与える機能を備える。これにより、重要パケットのトラヒック量が少ない場合にも保証帯域をすべて優先パケットとして送信することができ、保障帯域を有効に利用することができる。 In order to solve the second problem, in the present invention, when there is no packet waiting for transmission in the priority queue in the priority assigning circuit regardless of the time when the packet should be transmitted from the priority queue. A function of giving high priority to the read waiting packet in the non-priority queue is provided. As a result, even when the traffic amount of important packets is small, all guaranteed bandwidths can be transmitted as priority packets, and the guaranteed bandwidth can be used effectively.

上記第3の課題を解決するために、本発明においては、上位レイヤのパケット最終セル(以下、EOP(End Of Packet)セル)を検出して、EOPセルを送受信した場合にのみ上記IPパケットを送受信した場合の処理を行う機能を備える。これにより、上位レイヤのパケット単位でセルを送受信することができ、GFRサービスに対応したシェーピングを行うことができる。 In order to solve the third problem, in the present invention, the IP packet is transmitted only when an upper layer packet last cell (hereinafter referred to as an EOP (End Of Packet) cell) is detected and an EOP cell is transmitted / received. A function is provided for performing processing when data is transmitted and received. As a result, cells can be transmitted and received in units of higher layer packets, and shaping corresponding to the GFR service can be performed.

以上に述べた様に、本発明によれば、重要パケットを高優先度パケットとして保証帯域で送信することができ、重要パケット間に空き時間がある場合には非重要パケットを低優先度パケットとして隙間なく送信できるシェーピング装置を提供することができる。従って、網が空いているときには最大帯域でパケットを転送することができ、網が混雑しているときにでも重要パケットを保証帯域で転送することができ、通信路の帯域を有効に利用することができる。更に、重要パケットのトラヒック量が少ない場合には非重要パケットを高優先度パケットとして送信することができ、保障帯域を最大限に利用することができる。   As described above, according to the present invention, an important packet can be transmitted as a high priority packet in the guaranteed bandwidth, and if there is a free time between important packets, an unimportant packet is set as a low priority packet. A shaping apparatus that can transmit without gaps can be provided. Therefore, packets can be transferred at the maximum bandwidth when the network is free, important packets can be transferred at the guaranteed bandwidth even when the network is congested, and the bandwidth of the communication path can be used effectively. Can do. Furthermore, when the traffic amount of important packets is small, non-important packets can be transmitted as high priority packets, and the guaranteed bandwidth can be utilized to the maximum.

また、本発明によれば、ATMにおいて上位レイヤのパケット単位でUPCを行うGFRサービスに対するシェーピング装置も構成することができ、網が空いているときには最大帯域で上位レイヤのパケットを転送することができ、網が混雑しているときにでも上位レイヤの優先パケットを保証帯域で転送することができる。 In addition, according to the present invention, it is possible to configure a shaping device for a GFR service that performs UPC in units of upper layer packets in ATM, and when the network is free, upper layer packets can be transferred with the maximum bandwidth. Even when the network is congested, priority packets in higher layers can be transferred in the guaranteed bandwidth.

図3に本発明を適用したパケット中継装置の構成図を示す。以下では、パケットはIPパケットとして説明する。IPパケットのフォーマットを図4に示しておく。図3において、パケット中継装置98は、網99−1〜99−3に接続されている。パケット中継装置98は、接続されている回線の種類(イーサ、ATM、フレームリレー等)に対応した回線対応部2−1〜2−3、次の転送先を決定するパケット処理部3−1〜3−2、および複数のパケット処理部の中継を行うクロスバスイッチ8から構成されている。図3では1つのパケット処理部3−1に、複数の回線対応部2−1、2−2がバス9によって接続されているが、1つのパケット処理部に1つの回線対応部が接続される構成でもよい。また、図3では複数のパケット処理部3−1、3−2がクロスバスイッチ8によって接続されているが、パケット処理部が1つである様な構成でもよく、この場合クロスバスイッチ8は不要である。   FIG. 3 shows a configuration diagram of a packet relay apparatus to which the present invention is applied. Hereinafter, the packet will be described as an IP packet. The format of the IP packet is shown in FIG. In FIG. 3, the packet relay apparatus 98 is connected to the networks 99-1 to 99-3. The packet relay device 98 includes line-corresponding units 2-1 to 2-3 corresponding to types of connected lines (such as Ethernet, ATM, and frame relay), and packet processing units 3-1 to 3-1 that determine the next transfer destination. 3-2, and a crossbar switch 8 that relays a plurality of packet processing units. In FIG. 3, a plurality of line corresponding units 2-1 and 2-2 are connected to one packet processing unit 3-1, by a bus 9, but one line corresponding unit is connected to one packet processing unit. It may be configured. In FIG. 3, a plurality of packet processing units 3-1 and 3-2 are connected by the crossbar switch 8. However, the configuration may be such that there is only one packet processing unit. In this case, the crossbar switch 8 is unnecessary. is there.

次に、パケット中継装置98がパケットを受信し、送信先の検索を行い、検索結果の回線に向けてパケットを送信する動作について説明する。私設網99−2から受信されたパケットは、回線対応部2−2、およびバス9を介してパケット処理部3−1内のパケット転送部4へ送られる。パケット転送部4では、受信パケットをパケットバッファ5に一時的に保存するとともに、その転送先IPアドレス(図4ではDestination IP Address)等のルーティングに必要な情報が書き込まれているヘッダをルート検索部6に通知する。ルート検索部6では、ヘッダ内の転送先アドレスからルーティング情報メモリ7に記憶してあるルーティング先を読出す。ルート検索部6は、読出した結果のルーティング先の情報をパケット転送部4に通知する。パケット転送部4は、パケットバッファ5からパケットを読出し、ルート検索部6から通知されたルーティング先へ読出したパケットを転送する。ルーティング先の検索結果によって、パケットはクロスバスイッチ8、他のパケット処理部、バスを介して回線対応部に転送される場合と、直接バス9を介して回線対応部に転送される場合がある。例えば、公衆網99−1に向けて転送する場合は、バス9を介して回線対応部2−1に転送され、公衆網99−1との契約帯域を守るために、パケットはシェーピング装置1によってシェーピングされて、物理レイヤ対応部111を介して、公衆網99−1に送信される(私設網に向けて送信する場合には、一般にシェーピングの必要性は薄い)。 Next, an operation in which the packet relay device 98 receives a packet, searches for a transmission destination, and transmits the packet toward the search result line will be described. The packet received from the private network 99-2 is sent to the packet transfer unit 4 in the packet processing unit 3-1, via the line corresponding unit 2-2 and the bus 9. The packet transfer unit 4 temporarily stores the received packet in the packet buffer 5 and uses a route search unit for a header in which information necessary for routing such as a transfer destination IP address (Destination IP Address in FIG. 4) is written. 6 is notified. The route search unit 6 reads the routing destination stored in the routing information memory 7 from the transfer destination address in the header. The route search unit 6 notifies the packet transfer unit 4 of the routing destination information as a result of reading. The packet transfer unit 4 reads the packet from the packet buffer 5 and transfers the read packet to the routing destination notified from the route search unit 6. Depending on the search result of the routing destination, the packet may be transferred to the line corresponding unit via the crossbar switch 8, another packet processing unit, or the bus, or may be transferred directly to the line corresponding unit via the bus 9. For example, when transferring to the public network 99-1, the packet is transferred to the line corresponding unit 2-1 via the bus 9, and the packet is sent by the shaping device 1 to protect the contract bandwidth with the public network 99-1. It is shaped and transmitted to the public network 99-1 via the physical layer corresponding unit 111 (in the case of transmission toward a private network, generally, shaping is not necessary).

図1に回線対応部2−1内のシェーピング装置1のブロック図を示す。図1において、シェーピング装置1は、パケットを一時的にキューイングしておくパケットバッファ部10、受信したパケットの優先度を判別し、受信パケットをキューイングすべきキューを決定するキューイング先判別回路11、キュー毎の送信予定時刻から各ユーザ毎に最優先で送信すべきキューの送信予定時刻までを2分木構造を用いて記憶し、更にユーザ毎の送信予定時刻から最優先で送信すべきユーザの送信予定時刻までを2分木構造を用いて記憶しておく送信予定時刻記憶回路12、送信予定時刻記憶回路12に記憶してある2分木構造の送信予定時刻を用いて最優先で送信すべきキューを選び出し、結果を再び送信予定時刻記憶回路12に書き戻すソーティング回路17、パケット送信・受信時に該当出力相手先の送信予定時刻を計算し、計算結果の送信予定時刻を送信予定時刻記憶回路12に保存する送信予定時刻計算回路13、および送信予定時刻記憶回路12に記憶されているキュー毎の送信予定時刻に従って、パケットバッファ10からパケットを読出して送信するパケット読出し回路14、送信されるパケットに対して優先度情報(高優先度/低優先度)を付与する優先度情報付与回路15、および現在の時刻を示している時計16より構成される。 FIG. 1 is a block diagram of the shaping device 1 in the line corresponding unit 2-1. In FIG. 1, a shaping apparatus 1 includes a packet buffer unit 10 for temporarily queuing a packet, a priority of a received packet, and a queuing destination determination circuit that determines a queue in which the received packet should be queued. 11. Store from the scheduled transmission time for each queue to the scheduled transmission time of the queue to be transmitted with the highest priority for each user using a binary tree structure, and further transmit with the highest priority from the scheduled transmission time for each user The scheduled transmission time storage circuit 12 that stores the user's scheduled transmission time using the binary tree structure, and the binary tree structure transmission scheduled time stored in the transmission scheduled time storage circuit 12 has the highest priority. A sorting circuit 17 that selects a queue to be transmitted and writes the result back to the scheduled transmission time storage circuit 12; According to the scheduled transmission time calculation circuit 13 that stores the estimated transmission time of the calculation result in the scheduled transmission time storage circuit 12 and the scheduled transmission time for each queue stored in the scheduled transmission time storage circuit 12. A packet reading circuit 14 for reading and transmitting packets from, a priority information giving circuit 15 for giving priority information (high priority / low priority) to the transmitted packets, and a clock indicating the current time 16.

パケットバッファ10は、保証帯域内で送信する優先パケットをキューイングしておく優先キュー100(ユーザ毎に存在し、図1ではユーザ1の優先キューを100−1、ユーザ2の優先キューを100−2と示している)と、保証帯域外で網が空いているときに送信する非優先パケットをキューイングしておく非優先キュー101(図1では優先キューと同様の規則で101−1、101−2と示している)により構成される。 The packet buffer 10 is a priority queue 100 for queuing priority packets to be transmitted within the guaranteed bandwidth (it exists for each user. In FIG. 1, the priority queue for the user 1 is 100-1, the priority queue for the user 2 is 100- 2), a non-priority queue 101 that queues non-priority packets to be transmitted when the network is free outside the guaranteed bandwidth (in FIG. -2).

送信予定時刻計算回路13は、パケット受信時点、あるいはパケット送信時点から直ちにパケットを送信させるための送信予定時刻1300を計算する即出し時刻計算回路130と、保証帯域を超えない様な送信間隔を守るための送信予定時刻1310を計算する帯域保証読出し時刻計算回路131と、送信予定時刻記憶回路12に、前記2つの送信予定時刻1300および1310のいずれをを書込むか、あるいはいずれも書込まないか、を選択する選択回路132、および最大契約帯域を超えない様な送信間隔を守るための送信予定時刻を計算する最大帯域読出し回路133から構成される。具体的には、即出し時刻計算回路130では、時計16によって通知される現在時刻1600を用いて、送信予定時刻1300を、
送信予定時刻1300=現在時刻+1
として計算する。すなわち、他のキューから送信するパケットがない場合には、すぐにパケットが送信される。また、帯域保証読出し時刻計算回路131、および最大帯域読出し時刻計算回路133では、複数のVCの送信予定時刻が競合してゆらぎが生じた様な場合にも平均として契約帯域で送信できる様なアルゴリズムによって、送信予定時刻1310を計算する。例えば、“The ATM Forum TM4.0”等に記載されているリーキーバケットアルゴリズムを用いれば、前述の様なゆらぎを吸収して、平均として契約帯域でパケットを送信することができる。
The scheduled transmission time calculation circuit 13 keeps the transmission interval so as not to exceed the guaranteed bandwidth, and the immediate delivery time calculation circuit 130 that calculates the scheduled transmission time 1300 for transmitting the packet immediately from the packet reception time or the packet transmission time. Which of the two scheduled transmission times 1300 and 1310 is written in the bandwidth-guaranteed read time calculation circuit 131 for calculating the scheduled transmission time 1310 and the scheduled transmission time storage circuit 12, or neither of them is written , And a maximum bandwidth reading circuit 133 for calculating a scheduled transmission time for keeping a transmission interval that does not exceed the maximum contract bandwidth. Specifically, the immediate delivery time calculation circuit 130 uses the current time 1600 notified by the clock 16 to calculate the scheduled transmission time 1300,
Scheduled transmission time 1300 = current time + 1
Calculate as That is, if there is no packet to be transmitted from another queue, the packet is transmitted immediately. Further, in the band guarantee read time calculation circuit 131 and the maximum band read time calculation circuit 133, an algorithm that allows transmission on the contract band as an average even when the transmission scheduled times of a plurality of VCs compete and fluctuate. To calculate the scheduled transmission time 1310. For example, if the leaky bucket algorithm described in “The ATM Forum TM 4.0” or the like is used, it is possible to absorb the fluctuation as described above and transmit a packet with a contract bandwidth as an average.

次に、送信予定時刻記憶回路12の記憶フォーマットを図6に、詳細ブロック図を図7に示す。図6に示す様に、送信予定時刻記憶回路12には、キュー毎に送信予定時刻30、送信予定時刻30が有効であることを示す時刻有効フラグ31、およびキューに送信待ちのパケットが蓄積されていることを示すパケット有効フラグ32が記憶されている。また、図7に示す様に、送信予定時刻記憶回路12は、送信予定時刻に関する情報を記憶するメモリ122、メモリ122の制御信号を生成しメモリ122からのリードデータを各ブロックに送るメモリ制御回路120、およびメモリ122に記憶してある送信予定時刻30が有効な値であるか否かを判断し、時刻有効フラグ31を更新する時刻有効フラグ更新回路121より構成される。 Next, a storage format of the scheduled transmission time storage circuit 12 is shown in FIG. 6, and a detailed block diagram is shown in FIG. As shown in FIG. 6, the scheduled transmission time storage circuit 12 stores a scheduled transmission time 30 for each queue, a time valid flag 31 indicating that the scheduled transmission time 30 is valid, and a packet waiting for transmission in the queue. A packet valid flag 32 indicating that the packet is valid is stored. As shown in FIG. 7, the scheduled transmission time storage circuit 12 includes a memory 122 that stores information related to the scheduled transmission time, and a memory control circuit that generates a control signal for the memory 122 and sends read data from the memory 122 to each block. 120 and a time valid flag update circuit 121 that determines whether or not the scheduled transmission time 30 stored in the memory 122 is a valid value and updates the time valid flag 31.

ここで、時刻有効フラグの意味について説明する。シェーピング時刻を決定している時計16は通常有限ビット数のカウンタとして構成するが、この場合、カウンタのビット数によって決まる一定周期毎に同じ時刻を示すことになる。すなわち、メモリ122内に、ある送信予定時刻を記憶していても、その時刻が正しい送信予定時刻を示しているのか、カウンタが1周以上回ってしまった不正な(過去になり過ぎている)時刻を示しているのか、を決定することができない。これを区別するのが時刻有効フラグ31である。時刻有効フラグ31は、送信予定時刻30が正しい時刻を示しているときに‘1’、カウンタが1周以上回ってしまった不正な時刻を示しているときに‘0’となるフラグである。 Here, the meaning of the time valid flag will be described. The clock 16 that determines the shaping time is normally configured as a counter having a finite number of bits, but in this case, the same time is indicated for every fixed period determined by the number of bits of the counter. In other words, even if a certain scheduled transmission time is stored in the memory 122, the counter indicates that the scheduled transmission time is correct, or the counter has turned more than one round (in the past). It cannot be determined whether the time is indicated. This is distinguished by the time valid flag 31. The time valid flag 31 is a flag that becomes ‘1’ when the scheduled transmission time 30 indicates the correct time, and becomes ‘0’ when the counter indicates an illegal time that has been rotated one or more times.

以上に示した構成のシェーピング装置1を用いて、パケット転送部4からバス9を介して受信したパケットを回線に向けて送信するまでの動作を説明する。 The operation until the packet received from the packet transfer unit 4 via the bus 9 is transmitted to the line using the shaping apparatus 1 having the above-described configuration will be described.

また、ソーティング回路17は、従来技術1に示されているソーティング方法と同様のソーティングを行う。 The sorting circuit 17 performs the same sorting as the sorting method shown in the prior art 1.

(1)パケット受信動作
ここでのパケット受信動作とは、シェーピング装置1が、バス9を介してパケット転送部4からパケットを受信したときの動作のことを示している。シェーピング装置1がパケットを受信すると、まず最初にキューイング先判別回路11において、受信セルを優先キュー100にキューイングするか、非優先キュー101にキューイングするか、を決定する。キューの決定は、例えばIPパケットの場合は、受信パケットのヘッダ中にあるサービスタイプ、パケット長、プロトコル種別、SIP(Source IP Address)、DIP(Destination IP Address)等の情報(図4の網掛けで示したフィールドの情報)を用いて行なわれる。キューイング先のキューが決定されると、受信パケットはパケットバッファ10にキューイングされる。キューイングと同時にどのキューにキューイングされたかを示す信号1100が送信予定時刻計算回路13に向けて送られる。送信予定時刻計算回路13は、送信予定時刻記憶回路12に記憶している受信パケットをキューイングしたキューに関する送信予定時刻30、時刻有効フラグ31、およびパケット有効フラグ32を読出す。
(1) Packet Receiving Operation The packet receiving operation here indicates an operation when the shaping apparatus 1 receives a packet from the packet transfer unit 4 via the bus 9. When the shaping apparatus 1 receives a packet, first, the queuing destination discriminating circuit 11 determines whether to queue the received cell in the priority queue 100 or the non-priority queue 101. For example, in the case of an IP packet, the queue is determined by information such as service type, packet length, protocol type, SIP (Source IP Address), DIP (Destination IP Address), etc. in the header of the received packet (shaded in FIG. 4). This is performed using the field information indicated by. When the queuing destination queue is determined, the received packet is queued in the packet buffer 10. Simultaneously with the queuing, a signal 1100 indicating which queue is queued is sent to the scheduled transmission time calculation circuit 13. The scheduled transmission time calculation circuit 13 reads the scheduled transmission time 30, the time valid flag 31, and the packet valid flag 32 regarding the queue in which the received packet stored in the scheduled transmission time storage circuit 12 is queued.

送信予定時刻計算回路13内の選択回路132の動作規則を図5に示し、受信時のフロー図を図9に示す。パケット有効フラグ=1のときは(図9ステップ50)、既に1個以上のパケットがキューイングされており、その最初の送信待ちパケットに対する送信予定時刻が計算されているということであるから、送信予定時刻の更新はしない。パケット有効フラグ=0、かつ時刻有効フラグ=0のときは(図9ステップ51)、空のキューに受信パケットをキューイングし、かつ記憶していた送信予定時刻は十分に時間が経過しているために無効なものになっているので送信予定時刻を更新する必要がある。パケット有効フラグ=0、かつ時刻有効フラグ=1のときは、記憶していた送信予定時刻は有効な時刻である。記憶していた送信予定時刻が現在時刻と比較して未来にある場合には(図9ステップ52)、シェーピング間隔が狭くなるのを防ぐために送信予定時刻を更新してはいけないが、記憶していた送信予定時刻が現在時刻と同時刻、あるいは現在時刻と比較して過去にある場合には、既にシェーピング間隔以上の間隔が空いており、即出しをしてもシェーピング間隔を守ることができるので、送信予定時刻の更新を行う。パケット受信時の送信予定時刻の更新は、すべて即出しをさせるためのものであるから、送信予定時刻の更新を行うときには常に即出し時刻計算回路130で計算された送信予定時刻1300を送信予定時刻記憶回路12の送信予定時刻領域30に上書きする(図9ステップ53)。また、該当キューはパケットを受信したのであるから、パケット有効フラグ32は常に1にセットする。
更に、ユーザ毎の送信予定時刻も全く同様の規則により変更する。
An operation rule of the selection circuit 132 in the scheduled transmission time calculation circuit 13 is shown in FIG. 5, and a flow chart at the time of reception is shown in FIG. When the packet valid flag = 1 (step 50 in FIG. 9), it means that one or more packets have already been queued and the scheduled transmission time for the first transmission waiting packet has been calculated. The scheduled time is not updated. When the packet valid flag = 0 and the time valid flag = 0 (step 51 in FIG. 9), the received packet is queued in an empty queue, and the stored transmission scheduled time is sufficiently long. Therefore, it is necessary to update the scheduled transmission time because it is invalid. When the packet valid flag = 0 and the time valid flag = 1, the stored transmission scheduled time is a valid time. If the stored scheduled transmission time is in the future compared with the current time (step 52 in FIG. 9), the scheduled transmission time must not be updated to prevent the shaping interval from being narrowed, but it is stored. If the scheduled transmission time is the same as the current time or in the past compared to the current time, there is already an interval longer than the shaping interval, so the shaping interval can be maintained even if it is immediately issued. Update the scheduled transmission time. Since the update of the scheduled transmission time at the time of packet reception is all for prompt delivery, the scheduled transmission time 1300 calculated by the immediate delivery time calculation circuit 130 is always used when updating the scheduled transmission time. The scheduled transmission time area 30 of the storage circuit 12 is overwritten (step 53 in FIG. 9). Since the corresponding queue has received a packet, the packet valid flag 32 is always set to 1.
Furthermore, the scheduled transmission time for each user is changed according to the same rule.

前述の様に、送信予定時刻記憶回路12には最優先で送信すべきキューの送信予定時刻も記憶されているが、パケット受信により、送信予定時刻30、およびパケット有効フラグ32が更新されたため、最優先で送信すべきキューが変化した可能性がある。そこで、更新された情報を基にソーティング回路17でソーティングを行い、最優先で送信すべきキューを選び直す。 As described above, the scheduled transmission time storage circuit 12 also stores the scheduled transmission time of the queue to be transmitted with the highest priority. However, because the scheduled transmission time 30 and the packet valid flag 32 are updated by packet reception, The queue to be transmitted with the highest priority may have changed. Therefore, sorting is performed by the sorting circuit 17 based on the updated information, and the queue to be transmitted with the highest priority is selected again.

(2)パケット送信動作
ここでのパケット送信動作とは、シェーピング装置1から、回線に向けてパケットを送信する動作のことを示している。パケット送信は、パケット受信とは非同期に行なわれる。図1において、パケット読出し回路14は、送信予定時刻記憶回路12に記憶してある最優先で送信すべきユーザの送信予定時刻30、時刻有効フラグ31、パケット有効フラグ32を読出す。該ユーザが送信可能と判定されるのは、パケット有効フラグ32=1、かつ時刻有効フラグ31=1、かつ送信予定時刻30≦現在時刻(送信予定時刻30が過去または現在)のときのみである。それ以外の場合は、最優先で送信すべきキューのパケットでさえ送信できないのであるから、すべてのキューのパケットが送信できない。最優先で送信されるべきユーザのパケットが送信されるときは、次に該ユーザの中で最優先で送信すべきユーザの送信予定時刻30、時刻有効フラグ31、パケット有効フラグ32を読出す。パケットが読出されるのは、パケット有効フラグ32=1、かつ時刻有効フラグ31=1、かつ送信予定時刻30≦現在時刻(送信予定時刻30が過去または現在)のときのみである。それ以外の場合は、従って、どのキューからもパケットを送信しない。同一ユーザの優先キューと非優先キューが、共に読出し可能な状態になっているときは、必ず優先キューのパケットを送信する(完全優先制御)。
(2) Packet transmission operation The packet transmission operation here refers to an operation of transmitting a packet from the shaping apparatus 1 toward the line. Packet transmission is performed asynchronously with packet reception. In FIG. 1, the packet reading circuit 14 reads the scheduled transmission time 30, the time valid flag 31, and the packet valid flag 32 of the user who should be transmitted with the highest priority stored in the scheduled transmission time storage circuit 12. The user is determined to be able to transmit only when the packet valid flag 32 = 1, the time valid flag 31 = 1, and the scheduled transmission time 30 ≦ current time (the scheduled transmission time 30 is past or present). . In other cases, even packets in the queue that should be transmitted with the highest priority cannot be transmitted, and therefore, packets in all queues cannot be transmitted. When a user packet to be transmitted with the highest priority is transmitted, the scheduled transmission time 30, the time valid flag 31, and the packet valid flag 32 of the user to be transmitted with the highest priority among the users are read. The packet is read only when the packet valid flag 32 = 1, the time valid flag 31 = 1, and the scheduled transmission time 30 ≦ the current time (the scheduled transmission time 30 is past or present). Otherwise, therefore, no packet is sent from any queue. When both the priority queue and the non-priority queue of the same user are in a readable state, the priority queue packet is always transmitted (full priority control).

パケット読出し回路14によってパケットバッファ10から読出されたパケットは、優先度情報付与回路15に転送されて優先度情報が付与される。優先度情報とは、IPパケットの場合はサービスタイプフィールド(図4のType of Service)であり、ATMセルの場合はCLPビットのことを示している。優先度情報付与回路15は、優先キュー100から読出したパケットは高優先度、非優先キュー101から読出したパケットは低優先度を付与し、回線に向けてパケットを送信する。 The packet read from the packet buffer 10 by the packet reading circuit 14 is transferred to the priority information adding circuit 15 and given priority information. The priority information is a service type field (Type of Service in FIG. 4) in the case of an IP packet, and indicates a CLP bit in the case of an ATM cell. The priority information assigning circuit 15 assigns a high priority to a packet read from the priority queue 100 and a low priority to a packet read from the non-priority queue 101, and transmits the packet to the line.

パケットを送信したとき、同じキューにキューイングされている次のパケットのために送信予定時刻30を更新する。パケット送信時に送信したキューの種別を示す信号1400が送信予定時刻計算回路13に向けて送られる。送信予定時刻計算回路13内の選択回路132の動作規則を図5に示し、送信時のフロー図を図10に示す。送信したパケットが優先キューから読出されたパケットであった場合、保証帯域を守るために帯域保証読出し時刻計算回路131の計算結果1310を選択する(図10ステップ54−1)。非優先キューのパケットを送信した場合には、即出しをすればよいので即出し時刻計算回路130の計算結果1300を選択する(図10ステップ54−2)。選択された送信予定時刻は、送信予定時刻記憶回路12の送信予定時刻領域30に上書きされる。同時に、ユーザ毎の送信予定時刻も更新し、上書きする。 When a packet is transmitted, the scheduled transmission time 30 is updated for the next packet queued in the same queue. A signal 1400 indicating the type of queue transmitted at the time of packet transmission is sent to the scheduled transmission time calculation circuit 13. FIG. 5 shows an operation rule of the selection circuit 132 in the scheduled transmission time calculation circuit 13, and FIG. 10 shows a flow chart at the time of transmission. If the transmitted packet is a packet read from the priority queue, the calculation result 1310 of the band guaranteed read time calculation circuit 131 is selected to protect the guaranteed band (step 54-1 in FIG. 10). When a packet in the non-priority queue is transmitted, it is only necessary to immediately issue a packet, so that the calculation result 1300 of the immediate delivery time calculation circuit 130 is selected (step 54-2 in FIG. 10). The selected scheduled transmission time is overwritten in the scheduled transmission time area 30 of the scheduled transmission time storage circuit 12. At the same time, the scheduled transmission time for each user is also updated and overwritten.

更に、パケットを送信したことによりパケットを読出したキューが空になった(キュー長=0)ときには、パケット有効フラグ=0として送信予定時刻記憶回路12に記憶する。パケットを送信してもキューが空にならなかった(キュー長>0)ときには、送信予定時刻記憶回路12のパケット有効フラグ32は更新しない(パケット有効フラグ=1)。また、時刻有効フラグは、“1”の状態から更新しない。 Further, when the queue from which the packet is read out becomes empty due to the transmission of the packet (queue length = 0), the packet valid flag = 0 is stored in the scheduled transmission time storage circuit 12. If the queue is not emptied even when a packet is transmitted (queue length> 0), the packet valid flag 32 of the scheduled transmission time storage circuit 12 is not updated (packet valid flag = 1). The time valid flag is not updated from the state “1”.

(3)時刻有効フラグ更新動作
本発明では図8に示す様な構造の時計を使用する。有限ビット数の時計89のある値(時刻)が現在時刻80であり、一定の速度でカウントアップされている(時計方向に進んでいる)。カウントアップの速度は、送信先回線の帯域に依存している。現在時刻80が既に過ぎた領域が過去領域81であり、まだ現在時刻80が達していない領域が未来領域82である。現在時刻80ではない、過去領域81と未来領域82の接点に不確定領域83を設けておく。不確定領域83は、過去でも未来でもない領域であり、現在時刻から常に一定の距離(時間差)にある。
(3) Time Valid Flag Update Operation In the present invention, a timepiece having a structure as shown in FIG. 8 is used. A certain value (time) of the clock 89 having a finite number of bits is the current time 80, and is counted up at a constant speed (moving clockwise). The count-up speed depends on the bandwidth of the transmission destination line. The area where the current time 80 has already passed is the past area 81, and the area where the current time 80 has not yet reached is the future area 82. An uncertain area 83 is provided at the point of contact between the past area 81 and the future area 82 that is not the current time 80. The uncertain area 83 is an area that is neither the past nor the future, and is always at a certain distance (time difference) from the current time.

不確定領域83を設けておかないと、ある時刻に過去であった送信予定時刻が、時刻が1進んだだけで未来の時刻になってしまい、正しいシェーピングを行うことができなくなる、という不都合が生じる。そこで、メモリ122に記憶してある送信予定時刻30が更新されずに過去領域81の時刻になり、更に時間が進み不確定領域83の時刻になったとき、時刻有効フラグを‘0’にする。 If the uncertain area 83 is not provided, the transmission scheduled time that was in the past at a certain time becomes a future time just by advancing the time by one, and correct shaping cannot be performed. Arise. Therefore, when the scheduled transmission time 30 stored in the memory 122 is not updated and becomes the time of the past area 81, and further advances to the time of the indeterminate area 83, the time valid flag is set to “0”. .

送信予定時刻記憶回路12内の時刻有効フラグ更新回路121の動作を図11のフロー図を用いて説明する。時刻有効フラグ更新回路121では、まずキュー毎の送信予定時刻30、時刻有効フラグ31、およびパケット有効フラグ32をメモリ122から読出す(図11ステップ55)。読出した時刻有効フラグ31=0であるときは、既に送信予定時刻30は無効なものと判断されているので、すべての情報を更新しない(図11ステップ56)。時刻有効フラグ31=1、かつ送信予定時刻30が不確定領域93にないときは、まだ送信予定時刻30は有効であるので、この場合もすべての情報を更新しない(図11ステップ57)。
時刻有効フラグ31=1、送信予定時刻30が不確定領域93にあり、かつパケット有効フラグ32=1のときには、まだ送信待ちのパケットが存在しているので時刻有効フラグを0にしてはいけない。そこでこの場合は、送信予定時刻を過去領域内で現在時刻から最も離れた時刻(図9の94)に更新して書き戻し、時刻有効フラグ、パケット有効フラグは共に1のまま更新しないでメモリ122に書き戻す(図11ステップ58−1、59)。時刻有効フラグ31=1、送信予定時刻30が不確定領域93にあり、かつパケット有効フラグ32=0のときには、送信待ちパケットのパケットは存在していないので、送信予定時刻、パケット有効フラグは更新せずに書き戻し、時刻有効フラグを0に更新してメモリ122に書き戻す(図11ステップ58−2、59)。
The operation of the time valid flag update circuit 121 in the scheduled transmission time storage circuit 12 will be described with reference to the flowchart of FIG. The time valid flag update circuit 121 first reads the scheduled transmission time 30, queue time valid flag 31, and packet valid flag 32 for each queue from the memory 122 (step 55 in FIG. 11). When the read time valid flag 31 = 0, it is already determined that the scheduled transmission time 30 is invalid, so that all information is not updated (step 56 in FIG. 11). If the time valid flag 31 = 1 and the scheduled transmission time 30 is not in the indeterminate area 93, the scheduled transmission time 30 is still valid, and in this case as well, all information is not updated (step 57 in FIG. 11).
When the time valid flag 31 = 1, the scheduled transmission time 30 is in the indeterminate area 93, and the packet valid flag 32 = 1, there are still packets waiting to be transmitted, so the time valid flag must not be set to zero. Therefore, in this case, the scheduled transmission time is updated and written back to the time (94 in FIG. 9) farthest from the current time in the past area, and both the time valid flag and the packet valid flag remain at 1 without being updated. (Steps 58-1 and 59 in FIG. 11). When the time valid flag 31 = 1, the scheduled transmission time 30 is in the indeterminate area 93, and the packet valid flag 32 = 0, there is no packet waiting for transmission, so the scheduled transmission time and the packet valid flag are updated. The time valid flag is updated to 0 and written back to the memory 122 (steps 58-2 and 59 in FIG. 11).

次に、時刻の更新のタイミングについて説明する。あるキューが不確定領域93内で1回も更新されなかった場合、時刻有効フラグ=1のまま送信予定時刻が未来領域に入ってしまうために、不確定領域83を設けていない場合と同様に正しいシェーピングを行うことができなくなる。以上の理由により、不確定領域内にすべてのキューに対して上記の時刻有効フラグ更新動作を1回以上行う必要がある。これは、不確定領域の時間幅以下の周期で送信予定時刻の更新を行えば容易に実現できる。 Next, time update timing will be described. If a certain queue has not been updated even once in the indeterminate area 93, the scheduled transmission time enters the future area with the time valid flag = 1, so that the indeterminate area 83 is not provided. Correct shaping cannot be performed. For the above reasons, it is necessary to perform the above-mentioned time validity flag update operation once or more for all the queues in the indeterminate area. This can be easily realized by updating the scheduled transmission time at a period equal to or less than the time width of the uncertain area.

図1では、各ユーザ毎に優先キュー100、および非優先キュー101共に1つずつ存在する場合の例を示したが、各ユーザ毎に複数個の優先キュー、複数個の非優先キューを備えてもよい。キューの数が多くなれば、例えば同じ電子メールのトラヒックでもユーザAの電子メールをユーザBの電子メールよりも優先して転送するといった、より細かな優先制御を行うことができる。優先キューが複数個存在する場合には、保証帯域は複数の優先キューの送信帯域の合計になる様にリーキーバケットアルゴリズムのパラメータを設定しなければならない。また、非優先キューが複数個存在する場合には、各非優先キュー間の優先制御は、上位キューにパケットが存在すれば必ず優先される完全優先制御、あるいは設定した比率(例えば2:1)で上位キューと下位キューのパケットを送信する重み付き順廻優先制御(Weighted Round Robin)等を用いることができる。 Although FIG. 1 shows an example in which one priority queue 100 and one non-priority queue 101 exist for each user, each user has a plurality of priority queues and a plurality of non-priority queues. Also good. If the number of queues increases, finer priority control can be performed, for example, the user A's email is transferred in preference to the user B's email even in the same email traffic. When there are a plurality of priority queues, the parameters of the leaky bucket algorithm must be set so that the guaranteed bandwidth is the sum of the transmission bandwidths of the plurality of priority queues. In addition, when there are a plurality of non-priority queues, priority control between the non-priority queues is complete priority control in which priority is given whenever there is a packet in the upper queue or a set ratio (for example, 2: 1) In this case, weighted round robin (Weighted Round Robin) that transmits packets in the upper queue and the lower queue can be used.

以上に述べたシェーピング装置の実施例では、優先パケットに対しては最低保証帯域でシェーピングしているため、入力帯域の方が大きければ、キューが溢れてパケットが廃棄されることがある。これを防ぐために、キューが溢れそうな場合には最低保証帯域を守らずに最大限にパケットを送信する機能を付加してもよい。図1に示したシェーピング装置では、優先パケットを送信すると、帯域保証読出し時刻計算回路131の計算結果を次のパケットの送信予定時刻としていたが、このときに、優先キューのキュー長を参照し、キュー長によって選択条件を修正することで、上記機能を容易に実現することができる。すなわち、優先キューのキュー長が、予め設定しておいた閾値よりも小さい場合には、通常通り帯域保証読出し時刻計算回路131の計算結果を次のパケットの送信予定時刻とし、優先キューのキュー長が、前記閾値よりも大きい場合には、即出し時刻計算回路130の計算結果を次のパケットの送信予定時刻とする様に、選択回路132の条件を修正するだけでよい。保証帯域を超える帯域分の優先度情報は、低優先度で送信しておけば網側のUPCで廃棄されることはない。 In the embodiment of the shaping apparatus described above, since priority packets are shaped with the minimum guaranteed bandwidth, if the input bandwidth is larger, the queue may overflow and the packets may be discarded. In order to prevent this, when the queue is likely to overflow, a function of transmitting packets to the maximum without observing the minimum guaranteed bandwidth may be added. In the shaping apparatus shown in FIG. 1, when a priority packet is transmitted, the calculation result of the bandwidth guarantee read time calculation circuit 131 is set as the scheduled transmission time of the next packet. At this time, referring to the queue length of the priority queue, By correcting the selection condition based on the queue length, the above function can be easily realized. That is, when the queue length of the priority queue is smaller than a preset threshold, the calculation result of the bandwidth guaranteed read time calculation circuit 131 is set as the scheduled transmission time of the next packet as usual, and the queue length of the priority queue is set. However, when the value is larger than the threshold, it is only necessary to modify the condition of the selection circuit 132 so that the calculation result of the immediate extraction time calculation circuit 130 becomes the scheduled transmission time of the next packet. If the priority information for the bandwidth exceeding the guaranteed bandwidth is transmitted at a low priority, it is not discarded by the UPC on the network side.

また、優先パケットの入力帯域が小さければ、高優先度で送信されるパケットの送信帯域が保証帯域を下回ることになり、課金の主な対象となることが多い保証帯域を有効利用することができない。この場合は、優先キューの送信予定時刻になっても優先キューに送信待ちパケットが存在しない場合には、パケット読出し回路14は非優先キューからパケットを読出し、優先度情報付与回路15では高優先度を付与する機能を付加することで保証帯域を有効利用することができる。 In addition, if the input bandwidth of the priority packet is small, the transmission bandwidth of the packet transmitted with high priority will be lower than the guaranteed bandwidth, and the guaranteed bandwidth that is often the main target of charging cannot be used effectively. . In this case, if there is no packet waiting for transmission in the priority queue even when the scheduled transmission time of the priority queue is reached, the packet reading circuit 14 reads the packet from the non-priority queue, and the priority information adding circuit 15 has a high priority. The guaranteed bandwidth can be effectively used by adding a function for providing

以上に説明したシェーピング部1を備えたパケット中継装置98から公衆網99−1に向けて送信されるパケットの様子を図12に示す。図12の上半分は送信されるパケットの時間間隔を示しており、横軸を時間軸としている。また、下半分には各時間の送信帯域の変化を示している。各ユーザは、常時、最低保証帯域と最大契約帯域の間の帯域でパケットを送信している(領域1)。同時にパケットを送信するユーザが増加し、送信帯域が小さくなっても最低保証帯域を下回ることはない(領域2)。また、同時にパケットを送信するユーザが減少すると、送信帯域を最大契約帯域まで増加させることができる(領域3)。いずれの場合も高優先度パケットは、他に送信しているユーザ数に依存せず、常に一定の帯域でパケットを送信することができ、低優先度パケットは通信路の帯域に余裕がある場合にのみ、その空き帯域で送信することができる。 FIG. 12 shows the state of a packet transmitted from the packet relay apparatus 98 including the shaping unit 1 described above toward the public network 99-1. The upper half of FIG. 12 shows the time interval of transmitted packets, and the horizontal axis is the time axis. The lower half shows the change in the transmission band at each time. Each user always transmits a packet in a band between the minimum guaranteed band and the maximum contracted band (area 1). At the same time, the number of users who transmit packets increases, and even if the transmission bandwidth is reduced, it does not fall below the minimum guaranteed bandwidth (area 2). If the number of users who transmit packets simultaneously decreases, the transmission bandwidth can be increased to the maximum contract bandwidth (area 3). In either case, high-priority packets do not depend on the number of other users sending them, and packets can always be sent in a fixed bandwidth, while low-priority packets have room in the communication channel bandwidth Only in that free band.

第2の実施例として、ATMセルを用いたGFR用シェーピング装置について説明する。図13にGFR用シェーピング装置をブロック図を示す。ATMセルは53バイトの固定長パケットであり、1個以上のセルが集まって上位レイヤのパケットを構成するが、同一VC内の異なるパケットが混在すると受信端末側でパケットの区切りを識別できない。従って、セル読出し回路74に同一上位パケットのセルを連続して読出し、送信する機能を備える。また、キューイング先判別回路71は、受信ATMセルのヘッダ内のVPI、VCI、CLPを参照して受信セルをキューイングするキューを決定する。上位パケットの最終セルの識別は、セルヘッダ内のぺイロードタイプ(3ビット)によって行うことができる。ペイロードタイプが、“000”または“010”のときが先頭・中間セル、“001”または“011”のときが最終セルである。それ以外の値はセルが管理用セル(OAMセル・RMセル)であることを示している。 As a second embodiment, a GFR shaping apparatus using ATM cells will be described. FIG. 13 shows a block diagram of the GFR shaping apparatus. An ATM cell is a 53-byte fixed-length packet, and one or more cells gather to form an upper layer packet. However, when different packets in the same VC are mixed, the receiving terminal cannot identify the packet delimiter. Therefore, the cell reading circuit 74 has a function of continuously reading and transmitting cells of the same upper packet. Further, the queuing destination discriminating circuit 71 determines a queue for queuing the received cell with reference to the VPI, VCI, and CLP in the header of the received ATM cell. The last cell of the upper packet can be identified by the payload type (3 bits) in the cell header. When the payload type is “000” or “010”, it is the first / intermediate cell, and when it is “001” or “011”, it is the last cell. The other values indicate that the cell is a management cell (OAM cell / RM cell).

IPパケットの送受信動作とは、以下の点が異なる。ATM上位レイヤのパケットを受信すると、まずSAR(Segmentation And Reassembly)78においてパケットを48バイト毎に分割し、5バイトのATMヘッダを付加してATMセルを構成し、ATMセルはキューイング先判別回路71に転送される。キューイング先判別回路71が、上位パケットの先頭・中間セルを受けた場合には送信予定時刻、時刻有効フラグ、およびパケット有効フラグの更新は行なわず、上位パケットの最終セルを受信した場合にのみ送信予定時刻、時刻有効フラグおよびパケット有効フラグの更新を行う。最終セル受信時の処理はIPパケットの規則と同じである(図14参照)。 The following points are different from the IP packet transmission / reception operation. When an ATM upper layer packet is received, the packet is first divided into 48 bytes in an SAR (Segmentation And Reassembly) 78, and an ATM cell is constructed by adding a 5-byte ATM header. The ATM cell is a queuing destination discriminating circuit. 71. When the queuing destination discriminating circuit 71 receives the head / intermediate cell of the upper packet, it does not update the scheduled transmission time, the time valid flag, and the packet valid flag, but only when the last cell of the upper packet is received. The scheduled transmission time, time validity flag, and packet validity flag are updated. The process at the time of receiving the final cell is the same as the IP packet rule (see FIG. 14).

次に、セル送信時の相違点を示す。帯域保証は上位パケットに対して行わなければならないので、上述の様に、上位パケットの先頭・中間セルを送信した場合は連続してセルを読出す必要がある。従って、この場合には、セルを送信したキューが優先キュー/非優先キューによらず、セル読出し回路74は、送信予定時刻計算回路73内の選択回路732において即出し時刻計算回路730の計算結果7300が送信予定時刻として選択される様な指示7400を出す。一方、上位パケットの最終セルを送信した場合には、IPパケット送信時と同じ規則で送信予定時刻を選択する(図14参照)。 Next, the difference at the time of cell transmission is shown. Since the bandwidth guarantee must be performed for the upper packet, as described above, when the head / intermediate cell of the upper packet is transmitted, the cells need to be read continuously. Therefore, in this case, the cell reading circuit 74 does not depend on the priority queue / non-priority queue, and the cell readout circuit 74 causes the selection circuit 732 in the scheduled transmission time calculation circuit 73 to calculate the immediate time calculation circuit 730. An instruction 7400 is issued so that 7300 is selected as the scheduled transmission time. On the other hand, when the last cell of the upper packet is transmitted, the transmission scheduled time is selected according to the same rule as when the IP packet is transmitted (see FIG. 14).

以上の様に、本発明のIPパケット用シェーピング装置1の送信予定時刻計算回路内の選択回路の条件に、最終セルと先頭・中間セルによる条件を付加するだけで、容易にGFR用シェーピング装置を構成することができる。 As described above, the GFR shaping device can be easily obtained by simply adding the conditions of the last cell and the head / intermediate cell to the conditions of the selection circuit in the scheduled transmission time calculation circuit of the IP packet shaping device 1 of the present invention. Can be configured.

本発明を適用したトラヒックシェーピング装置の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of the traffic shaping apparatus to which this invention is applied. 公衆網を介した企業ネットワークの接続図である。It is a connection diagram of a corporate network through a public network. パケット中継装置の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of a packet relay apparatus. IPパケットのフォーマットを示す図である。It is a figure which shows the format of an IP packet. 送信予定時刻計算回路13内の選択回路132の選択規則を示したテーブルである。6 is a table showing a selection rule of the selection circuit 132 in the scheduled transmission time calculation circuit 13. 送信予定時刻記憶回路12内のメモリ122の記憶フォーマットを示す図である。3 is a diagram showing a storage format of a memory 122 in a scheduled transmission time storage circuit 12. FIG. 送信予定時刻記憶回路12の詳細ブロック図である。3 is a detailed block diagram of a scheduled transmission time storage circuit 12. FIG. 有限ビット数のカウンタを用いて構成したシェーピング用時計の概念図である。It is a conceptual diagram of the shaping timepiece comprised using the counter of finite bit number. パケット受信時の送信予定時刻を決めるためのフロー図である。It is a flowchart for deciding the transmission scheduled time at the time of packet reception. パケット送信時の送信予定時刻を決めるためのフロー図である。It is a flowchart for deciding the transmission scheduled time at the time of packet transmission. 時刻優先フラグ更新のためのフロー図である。It is a flowchart for time priority flag update. シェーピング装置1の送信帯域と送信されるパケットの例を示した概念図である。It is the conceptual diagram which showed the example of the transmission band of the shaping apparatus 1, and the packet transmitted. 本発明を適用したGFR用トラヒックシェーピング装置の一実施例の構成を示すブロック図である。It is a block diagram which shows the structure of one Example of the traffic shaping apparatus for GFR to which this invention is applied. 送信予定時刻計算回路73内の選択回路732の選択規則を示したテーブルである。10 is a table showing a selection rule of the selection circuit 732 in the scheduled transmission time calculation circuit 73.

符号の説明Explanation of symbols

1,7… シェーピング装置、10… パケットバッファ、100,700… 優先キュー、101,701… 非優先キュー、11,71… キューイング先判別回路、12,72… 送信予定時刻記憶回路、13,73… 送信予定時刻計算回路、14… パケット読出し回路、15,75… 優先度情報付与回路、16… 時計、17,77… ソーティング回路、70… セルバッファ、74… セル読出し回路、78… SAR。
DESCRIPTION OF SYMBOLS 1,7 ... Shaping apparatus, 10 ... Packet buffer, 100, 700 ... Priority queue, 101,701 ... Non-priority queue, 11, 71 ... Queuing destination discriminating circuit, 12, 72 ... Transmission scheduled time storage circuit, 13, 73 ... scheduled transmission time calculation circuit, 14 ... packet read circuit, 15, 75 ... priority information addition circuit, 16 ... clock, 17, 77 ... sorting circuit, 70 ... cell buffer, 74 ... cell read circuit, 78 ... SAR.

Claims (16)

パケット転送網に接続されており、受信パケットのヘッダに記述してある宛先情報を参照して送信先を決定するパケット転送部と、接続されている回線の種別に対応した回線対応部を備えたパケット中継装置において、
回線対応部内のトラヒックシェーピング部に、
該回線対応部がパケット転送部から受信し保証帯域内で送信されるパケットが蓄積される出力相手先毎の優先キューと、
該回線対応部がパケット転送部から受信し保証帯域外の帯域で送信されるパケットが蓄積される出力相手先毎の非優先キューと、
該回線対応部がパケット転送部から受信したパケットのヘッダに記述してあるユーザ情報および優先度に関する情報を参照して優先度を判別し、出力相手先毎の優先キューか、非優先キューのいずれかにキューイングする機能を備えたキューイング先判別回路と、
該キュー毎の送信待ち先頭パケットの送信予定時刻を計算する送信予定時刻計算回路と、
送信予定時刻計算回路で計算された該キュー毎の送信予定時刻および最優先で送信すべきキューの送信予定時刻を記憶しておく送信予定時刻記憶回路と、
前記送信予定時刻記憶回路に記憶されているキュー毎の送信予定時刻を参照して最優先で送信すべきキューを選び出すソーティング回路と、
送信予定時刻記憶回路に記憶されている送信予定時刻に従ってキューからパケットを読出して該回線対応が接続されている回線に向けて送信するパケット読出し回路と、
前記パケット読出し回路によって読出されたパケットのヘッダの優先度に関する情報を書込む優先度情報付与回路を備えたことを特徴とするパケット中継装置。
A packet transfer unit that is connected to the packet transfer network and that determines the transmission destination by referring to the destination information described in the header of the received packet, and a line corresponding unit corresponding to the type of the connected line In the packet relay device,
In the traffic shaping part in the line correspondence part,
A priority queue for each output destination in which packets received by the line corresponding unit from the packet transfer unit and transmitted within the guaranteed bandwidth are stored;
A non-priority queue for each output destination in which packets received by the line corresponding unit from the packet transfer unit and transmitted in a band outside the guaranteed band are stored;
The line correspondence unit determines the priority by referring to the user information and priority information described in the header of the packet received from the packet transfer unit, and either the priority queue for each output destination or the non-priority queue A queuing destination discriminating circuit having a function of queuing
A scheduled transmission time calculation circuit for calculating a scheduled transmission time of the first packet waiting for transmission for each queue;
A scheduled transmission time storage circuit for storing the scheduled transmission time for each queue calculated by the scheduled transmission time calculation circuit and the scheduled transmission time of the queue to be transmitted with the highest priority;
A sorting circuit that selects a queue to be transmitted with the highest priority by referring to the scheduled transmission time for each queue stored in the scheduled transmission time storage circuit;
A packet reading circuit for reading a packet from the queue according to the scheduled transmission time stored in the scheduled transmission time storage circuit and transmitting the packet toward the line to which the line correspondence is connected;
A packet relay apparatus comprising: a priority information adding circuit for writing information relating to a priority of a header of a packet read by the packet reading circuit.
請求項1記載のパケット中継装置において、
請求項1記載の優先キューが同一出力相手先に対して複数個存在し、複数個のキューの間に優先順位を設け、送信待ちパケットが存在するキューの内、最も優先順位の高いキューからパケットを読出して送信することを特徴とするパケット中継装置。
The packet relay device according to claim 1,
A plurality of priority queues according to claim 1 exist for the same output destination, a priority is set between the plurality of queues, and a packet from a queue with the highest priority among the queues in which packets waiting to be transmitted exist A packet relay device that reads and transmits the packet.
請求項1記載のパケット中継装置において、
請求項1記載の非優先キューが同一出力相手先に対して複数個存在し、複数個のキューの間に優先順位を設け、送信待ちパケットが存在するキューの内、最も優先順位の高いキューからパケットを読出して送信することを特徴とするパケット中継装置。
The packet relay device according to claim 1,
A plurality of non-priority queues according to claim 1 exist for the same output destination, a priority is set between the plurality of queues, and a queue having the highest priority among the queues in which transmission waiting packets exist A packet relay device that reads and transmits a packet.
請求項1記載のパケット中継装置において、
請求項1記載の請求項1記載の非優先キューが同一出力相手先に対して複数個存在し、複数個のキューの間に優先順位を設け、送信待ちパケットが存在するキューの内、最も優先順位の高いキューからパケットを読出して送信し、パケットを読出したキューの優先順位を最下位優先順位に修正することを特徴とするパケット中継装置。
The packet relay device according to claim 1,
A plurality of non-priority queues according to claim 1, wherein a plurality of non-priority queues exist for the same output destination, a priority is set among the plurality of queues, and a queue having a transmission waiting packet has the highest priority. A packet relay apparatus, wherein a packet is read from a queue having a higher rank and transmitted, and the priority of the queue from which the packet is read is corrected to the lowest priority.
請求項1記載のパケット中継装置において、
請求項1記載の送信予定時刻計算回路が、パケットを連続して読出すような送信予定時刻を計算する回路と、保証帯域を守るような送信予定時刻を計算する回路を備え、更に送信予定時刻として二つの計算結果のうちいずれかを選択するための選択回路を備えたことを特徴とするパケット中継装置。
The packet relay device according to claim 1,
The scheduled transmission time calculation circuit according to claim 1, further comprising: a circuit for calculating a scheduled transmission time for continuously reading packets; and a circuit for calculating a scheduled transmission time for protecting a guaranteed bandwidth; A packet relay device comprising a selection circuit for selecting one of the two calculation results.
請求項5記載のパケット中継装置において、
請求項5記載の選択回路が、請求項1記載の回線対応部がパケットを受信したときには、請求項6記載のパケットを連続して読出すような送信予定時刻計算回路の計算結果を選択し、
請求項1記載の回線対応部が請求項1記載の優先キューからパケットを送信したときには、請求項6記載の保証帯域を守るような送信予定時刻を計算する回路の計算結果を選択し、
請求項1記載の回線対応部が請求項1記載の非優先キューからパケットを送信したときには、請求項6記載のパケットを連続して読出すような送信予定時刻計算回路の計算結果を選択する機能を備えたことを特徴とするパケット中継装置。
The packet relay device according to claim 5,
The selection circuit according to claim 5 selects the calculation result of the scheduled transmission time calculation circuit that continuously reads the packet according to claim 6 when the line corresponding unit according to claim 1 receives the packet,
When the line corresponding unit according to claim 1 transmits a packet from the priority queue according to claim 1, the calculation result of the circuit that calculates the scheduled transmission time to protect the guaranteed bandwidth according to claim 6 is selected,
A function for selecting a calculation result of a scheduled transmission time calculation circuit that continuously reads the packet according to claim 6 when the line corresponding unit according to claim 1 transmits the packet from the non-priority queue according to claim 1. A packet relay device comprising:
請求項6記載のパケット中継装置において、
請求項1記載の優先キューに予め閾値を設定しておき、
該キューに蓄積されているパケット数が前記閾値を超えていない場合には、請求項6記載の選択回路が保証帯域を守るような送信予定時刻を計算する回路の計算結果を選択し、
該キューに蓄積されているパケット数が前記閾値を超えている場合には、請求項6記載の選択回路がパケットを連続して読出すような送信予定時刻を計算する回路の計算結果を選択することを特徴とするパケット中継装置。
The packet relay device according to claim 6, wherein
A threshold value is set in advance in the priority queue according to claim 1,
If the number of packets stored in the queue does not exceed the threshold, the selection circuit according to claim 6 selects a calculation result of a circuit that calculates a scheduled transmission time to protect the guaranteed bandwidth,
When the number of packets stored in the queue exceeds the threshold value, the selection circuit according to claim 6 selects a calculation result of a circuit that calculates a scheduled transmission time for continuously reading packets. A packet relay device.
請求項1記載のパケット中継装置において、
請求項1記載の優先度情報付与回路が、請求項1記載のパケット読出し回路が請求項1記載の優先キューからパケットを読出した場合には高優先度を示す優先度情報を読出したパケットのヘッダ部に書込み、
請求項1記載のパケット読出し回路が請求項1記載の非優先キューからパケットを読出した場合には低優先度を示す優先度情報を読出したパケットのヘッダ部に書込むことを特徴とするパケット中継装置。
The packet relay device according to claim 1,
The priority information assigning circuit according to claim 1, wherein the packet reading circuit according to claim 1 reads the packet from the priority queue according to claim 1, and the header of the packet from which the priority information indicating the high priority is read. Write to the department,
A packet relay circuit according to claim 1, wherein when a packet is read from the non-priority queue according to claim 1, priority information indicating low priority is written in a header portion of the read packet. apparatus.
請求項1記載のパケット中継装置において、
請求項1記載の優先度情報付与回路が、請求項1記載の優先キューに対する送信予定時刻に該優先キューに送信待ちパケットが存在しないで非優先キューからパケットを送信するときに、高優先度を示す優先度情報を読出したパケットのヘッダ部に書込むことを特徴とするパケット中継装置。
The packet relay device according to claim 1,
When the priority information adding circuit according to claim 1 transmits a packet from a non-priority queue without a transmission waiting packet in the priority queue at a scheduled transmission time for the priority queue according to claim 1, high priority is given. A packet relay apparatus, wherein priority information to be written is written in a header portion of a read packet.
請求項8記載のパケット中継装置において、
請求項8記載の優先度情報として、IPパケットのヘッダ内のTOS領域の値を変化させることを特徴とするパケット中継装置。
The packet relay device according to claim 8, wherein
9. The packet relay device according to claim 8, wherein the value of the TOS area in the header of the IP packet is changed as the priority information.
請求項8記載のパケット中継装置において、
請求項8記載の優先度情報として、ATMセルのヘッダ内のCLPビットの値を変化させることを特徴とするパケット中継装置。
The packet relay device according to claim 8, wherein
9. The packet relay apparatus according to claim 8, wherein the value of the CLP bit in the header of the ATM cell is changed as the priority information.
ユーザ毎に高優先度パケットを蓄積するためのキュー(以下、優先キュー)と低優先度パケットを蓄積するためのキュー(以下、非優先キュー)を有するシェーピング部を備えるパケット中継装置。   A packet relay apparatus including a shaping unit having a queue for storing high priority packets (hereinafter referred to as priority queue) and a queue for storing low priority packets (hereinafter referred to as non-priority queue) for each user. 請求項12において、優先キューに蓄積されている送信待ちパケットの先頭パケットの送信予定時刻を保証帯域を守る様に設定し、非優先キューに蓄積されている送信待ちパケットの先頭パケットの送信予定時刻をすぐに送信される時刻に設定し、優先キュー/非優先キューを含めた送信帯域(最大契約帯域)に対応する送信予定時刻を設定するための送信予定時刻計算回路をさらに備えるパケット中継装置。   13. The transmission start time of the first packet of the transmission waiting packet stored in the non-priority queue is set so that the guaranteed transmission time of the first packet of the transmission waiting packet stored in the priority queue is protected to the guaranteed bandwidth. A packet relay device further comprising a scheduled transmission time calculation circuit for setting a scheduled transmission time corresponding to a transmission band (maximum contracted bandwidth) including a priority queue / non-priority queue, and setting a transmission time as soon as possible. 請求項13において、優先キューから読出されたパケットには高優先度を与え、非優先キューから読出されたパケットには低優先度を与える優先度情報付与回路をさらに備えるパケット中継装置。   14. The packet relay device according to claim 13, further comprising a priority information adding circuit that gives a high priority to a packet read from a priority queue and gives a low priority to a packet read from a non-priority queue. 請求項14において、上記送信予定時刻計算回路は、優先キューの送信予定時刻を計算する際に、優先キューのキュー長(蓄積パケット数)を参照し、一定量以上のパケットが蓄積されている場合には保証帯域を守らずにすぐに送信される時刻を送信予定時刻として設定するパケット中継装置。   15. The scheduled transmission time calculation circuit according to claim 14, wherein when the scheduled transmission time of the priority queue is calculated, the queue length (number of accumulated packets) of the priority queue is referred to and a predetermined amount or more of packets are accumulated. Is a packet relay device that sets a transmission time as a scheduled transmission time without observing the guaranteed bandwidth. 優先キューからパケットを送信すべき時刻になっているのに関わらず優先キューに送信待ちパケットがない場合に、読出された非優先キューの送信待ちパケットに対して高優先度を与えるパケット優先度設定方法。   Packet priority setting that gives a high priority to the packets waiting to be sent in the non-priority queue when there are no packets waiting to be sent in the priority queue regardless of the time when the packet should be sent from the priority queue Method.
JP2005229016A 2005-08-08 2005-08-08 ATM cell transfer device Expired - Fee Related JP4135007B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005229016A JP4135007B2 (en) 2005-08-08 2005-08-08 ATM cell transfer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005229016A JP4135007B2 (en) 2005-08-08 2005-08-08 ATM cell transfer device

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP14116499A Division JP3733784B2 (en) 1999-05-21 1999-05-21 Packet relay device

Publications (2)

Publication Number Publication Date
JP2005354738A true JP2005354738A (en) 2005-12-22
JP4135007B2 JP4135007B2 (en) 2008-08-20

Family

ID=35588727

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005229016A Expired - Fee Related JP4135007B2 (en) 2005-08-08 2005-08-08 ATM cell transfer device

Country Status (1)

Country Link
JP (1) JP4135007B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009182546A (en) * 2008-01-30 2009-08-13 Alaxala Networks Corp Traffic-shaping function and device
JP2009182545A (en) * 2008-01-30 2009-08-13 Alaxala Networks Corp Packet-scheduling method and device
EP2571198A1 (en) * 2011-09-16 2013-03-20 Hitachi Ltd. Remote monitoring system, network interconnection device and communication control method

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009182546A (en) * 2008-01-30 2009-08-13 Alaxala Networks Corp Traffic-shaping function and device
JP2009182545A (en) * 2008-01-30 2009-08-13 Alaxala Networks Corp Packet-scheduling method and device
US7855960B2 (en) 2008-01-30 2010-12-21 Alaxala Networks Corporation Traffic shaping method and device
US8553543B2 (en) 2008-01-30 2013-10-08 Alaxala Networks Corporation Traffic shaping method and device
EP2571198A1 (en) * 2011-09-16 2013-03-20 Hitachi Ltd. Remote monitoring system, network interconnection device and communication control method

Also Published As

Publication number Publication date
JP4135007B2 (en) 2008-08-20

Similar Documents

Publication Publication Date Title
JP3733784B2 (en) Packet relay device
JP4484317B2 (en) Shaping device
JP3711752B2 (en) Packet communication device
US8169906B2 (en) Controlling ATM traffic using bandwidth allocation technology
EP0763915B1 (en) Packet transfer device and method adaptive to a large number of input ports
EP1122916B1 (en) Dynamic buffering system having integrated radom early detection
JP3730846B2 (en) ATM communication apparatus and ATM cell transfer control method
US6526060B1 (en) Dynamic rate-based, weighted fair scheduler with explicit rate feedback option
US20030223442A1 (en) Buffer memory reservation
JP4484810B2 (en) Packet transfer device
JP4135007B2 (en) ATM cell transfer device
EP1473895A2 (en) Multiplex transmission apparatus and multiplex transmission method
US8072885B2 (en) Traffic shaping circuit, terminal device and network node
JP3714036B2 (en) Communication device
JP4123988B2 (en) Communication device
JPH1198142A (en) Method and device for controlling abr communication
KR100482687B1 (en) Congestion Control Apparatus And Method For UBR Service In ATM Switch
JPH0795212A (en) Congestion control system for atm exchange system
JP3833664B2 (en) Feedback control device and cell scheduling device in cell switch
Krachodnok et al. Buffer management for TCP over GFR service in an ATM network
JP2001007808A (en) Traffic shaping device
JP2008301536A (en) Band monitoring method and apparatus

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050907

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050907

RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20060421

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070705

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070724

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070925

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

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

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

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110613

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120613

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130613

Year of fee payment: 5

LAPS Cancellation because of no payment of annual fees