A “bus” is a collection of signals interconnecting two or more electrical devices that permits one device to transmit information to one or more other devices. There are many different types of busses used in computers and computer-related products. Examples include the Peripheral Component Interconnect (“PCI”) bus, the Industry Standard Architecture (“ISA”) bus and the Universal Serial Bus (“USB”), to name a few. Bus operation is usually defined by a standard that specifies various concerns such as the electrical characteristics of the bus, how data is to be transmitted over the bus, how requests for data are acknowledged, and the like. Using a bus to perform an activity, such as transmitting data, requesting data, etc., is generally called running a “cycle.” Standardizing a bus protocol helps to ensure effective communication between devices connected to the bus, even if such devices are made by different manufacturers. Any company wishing to make and sell a device to be used on a particular bus, provides that device with an interface unique to the bus to which the device will connect. Designing a device to particular bus standard ensures that device will be able to communicate properly with all other devices connected to the same bus, even if such other devices are made by different manufacturers.
Thus, for example, an internal fax/modem (i.e., internal to a personal computer) designed for operation on a PCI bus will be able to transmit and receive data to and from other devices on the PCI bus, even if each device on the PCI bus is made by a different manufacturer.
According to most bus protocols, a device that needs to run a cycle on the bus must first gain control of the bus. Once the sending device has control of the bus, that device then can run its desired cycle, which may entail transmitting data to a receiving bus device. Often, more than one bus device may concurrently need to initiate a cycle on the bus. Bus protocols in which multiple devices may request control of the bus to run cycles usually implement some form of “arbitration” to efficiently decide which device to grant control of the bus among multiple devices requesting control. The prior art is replete with many types of arbitration schemes.
Currently, there is a market push to incorporate various types of consumer electronic equipment with a bus interface that permits such equipment to be connected to other equipment with a corresponding bus interface. For example, digital cameras, digital video recorders, digital video disks (“DVDs”), printers are becoming available with an IEEE 1394 bus interface. The IEEE (“Institute of Electrical and Electronics Engineers”) 1394 serial interface (and all its variations, referred to collectively herein as “1394”) describes a bus that permits a digital camera to be connected to a printer or computer so that an image acquired by the camera can be printed on the printer or stored electronically in the computer. Further, digital televisions can be coupled to a computer or computer network via an IEEE 1394 bus.
Asynchronous stream packets are a form of packet incorporated in 1394 to circumvent older link design packet-filtering limitations. Asynchronous stream packets are like isochronous packets, in that they share tcode “A,” and the channel number is allocated in the usual way from the CHANNELS_AVAILABLE register of the isochronous resource manager.
However, asynchronous stream packets are transmitted during an asynchronous period, and are subject to the same arbitration requirements as other asynchronous packets (i.e. fairness). Like isochronous packets, there is no ack generated in response. Thus they behave like broadcast packets.
Existing links filter asynchronous stream packets out successfully in hardware. This is not the case for true broadcast packets, which have a destination ID of 63. Broadcast packets are passed upwards for software to filter, which causes overflows in some implementations.
Asynchronous streams are heavily used for internet protocol over 1394-compliant systems; on some 1394 systems, a sizable portion of the packets sent could be asynchronous stream packets. Because they are asynchronous packets, without following acknowledge packets, the bus is forced to wait for a full subaction gap before arbitration can begin for the next packet. This effectively drops bus efficiency back to pre-1394a-2000 levels. Ack acceleration, fly-by concatenations, link concatenations are all precluded by an asynchronous stream packet. After an asynchronous stream packet is transmitted on the bus, all nodes connected to the bus must wait for at least a subaction gap time period to pass before beginning bus arbitration.
The present invention solves the problems discussed above. In embodiments of the present invention, bus arbitration and/or packet transmission begins much sooner, without waiting for a gap timeout, thus greatly reducing the idle time on the 1394-compliant bus. This increases the effective bus bandwidth. While the present invention is described below with respect to asynchronous stream packets, it is to be understood by those skilled in the art that, unless otherwise stated, the present invention can be used with any asynchronous packets that do not require an unarbitrated response or ack packet sent in response to transmission of the packets, such as asynchronous broadcast packets, some PHY layer packets, and the like.
In an embodiment, the present invention provides a method for administering a serial bus, the bus facilitating communication between node devices connected to the bus and communicating over the bus in the form of packetized communication between node devices, the method comprising the acts of sending a stream of asynchronous stream packets; if there is an asynchronous packet to be sent, then concatenating the asynchronous packet to the asynchronous stream packets to be sent and sending the asynchronous stream packets followed by the asynchronous packet; and if there is no asynchronous packet to be sent, then concatenating a bogus ack packet to the asynchronous stream packets and sending the asynchronous stream packets and the concatenated bogus ack packet.
In another embodiment, the present invention provides a method for administering a serial bus, the bus facilitating communication between node devices connected to the bus and communicating over the bus in the form of packetized communication between node devices, the method comprising the acts of receiving an asynchronous stream packet; if there are more asynchronous stream packets to be sent, and if fly-by concatenation is permitted, then concatenate asynchronous stream packets; and if there are more asynchronous stream packets to be sent and fly-by concatenation is not permitted then arbitrate for control of the bus and sending packets.
In yet another embodiment, the present invention provides a method for administering a serial bus, the bus facilitating communication between node devices connected to the bus and communicating over the bus in the form of packetized communication between node devices, the method comprising the acts of receiving an asynchronous stream packet; if there is an asynchronous packet to be sent, and if fly-by concatenation is permitted, then concatenate the asynchronous packet to the asynchronous stream packet; if there is an asynchronous packet to be sent and fly-by concatentation is not permitted then arbitrate for the bus; and sending packets.
In yet another embodiment, the present invention provides a method for administering a serial bus, the bus facilitating communication between node devices connected to the bus and communicating over the bus in the form of packetized communication between node devices, the method comprising the acts of receiving an asynchronous stream packet; determining that there are no more asynchronous stream packets to be sent; determining that there are no asynchronous packets to be sent; if fly-by concatenation is permitted then concatenating a bogus ack packet; if fly-by concatenation is not permitted then arbitrating for the bus; and sending packets.
Other features and advantages of the present invention will become apparent to those skilled in the art upon reading the following detailed description and figures.
The present invention provides an improvement to arbitration on the IEEE 1394 bus, although the principles of the present invention may extend to other bus protocols, certainly other bus protocols experiencing a similar arbitration problem to that described below. To understand the nature of the problem solved by the present invention, the general structure and operation of an IEEE 1394 bus and arbitration scheme will now be provided. Referring to
Referring to
Referring still to
Port controller 110 generally controls the interface to another node in the network. Packet transmit/receive 112 generally receives and forwards all data packets. Packet transmit/receive 112 includes logic (not shown) to effectively control the flow of data cycles through PHY 106. Any node in the network can request ownership of the network to be the BOSS by transmitting an appropriate request to all of the neighboring nodes to which the requesting node connects. As such, each node in the network can receive requests from its neighboring nodes to be the BOSS and each node itself can request ownership of the bus. BOSS arbitration and control state machine 114 within a node receives all of the requests from its neighboring nodes in the network, via the various port logic units 116 and PMDs 118, as well as its own request to be BOSS. BOSS arbitration and control state machine 114 then prioritizes these various requests and sends out the highest priority request to all neighboring nodes through all active ports 116 not currently being used to transmit data. Eventually, the requests propagate their way to the current BOSS who grants ownership of the bus to the highest priority requests. Generally, IEEE 1394 supports two types of data transfers: asynchronous and isochronous. Asynchronous data transfers are sent to a specific address and an acknowledgment is returned to verify receipt of the data. Isochronous transfers guarantee data transfers at a predetermined rate that is particularly beneficial for time-critical, multimedia data transfers. Arbitration decisions are made separately for the asynchronous requests and isochronous requests. Accordingly, BOSS arbitration and control state machine 114 prioritizes the asynchronous requests separately from the isochronous requests and provides the highest priority request from each type (asynchronous and isochronous) to the ports not currently transmitting data for transmission to other nodes. The arbitration scheme described above is one style of arbitration used by 1394 PHY layers and is provided for illustrative purposes. Other arbitration schemes for variations on the 1394 standard have slight variations.
While the present invention is described below with reference to the IEEE 1394 protocols, the present invention in its various embodiments may also be utilized with asynchronous packet transmission performed in accordance with the discovery and enumeration protocol (DEP).
The present invention can be explained with reference to
In the particular case where the link concatenates a bogus ack packet onto the asynchronous stream packet—the bogus ack packet serves to trigger the arbitration acceleration mechanisms available in 1394. Thus, other nodes can employ ack-accelerated arbitration and/or fly-by concatenation after passage of the bogus ack packet.
The bogus ack packet does not have to follow the prior-art convention that the second nibble is the complement of the first nibble. By not having a second nibble that is the compliment of the first nibble, the bogus ack packet causes the link hardware to filter it out so that it has no effect at that level. However, by definition in 1394, the PHY recognizes any 8-bit packet as an ack packet for the purposes of acceleration. Thus the present invention utilizes a packet that meets the requirements for recognition at one physical and/or transaction layer, but not at a different layer.
In an embodiment, originator concatenation is performed by link hardware. In embodiments, fly-by concatenation, fly-by concatenation of bogus ack packet, early arbitration and early arbitration for bogus ack packet are performed by PHY hardware. In an embodiment, originator bogus ack packet generation may be performed by both link hardware and PHY hardware. If the link performs the function, then the PHY defers, even if the node incorporates a PHY without the functionality of the present invention. Similarly, a PHY with the functionality of the present invention is able to concatenate the bogus ack packet, even if the link hardware has no knowledge of the action.
For accelerated bus arbitration upon detection of an asynchronous stream packet, the PHY saves the first quadlet of every passing packet, so that the tcode field can be checked. The PHY keeps track of whether it is in an isochronous period or not so that it doesn't start sending fair/pri packets during an isochronous period. In an embodiment, the start of an isochronous period can be by detection of a cycle start (where tcode=8). The end of the isochronous period can be detected at the occurrence of the first subaction (SA) gap.
In an embodiment, to identify other asynchronous packet types that do not require an unarbitrated response or ack packet sent in response to the transmission of the packet, the PHY can inspect the first quadlet of passing packets to determine the packet type.
Automatic sending of a bogus ack packet can be included in an embodiment of the present invention for the purpose of enabling ack accelerated arbitration after an asynchronous packet stream by an entity other than the sender of the asynchronous stream packet, e.g. the root node. One enlightened node on bus 50 can accelerate arbitration for the entire bus, even if populated by less enlightened hardware. A node can keep track of the isochronous period to keep from generating acks for isochronous packets. This approach works even if multiple nodes attempted to send the bogus ack packet, provided they arbitrate to send it rather than send it as an immediate packet or fly-by concatenating it). That way, one node wins arbitration and sends the bogus ack, and others get back to accelerated arbitrations after detecting an ack packet.
While various methodologies for administering a high-speed serial bus have been described and illustrated above, it is to be understood that various modifications can be made to embodiments of the present invention without departing from the spirit thereof.
Number | Name | Date | Kind |
---|---|---|---|
4156798 | Doelz | May 1979 | A |
4194113 | Fulks et al. | Mar 1980 | A |
4680755 | Reames | Jul 1987 | A |
5014262 | Harshavardhana | May 1991 | A |
5274631 | Bhardwaj | Dec 1993 | A |
5321812 | Benedict et al. | Jun 1994 | A |
5343461 | Barton et al. | Aug 1994 | A |
5394556 | Oprescu | Feb 1995 | A |
5406643 | Burke et al. | Apr 1995 | A |
5452330 | Goldstein | Sep 1995 | A |
5490253 | Laha et al. | Feb 1996 | A |
5495481 | Duckwall | Feb 1996 | A |
5524254 | Morgan et al. | Jun 1996 | A |
5539390 | Nagano et al. | Jul 1996 | A |
5541670 | Hanai | Jul 1996 | A |
5568641 | Nelson et al. | Oct 1996 | A |
5583922 | Davis et al. | Dec 1996 | A |
5621659 | Matsumoto et al. | Apr 1997 | A |
5630173 | Oprescu | May 1997 | A |
5632016 | Hoch et al. | May 1997 | A |
5640595 | Baugher et al. | Jun 1997 | A |
5642515 | Jones et al. | Jun 1997 | A |
5654657 | Pearce | Aug 1997 | A |
5684715 | Palmer | Nov 1997 | A |
5701476 | Fenger | Dec 1997 | A |
5701492 | Wadsworth et al. | Dec 1997 | A |
5706278 | Robillard et al. | Jan 1998 | A |
5712834 | Nagano et al. | Jan 1998 | A |
5719862 | Lee et al. | Feb 1998 | A |
5754765 | Danneels et al. | May 1998 | A |
5764930 | Staats | Jun 1998 | A |
5784648 | Duckwall | Jul 1998 | A |
5802048 | Duckwall | Sep 1998 | A |
5802057 | Duckwall et al. | Sep 1998 | A |
5802365 | Kathail et al. | Sep 1998 | A |
5805073 | Nagano et al. | Sep 1998 | A |
5809331 | Staats et al. | Sep 1998 | A |
5826027 | Pedersen et al. | Oct 1998 | A |
5832298 | Sanchez et al. | Nov 1998 | A |
5835761 | Ishii et al. | Nov 1998 | A |
5845152 | Anderson et al. | Dec 1998 | A |
5867730 | Leyda | Feb 1999 | A |
5875301 | Duckwall et al. | Feb 1999 | A |
5923663 | Bontemps et al. | Jul 1999 | A |
5930480 | Staats | Jul 1999 | A |
5935208 | Duckwall et al. | Aug 1999 | A |
5938764 | Klein | Aug 1999 | A |
5940600 | Staats et al. | Aug 1999 | A |
5954796 | McCarty | Sep 1999 | A |
5968152 | Staats | Oct 1999 | A |
5970052 | Lo et al. | Oct 1999 | A |
5987605 | Hill et al. | Nov 1999 | A |
5991842 | Takayama | Nov 1999 | A |
6032202 | Lea et al. | Feb 2000 | A |
6032261 | Hulyalkar | Feb 2000 | A |
6038234 | LaFollette et al. | Mar 2000 | A |
6038625 | Ogino et al. | Mar 2000 | A |
6070187 | Subramaniam et al. | May 2000 | A |
6073206 | Piwonka et al. | Jun 2000 | A |
6091726 | Crivellari et al. | Jul 2000 | A |
6115764 | Chisholm et al. | Sep 2000 | A |
6122248 | Murakoshi et al. | Sep 2000 | A |
6131129 | Ludtke et al. | Oct 2000 | A |
6131134 | Huang et al. | Oct 2000 | A |
6131163 | Wiegel | Oct 2000 | A |
6133938 | James | Oct 2000 | A |
6138196 | Takayama et al. | Oct 2000 | A |
6141702 | Ludtke et al. | Oct 2000 | A |
6141767 | Hu et al. | Oct 2000 | A |
6145018 | LaFollette et al. | Nov 2000 | A |
6157972 | Newman et al. | Dec 2000 | A |
6160796 | Zou | Dec 2000 | A |
6167532 | Wisecup | Dec 2000 | A |
6173327 | De Borst et al. | Jan 2001 | B1 |
6192189 | Fujinami et al. | Feb 2001 | B1 |
6199119 | Duckwall et al. | Mar 2001 | B1 |
6202210 | Ludtke | Mar 2001 | B1 |
6212171 | LaFollette et al. | Apr 2001 | B1 |
6212633 | Levy et al. | Apr 2001 | B1 |
6219697 | Lawande et al. | Apr 2001 | B1 |
6233615 | Van Loo | May 2001 | B1 |
6233624 | Hyder et al. | May 2001 | B1 |
6243778 | Fung et al. | Jun 2001 | B1 |
6247063 | Ichimi et al. | Jun 2001 | B1 |
6247083 | Hake et al. | Jun 2001 | B1 |
6253114 | Takihara | Jun 2001 | B1 |
6253255 | Hyder et al. | Jun 2001 | B1 |
6256059 | Fichtner | Jul 2001 | B1 |
6260063 | Ludtke et al. | Jul 2001 | B1 |
6266334 | Duckwall | Jul 2001 | B1 |
6266344 | Fujimori et al. | Jul 2001 | B1 |
6266701 | Sridhar et al. | Jul 2001 | B1 |
6275889 | Saito | Aug 2001 | B1 |
6282597 | Kawamura | Aug 2001 | B1 |
6292840 | Blomfield-Brown et al. | Sep 2001 | B1 |
6295479 | Shima et al. | Sep 2001 | B1 |
6308222 | Krueger et al. | Oct 2001 | B1 |
6311228 | Ray | Oct 2001 | B1 |
6314461 | Duckwall et al. | Nov 2001 | B2 |
6343321 | Patki et al. | Jan 2002 | B2 |
6345315 | Mishra | Feb 2002 | B1 |
6347362 | Schoinas et al. | Feb 2002 | B1 |
6353868 | Takayama et al. | Mar 2002 | B1 |
6356558 | Hauck et al. | Mar 2002 | B1 |
6363085 | Samuels | Mar 2002 | B1 |
6373821 | Staats | Apr 2002 | B2 |
6385679 | Duckwall et al. | May 2002 | B1 |
6405247 | Lawande et al. | Jun 2002 | B1 |
6411628 | Hauck et al. | Jun 2002 | B1 |
6418150 | Staats | Jul 2002 | B1 |
6425019 | Tateyama et al. | Jul 2002 | B1 |
6426962 | Cabezas et al. | Jul 2002 | B1 |
6442630 | Takayama et al. | Aug 2002 | B1 |
6446142 | Shima et al. | Sep 2002 | B1 |
6452975 | Hannah | Sep 2002 | B1 |
6457086 | Duckwall | Sep 2002 | B1 |
6466982 | Ruberg | Oct 2002 | B1 |
6496862 | Akatsu et al. | Dec 2002 | B1 |
6513085 | Gugel et al. | Jan 2003 | B1 |
6519657 | Stone et al. | Feb 2003 | B1 |
6529522 | Ito et al. | Mar 2003 | B1 |
6574588 | Shapiro et al. | Jun 2003 | B1 |
6587904 | Hauck et al. | Jul 2003 | B1 |
6591300 | Yurkovic | Jul 2003 | B1 |
6606320 | Nomura et al. | Aug 2003 | B1 |
6618750 | Staats | Sep 2003 | B1 |
6618785 | Whitby-Strevens | Sep 2003 | B1 |
6628607 | Hauck et al. | Sep 2003 | B1 |
6636914 | Teener | Oct 2003 | B1 |
6643714 | Chrysanthakopoulos | Nov 2003 | B1 |
6671768 | Brown | Dec 2003 | B1 |
6904044 | Duckwall et al. | Jun 2005 | B2 |
20010001151 | Duckwall et al. | May 2001 | A1 |
20010019561 | Staats | Sep 2001 | A1 |
20010024423 | Duckwall et al. | Sep 2001 | A1 |
20020085581 | Hauck et al. | Jul 2002 | A1 |
20020101231 | Staats | Aug 2002 | A1 |
20020103947 | Duckwall et al. | Aug 2002 | A1 |
20020188780 | Duckwall | Dec 2002 | A1 |
20020188783 | Duckwall et al. | Dec 2002 | A1 |
20030037161 | Duckwall et al. | Feb 2003 | A1 |
20030055999 | Duckwall et al. | Mar 2003 | A1 |
20030179719 | Kobayashi et al. | Sep 2003 | A1 |
20030202539 | Fukunaga et al. | Oct 2003 | A1 |
20040151153 | Henry et al. | Aug 2004 | A1 |
20040246959 | Duckwall et al. | Dec 2004 | A1 |
Number | Date | Country |
---|---|---|
1 085 706 | Mar 2001 | EP |
1 085 706 | Oct 2002 | EP |