INTERFACE FOR A HIGHLY INTEGRATED ETHERNET NETWORK ELEMENT

Abstract: The present invention provides a media-independent interface (MII) on a highly integrated network component by implementing the media-independent interface (MII) with a lower pin count, while reducing the timing budget. In another embodiment, the present invention functions to the media-independent interface (MII) compatible devices while reducing pin count and the timing budget.

Description: INTERFACE FOR A HIGHLY INTEGRATED ETHERNET NETWORK ELEMENT BACKGROUND OF THE INVENTION 1. FIELD OF THE INVENTION The present invention relates to an improved data communications interface. More particularly, the system and method of the present invention relates to an improved media-independent interface for interconnection between the physical layer components and media access controllers. 3. ART BACKGROUND The Institute of Electrical and Electronic Engineers (IEEE) working standard 802.3u (1995) defines a media-independent interface (Mil) for interoperable interconnection between the physical layer components (PHYs) and media access controllers (MACs) in IEEE 802.3 compatible network devices. The Mil provides for a total of eighteen interconnect signals and a generous timing budget that allows for relatively straightforward implementation of the Mil in numerous devices. In the context of implementing a highly integrated ethernet network element (e.g, switch or repeater), one of the major concerns that has to be addressed by the implementors is the ability to achieve the desired port density in the network element. Frequently, this aspect of the design is constrained by the required pin count of the integrated circuit (IC). Due to significant advances in silicon technology in recent years, the generous timing budgets provided by the IEEE 802.3u standard is no longer needed to achieve a cost-effective network device implementation. Therefore, it is desirable to optimize the Mil definition to decrease the pin count per connection, while still operating in an economic timing budget. This is particularly useful in a highly integrated ethernet network element which includes a multiplicity of ports. SUMMARY OF THE INVENTION The present invention provides a media-independent interface (Mil) on a highly integrated network component by implementing the Mil interface with a lower pin count, while reducing the timing budget. In another embodiment, the present invention functions to interface to Mil compatible devices while reducing pin count and the timing budget. In one embodiment, certain signals that require significant access or are time critical are singularly transmitted as was done in compliance with the IEEE 802.3 standard, while other signals that are not as time-critical are multiplexed using the different portions of the clock signal to transmit different signals. In particular, the datapath signals are grouped into two groups: the receive group and transmit group. Within each group, clock phase multiplexing is performed wherein half of the signals are driven during a first phase, e.g., the high phase of the clock and the other half is driven during a second phase, e.g., the low phase of the clock. On the send side of the interconnect, the signal multiplexing is performed, while on the receive side of the interconnect, de-multiplexing is performed. Thus, a highly efficient and cost-effective port density is achieved in an integrated ethernet network element, such as switches and repeaters. BRIEF DESCRIPTION OF THE DRAWINGS The objects, features and advantages of the present invention will be apparent to one skilled in the art in light of the foregoing description in which: Figure 1 illustrates a network device. Figure 2 illustrates a network component implemented in the network device of Figure 1. Figure 3a illustrates the transmit multiplexing circuitry in accordance with the teachings of the present invention. Figure 3b is a timing diagram illustrating the relative timing of the circuit of Figure 3a. Figure 4a illustrates the receive multiplexing circuitry in accordance with the teachings of the present invention. Figure 4b is a timing diagram illustrating the relative timing of the circuit of Figure 4a. Figure 5a is a diagram that illustrates the timing budget. Figure 5b is a table of the timing budget. DETAILED DESCRIPTION In the following description for purposes of explanation, numerous details are set forth in order to provide a thorough understanding of the present invention. However, it will be apparent to one skilled in the art these specific details are not required in order to practice the present invention. In other instances, well-known electrical structures and circuits are shown in block diagram form in order not to obscure the present invention unnecessarily. The interface of the present invention is described in the context of a network switch. However, it is readily apparent that the present invention is applicable to other network elements. An exemplary network element is shown in Figure 1. The network element is used to interconnect a number of nodes and end-stations in a variety of different ways. For example, an application of the multi-layer distributed network element (MLDNE) would be to route packets according to predefined routing protocols over a homogenous data link layer such as the IEEE 802.3 standard, also known as the Ethernet. Other routing protocols can also be used. The MLDNE's distributed architecture can be configured to route message traffic in accordance with a number of known or future routing algorithms. In a preferred embodiment, the MLDNE is configured to handle message traffic using the Internet suite of protocols, and more specifically the Transmission Control Protocol (TCP) and the Internet Protocol (IP) over the Ethernet LAN standard and medium access control (MAC) data link layer. The TCP is also referred to here as a Layer 4 protocol, while the IP is referred to repeatedly as a Layer 3 protocol. In one embodiment of the MLDNE, a network element is configured to implement packet routing functions in a distributed manner, i.e., different parts of a function are performed by different subsystems in the MLDNE, while the final result of the functions remains transparent to the external nodes and end-stations. As will be appreciated from the discussion below and the diagram in Figure 1, the MLDNE has a scalable architecture which allows the designer to predictably increase the number of external connections by adding additional subsystems, thereby allowing greater flexibility in defining the MLDNE as a stand alone router. As illustrated in block diagram form in Figure 1, the MLDNE 101 contains a number of subsystems 110 that are fully meshed and interconnected using a number of internal links 141 to create a larger switch. At least one internal link couples any two subsystems. Each subsystem 110 includes a switch element 111 coupled to a forwarding memory 113 and an associated memory 114. The forwarding memory (or database) 113 stores an address table used for matching with the headers of received packets. The associated memory (or database) stores data associated with each entry in the forwarding memory that is used to identify forwarding attributes for forwarding the packets through the MLDNE. A number of external ports (not shown) having input and output capability interface the external connections 117. In one embodiment, each subsystem supports multiple Gigabit Ethernet ports, Fast Ethernet ports and Ethernet ports. Internal ports (not shown) also having input and output capability in each subsystem couple the internal links 141. Using the internal links, the MLDNE can connect multiple switching elements together to form a multigigabit switch. The MLDNE 101 further includes a central processing system (CPS) 160 that is coupled to the individual subsystem 110 through a communication bus 151 such as the peripheral components interconnect (PCI). The CPS 160 includes a central processing unit (CPU) 161 coupled to a central memory 163. Central memory 163 includes a copy of the entries contained in the individual forwarding memories 113 of the various subsystems. The CPS has a direct control and communication interface to each subsystem 110 and provides some centralized communication and control between switch elements. Figure 2 is a simplified block diagram illustrating an exemplary architecture of the switch element of Figure 1. The switch element 200 depicted includes a central processing unit (CPU) interface 215, a switch fabric block 210, a network interface 205, a cascading interface 225, and a shared memory manager 220. Ethernet packets may enter or leave the network switch element 200 through any one of the three interfaces 205, 215, or 225. In brief, the network interface 205 operates in accordance with corresponding Ethernet protocol to receive Ethernet packets from a network (not shown) and to transmit Ethernet packets onto the network via one or more external ports (not shown). An optional cascading interface 225 may include one or more internal links (not shown) for interconnecting switching elements to create larger switches. For example, each switch element may be connected together with other switch elements in a full mesh topology to form a multi-layer switch as described above. Alternatively, a switch may comprise a single switch element 200 with or without the cascading interface 225. The CPU (not shown) may transmit commands or packets to the network switch element 200 via the CPU interface 215. In this manner, one or more software processes running on the CPU may manage entries in an external forwarding and filtering database 240, such as adding new entries and invalidating unwanted entries. In alternative embodiments, however, the CPU may be provided with direct access to the forwarding and filtering database. In any event, for purposes of packet forwarding, the CPU port of the GPU interface 215 resembles a generic input port into the switch element 200 and may be treated as if it were simply another external network interface port. However, since access to the CPU port occurs over a bus such as a peripheral components interconnect (PCI) bus, the CPU port does not need any media access control (MAC) functionality. Returning to the network interface 205, the two main tasks of input packet processing and output packet processing will now briefly be described. Input packet processing may be performed by one or more input ports of the network interface 205. Input packet processing includes the following: (1) receiving and verifying incoming Ethernet packets, (2) modifying packet headers when appropriate, (3) requesting buffer pointers from the shared memory manager 220 for storage of incoming packets, (4) requesting forwarding decisions from the switch fabric block 210, (5) transferring the incoming packet data to the shared memory manager 220 for temporary storage in an external shared memory 230, and (5) upon receipt of a forwarding decision, forwarding the buffer pointer(s) to the output port(s) indicated by the forwarding decision. Output packet processing may be performed by one or more output ports of the network interface 205. Output processing includes requesting packet data from the shared memory manager 220, transmitting packets onto the network, and requesting deallocation of buffer(s) after packets have been transmitted. The network interface 205, the CPU interface 215, and the cascading interface 225 are coupled to the shared memory manager 220 and the switch fabric block 210. Preferably, critical functions such as packet forwarding and packet buffering are centralized as shown in Figure 2. The shared memory manager 220 provides an efficient centralized interface to the external shared memory for buffering of incoming packets. The switch fabric block 210 includes a search engine and learning logic for searching and maintaining the forwarding and filtering database with the assistance of the CPU. The centralized switch fabric block 210 includes a search engine that provides access to the forwarding and filtering database on behalf of the interfaces 205, 215, and 225. Packet header matching, Layer 2 based learning, Layer 2 and Layer 3 packet forwarding, filtering, and aging are exemplary functions that may be performed by the switch fabric block 210. Each input port is coupled with the switch fabric block 210 to receive forwarding decisions for received packets. The forwarding decision indicates the outbound port(s) (e.g., external network port or internal cascading port) upon which the corresponding packet should be transmitted. Additional information may also be included in the forwarding decision to support hardware routing such as a new MAC destination address (DA) for MAC DA replacement. Further, a priority indication may also be included in the forwarding decision to facilitate prioritization of packet traffic through the switch element 200. In the present embodiment, Ethernet packets are centrally buffered and managed by the shared memory manager 220. The shared memory manager 220 interfaces every input port and output port and performs dynamic memory allocation and deallocation on their behalf, respectively. During input packet processing, one or more buffers are allocated in the external shared memory and an incoming packet is stored by the shared memory manager 220 responsive to commands received from the network interface 205, for example. Subsequently, during output packet processing, the shared memory manager 220 retrieves the packet from the external shared memory and deallocates buffers that are no longer in use. To assure no buffers are released until all output ports have completed transmission of the data stored therein, the shared memory manager 220 preferably also tracks buffer ownership. The interface of the present invention is particularly advantageous to manufacturers of switches and hubs which incorporate multiple Mil ports into one ASIC. The Mil port interfaces MAC circuitry to a physical layer device. In implementation, the port and the circuitry described herein may reside on the same component or distributed across several components. For example, in the embodiment described herein, the interface is located within the network interface. Following the teachings described herein, one implementation requires the addition of minimal logic, while realizing a 37% savings with respect to the pin count, and maintaining compatibility with the existing standard. In particular, in the embodiment described herein, each port can operate using ten signal pins instead of the sixteen originally specified by IEEE standard 802.3. Multiplexing is achieved by sending three bits of information during a first phase of the transmit clock, and three bits during a second phase of the transmit clock using a multiplexer in the media-access controller (MAC), and a three bit register and multiplexer in the physical layer component (PHY). In particular, the datapath signals (e.g., data control and clock signals) are grouped into two groups: receive group and transmit group. Within each group, clock phase multiplexing is performed on the datapath signals wherein half of the signals are driven during a first phase of the corresponding clock, and the other half is driven during the a second phase of the same clock. In the present embodiment, the first phase is the high phase of the clock and the second phase is the low phase of the clock; however, other variations also are contemplated. The sending side of the interconnect forms the signal multiplexing, and the receiving side of the interconnect performs the signal de-multiplexing. In order to maintain the efficiency of operation, certain control signals remain un-multiplexed for consistent availability and access whenever needed. In the present embodiment, the control signals include a carrier sense signal (CRS), collision detected (COL), management data clock (MDC) and management data input/output (MDIO). The CRS is asserted by the physical implementation layer (PHY) when either the transmit or receive medium is not idle. The CRS is deasserted by the PHY when both the transmit and receive media are idle. The COL signal is asserted by the PHY upon detection of a collision on the medium and remains asserted while the collision condition persists. The MDC signal is a periodic signal sourced by a station management entity (STA) such as the CPU (161, Figure 1) and sent to the PHY as the timing reference for transfer of information on the MDIO signal. The MDIO signal is a bidirectional signal between the PHY and the STA. Control information is driven by the STA synchronously with respect to MDC and is sampled synchronously by the PHY. Status information is driven by the PHY synchronously with respect to the MDC signal and is sampled synchronously by the STA. It is therefore desirable to transmit the CRS, COL, MDC and MDIO on separate signal lines as the CRS and COL should always be accessible by the MAC or STA component and the MDC and MDIO should be independent of other signals in order to properly control the components and receive status information. Furthermore, none of the above signals have a required predefined timing relationship to the timing signals provided at the Mil (e.g., receive clock and transmit clock). However, the signals particularly relevant to transmission and reception of data can be multiplexed as the timing relationship among the signals is well defined and very little logic is needed to multiplex and demultiplex the signals. In the present embodiment the following signals operate synchronous to the transmit clock (MIIJTXCLK): transmit data TXD[3:0], transmit enable (TX_EN), transmit coding error (TX_ER). The transmit clock is a continuous clock that provides the timing reference for the transfer of the TX_EN, TXD and TX_ER signals to the PHY. Preferably the MIIJTXCLK is sourced by the PHY. The TXD bits are driven to the PHY and transition synchronously with respect to the MII_TXCLK. The TX_EN signals indicates that the data is available for transmission on the Mil. It is asserted with the first available nibble of data and remains asserted while all nibbles are transmitted and is deasserted on the first MIIJTXCLK following the last nibble of the frame of data. TX_EN transitions synchronously with the MIIjrXCLK. The TXJΞR signal, which also transitions synchronously with respect to the MIIJTXCLK, is asserted for one or more ME TXCLK periods while TX_EN is also asserted when an error occurs. The following signals operate synchronous to the receive clock: Receive data (RXD[3:0]), receive data valid (RXJDV) and receive error (RX_ER). The MLI_RXCLK is a continuous clock signal that provides the timing reference for the transfer of the RXJDV, RXD and RX_ER signals from the PHY. MIIJRXCLK is sourced by the PHY. The PHY may recover the MIIJRXCLK reference from the received data or it may derive the MIIJRXCLK reference from a nominal clock (e.g, the MliJTXCLK). The RXD transitions synchronously with the MIIJRXCLK and is driven by the PHY. The RXJDV signal is driven by the PHY to indicate that the PHY is presenting recovered and decoded nibbles on the RXD lines and that the data is synchronous to MIIJRXCLK. RXJDV transitions synchronously with respect to the MIIJRXCLK and remains asserted continuously from the first recovered nibble of the frame through the final recovered nibble and shall be deasserted prior to the first MELRXCLK that follows the final nibble of the frame (excluding the end of frame delimiter). The RX_ER is driven synchronous to the MII_RXCLK by the PHY and is asserted for one or more MLTJRXCLK periods to indicate an error (e.g., coding error or an error that is undetectable by the MAC but detectable by the PHY) was detected in the frame presently being transferred from the PHY. Although the signals can be multiplexed in a variety of ways, it is preferred that the following signals are multiplexed as follows: TXD0/TXD3 TXD1/TX_EN TXD2/TX_ER RXD0/RXD3 RXD1 /RXJDV RXD2/RXJER It has been determined that the latency incurred implementing this scheme is far outweighed by the reduction in the number of signal lines required between the MAC and the PHY. This is particularly the case when configured in a high port density network element. The circuitry for transmit multiplexing is shown in the embodiment illustrated in Figure 3a. Furthermore, circuitry to selectively use this feature is disclosed. Other embodiments are also contemplated. Thus, in this embodiment, the circuitry permits the standard mode or multiplex mode to be selected such that the device is configurable for connection to other standard or multiplexed connecting device. In particular, the transmit datapath signals are output through multiplexer 305, which is active based on the clock input MIIJTX clock 307 to output 309. The clock 307 also drives the input flip-flop /register 310, such that the incoming data through input 311 is timely clocked to the P_MUX 312. When operating in the standard mode, the PJ lUX 312 outputs the TXDO, TXDl and TXD2 signals from the MAC 320 through output 313 and received over the Mil bus lines through input 317 to register 325. Signals TXD3, TX_EN and TX_ER are therefore communicated through input 311 and lines 322 to register 325. When operable in the multiplexing mode, during one phase of the clock (MIIJTXCLK 307), the TXDO, TXDl and TXD2 are output by M_MUX 305 through output 309 and received through input 311 by flip-flop 310. These signals are then processed through P_MUX multiplexer 312 and output to register 325 during the next clock phase when the signals TXD3, TXJEN and TXJER are communicated through MJvlUX 305 and output 309. These signals are communicated across the interface to input 311 and register 325 via lines 322. At the same time, signals TXDO, TXDl and TXD2 are available at register 325 to concurrently provide all six signals for compatibility with the Mil device. The timing is illustrated in Figure 3b, which shows that the output of the multiplexer in the MAC 320 element is output followed by the output of TXD3, TXJEN and TX_ER during the next low phase of MHTX_CLK. It should be noted that the output of the PJviUX 312 in PHY 350 enables the TXDO, TXDl and TXD2 signals to be available during both the high phase and the low phase of the clock as selected by the mode. Figure 4a illustrates the interface circuitry for signals transmitted in the receive direction. In the receive direction, six signals are sent over three signal lines, three during the high phase of the clock and three during the low phase of the clock. In the PHY element 410, a three bit MUX, P_MUX, 412 is used to implement the multiplex mode. In the MAC element 415, there is an additional three bit flip-flop/ register 420 to receive three bits during the low phase of the clock and a register 425 to receive all six signals for output compatibility with MIL As with the transmit circuitry, when operating in the Mil standard mode, the circuitry operates in accordance with the IEEE 802.3 standard. For purposes of simplification of discussion, the circuitry to support both modes is not illustrated in detail in MAC 415; however, circuitry similar to that shown in PHY 350 (Figure 3a) would be used and would have the additional receive bits RXER, RXDV and RXD3 transmitted directly to the MAC 415 through an additional group of lines (e.g., 422) and add a multiplexor to select, based upon the mode, between RXD3, RXDV, RXER and MII_RXER, MII_RXDV and MII_RXD3. As shown in Figure 4a, when operating in multiplex mode, signals RXD3, RX_DV and RX_ER signals are output through the P_MUX 412 during the low phase of the clock and RXD0, RXDl and RXD2 are output during the high phase of the clock. Flip-flop 420 is used to clock signals RXD0, RXDl and RXD2 such that they are received concurrently at the register 425 with signals RXD3, RXDV and RXDR. The timing for this is illustrated in Figure 4b. The circuitry described enables the transmission to occur within current timing budgets. Referring to Figure 5a, the transmit timing is critical as the MAC transmit circuit 505 relies on the transmit clock 512 that is generated by PHY 510. Therefore, when determining the timing budget, the delays from the PHY 510, through external trace 520 to the MAC 505 and the trace 515 going back to the PHY 510, plus the setup time required at the input of the PHY 510 must be considered. Continuing reference to Figure 5a, the timing delays incurred are illustrated. Since the clock's duty cycle is approximately a 2:3 ratio (e.g., 35% high and 65% low of the 40 nanosecond transmit clock), as specified in the IEEE 802.3 standard, there are only 14 nanoseconds to multiplex the first group of signals and 26 nanoseconds to MUX the second group of signals. Thus, the following must be satisfied: T(pob) + T(mib) + T(mcd) + T(mcq) + T(mm) + T(mob)) X 1.395 + 2 X T(tr) + T(psup) < 14 nS Using as an example specifications from the LSI G10 Cell-Based ASIC Product Databook (LSI Logic, Inc.), propagation delay timing for the circuit is determined: (0.28 nS + 0.31 nS + 0.82 nS + 0.44 nS + 0.55 nS + 0.28 nS) X 1.395 + 2 X 1.5 nS + T(psup) < 14 nS 3.73 + 3 nS + T(psup) < 14 nS 6.73 + T(psup) < 14 nS Preferably the timing budget therefore allocated is that shown in the table of Figure 5b. The receive timing is not critical as the transmit path of both the data and the clock are sourced from PHY. Therefore, the loop timing constraints that occur in the transmit case do not appear and there are sufficient margins to perform the receive functions. The invention has been described in conjunction with the preferred embodiment. It is evident that numerous alternatives, modifications, variations and uses will be apparent to those skilled in the art in light of the foregoing description.

Claims: CLAIMS What is claimed is: 1. In a network element, an interface for communication of signals between a media access control (MAC) and a physical layer (PHY), said PHY comprising: a first group of input ports coupled to receive in a first mode a first portion of signals and second portion of signals from the MAC and coupled to receive in a second mode the second portion of signals from the MAC; a second group of input ports coupled to receive in the second mode the first portion of signals from the MAC; a first register coupled to receive in the first mode a first portion of signals from the MAC via the first group of input ports during a first phase of the clock signal ; a first multiplexor coupled to receive in a first mode the first portion of signals from the first register and coupled to receive the first portion of signals from the MAC via the second group of input ports during a second phase of the clock signal; a second register coupled to receive the second portion of signals and the via the first group of input ports and further coupled to receive the first portion of signals output by the first multiplexor during the second phase of the clock signal. 2. In the network element as set forth in claim 1, said MAC comprising a second multiplexor to multiplex the first portion of signals during the first phase of the clock signal and a second portion of signals during the second phase of the clock signal when operable in the first mode. 3. In the network element as set forth in claim 1, said MAC outputting the first portion of signals to the second group of input ports and the second portion of signals to the first group of input ports during the second phase of the clock signal when the PHY is operable in the second mode. 4. In a network element, an interface for communication of signals between a media access control (MAC) and a physical layer (PHY), said PHY comprising: a first group of input ports coupled to transmit in a first mode a first portion of signals and second portion of signals to the MAC and coupled to transmit in a second mode the second portion of signals from the MAC; a second group of input ports coupled to transmit in the second mode the second portion of signals to the MAC during a second phase of a clock; a first multiplexor coupled to receive in a first mode the first portion of signals and further coupled in the first mode to output the first portion of signals during a first phase of the clock and coupled to receive in the first mode the second portion of signals and further coupled in the first mode to output the second portion of signals during the second phase of the clock. 5. In the network element as set forth in claim 4, said MAC comprising: a first group of input ports coupled to receive in the first mode the first portion of signals during the first phase of the clock cycle and the second portion during the second phase of the clock cycle and coupled to receive in the second mode the first portion of signals during the second phase of the clock cycle; a second group of input ports coupled to receive in the second mode the second portion of signals during the first phase of the clock cycle; a first register coupled to receive the first portion of signals from the first group of input ports during the first phase of the clock and output the first portion of signals during the second phase of the clock, said first register further in the second mode coupled to receive the first portion of signals from the first group of input ports during the second phase of the clock and the second portion of signals from the second group of input ports during the second phase of the clock.

Inventors: BERG CURT, MULLER SHIMON, BERG, CURT, MULLER, SHIMON
Applicants: SUN MICROSYSTEMS INC, SUN MICROSYSTEMS, INC.
Application year: 1998
Main classification: H04Q11
IPC codes: H04L7, H04L12, H04L29