The present invention relates generally to data communications. More particularly, the present invention relates to adaptive speed control for interfaces between media access controllers (MAC) and physical-layer devices (PHY).
A first network device is provided and includes a host, a memory, a media access controller, a physical-layer device, and a control circuit. The media access controller is configured to (i) receive data from the host, and (ii) store the data in the memory at a first rate. The physical-layer device configured to (i) receive the data from the memory, and (ii) transmit the data from the first network device to a second network device. The memory is connected between the media access controller and the physical-layer device. An amount of the data stored in the memory is based on (i) the first rate at which the media access controller stores the data from the host in the memory, and (ii) a second rate at which the physical-layer device transfers the data from the memory to the second network device. The first rate is greater than the second rate. The control circuit configured to (i) monitor the amount of the data stored in the memory, and (ii) based on the amount of the data stored in the memory, transmit a first frame to the media access controller. The media access controller is configured to, in response to the first frame, decrease the first rate at which the media access controller transfers the data from the host to the memory.
In other features, a method is provided for adjusting a rate at which data is transferred from a media access controller to a memory. The memory is connected between the media access controller and a physical layer device. Each of the media access controller, the memory, and the physical layer device are implemented in a first network device. The method includes: receiving data from a host at the media access controller, where the host is also implemented in the first network device; storing, via the media access controller, the data in the memory at a first rate; transferring the data stored in the memory to the physical-layer device; and transmitting, from the first network device to a second network device via the physical-layer device, the data transferred to the physical layer device. The data is transferred to the physical layer device is transmitted, at a second rate, by the physical layer device to the second network device, wherein the second rate is less than the first rate. An amount of the data stored in the memory is monitored. The amount of the data stored in the memory is based on each of the first rate and the second rate. Based on the amount of the data stored in the memory, a first frame is transmitted to the media access controller. In response to the first frame, the first rate at which the media access controller transfers the data from the host to the memory is decreased.
In general, in one aspect, the invention features an apparatus comprising: a first first-in first-out buffer (FIFO) to receive and store data from a media access controller (MAC); a physical-layer device (PHY) to transmit a signal representing the data; and a control circuit comprising a read circuit to transfer the data from the first FIFO to the PHY, and a transmit pause circuit to transmit a pause frame to the MAC when an amount of the data stored in the first FIFO exceeds a predetermined threshold.
In some embodiments, the pause frame comprises a IEEE 802.3x pause frame. Some embodiments comprise an integrated circuit comprising the apparatus. Some embodiments comprise the MAC. In some embodiments, the MAC comprises a 10 Gbps single-speed MAC, the PHY comprises a quad-speed PHY having speeds of 10 Mbps, 100 Mbps, 1 Gbps, and 10 Gbps, and the MAC and the PHY communicate over a single-speed interface. In some embodiments, the single-speed interface comprises a XAUI interface. Some embodiments comprise a network device comprising the apparatus. In some embodiments, the network device is selected from the group consisting of: a network switch; a router; and a network interface controller. In some embodiments, the control circuit further comprises: a receive pause circuit to pause the transfer of the data from the first FIFO to the PHY when the PHY receives a second signal representing a second pause frame. In some embodiments, the second pause frame comprises a IEEE 802.3x pause frame. In some embodiments, the PHY receives signals representing frames of data sent by a peer device; and wherein the control circuit drops one or more of the frames of data. Some embodiments comprise management information base (MIB) drop counter to count the dropped frames of the data. Some embodiments comprise a second FIFO to store frames of data received by the PHY from a peer device; wherein the control circuit retrieves the frames of data from second FIFO, and transmits the frames of data to the MAC. In some embodiments, the read circuit transfers the data from the first FIFO to the PHY again when needed in half-duplex mode. In some embodiments, the PHY receives a pause frame from the MAC and transmits a signal representing the pause frame.
In general, in one aspect, the invention features an apparatus comprising: first buffer means for receiving and storing data from a media access controller (MAC); physical-layer means for transmitting a signal representing the data; and means for controlling comprising read means for transferring the data from the first buffer to the physical-layer means, and transmit pause means for transmitting a pause frame to the MAC when an amount of the data stored in the first buffer exceeds a predetermined threshold.
In some embodiments, the pause frame comprises a IEEE 802.3x pause frame. Some embodiments comprise an integrated circuit comprising the apparatus. Some embodiments comprise the MAC. In some embodiments, the MAC comprises a 10 Gbps single-speed MAC, the physical-layer means comprises a quad-speed physical-layer means having speeds of 10 Mbps, 100 Mbps, 1 Gbps, and 10 Gbps, and the MAC and the physical-layer means communicate over a single-speed interface. In some embodiments, the single-speed interface comprises a XAUI interface. Some embodiments comprise a network device comprising the apparatus. In some embodiments, the network device is selected from the group consisting of: a network switch; a router; and a network interface controller. In some embodiments, the means for controlling further comprises: receive pause means for pausing the transfer of the data from the first buffer to the physical-layer means when the physical-layer means receives a second signal representing a second pause frame. In some embodiments, the second pause frame comprises a IEEE 802.3x pause frame. In some embodiments, the physical-layer means receives signals representing frames of data sent by a peer device; and wherein the means for controlling drops one or more of the frames of data. Some embodiments comprise means for counting the dropped frames of the data. Some embodiments comprise second buffer means for storing frames of data received by the physical-layer means from a peer device; wherein the means for controlling retrieves the frames of data from the second buffer means, and transmits the frames of data to the MAC. In some embodiments, the read circuit transfers the data from the first FIFO to the physical-layer means again when needed in half-duplex mode. In some embodiments, the physical-layer means receives a pause frame from the MAC and transmits a signal representing the pause frame.
In general, in one aspect, the invention features a method comprising: storing data received from a media access controller (MAC) at a first data rate; retrieving the stored data at a second data rate; generating a signal representing the retrieved data; and generating a pause frame when an amount of the stored data exceeds a predetermined threshold.
Some embodiments comprise receiving the data from the MAC. Some embodiments comprise transmitting the pause frame to the MAC. In some embodiments, the pause frame comprises a IEEE 802.3x pause frame. Some embodiments comprise receiving signals representing frames of data sent by a peer device; and dropping one or more of the frames of data. Some embodiments comprise counting the dropped frames of data. Some embodiments comprise receiving signals representing frames of data sent by a peer device; storing the frames of data in a buffer; retrieving the frames of data from the buffer; and transmitting the frames of data to the MAC. Some embodiments comprise pausing the retrieving of the data when a second signal representing a second pause frame is received. In some embodiments, the second pause frame comprises a IEEE 802.3x pause frame. Some embodiments comprise generating the signal representing the retrieved data again when needed in half-duplex mode. Some embodiments comprise receiving a pause frame from the MAC; and transmitting a signal representing the pause frame.
In general, in one aspect, the invention features a computer program executable on a processor, comprising: instructions for storing data received from a media access controller (MAC) at a first data rate; instructions for retrieving the stored data at a second data rate; wherein a physical-layer device to generate a signal representing the retrieved data; and instructions for generating a pause frame when an amount of the stored data exceeds a predetermined threshold.
Some embodiments comprise instructions for transmitting the pause frame to the MAC. In some embodiments, the pause frame comprises a IEEE 802.3x pause frame. Some embodiments comprise, wherein signals are received representing frames of data sent by a peer device, instructions for dropping one or more of the frames of data. Some embodiments comprise instructions for counting the dropped frames of data. Some embodiments comprise, wherein signals are received representing frames of data sent by a peer device, instructions for storing the frames of data in a buffer; instructions for retrieving the frames of data from the buffer; and wherein the frames of data are transmitted to the MAC. Some embodiments comprise instructions for pausing the retrieving of the data when a second signal representing a second pause frame is received. In some embodiments, the second pause frame comprises a IEEE 802.3x pause frame. Some embodiments comprise instructions for generating the signal representing the retrieved data again when needed in half-duplex mode.
The details of one or more implementations are set forth in the accompanying drawings and the description below. Other features will be apparent from the description and drawings, and from the claims.
The leading digit(s) of each reference numeral used in this specification indicates the number of the drawing in which the reference numeral first appears.
In conventional data communications systems, a multi-speed media access controller (MAC) is generally connected to a multi-speed physical-layer device (PHY) by a multi-speed interface. In such systems, the PHY speed is set by auto-negotiation, software, or the like, and the MAC adapts its speed accordingly.
However, in some systems, the MAC may not support all the data rates supported by the PHY, or vice versa. For example, when a single-speed MAC is connected by a single-speed interface to a multi-rate PHY, the PHY may operate at a speed that is not supported by the MAC. As another example, even though the MAC and PHY are both multi-speed, either may support a speed not supported by the other.
Embodiments of the present invention provide adaptive speed control for MAC-PHY interfaces. According to these embodiments, a first-in first-out buffer (FIFO) buffers data sent from the MAC to the PHY, and a control circuit sends a pause frame to the MAC when the amount of data in the FIFO exceeds a predetermined threshold. Flow control can be enabled in the MAC according to IEEE standard 802.3x, and each pause frame can comprise an IEEE 802.3x pause frame.
Flow control with peer devices can be implemented by the control circuit. For example, the control circuit auto-negotiates with peer devices to implement flow control according to IEEE standard 802.3x. When the control circuit receives a pause frame from a peer device, the control circuit pauses the flow of data from the FIFO to the PHY.
Physical-layer circuit 110 can also include a receive FIFO 128 to buffer data received from peer network device 104. That is, receive FIFO 128 stores frames of data received by PHY 116 from peer network device 104, and control circuit 114 retrieves the frames of data from receive FIFO 128 and transmits the frames of data to MAC 108. Because the data rate of MAC 108 exceeds the data rate of PHY 116, all or nearly all of each frame should be stored in receive FIFO 128 before transmitting the frame to MAC 108 to prevent underrun of receive FIFO 128.
Network device 102 can be implemented as a switch, router, network interface controller (NIC), and the like. Physical-layer circuit 110 can be implemented as one or more integrated circuits.
In some embodiments, MAC 108 is a 10 Gbps single-speed MAC, PHY 116 is a quad-speed PHY having speeds of 10 Mbps, 100 Mbps, 1 Gbps, and 10 Gbps, and MAC 108 and physical-layer circuit 110 communicate over a single-speed interface such as XAUI. In other embodiments, MAC 108 is a multi-speed MAC that communicates with physical-layer circuit 110 over a multi-speed interface.
When network device 102 boots up, flow control is enabled for MAC 108 (step 202), and control circuit 114 can auto-negotiate with peer network device 104 to establish flow control (step 204). The flow control mechanism can be IEEE 802.3x flow control.
MAC 108 receives frames of data from host 106 to be transmitted to peer network device 104 (step 206), and transmits the data to physical-layer circuit 110 (step 208), which stores the data in FIFO 112 as it is received (step 210). Read circuit 118 transfers the data from FIFO 112 to PHY 116 at the data rate required by PHY 116 (step 212). PHY 116 transmits a signal representing the data to peer network device 104 (step 214).
Control circuit 114 monitors the amount of data stored in FIFO 112 (step 216). Because the data rate of MAC 108 exceeds the data rate of PHY 116, the amount of data stored in FIFO 112 will increase. When the amount of data stored in FIFO 112 exceeds a predetermined threshold (step 218), transmit pause circuit 122 transmits a pause frame to MAC 108 (step 220). The pause frame can be a IEEE 802.3x pause frame, and IEEE 802.3x flow control is always enabled for MAC 108. Therefore, MAC 108 stops transmitting data to physical-layer circuit 110 for the interval specified by the pause frame (step 222).
In some cases, control circuit 114 and peer network device 104 auto-negotiates to implement flow control. Control circuit 114 monitors traffic received from peer network device 104 for the presence of pause frames (step 224). When control circuit 114 determines that a pause frame has been received from peer network device 104 (step 226), read circuit 118 pauses the transfer of data from FIFO 112 to PHY 116 for the interval specified by the received pause frame (step 228). The pause frame is not transferred to MAC 108.
Because flow control is always enabled for MAC 108, MAC 108 may generate pause frames. When physical-layer circuit 110 receives a pause frame from MAC 108, PHY 116 simply transmits a signal representing the pause frame to peer network device 104. In some embodiments, control circuit 114 is also responsible for half-duplex and retransmission if needed. That is, read circuit 118 transfers data from FIFO 112 to PHY 116 again when needed in half-duplex mode, for example following a collision during transmission by PHY 116 of a signal representing the data.
When flow control is disabled with peer network device 104, physical-layer circuit 110 can drop frames of data received from peer network device 104. Because the frames are dropped in physical-layer circuit 110, the drops will not be recorded by MIB counters 124 in MAC 108. Therefore, in some embodiments, physical-layer circuit 110 comprises a MIB drop counter 126 to count the dropped frames.
Embodiments of the invention can be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. Apparatus of the invention can be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps of the invention can be performed by a programmable processor executing a program of instructions to perform functions of the invention by operating on input data and generating output. The invention can be implemented advantageously in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. Each computer program can be implemented in a high-level procedural or object-oriented programming language, or in assembly or machine language if desired; and in any case, the language can be a compiled or interpreted language. Suitable processors include, by way of example, both general and special purpose microprocessors. Generally, a processor will receive instructions and data from a read-only memory and/or a random access memory. Generally, a computer will include one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM disks. Any of the foregoing can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits).
A number of implementations of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. Accordingly, other implementations are within the scope of the following claims.
The present disclosure is a continuation of U.S. patent application Ser. No. 14/047,533, filed on Oct. 7, 2013, which is a continuation of U.S. patent application Ser. No. 11/696,476 (now U.S. Pat. No. 8,553,720), filed on Apr. 4, 2007, which claims the benefit of U.S. Provisional Application No. 60/793,118 filed on Apr. 19, 2006. The entire disclosures of the applications referenced above are incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
4320520 | Graham | Mar 1982 | A |
4914394 | Meyer | Apr 1990 | A |
5420512 | Spillane et al. | May 1995 | A |
5461318 | Borchert et al. | Oct 1995 | A |
5905870 | Mangin | May 1999 | A |
6081523 | Merchant et al. | Jun 2000 | A |
6138080 | Richardson | Oct 2000 | A |
6141352 | Gandy | Oct 2000 | A |
6167029 | Ramakrishnan | Dec 2000 | A |
6198727 | Wakeley et al. | Mar 2001 | B1 |
6222852 | Gandy | Apr 2001 | B1 |
6295281 | Itkowsky et al. | Sep 2001 | B1 |
6377640 | Trans | Apr 2002 | B2 |
6434716 | Johnson et al. | Aug 2002 | B1 |
6438163 | Raghavan et al. | Aug 2002 | B1 |
6448899 | Thompson | Sep 2002 | B1 |
6522152 | Tonti et al. | Feb 2003 | B1 |
6522153 | Mueller et al. | Feb 2003 | B2 |
6535983 | McCormack et al. | Mar 2003 | B1 |
6600755 | Overs et al. | Jul 2003 | B1 |
6625116 | Schneider et al. | Sep 2003 | B1 |
6694017 | Takada | Feb 2004 | B1 |
6728216 | Sterner | Apr 2004 | B1 |
6775529 | Roo | Aug 2004 | B1 |
6816505 | Sutardja et al. | Nov 2004 | B1 |
6825672 | Lo et al. | Nov 2004 | B1 |
6829223 | Richardson et al. | Dec 2004 | B1 |
6882661 | Creedon et al. | Apr 2005 | B1 |
7002911 | Linville | Feb 2006 | B1 |
7005861 | Lo et al. | Feb 2006 | B1 |
7127481 | Lam | Oct 2006 | B1 |
7161911 | Fang et al. | Jan 2007 | B1 |
7203851 | Lo et al. | Apr 2007 | B1 |
7272114 | Barkan | Sep 2007 | B1 |
7286469 | Kauschke et al. | Oct 2007 | B2 |
7317732 | Mills et al. | Jan 2008 | B2 |
7379422 | Nation | May 2008 | B2 |
7385920 | Zhang et al. | Jun 2008 | B2 |
7447168 | Thaler | Nov 2008 | B2 |
7542415 | Kang | Jun 2009 | B2 |
7580634 | Takeuchi et al. | Aug 2009 | B2 |
7624197 | Lo | Nov 2009 | B1 |
7649843 | Shanley et al. | Jan 2010 | B2 |
7688749 | Lo | Mar 2010 | B1 |
7701861 | Barkan | Apr 2010 | B1 |
7961831 | Ran | Jun 2011 | B2 |
8179910 | Diab et al. | May 2012 | B2 |
8243752 | Barkan et al. | Aug 2012 | B2 |
8295259 | Bagchi | Oct 2012 | B1 |
8355404 | Powell et al. | Jan 2013 | B2 |
8416699 | Lo | Apr 2013 | B1 |
8553709 | Diab et al. | Oct 2013 | B2 |
8553720 | Bishara et al. | Oct 2013 | B2 |
8699514 | Huff et al. | Apr 2014 | B2 |
8824502 | Barkan et al. | Sep 2014 | B2 |
20010038674 | Trans | Nov 2001 | A1 |
20020080884 | Lee et al. | Jun 2002 | A1 |
20020124110 | Tanaka | Sep 2002 | A1 |
20020181633 | Trans | Dec 2002 | A1 |
20040001435 | Wong | Jan 2004 | A1 |
20040120334 | Nation | Jun 2004 | A1 |
20040258085 | Costo | Dec 2004 | A1 |
20050013250 | Kauschke | Jan 2005 | A1 |
20050015535 | Lindsay et al. | Jan 2005 | A1 |
20050030899 | Kang | Feb 2005 | A1 |
20050059417 | Zhang et al. | Mar 2005 | A1 |
20050141551 | McNeil et al. | Jun 2005 | A1 |
20050174926 | Barrass | Aug 2005 | A1 |
20060045009 | Madison et al. | Mar 2006 | A1 |
20060215626 | Ross | Sep 2006 | A1 |
20060268709 | Singla et al. | Nov 2006 | A1 |
20060280132 | Connor | Dec 2006 | A1 |
20070002990 | Lee et al. | Jan 2007 | A1 |
20070248024 | Conway et al. | Oct 2007 | A1 |
20080056284 | Powell et al. | Mar 2008 | A1 |
20080069014 | Powell et al. | Mar 2008 | A1 |
20080069144 | Yu et al. | Mar 2008 | A1 |
20090125735 | Zimmerman | May 2009 | A1 |
20090245274 | Hurwitz et al. | Oct 2009 | A1 |
20100046521 | Wong | Feb 2010 | A1 |
20130117639 | Ganga et al. | May 2013 | A1 |
Number | Date | Country |
---|---|---|
1848154 | Oct 2007 | EP |
1848156 | Oct 2007 | EP |
2005136510 | May 2005 | JP |
2006141011 | Jun 2006 | JP |
WO-0111861 | Feb 2001 | WO |
WO-2005104698 | Nov 2005 | WO |
WO-2006075928 | Jul 2006 | WO |
WO-2007054815 | May 2007 | WO |
Entry |
---|
U.S. Appl. No. 60/217,418, filed Jul. 11, 2000; Finite Impulse Response Filter; Yat-Tung Lam; 35 pages. |
U.S. Appl. No. 09/991,043, filed Nov. 21, 2001; Apparatus and Method for Automatic Speed Downshift for a Two Pair Cable; William Lo; 59 pages. |
IEEE Std. 802.3x-2005; Section Two (Clause 21 through Clause 33 and Annex 22A through Annex 32A); Information Technology—Telecommunications and information exchange between systems—Local and metropolitan area networks—Specific requirements—Part 3: Carrier Sense Multiple Access with Collision Detection (CSMA/CD) access method and physical layer specifications; pp. 1-808. |
IEEE Computer Society; IEEE Standard 802.3ab; IEEE Std. 802.3-2002, IEEE Standard for Information Technology—Telecommunications and information exchange between systems—Local and metropolitan area networks—Specific requirements; Part 3: Carrier Sense multiple access with collision detection (CSMA/CD) access method and physical layer specifications, Mar. 8, 2002, pp. 147-249. |
IEEE Std. 802.3-2002 (Revision of IEEE Std 802.3, 2000 Edition); 802.3 IEEE Standard for Information Technology—Telecommunications and information exchange between systems—Local and metropolitan area networks—Specific requirements—Part 3: Carrier Sense Multiple Access with Collision Detection (CSMA/CD) access method and physical layer specifications; IEEE Computer Society, Sponsored by the LAN/MAN Standards Committee; Mar. 8, 2002; 577 pages. |
(Section Two) Information Technology—Telecommunications and information exchange between system—Local and metropolitan area networks—Specific requirements—Part 3: Carrier Sense Multiple Access with Collision Detection (CMSA/CD) access method and physical layer specifications (pp. 1-581). |
(Section Three) Information Technology—Telecommunications and information exchange between systems—Local and metropolitan area networks—Specific requirements—Part 3: Carrier Sense Multiple Access with Collision Detection (CSMA/CD) access method and physical layer specifications (pp. 1-379). |
Intel, “LXT9784 Octal 10/100 Transceiver Hardware Integrity Function Overview” Application Note, Jan. 2001, pp. 3-14. |
International Search Report and Written Opinion for PCT Application No. PCT/US2007/090573 mailed Oct. 29, 2007; 14 pages. |
International Search Report and Written Opinion for PCT Application No. PCT/US2008/086405 (corresponding to U.S. Appl. No. 12/330,823) mailed Mar. 8, 2009; 13 pages. |
Number | Date | Country | |
---|---|---|---|
20160077797 A1 | Mar 2016 | US |
Number | Date | Country | |
---|---|---|---|
60793118 | Apr 2006 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 14047533 | Oct 2013 | US |
Child | 14944630 | US | |
Parent | 11696476 | Apr 2007 | US |
Child | 14047533 | US |