Abstract:
The disclosed systems and methods relate to allocating bandwidth to a plurality of ports that access a shared resource. An exemplary system may comprise a multiplexer, a table, and a scheduling circuit. The table may define when a port has access to the shared resource. The table entries may be based on the number of ports with access to the shared resource and the required bandwidth in each of the ports. The scheduling circuit controls the multiplexer according to the table, and the ports may gain access to the shared resource one port at a time.

Description:
RELATED APPLICATIONS 
       [0001]    [Not Applicable] 
       FEDERALLY SPONSORED RESEARCH OR DEVELOPMENT 
       [0002]    [Not Applicable] 
       MICROFICHE/COPYRIGHT REFERENCE 
       [0003]    [Not Applicable] 
       BACKGROUND OF THE INVENTION 
       [0004]    Network switching devices may support several ports—each port may have a pre-defined bandwidth requirement. Traffic may be channeled across a single data bus (such as an Ipipe) to be processed by downstream components. Time Division Multiplexing (TDM) may be used to arbitrate port access to the Ipipe. Each port accumulates data as it arrives. To guarantee line rate data transfer for a port, the TDM arbiter should service each port at the correct frequency. When a network switching device is manufactured, this service frequency may be determined according to the bandwidth associated with each port. 
         [0005]    Further limitations and disadvantages of conventional and traditional approaches will become apparent to one of skill in the art, through comparison of such systems with some aspects of the present invention as set forth in the remainder of the present application with reference to the drawings. 
       BRIEF SUMMARY OF THE INVENTION 
       [0006]    A system and/or method is provided for bandwidth allocation using programmable TDM arbitration as shown in and/or described in connection with at least one of the figures, as set forth more completely in the claims. Advantages, aspects and novel features of the present invention, as well as details of an illustrated embodiment thereof, will be more fully understood from the following description and drawings. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0007]      FIG. 1  is a block diagram that illustrates a first exemplary system for TDM arbitration in accordance with a representative embodiment of the present invention; 
           [0008]      FIG. 2  is a block diagram that illustrates a second exemplary system for TDM arbitration in accordance with a representative embodiment of the present invention; 
           [0009]      FIG. 3  is a block diagram that illustrates a third exemplary system for TDM arbitration in accordance with a representative embodiment of the present invention; and 
           [0010]      FIG. 4  is a flow diagram that illustrates a method for TDM arbitration in accordance with a representative embodiment of the present invention. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
       [0011]    Aspects of the present invention relate to employing programmable scheduling logic to achieve greater configurability in network switching devices that may be designed on integrated circuits. By optimizing aggregate bandwidth while supporting multiple switch configurations, aspects of the present invention may shorten time-to-market and reduce development costs for consumer products. Aspects of the present invention use a programmable Time Division Multiplexer (TDM) to arbitrate port access to downstream components. Aspects of the present invention may also support multiple products by using a programmable table-driven architecture. 
         [0012]      FIG. 1  illustrates TDM arbitration in accordance with a representative embodiment of the present invention. Port traffic is channeled through a Time Division Multiplexer (TDM),  107 , that may arbitrate access to downstream components. N network ports (port  1 , port  2 , . . . port N) may vie for access to the IP pipeline,  113 . The TDM,  107 , is driven by TDM scheduling logic,  109 , in order to arbitrate port access to a common resource, e.g. the IP pipeline,  113 . 
         [0013]    The TDM scheduling logic,  109 , may use a programmable table,  111 , to select port access. The programmable table,  111 , is used to describe the number of ports and their service requirements. The scheduling logic,  109 , may be designed to possess knowledge of the table format without requiring specific table content a priori. 
         [0014]    The network switching device may be designed to support a maximum aggregate bandwidth (BW) across 1 to N ports using TDM arbitration. The bus width and FIFO buffer depth may be determined at design time and optimized for a large range of ports with varying line speeds. 
         [0015]    A programmable table,  111 , may be used which contains M entries, where M&gt;=N. The user configures how many of the M entries are to be used in the arbitration process (1 to M). Each entry of the table may represent an amount of bandwidth equal to bandwidth divided by the number of entries used. The table entries may be programmed by assigning each entry to a port. Multiple entries may be assigned to the same port. The sum of the entries being assigned to a particular port may represent a bandwidth greater than or equal to the bandwidth required to satisfy the line rate required on that port. The entries of the table that are used may define the order in which the ports are serviced and granted access to the IPipe processing pipeline,  113 . 
         [0016]      FIG. 2  illustrates TDM arbitration example with 10 1G ports (ports  1 - 10 ) and 1 10G port (port  11 ). Port traffic is channeled through a Time Division Multiplexer (TDM),  107 , that may arbitrate access to downstream components. Eleven network ports (port  1 , port  2 , . . . port  11 ) may vie for access to the IP pipeline,  113 . The TDM,  107 , is driven by TDM scheduling logic,  109 , in order to arbitrate port access to a common resource, e.g. the IP pipeline,  113 . 
         [0017]    The TDM scheduling logic,  109 , may use a programmable table,  111 , to select port access. An exemplary table for this configuration is shown below as Table 1. Table 1 contains 20 entries (e.g. 0 to 19). The odd entries are assigned to port  11 , and the even entries are assigned to ports  1 - 10 . This allocates 10 times the bandwidth to port  11  compared to ports  1  through  10 . Therefore, port  11  has a maximum line rate that is 10 times that of ports  1  through  10 . Wrapping refers to returning to the head of the table. The Wrap Valid column in Table 1 indicates the end of the entry list, and indexing is then restarted at the beginning of the list. 
         [0000]    
       
         
               
               
               
             
               
               
               
             
           
               
                 TABLE 1 
               
               
                   
               
               
                 Entries 
                 Wrap Valid 
                 Port number 
               
               
                   
               
             
             
               
                   
               
             
          
           
               
                 0 
                 0 
                 1 
               
               
                 1 
                 0 
                 11 
               
               
                 2 
                 0 
                 2 
               
               
                 3 
                 0 
                 11 
               
               
                 4 
                 0 
                 3 
               
               
                 5 
                 0 
                 11 
               
               
                 6 
                 0 
                 4 
               
               
                 7 
                 0 
                 11 
               
               
                 8 
                 0 
                 5 
               
               
                 9 
                 0 
                 11 
               
               
                 10 
                 0 
                 6 
               
               
                 11 
                 0 
                 11 
               
               
                 12 
                 0 
                 7 
               
               
                 13 
                 0 
                 11 
               
               
                 14 
                 0 
                 8 
               
               
                 15 
                 0 
                 11 
               
               
                 16 
                 0 
                 9 
               
               
                 17 
                 0 
                 11 
               
               
                 18 
                 0 
                 10 
               
               
                 19 
                 1 
                 11 
               
               
                   
               
             
          
         
       
     
         [0018]    In Table 1, each entry of the table represents 5% of the total bandwidth to be allocated for all ports. Port  11  will be selected by the TDM,  107 , 10 times as often as any other port. Therefore, port  11  will access the IP pipeline 50% of the time, and ports  1 - 10  will each access the IP pipeline 5% of the time. The switching rate of the TDM,  107 , is controlled by the scheduling logic,  109 . The bandwidth of the IP pipeline,  113 , may be greater than or equal to the bandwidth required to satisfy the line rate on all ports. In this example, the bandwidth of the IP pipeline,  113 , may be greater than or equal to 20G. 
         [0019]      FIG. 3  illustrates a TDM arbitration example with 2 10G ports. Port traffic is channeled through a Time Division Multiplexer (TDM),  107 , that may arbitrate access to downstream components. The TDM,  107 , is driven by TDM scheduling logic,  109 , in order to arbitrate access by port  1  and port  2  to a common shared resource, e.g. the IP pipeline,  113 . 
         [0020]    The TDM scheduling logic,  109 , may use a programmable table,  111 , to select port access. An exemplary TDM table for substantially balanced two port arbitration is shown below as Table 2. Since both ports possess the same bandwidth requirement, Table 2 has two entries, which indicate that the TDM,  107 , will toggle between port  1  and port  2 . 
         [0000]    
       
         
               
               
               
             
           
               
                 TABLE 2 
               
               
                   
               
               
                 Entries 
                 Wrap valid 
                 Port number 
               
               
                   
               
             
             
               
                 0 
                 0 
                 1 
               
               
                 1 
                 1 
                 2 
               
               
                   
               
             
          
         
       
     
         [0021]    In Table 2, each entry of the table represents 50% of the total bandwidth to be allocated for all ports. The switching rate of the TDM,  107 , is controlled by the scheduling logic,  109 . The bandwidth of the IP pipeline,  113 , may be greater than or equal to the bandwidth required to satisfy the line rate on all ports. In this example, the bandwidth of the IP pipeline,  113 , may be greater than or equal to 20G. 
         [0022]      FIG. 4  is a flow diagram that illustrates a method for TDM arbitration in accordance with a representative embodiment of the present invention. At  401 , the number of ports is determined. At  403 , the required bandwidth for each port is determined. At  405 , the number of TDM table entries is determined, and the wrap valid indication is set at the end of the list. For example, the greatest common divisor of the port bandwidths may be selected as the bandwidth that will be allocated as each entry is processed. Therefore, the number of times that a port will be entered may be determined as the port&#39;s required bandwidth divided by the greatest common divisor. And the number of TDM table entries would be the sum of the ports&#39; required bandwidth divided by the greatest common divisor. At  407 , the TDM table is filled by distributing the table entries corresponding to a particular port as evenly as possible. At  409 , the entries of the table are used to define the order in which the ports are serviced and granted access to a processing pipeline. 
         [0023]    The present invention may be realized in hardware, software, or a combination of hardware and software. The present invention may be realized in a centralized fashion in an integrated circuit or in a distributed fashion where different elements are spread across several circuits. Any kind of computer system or other apparatus adapted for carrying out the methods described herein is suited. A typical combination of hardware and software may be a general-purpose computer system with a computer program that, when being loaded and executed, controls the computer system such that it carries out the methods described herein. 
         [0024]    The present invention may also be embedded in a computer program product, which comprises all the features enabling the implementation of the methods described herein, and which when loaded in a computer system is able to carry out these methods. Computer program in the present context means any expression, in any language, code or notation, of a set of instructions intended to cause a system having an information processing capability to perform a particular function either directly or after either or both of the following: a) conversion to another language, code or notation; b) reproduction in a different material form. 
         [0025]    While the present invention has been described with reference to certain embodiments, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted without departing from the scope of the present invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the present invention without departing from its scope. Therefore, it is intended that the present invention not be limited to the particular embodiment disclosed, but that the present invention will include all embodiments falling within the scope of the appended claims.