Frame relay frame shaping per DLCI

Information

  • Patent Application
  • 20040066784
  • Publication Number
    20040066784
  • Date Filed
    October 02, 2002
    22 years ago
  • Date Published
    April 08, 2004
    20 years ago
Abstract
A switch of a network, which services a contract, for switching frame relay frames having a variable size. The switch includes ports through which frames are received from and sent to the network. The switch includes a memory in which data of the frames is stored, the memory in communication with the ports. The switch includes a processor which sends traffic contract conforming frames within a first time interval having a bandwidth to the network and adds unusable bandwidth from the first time interval to a second time interval in which the processor sends data to the network. A method for switching frame relay frames having a variable size in a network, which services a contract.
Description


FIELD OF THE INVENTION

[0001] The present invention relates to switching frame relay frames having a variable size. More specifically, the present invention relates to switching frame relay frames having a variable size which adds unusable bandwidth from a time interval to a next adjacent time interval for a connection.



BACKGROUND OF THE INVENTION

[0002] Frames of multiple DLCIs within the same FR UNI/NNI interface may be running at different traffic rates. It is very important or desirable to control and shape the per DLCI traffic to a subscription time traffic contract so that one DLCI doesn't take the bandwidth of another DLCI in the FR UNI/NNI. Also, it is desirable to prioritize the per DLCI traffic into different classes. The Frame Shaping technique used in the present invention controls and shapes the per DLCI traffic.



SUMMARY OF THE INVENTION

[0003] The present invention pertains to a switch of a network, which services a contract, for switching frame relay frames having a variable size. The switch comprises ports through which frames are received from and sent to the network. The switch comprises a memory in which data of the frames is stored, the memory in communication with the ports. The switch comprises a processor which sends traffic contract conforming frames within a first time interval having a bandwidth to the network and adds unusable bandwidth from the first time interval to a second time interval in which the processor sends data to the network.


[0004] The present invention pertains to a method for switching frame relay frames having a variable size in a network, which services a contract. The method comprises the steps of receiving frames from the network at ports of a switch in communication with the network. There is the step of storing data of the frames in a memory received at the ports. There is the step of sending with a processor traffic contract conforming frames within a first time interval having a bandwidth to the network. There is the step of keeping track of unusable bandwidth of the first time interval. There is the step of adding unusable bandwidth from the first time interval to a second time interval in which the processor sends data to the network. There is the step of sending with the processor traffic contract conforming frames within the second time interval with the unusable bandwidth from the first time interval added to the second time interval.







BRIEF DESCRIPTION OF THE DRAWINGS

[0005] In the accompanying drawings, the preferred embodiment of the invention and preferred methods of practicing the invention are illustrated in which:


[0006]
FIG. 1 shows the relationship between Frame, Bc, CIR, Access Rate and Tc.


[0007]
FIG. 2 shows the relationship between Frame, Bc, CIR, Be, Access Rate and Tc.


[0008]
FIG. 3 shows the relationship between Frame, Be, Access Rate and Tc.


[0009]
FIG. 4 shows shaping descriptors relationship.


[0010]
FIG. 5 is a schematic representation of the switch of the present invention.







DETAILED DESCRIPTION

[0011] Referring now to the drawings wherein like reference numerals refer to similar or identical parts throughout the several views, and more specifically to FIG. 5 thereof, there is shown a switch 10 of a network 12, which services a contract, for switching frame relay frames having a variable size. The switch 10 comprises ports 14 through which frames are received from and sent to the network 12. The switch 10 comprises a memory 16 in which data of the frames is stored, the memory 16 in communication with the ports 14. The switch 10 comprises a processor 18 which sends traffic contract conforming frames within a first time interval having a bandwidth to the network 12 and adds unusable bandwidth from the first time interval to a second time interval in which the processor 18 sends data to the network 12.


[0012] The processor 18 preferably includes an Intel IXP 1200 network processor 18 for serving the frames with the intervals, and an FPGA (Field Programmable Gate Array) connected to the ports 14 and the network processor 18. The ports 14, such as of a network interface card, provide the frames to the FPGA and then to the memory 16 for the network processor 18, after the FPGA performs an error check on the frames and determines which channel a given frame is associated with.


[0013] Preferably, the frames are associated with categories and the processor 18 sends data from the frames according to the frames' categories. The processor 18 preferably performs frame relay traffic management on the frames received from the network 12 characterized at ports 14 by CIR—Committed Information Rate in bits/seconds, 0<=CIR<AR, where AR is the Frame Relay channel Access Rate; Bc—Committed Burst Size in bits; Be—Excess Burst Size in bits; and Category.


[0014] Preferably, the processor 18 shapes the frames the processor 18 sends to the network 12 according to a rate control based on Bc/Be/CIR/AR and a committed time interval Tc, which is derived as follows:


[0015] Tc=Bc/CIR when CIR !=0 or


[0016] Tc=Be/AR when CIR=0.


[0017] The categories of frames the processor 18 services and the priority in which the processor 18 services the frames, where 0 is the highest priority, are preferably defined as:
1CFR- CIR ! = 0, Bc ! = 0, Be = 0,Priority = 0rtVFR- CIR ! = 0, Bc ! = 0, Be >= 0,Priority = 1nrtVFR- CIR ! = 0, Bc ! = 0, Be >= 0,Priority = 2UFR- CIR = 0, Bc = 0,Priority = 3.


[0018] Preferably, in each time interval, the processor 18 transmits data from CFR frames first than VFR frames are only transmitted when there is no more CFR frames ready to be transmitted in this interval; in VFR frames, the rtVFR frames conforming to Bc are first transmitted and then the nrtVFR frames conforming to Bc are transmitted; when there are no more rtVFR or nrtVFR frames within Bc, then the frames within Bc+Be are transmitted accordingly; the UFR frames are transmitted only when there are no more CFR or VFR frames waiting to be transmitted.


[0019] The memory 16 preferably includes per DLCI queues in which data from frame relay connections are stored. Preferably, the queues of frames from connections having the same classification are serviced by the processor 18 in round robin fashion.


[0020] The present invention pertains to a method for switching frame relay frames having a variable size in a network 12, which services a contract. The method comprises the steps of receiving frames from the network 12 at ports 14 of a switch in communication with the network 12. There is the step of storing data of the frames in a memory 16 received at the ports 14. There is the step of sending with a processor 18 traffic contract conforming frames within a first time interval having a bandwidth to the network 12. There is the step of keeping track of unusable bandwidth of the first time interval. There is the step of adding unusable bandwidth from the first time interval to a second time interval in which the processor 18 sends data to the network 12. There is the step of sending with the processor 18 traffic contract conforming frames within the second time interval with the unusable bandwidth from the first time interval added to the second time interval.


[0021] Preferably, the frames are associated with categories and wherein the sending within a first interval step includes the step of sending with the processor 18 data from the frames according to the frames' categories. There is preferably the step of performing frame relay traffic management on the frames received from the network 12 characterized at ports 14 by CIR—Committed Information Rate in bits/seconds, 0<=CIR<AR, where AR is the Frame Relay channel Access Rate; Bc—Committed Burst Size in bits; Be—Excess Burst Size in bits; and Category.


[0022] Preferably, there is the step of shaping the frames the processor 18 sends to the network 12 according to a rate control based on Bc/Be/CIR/AR and a committed time interval Tc, which is derived as follows:


[0023] Tc=Bc/CIR when CIR !=0 or


[0024] Tc=Be/AR when CIR=0.


[0025] The categories of frames the processor 18 services and the priority in which the processor 18 services the frames, where 0 is the highest priority, are preferably defined as:
2CFR- CIR ! = 0, Bc ! = 0, Be = 0,Priority = 0rtVFR- CIR ! = 0, Bc ! = 0, Be >= 0,Priority = 1nrtVFR- CIR ! = 0, Bc ! = 0, Be >= 0,Priority = 2UFR- CIR = 0, Bc = 0,Priority = 3.


[0026] Preferably, in each time interval, the processor 18 transmits data from CFR frames first than VFR frames are only transmitted when there is no more CFR frames ready to be transmitted in this interval; in VFR frames, the rtVFR frames conforming to Bc are first transmitted and then the nrtVFR frames conforming to Bc are transmitted; when there are no more rtVFR or nrtVFR frames within Bc, then the frames within Bc+Be are transmitted accordingly; the UFR frames are transmitted only when there are no more CFR or VFR frames waiting to be transmitted.


[0027] The memory 16 preferably includes per DLCI queues in which data from frame relay connections are stored. Preferably, the queues of frames from connections having the same classification are serviced by the processor 18 in round robin fashion.


[0028] In the operation of the invention, unlike ATM where each cell is fixed size, Frame Relay frames are variable in nature and this makes the frame shaping a challenging process. An efficient method of Frame Relay Shaping is now described.


[0029] Frame Relay Traffic Management is characterized by four subscription time parameters and they are:


[0030] i) CIR—Committed Information Rate in bits/seconds, 0<=CIR<AR, where AR is the Frame Relay channel Access Rate;


[0031] ii) Bc—Committed Burst Size in bits;


[0032] iii) Be—Excess Burst Size in bits; and


[0033] iv) Category


[0034] Frame Shaping is done by a combination of per DLCI queuing and a Rate Control Based on Bc/Be/CIR/AR and a committed time interval Tc, which is derived as follows:


[0035] Tc=Bc/CIR when CIR !=0 or


[0036] Tc=Be/AR when CIR=0.


[0037] Four different categories of Frame Relay Traffic is defined as follows (o is the highest priority):
3CFR- CIR ! = 0, Bc ! = 0, Be = 0,Priority = 0rtVFR- CIR ! = 0, Bc ! = 0, Be >= 0,Priority = 1nrtVFR- CIR ! = 0, Bc ! = 0, Be >= 0,Priority = 2UFR- CIR = 0, Bc = 0,Priority = 3.


[0038] In general, in each shaping period, CFR frames are transmitted first. VFR frames are only transmitted when there is no more CFR frames ready to be transmitted in this interval. In VFR frames, the rtVFR frames conforming to Bc are first transmitted and then the nrtVFR frames conforming to Bc are transmitted. When there are no more rtVFR or nrtVFR frames within Bc, then the frames within Bc+Be are transmitted accordingly. The UFR frames are transmitted only when there are no more CFR or VFR frames waiting to be transmitted.


[0039] The shaping algorithm is now described.


[0040] With respect to the data description, the shaping descriptors used in shaping algorithm includes the following:


[0041] Configured FR UNI/NNI Table: contains all the configured FR UNI/NNIs and is used as an FR UNI/NNI polling table for a shaping module. Each valid entry points to a configured FR UNI/NNI Shaping Descriptor. This table is system level.


[0042] FR UNI/NNI Shaping Descriptor: contains the 4 priority DLCI shaping queue descriptor lists. Each list links that priority's DLCI shaping queue descriptors for the shaping module to dump frames. The DLCI shaping queue descriptor only gets enlisted to the list when there are frames in its shaping queue. It will be delisted when its shaping queue is empty. This descriptor is per UNI/NNI


[0043] Shaping Queue Descriptor: holds the DLCI shaping queue information, i.e. queue head and queue tail. This descriptor is per DLCI.


[0044] With respect to the logic description and frame enqueue, the received frames on one DLCI are always enqueued to its dedicated DLCI shaping queue. The data of the frame is stored in SDRAM and a pointer associated with the data is stored in SRAM. If the shaping queue is empty when the frame is received, it will be enlisted to the correspondent class Queue Descriptor List of the FR UNI/NNI Descriptor.


[0045] In regard to the frame check order, to dump the frames from the shaping queue to the HDLC interface, the shaping module checks the enqueued frames against the contract. If the frame doesn't violate the contract, it will be transmitted out. To keep the priority, the frame will be checked according to the priority of the DLCI they belonged to. The frame check order is as follows:


[0046] CFR→ rt-VFR Bc→ nrt-VFR Bc→ rt-VFR Be→ nrt-VFR Be→ UFR


[0047] All the frames belong to CFR DLCI will be continuous dumped out if they don't exceed Bc within the checking interval. For other DLCI frames, whenever a frame is dumped out, the existed higher priority DLCI shaping queues will be check again in case there are new frames received by higher priority DLCIs.


[0048] The end condition for polling over a FR UNI/NNI is:


[0049] All the DLCIs has been polled and no more frames can be dumped out.


[0050] The transmitted frame number reached the pre-configured limit for a FR UNI/NNI.


[0051] As a simple example, in a first interval for a connection, there is 4 K of bandwidth allocated, but only 3.5 K of data from packets conforms with the contract in the first interval. Thus, 0.5 K of bandwidth of the first interval is unusable. In the next interval for the connection, the 0.5 K of unusable bandwidth from the first interval is added to the next interval, thus allocating 4.5 K of bandwidth by the next interval for the connection. In turn, whatever bandwidth is unusable in the next interval is added to the next interval after that for the connection. The network processor 18 keeps track of the unusable bandwidth from one interval to next for a connection.


[0052] The following definitions are applicable to the terms used herein.
4DLCI:Data Link Connection IdentifierCFR:Constant Frame RatertVFR:realtime Variable Frame RatenrtVFR:non-realtime Variable Frame RateUFR:Unspecified Frame Rate


[0053] Although the invention has been described in detail in the foregoing embodiments for the purpose of illustration, it is to be understood that such detail is solely for that purpose and that variations can be made therein by those skilled in the art without departing from the spirit and scope of the invention except as it may be described by the following claims.


Claims
  • 1. A switch of a network, which services a contract, for switching frame relay frames having a variable size comprising: ports through which frames are received from and sent to the network; a memory in which data of the frames is stored, the memory in communication with the ports; and a processor which sends traffic contract conforming frames within a first time interval having a bandwidth to the network and adds unusable bandwidth from the first time interval to a second time interval in which the processor sends data to the network.
  • 2. A switch as described in claim 1 wherein the frames are associated with categories and the processor sends data from the frames according to the frames' categories.
  • 3. A switch as described in claim 2 wherein the processor performs frame relay traffic management on the frames received from the network characterized at ports by CIR—Committed Information Rate in bits/seconds, 0<=CIR<AR, where AR is the Frame Relay channel Access Rate; Bc—Committed Burst Size in bits; Be—Excess Burst Size in bits; and Category.
  • 4. A switch as described in claim 3 wherein the processor shapes the frames the processor sends to the network according to a rate control based on Bc/Be/CIR/AR and a committed time interval Tc, which is derived as follows: Tc=Bc/CIR when CIR !=0 or Tc=Be/AR when CIR=0.
  • 5. A switch as described in claim 4 wherein the categories of frames the processor services and the priority in which the processor services the frames, where 0 is the highest priority, are defined as:
  • 6. A switch as described in claim 5 wherein in each time interval, the processor transmits data from CFR frames first than VFR frames are only transmitted when there is no more CFR frames ready to be transmitted in this interval; in VFR frames, the rtVFR frames conforming to Bc are first transmitted and then the nrtVFR frames conforming to Bc are transmitted; when there are no more rtVFR or nrtVFR frames within Bc, then the frames within Bc+Be are transmitted accordingly; the UFR frames are transmitted only when there are no more CFR or VFR frames waiting to be transmitted.
  • 7. A switch as described in claim 6 wherein the memory includes per DLCI queues in which data from frame relay connections are stored.
  • 8. A switch as described in claim 7 wherein the queues of frames from connections having the same classification are serviced by the processor in round robin fashion.
  • 9. A method for switching frame relay frames having a variable size in a network, which services a contract, comprising the steps of: receiving frames from the network at ports of a switch in communication with the network; storing data of the frames in a memory received at the ports; sending with a processor traffic contract conforming frames within a first time interval having a bandwidth to the network; keeping track of unusable bandwidth of the first time interval; adding unusable bandwidth from the first time interval to a second time interval in which the processor sends data to the network; and sending with the processor traffic contract conforming frames within the second time interval with the unusable bandwidth from the first time interval added to the second time interval.
  • 10. A method as described in claim 9 wherein the frames are associated with categories and wherein the sending within a first interval step includes the step of sending with the processor data from the frames according to the frames' categories.
  • 11. A method as described in claim 10 including the step of performing frame relay traffic management on the frames received from the network characterized at ports by CIR—Committed Information Rate in bits/seconds, 0<=CIR<AR, where AR is the Frame Relay channel Access Rate; Bc—Committed Burst Size in bits; Be—Excess Burst Size in bits; and Category.
  • 12. A method as described in claim 11 including the step of shaping the frames the processor sends to the network according to a rate control based on Bc/Be/CIR/AR and a committed time interval Tc, which is derived as follows: Tc=Bc/CIR when CIR !=0 or Tc=Be/AR when CIR=0.
  • 13. A switch as described in claim 12 wherein the categories of frames the processor services and the priority in which the processor services the frames, where 0 is the highest priority, are defined as:
  • 14. A switch as described in claim 13 wherein in each time interval, the processor transmits data from CFR frames first than VFR frames are only transmitted when there is no more CFR frames ready to be transmitted in this interval; in VFR frames, the rtVFR frames conforming to Bc are first transmitted and then the nrtVFR frames conforming to Bc are transmitted; when there are no more rtVFR or nrtVFR frames within Bc, then the frames within Bc+Be are transmitted accordingly; the UFR frames are transmitted only when there are no more CFR or VFR frames waiting to be transmitted.
  • 15. A method as described in claim 14 wherein the memory includes per DLCI queues in which data from frame relay connections are stored.
  • 16. A method as described in claim 15 wherein the queues of frames from connections having the same classification are serviced by the processor in round robin fashion.