# Patent

## Title
Switch with function for assigning queue based on a declared rate transfer

## Abstract

In an asynchronous transfer mode switch, a plurality of queues is provided for accumulating transfer cells, and a queue assignment processing section, receives a message for establishing a connection and assigns to the connection one of the queues having a forwarding rate close to a declared rate included in the message and not exceeding the declared rate.

## Background
CROSS-REFERENCE TO RELATED PATENT APPLICATIONS
This application is a division of U.S. application Ser. No. 10/795,299, filed Mar. 9, 2004, which was a division of prior U.S. application Ser. No. 09/233,084, filed Jan. 19, 1999, now U.S. Pat. No. 6,731,603 issued May 4, 2004, entitled: Asynchronous Transfer Mode Switch with Function for Assigning Queue Having Forwarding Rate Close to Declared Rate, and based on Japanese Patent Application No. 10-020129, filed Jan. 19, 1998, by Ryota MOTOBAYASHI, which are incorporated herein by reference.


BACKGROUND OF THE INVENTION
1. Field of the Invention
The present invention relates to an asynchronous transfer mode (ATM) switch for controlling traffic and, more particularly, it relates to an asynchronous transfer mode switch adapted to confine the transfer cell forwarding rate to a preselected forwarding rate.
2. Description of the Related Art
According to the ATM exchange technology, information from various different media including audio information and video information can be transmitted for telecommunications by using as units fixed length blocks that are referred to as cells. Such cells typically have a 53-octet length, of which a 5-octet length is used as a header section and the remaining 48-octet length is used as a user information section. Information to be used for identifying the destination of connection is included in the header section to realize a high speed switching by means of hardware. Additionally, since information can be transferred whenever it needs to be forwarded with the ATM, the existing rate can be utilized effectively and efficiently.
In a prior art ATM switch, an unspecified bit rate (UBR) type switched virtual connection (SVC) is used, so that a plurality of connections can be assigned to one queue of a shaping processing section, if the connections have the same declared rate. This will be explained later in detail.
Note that JP-A-8-125668 titled “ATM interface and Shaping Method” describes a technique, with which a “shaping” operation is performed by storing in advance the largest cell forwarding interval corresponding to each traffic condition that gives rise to an ATM cell portion discarded by the usage parameter control (UPC) for the virtual path identifier (VPI) and also for the virtual channel identifier (VCI) and, upon arrival of the ATM cell to be forwarded, forwarding it to an idle forwarding time slot according to the stored largest cell forwarding interval.
Also, JP-A-8-288951 titled “ATM Switch and Congestion Control Method for ATM-LAN” described a technique of selecting a backward explicit congestion notification (BECN) system for dealing with congestion by narrowing the transmission rate all the regions including the ATM local networks (LANs) containing respectively a transmission terminal and a reception terminal and also covering the transmission terminal and the reception terminal upon receiving a notification from a congested ATM switch depending on the site of congestion, a fast reservation protocol (FRP) system for dealing with congestion by forwarding a signal cell adapted to broaden the transmission rate for the downstream upon receiving a notification from the congested ATM switch and a forward explicit congestion notification (FECN) system for writing the identifier for “the occurrence of congestion” in the payload type (PT) of the cell header forwarded from the congested ATM switch and causing the reception terminal receiving the identifier to notify the transmission terminal so as to broaden the transmission rate, whichever is optimum, depending on the conditions of connection.
The prior art ATM switch, however, does not have a simplified configuration and is not adapted to assign optimum queues by using the UBR type SVC system. That is, if there are requests for connection requiring queues exceeding the number of queues constituting a cell buffer it has for shaping, it is impossible to effectively control the communication traffic.
SUMMARY OF THE INVENTION
It is an object of the present invention to provide an ATM switch having a simplified configuration and adapted to assign optimum queues, particularly by using the UBR type SVC system.
According to the present invention, in an asynchronous transfer mode switch a plurality of queues are provided for accumulating transfer cells, and a queue assignment processing section receives a message for establishing a connection and assigns to the connection one of the queues having a forwarding rate close to a declared rate included in the message and not exceeding the declared rate.
Thus, even if connections do not have the same declared rate, one queue can be assigned to the connections without remarkably deteriorating the communication quality.



BRIEF DESCRIPTION OF THE DRAWINGS
The present invention will be more clearly understood from the description as set forth below, as compared with the prior art, with reference to the accompanying drawings, wherein:
FIG. 1 is a diagram illustrating a prior art ATM network;
FIG. 2 is a block circuit diagram illustrating one of the ATM switches of FIG. 1;
FIG. 3 is a diagram for explaining the operation of the UPC section of FIG. 2;
FIG. 4 is a diagram for explaining the operation of the shaping section of FIG. 2;
FIG. 5 is a block circuit diagram illustrating an embodiment of the ATM switch according to the present invention;
FIG. 6 is a detailed block circuit diagram of the shaping processing section of FIG. 5;
FIG. 7 is a flowchart showing the operation of the connection assignment processing section of FIG. 5;
FIG. 8 is a diagram for explaining the assignment of an optimum CBR queue in the shaping processing section of FIG. 6; and
FIG. 9 is a diagram for explaining the assignment of an optimum UBR queue in the shaping processing section of FIG. 6.



DESCRIPTION OF THE PREFERRED EMBODIMENT
Before the description of the preferred embodiment, a prior art shaping method will be explained with reference to FIGS. 1, 2, 3 and 4.
In FIG. 1, which illustrates a prior art ATM network utilizing the ATM technology, this ATM network is adapted to transmit sophisticated information including moving pictures for the user and provide the user with services in a way more responsive to the user's needs than compared with conventional networks. This ATM network is constructed by a plurality of ATM local area networks (LANs), such as 111 and 112 which are private networks including private branch exchanges, and an ATM wide area network (WAN) 10 for connecting the ATM-LANs 111 and 112, the ATM-WAN 10 being a public network.
The ATM-WAN 10 has a plurality of ATM switches 121, . . . , 12N in it. The ATM switch 121 is connected to an ATM switch 131 in the ATM-LAN 111 by way of a communication line 141. The ATM switch 12N is connected to an ATM switch 132 in the ATM-LAN 112 by way of a communication line 142. The lines from the ATM-LAM 111, ATM-WAN 112 and so on are mutually connected in the ATM-WAN 10 to form a communication connection. Each of the ATM-LAN 111 and the ATM-LAN 112 has a plurality of users (not shown) connected to it, and the users can communicate with one another within the LAN. Such a LAN is normally used as a network covering a limited area, which may typically be a school or a commercial company, and controlled within the network area to which it belongs.
The administrator of the ATM-WAN 10 concludes contracts with subscribers who operate the ATM-LAN 111 and the ATM-LAN 112 for the network services it provides with rate to be used for the services in the form of “bits per second” or “cells per second” in advance. The rates that are made available for the subscribers under the contracts are used as the basis for calculating the telecommunications charges for the network services provided by the ATM-WAN 10 and also for determining the amount of capital investment that may be required for the additional rates of communication lines to be provided within the ATM-WAN 10. Note that the expression “bits per second” referring to the number of bits to be transmitted per second and the expression “cells per second” referring to the number of cells to be transmitted per second are synonymously used. For example, for ATM telecommunications conforming to the recommendation 1.361 of International Telecommunication Union-Telecommunication Standardization Sector (ITU-T), a cell is defined to have a 53-octet length and hence “‘cells per second’=‘bits per second’ (53×8).”
Then, under such contracts, any of the users of the ATM-LAN 111 and the ATM-LAN 112 can access any of the resources of the networks by way of the ATM-WAN 10. Since each of the ATM-LAN 111 and the ATM-LAN 112 has a configuration optimally adapted to the environment of the network and is not profit-oriented, each of the users normally does not have to pay attention to the cost of telecommunications within the network to which he or she belongs. On the other hand, the ATM-WAN 10 is a public network and communication data can flow into it from other LANs (not shown). For example, if one of the users of the ATM-LAN 111 caused traffic exceeding the operating rate for which the user had contracted to flow into the ATM-WAY 10, he or she may use one or more additional communication rates allocated to the remaining users. Then, the administrator of the ATM-WAN 10 may become unable to provide the subscribers with services to which the subscribers are entitled under the contracts. Therefore, the ATM switches that are used in LANs and WANs are normally so arranged as to control the communication traffic in such a way that the users may be provided with optimal services and such a situation may appropriately be avoided.
FIG. 2 is a block circuit diagram of one of the ATM switches of FIG. 1 for controlling a communication traffic, showing only principal components thereof. In order to facilitate the understanding of the principle of the operation of controlling a communication traffic, it is assumed here that an ATM switch 20 is connected between a transmission terminal 211 and a reception terminal 212, so that ATM transfer cells are transferred from the transmission terminal 211 to the reception terminal 212.
Thus, the ATM switch 20 exchange communication data with the transmission terminal 211 and the reception terminal 212 by way of lines 221 and 222, respectively.
The ATM switch 20 is constructed by a switch 201 for connecting an input line and an output line assigned to a preselected connection, a usage parameter control (UPC) section 202 arranged upstream toward the input side relative to the switch 201 for identifying the virtual path identifier (VPI) and the virtual channel identifier (VCI) of an ATM transfer cell flowing in from the transmission terminal 211 by way of the line 221 and monitoring if the cell is transferred with a predetermined rate, and a shaping section 203 arranged downstream toward the output side relative to the switch 201 for controlling the forwarding rate of the transfer cell by controlling the priority of the transfer cells and buffering the transfer cells so that the rate of the line 222 for the output to the reception terminal 212 may not be exceeded. The UPC section 202 and the shaping section 203 are controlled by a connection admission control (CAC) section 204 in accordance with the destination of the connection that is notified when the selected connection is established prior to the cell transfer, the declared value for the cell forwarding rate, and the priority.
The UPC section 212 monitors the traffic from the transmission terminal 211 in accordance with the rate declared when the selected connection is established so that it may not flow in excessively. In other words, so long as the traffic from the communication terminal 211 does not exceed the declared rate, it is transferred to the switch 201 without obstruction. However, once the traffic exceeds the declared rate, the excessive cells are processed by means of an optimal method selected from the following processing methods as a function of the specific field of ATM telecommunications of the traffic. The processing methods include (1) a method of simply discarding the excessive portion of the traffic, (2) a method of marking the excessive portion of the traffic and selectively discarding the marked excessive portion when the network is congested or billing an extra communication charge for that portion, and (3) a method of delaying the excessive portion of the traffic until an idle time slot of the network is found. However, the marking method (2) or the delaying method (3) requires the use of an additional circuit and involves a complex processing operation which consequently raises the cost of telecommunication. Particularly, the delaying method (3) is accompanied by the problem of delay time and hence is applicable only to a limited field of ATM telecommunications. On the other hand, the discarding method (1) can simplify the configuration of the network most.
The shaping section 203 controls the forwarding rate by accumulating the cells to be forwarded in the buffering assigned to each connection, so that the predetermined forwarding rate may not be exceeded and a situation where the portion exceeding the declared rate is discarded by the UPC section 202 at the next stage ATM switch may be avoided.
When the ATM switch as illustrated in FIG. 2 is applied to the ATM network as illustrated in FIG. 1, an ATM switch that functions substantially the same as the shaping section 203 is used for both the ATM switch 131 of the ATM-LAN 111 and the ATM switch 132 of the ATM-LAN 112 while an ATM switch that functions substantially the same as the UPC section 202 is used for both the ATM switch 121 and the ATM switch 122 of the ATM-WAN 10. Since the ATM-WAN 10 has a function corresponding to that of the UPC section 202 in it, a situation where the portion exceeding the declared rate is discarded in the ATM-WAN 10 can be effectively avoided by shaping and limiting the rate forwarded from the ATM-LANs 111 and 112.
FIG. 3 is a diagram for explaining the operation of the UPC section 202 of FIG. 2 for controlling the traffic from the ATM-LAN 111 to the ATM-LAN 112 in accordance with the declared rate. It will be seen that traffic Bu that changes with time relative to the contract value Bc predetermined by the administrator of the ATM-LAN 111 is made to flow into the ATM-WAN 10. If the rate Bu exceeds the contract rate Bc and is made to flow into the ATM-WAN 10 on purpose, by mistake or for some other reason, the administrator of the ATM-WAN 10 may discard the excessive portion Bd (=Bu−Bc) of the traffic exceeding the contract value Bc according to any of the above described methods. The operation of monitoring whether every subscriber of the ATM-LAN 111 is properly observing the contract rate Bc or not by means of the UPC section 202 of the ATM switch 121 of the ATM-WAN 10 is referred to simply as “UPC” or “policing.” With this operation, the traffic can be controlled within the ATM-WAN 10 in accordance with the contract rate, so that other subscribers may not be adversely affected.
FIG. 4 is a diagram for explaining the operation the shaping section 203 for controlling the traffic from the ATM-LAN 111 to the ATM-WAN 10. The administrator of the ATM-LAN 111 limits the rate Bu being forwarded that changes with time by means of the shaping section 203 so that it may remain within the contract rate Bc. The forwarding control operation of the shaping section 203 is referred to as “traffic shaping” or simply as “shaping.” With this arrangement, the rate forwarded from the ATM-LAN 111 can reliably be limited by the “shaping” so as not to exceed the rate under the control of the “UPC” of the ATM-WAN 10, and hence the traffic rate flowing into the ATM-WAN 10 may not exceed the contract rate Bc. Thus, no portion of the traffic forwarded from the ATM-LAN 111 will be discarded for the reason of violating the contract if it exceeds the contract value Bc.
The shaping section 203 is constructed by a cell buffer formed by a first-in first-out memory and adapted to temporarily accumulate the cells flowing toward the ATM-WAN 10 from the ATM-LAN 111 and forward them to the ATM-WAN 10 with a rate not exceeding the contract rate Bc.
In each of the ATM-LANs 111 and 112, the connection from the related terminal is then connected to the ATM-WAN 10 by way of ATM switches arranged in a plurality of stages. Thus, the cell transfer intervals can “fluctuate” or change irregularly to show “sparseness” and “denseness,” which by turn can give rise to fluctuations in the cell transfer delay within the ATM-LAN or the cell transfer delay due to some other reasons on the part of the traffic. If, for example, the transfer intervals of the cells belonging to the same connection become “dense” in the telecommunication traffic, the forwarded rate of the connection can exceed the contract rate Bc before it flows into the ATM-WAN 10. Therefore, the cell buffer is used to absorb the “fluctuations” so that the forwarded rate may constantly remain below the contract rate Bc.
The cell buffer (shaper) is generally constructed by establishing a plurality of juxtaposed queues in a memory device and a rate is selected for each of the queues to determine the rate of reading data therefrom. A connection requesting to be connected can be “shaped” by selecting one of the queues of a rate that seems optimal for the connection out of the queues and assigning it to the connection.
In a permanent virtual connection (PVC) system, each of the administrator of the ATM-LANs 111 and 112 and the ATM-WAN 10 selects a rate for each queue in advance to establish the connection by taking the users of each of the networks and the state of utilization of the network into consideration and the connection itself is selected at the same time. With this system, a queue that seems to be optimal can be selected as a very close queue with a rate not exceeding the contract rate Bc is selected for the connection selected by the administrator. However, the PVC system is accompanied by a problem of increasing the number of rates and carrying out a cumbersome reselecting operation that occurs each time a new user enters the scene.
On the other hand, in view of the circumstances where information transfer operations are required to be carried out with every possible rate to adapt themselves to an ever increasing diversity of information to be transferred, there is a strong demand for a connection method using a switched virtual connection (SVC) system for establishing a connection with any given partner at any time at any selected rate so that services may be provided in a more flexible fashion.
Also, the SVC system is divided into a constant bit rate (CBR) system and an unspecified bit rate (UBR) system.
In the CBR system, a connection occupies the queues constituting a cell buffer to determine the partner each time a communication is started, so that another connection cannot be assigned in a multiplexed fashion.
In the UBR system, if two or more connections have the identical rate, the two or more connections are assigned to one of the queues.
In the UBR system, however, if the rate of one connection is a little deviated from the rate of another connection, it is possible to assign the same queue to them. Thus, since the number of queues constituting a cell buffer is inevitably limited (e.g. to eight queues) depending on the conditions of the ATM switch including the surface area for mounting the electronic circuit components and other hardware components if there arises a connection requiring queues exceeding this number, there is no way to assign queues to the connection so that the conventional congestion control can remain baseless. For example, an ordinary ATM switch cannot deal with thousands of connections simultaneously; however, the number of connections is actually limited to eight, for example, in view of the number of queues.
Additionally, while the rate of the connection to be established is selected according to the peak rate or a rate close to that peak rate, the cell intervals getting to the queue are rather irregular and variable depending on the conditions of the network and hence do not always show the peak rate. As a result, the resources including the queues may not necessarily be effectively and efficiently utilized to fully exploit the forwarding potential of the rates of the network.
In FIG. 5, which illustrates an embodiment of the ATM switch according to the present invention, only the principal elements thereof relating to a “shaping” operation are illustrated. An ATM switch 50 is constructed by a plurality of input line 511, 512, 513, 514, . . . , 51N, a switch section 52, and a plurality of output lines 531, 532, 533, 534, . . . 53N. The switch section 52 connects the input lines 511, 512, 513, 514, . . . 51N to the output lines 531, 532, 533, 534, . . . 53N in accordance with the VPI and the VCI written in the header section of an ATM cell. Shaping processing sections 541, 542, 543, 544, 54N are provided in the output lines 531, 532, 533, 534, . . . 53N, each having a plurality of queues. A transfer data is forwarded from the ATM switch 50 by way of one of the shaping processing sections 541, 542, 543, 544, . . . 54N.
Also, a connection assignment processing section 55, when a connection establishing request is received with a call from the transmission terminal of an ATM-LAN (not shown), it assigns one or more queues of the corresponding one of the shaping processing sections 541 through 54N by referring to the declared rate contained in a call selection message for establishing the connection.
Further, the ATM switch 50 includes a shaping setting section 56 for setting a forwarding rate for each of the shaping processing sections 541 through 54N by way of a service provider interface 57 of a service provider interface system (not shown) and defining the attribute of each cell to be accumulated.
Now, the configuration of the shaping processing sections 541 through 54N will be explained to illustrate the forwarding rate and the cell attribute set by the shaping setting section 56.
In FIG. 6, which illustrates the shaping processing section such as 542 of FIG. 5, the shaping processing section 542 is constructed by a queue section 60 for a PVC system, a queue section 61 for a CBR system of an SVC system, and a queue section 62 for a UBR system of the SVC system.
The attributes such as PVC, CBR and UBR of each connection are set by the shaping setting section 56.
The queue section 60 is constructed by a PVC queue 601 having a forwarding rate B01, and a PVC queue 602 having a forwarding rate B02, . . . . Here,

B01<B02<. . . .

The queue section 61 is constructed by a CBR queue 611 having a forwarding rate B11, and a CBR queue 612 having a forwarding rate B12, . . . . Here,

B11<B12<. . . .

The queue section 62 is constructed by a UBR queue 62, having a forwarding rate B21 and a UBR queue 622 having a forwarding rate B22, . . . . Here,

B21<B22<. . . .

As described above, a PVC system and the SVC system may be used for an ATM telecommunication system. Since the administrator carries out a connection with the PVC system, he or she can also set one of the queues to be used for the connection so that an optimum queue may be assigned to the connection with the related rate. On the other hand, with the SVC system, since the rate of the line to be used for a connection is secured in accordance with the declared rate provided with a call from a terminal, it is difficult for the administrator to recognize the type of traffic in advance and set an optimum queue unlike the case of the PVC system. Thus, different attributes may be used for the CBR and UBR system as described above to effectively utilize the rates.
In the case of the CBR system, traffic always occurs with a peak cell rate (PCR). Thus, if there is a CBR connection with a PCR of 10 megabits/sec, there always occurs traffic with a PCR of 10 megabits/sec. Assume then a queue having a forwarding rate of 10 megabits/sec is assigned to the CBR connection. If the queue is assigned to another CBR connection with a PCR of 10 megabits/sec, cells will have to be discarded as excessive traffic with an average of 5 megabits/sec for each of the two connections. Thus, it is highly desirable that a queue to be exclusively used for the CBR system is assigned to a CBR connection in order to avoid a situation where the same queue is duplicately assigned to two connections.
On the other hand, in the case of the UBR system, the same queue may be assigned to a plurality of connections in a multiplexed fashion because traffic does not necessarily occur at PCR unlike the case of the CBR system. Thus, the same queue having a forwarding rate of 10 megabits/sec, for example, may be assigned to a plurality of connections of UBR calls with a PCR of 10 megabits/sec in a multiplexed manner.
As described above, queues are used discriminately for the CBR system that does not allow any multiplexed assignment and for the UBR system that allows multiplexed assignment to take the characteristic features of the CBR and UBR systems into consideration, so that an optimum queue may be assigned without difficulty to any connection that occurs with a call of the SVC system. Since the administrator recognizes the type of connection to be established in the case of the PVC system, he or she can determine whether or not a single queue can be assigned to a plurality of connections and, therefore, it is not necessary to discriminate the CBR and UBR systems.
The operation of the connection assignment processing section 55 will be explained next with reference to FIG. 7. The connection assignment processing section 55 is designed to assign an optimum queue having a predetermined rate and adapted to the attribute of a connection out of the shaping processing sections 541 through 54N in accordance with the declared rate contained in a call selection message for establishing the connection. Note that the connection assignment processing section 55 is constructed by a central processing unit (CPU), a read only memory (ROM), and a random access memory (RAM), so that the CPU may assign an optimum queue to the connection in accordance with the connection assignment procedure stored in the ROM.
First, at step 701, it is determined whether or not a connection establishing request from a transmission terminal is a call selection message. Only when such a connection establishing request is received, does the control proceed to step 702. Otherwise, the control returns to step 701 which continues to wait for the reception of a connection establishing request.
At step 702, it is determined whether the connection to be established is of the SVC system, or of the PVC system on the basis of the received call selection message. If it is determined that the connection is of the SVC system, the control proceeds to step 703. On the other hand, if it is determined that the connection is of the PVC system, the control proceeds to step 713.
At step 703, the attribute of the connection to be established is extracted from the call selection message. The attribute of the connection represents whether the connection is of the CBR system or the UBR system on the basis of the call selection message. Then, at step 704, the declared rate contained in the same call selection message is extracted.
Next, at step 705, it is determined whether the connection of the call is a CBR call. As a result, if the attribute of the connection is a CBR call, the control proceeds to step 706 which selects an output line for the connection in accordance with the VPI and the VCI of the connection and, at the same time, specifies an optimum CBR queue such as 611, 612, . . . out of the queue section 61 assigned in advance by the administrator from the shaping processing section corresponding to the output line.
For specifying the optimum CBR queue at step 706, the assigned queue with the very close rate not exceeding the declared rate extracted at step 704 is selected. If the forwarding rate B12≦declared rate<the forwarding rate B13, the CBR queue 612 is specified as the optimum CBR queue that can be specified with ease by making the queues with the same connection attribute CBR having different forwarding rates. For extreme simplification, it may be so arranged that a call is not received when there is no CBR queue to be forwarded with a very close forwarding rate not exceeding the declared rate.
Next, at step 707, it is determined whether or not the specified CBR queue is occupied. As a result, when the specified CBR queue is occupied, the control proceeds to step 708 which does not receive the call but releases the call. On the other hand, when the specified CBR queue is not occupied, the control proceeds to step 709 which assigns the specified CBR queue to the connection to be established as requested by the call.
On the other hand, at step 705, if the attribute of the connection is not a CBR call, the control proceeds to step 710 which determines whether or not the connection is a UBR call. As a result, only when the connection is a UBR call, does the control proceed to step 711 which selects an output line for the connection in accordance with the VPI and the VCI of the connection and, at the same time, specifies an optimum UBR queue out of the queue section 62 assigned in advance by the administrator from the shaping processing section corresponding to the output line in a manner as described above for specifying an optimum CBR queue at step 705.
For specifying the optimum queue UBR at step 711, the assigned queue with the very close rate not exceeding the declared rate extracted at step 704 is selected. If the forwarding rate B22<declared rate<the forwarding rate B23, the UBR queue 622 is specified as the optimum UBR queue for the connection.
Next, at step 712, the specified UBR queue is assigned to the connection. Since the attribute refers to a UBR call, the same UBR queue can be assigned to a plurality of connections.
On the other hand, at step 702, if it is determined that the connection to be established is not of the SVC system on the basis of the call selection message, the control proceeds to step 713 which sets the PVC system for the call.
Assuming that the rates as illustrated in FIG. 6 are selected for the queues of the shaping processing sections 541 through 54n inserted between the switch section 52 and administrator as described above, the operation to be carried out when a CBR call having a relationship of the forwarding rate B12≦“declared rate of the connection”<the forwarding rate B13 is made will be explained next with reference to FIG. 8.
Upon receiving a CBR call, the CPU of the connection assignment processing section 55 determines whether or not the call requesting for connection is of the SVC system in accordance with the call selection message of the CBR call. The CPU additionally extracts the declared rate contained in the call selection message of the SVC system because the call is a CBR call. Then, the CPU further determines whether the call is a CBR call or a UBR call. After determining that the call is a CBR call and seeing that the declared rate is defined by the formula of the forwarding rate B13≦“declared rate of the connection”<the forwarding rate B13, the CBR queue 612 having the forwarding rate value B12 is selected out of the CBR queue section 61 having a very close rate not exceeding the declared rate. Since no queue is allowed to be duplicately assigned for a CBR call as described above, the CPU determines whether or not the queue has been assigned to some other connection and, if it is found that the queue has not been assigned to any other connection, it assigns the selected CBR queue as indicated by 81 in FIG. 8. If, on the other hand, it is found that the CBR queue is occupied, the call is not received and subjected to a predetermined call releasing process before it is released.
Now, assuming that the rates as illustrated in FIG. 6 are selected for the queues of the shaping processing sections 541 through 54N inserted between the switch section 52 and the respective output lines 531 through 53n by the administrator as described above, the operation to be carried out when a UBR call having a relationship of the forwarding rate B22≦“declared rate of the connection”<the forwarding rate B23 is made will be explained next with reference to FIG. 9.
Assume here that the traffic from the input line 511 is of the UBR system and the UBR queue 622 of the shaping processing section 542 corresponding to the output line 532 is assigned to it as indicated by 91 in FIG. 9, when a new connection establishing request is made to the output line 532 from the input line 51N.
Firstly, upon receiving a UBR call, the CPU of the connection assignment processing section 55 determines whether or not the call requesting connection is of the SVC system in accordance with the call selection message of the UBR call. The CPU additionally extracts the declared rate contained in the call selection message of the UBR call. The CPU additionally extracts the declared rate contained in the call selection message of the SVC system because the call is a UBR call. Then, the CPU further determines whether the call is a CBR call or a UBR call. After determining that the call is a UBR call and seeing that the declared rate is defined by the formula of the forwarding rate B22≦“declared rate of the connection”<the forwarding rate B23, the UBR queue 622 having the forwarding rate B22 is selected out of the queue section 61 having a very close rate not exceeding the declared rate. Since a UBR queue can be duplicatively assigned for an UBR call as described above, the CPU can assign the selected queue without any further operation as indicated by 92 in FIG. 9.
In the case of an ATM switch having a “shaping” function as described above, the relationship of ‘the rate forwarded from the ATM-LAN’≦‘the rate of the UPC of the ATM-WAN’ always holds true so long as the downstream ATM switch having a “UPC” function can recognize the declared rate so that the “UPC” function of the ATM-WAN eliminates cells exceeding the rate to avoid a situation where cells are discarded for nothing.
In the above-described embodiment, while the connection assignment processing section 55 does not accept a CBR call and simply releases it in the operation of assigning a CBR queue to the CBR call if the CBR queue has been assigned to some other connection, another CBR queue may alternatively be selected if this CBR queue has a narrower rate. For example, in the case of FIG. 9, the CBR queue 611 having the forwarding rate value B11 may be selected.
Additionally, while the above described embodiment is adapted to select a queue with a very close forwarding rate not exceeding the declared rate, the essential requirement to be met for the present invention is the selection of a queue with a rate not exceeding the declared rate, which is not necessarily a very close rate, although the selection of a queue with a rate that falls too short of the declared rate can remarkably degrade the quality of telecommunications of the telecommunication rate requested by the transmission terminal.
Still additionally, while the arrangement of assigning a single queue to a plurality of connections of this embodiment is subjected to a restriction that the total sum of the rates of these connections should not exceed the rate selected for the queue, it can operate very effectively particularly when the number of connection requests (e.g., several thousands) exceeds by far the limited number of available queues (e.g., several queues) and to avoid “UPC” that can be caused by the downstream ATM switch is the top priority.
Still additionally, although the ATM switch is used as a gate way connecting ATM-LANs and an ATM-WAN, it may alternatively be used as a general purpose telecommunication traffic control apparatus arranged upstream relative to an ATM switch having the “UPC” function and operated by means of the “shaping” function of the upstream ATM switch and the “UPC” function of the downstream ATM switch.
Finally, while the attribute of the traffic is described in terms of CBR and UBR for the embodiment, shaping assignment can be used for some other traffic defined in terms of variable bit rate (VBR) or available bit rate (ABR) typically by referring to the traffic parameters other than the PCR contained in the call selection message.
As explained hereinabove, according to the present invention, an asynchronous transfer mode switch can be simplified and adapted to assign optimum queues by using the SVC system, particularly, the UBR system thereof, and also to control the communication traffic in response to the request of a connection requiring queues exceeding the number of queues constituting a cell buffer it has for shaping.

## Claims

1. A method performed by a network device, comprising:
receiving, by one or more devices of the network device, a connection request associated with a plurality of data units, the connection request including an indication of a transfer type;
determining, by one or more devices of the network device, whether the transfer type is a first transfer type;
identifying, by one or more devices of the network device, when the transfer type is the first transfer type, a declared transfer rate for a connection associated with the connection request;
selecting, by one or more devices of the network device, at least one of a plurality of queues associated with the first transfer type that has a forwarding rate that is not greater than the declared transfer rate; and
determining, by one or more devices of the network device, whether the first transfer type is a first sub-type, where, when the first transfer type is the first sub-type, the method further comprising:
determining, by one or more devices of the network device, whether the at least one queue is occupied, and
forwarding, by one or more devices of the network device, when the at least one queue is not occupied, at least some of the data units to the at least one queue.

2. The method of claim 1, where, when none of the queues have a forwarding rate that is not greater than the declared transfer rate, the method further comprises denying the connection request.

3. The method of claim 1, further comprising denying the connection request when the at least one queue is occupied.

4. The method of claim 1, further comprising:
determining whether the forwarding rate of another one of the queues associated with the first transfer type is not greater than the declared transfer rate; and
granting the connection request when the forwarding rate of the other one queue is not greater than the declared transfer rate.

5. The method of claim 1, where, when the indication includes peak cell rate information the first transfer type is the first sub-type.

6. The method of claim 1, the method further comprising determining whether the first transfer type is a second sub-type, where, when the indication includes at least one of variable bit rate information or available bit rate information the first transfer type is a second sub-type.

7. The method of claim 6, where, when the first transfer type is the second sub-type, the method further comprising granting the connection request when the at least one queue is occupied or unoccupied.

8. The method of claim 1, where, when the at least one queue has a forwarding rate that is not greater than the declared transfer rate, the method further comprising:
selecting the at least one queue for receiving at least some of the data units, the forwarding rate of the at least one queue being equal to or greater than respective forwarding rates of non-selected queues associated with the first transfer type.

9. The method of claim 1, further comprising:
determining whether the first transfer type is a pre-determined transfer type;
selecting, when the transfer type is the predetermined transfer type, a predetermined queue; and
forwarding at least some of the data units to the selected predetermined queue.

10. The method of claim 1, where, the indication comprises virtual connection information, the method further comprising selecting an output line for transfer of at least some of the data units based on the virtual connection information.

11. A network device comprising:
a shaping section device including a set of queues to buffer data associated with a received call selection message; and
a connection assignment section device to determine whether the received call selection message is for a permanent connection or a switched connection, where, when the call selection message is for the switched connection, the connection assignment section device is further configured to:
identify an attribute associated with the call selection message,
identify a declared transfer rate associated with the call selection message,
determine whether the call selection message is associated with a peak cell rate or at least one of a variable bit rate or an available bit rate, and
determine which ones of the set of queues associated with the peak cell rate or the at least one of the variable bit rate or the available bit rate have forwarding rates that are not greater than the declared transfer rate, where, when the call selection message is associated with the at least one of the variable bit rate or the available bit rate, the connection assignment section is further configured to:
assign an unoccupied queue, associated with the at least one of the variable bit rate or the available bit rate, or an occupied queue, associated with the at least one of the variable bit rate or the available bit rate, to the call selection message.

12. The network device of claim 11, where, when the call selection message is associated with the at least one variable bit rate or available bit rate, the connection assignment section device is further configured to:
establish a call when at least one of the queues has a forwarding rate not greater than the declared transfer rate; and
release the call when none of the queues have a forwarding rate not greater than the declared transfer rate.

13. The network device of claim 11, the connection assignment section device being further configured to:
establish a call when the ones of the set of queues associated with the peak cell rate or the at least one of the variable bit rate or the available bit rate have forwarding rates that are not greater than the declared transfer rate.

14. The network device of claim 11, where the connection assignment section device is further configured to select a first of the ones of the queues having a forwarding rate that is equal to or greater than forwarding rates of unselected queues.

15. The network device of claim 11, where, when the call selection message is for the permanent connection, the connection assignment section device is further configured to assign a predetermined queue of the set.

16. The network device of claim 11, where the call selection message includes virtual connection information, the connection assignment section device being further configured to select an output line for transfer of the data based on the virtual connection information.

17. The network device of claim 11, further comprising a shape setting section device configured to set the attribute.