Beruflich Dokumente
Kultur Dokumente
Chapter 1 Introduction
These lead to the development of USB for connection of devices/peripherals to the PC.
Hence it can be understood from the name USB- “Universal” meant all kinds of devices/peripherals
could use USB as their mode of serial data communication.
Significantly improve power management. Reduce the active power when sending data and
reduce idle power by providing a richer set of power management mechanisms to allow
device to drive the bus into lower power states.
Ease of use has always been and remains a key design goal for all varieties of USB.
Preserve the investment. There are a large number of PC’s that support only USB 2.0 and a
large number of USB 2.0 peripherals in use. Retaining backward compatibility at the Type-A
connector to allow SuperSpeed devices to be used, albeit at a lower speed, with USB 2.0
PC’s and allow high speed devices with their existing cables to the USB 3.0 SuperSpeed
Type-A connectors.
USB 3.0 interconnect is the manner in which the USB 3.0 and USB 2.0 devices connect to and
communicate with the USB 3.0 host.
The USb 3.0 interconnect inherits core architectural elements from USB 2.0, although most of them
are improved upon to accommodate the dual bus architecture.
The baseline structural topology consists of a tiered star topology with a single host at tier 1 and hubs
at lower tiers to provide bus connectivity to devices.
The USB 3.0 has both forward and backwards compatibility in the sense that a USB 3.0 or 2.0 device
can be connected in a USB 3.0 bus and USB 3.0 devices can be connected to USB 2.0 bus.
USB 3.0 devices accomplish backward compatibility by including both SuperSpeed and non-
SuperSpeed bus interfaces. USB 3.0 hosts also include both SuperSpeed and non-SuperSpeed
interfaces, which are essentially parallel buses that may be active simultaneously.
The USB 3.0 connection model allows for the discovery and configuration of USB devices at the
highest signalling speed supported by the device, the highest signalling speed supported by all hubs
between the host and device, and the current host capability and configuration. USB 3.0 hubs are a
specific class of USB device whose purpose is to provide additional connection points to the bus
beyond those provided by the host.
From the above figure we can notice that there are two pairs of twisted pairs for SuperSpeed
communication and the D+ and D- for the regular USB 2.0 mode of functioning. From this it can be
understood that the USB 3.o SuperSpeed system follows a double-simplex pattern unlike the half-
duplex of USB 2.0. This explains the SuperSpeed working of USB 3.0.
The Vbus is the Vcc connection of the system and GND depicts the ground connection. The
arrangement of these wires in the USB 3.0 cable is depicted in the following diagram.
This is basically how the cables will be visible if a cross section is taken and the electrical
specifications of the wires are specified along with them.The figure below shows a simpler and
understandable version of the same
In this figure the SDP (Shielded Differential Pair, twisted) signal pairs represents the
channels used for double simplex mode when the USB is functioning in SuperSpeed mode. The UTP
(Unshielded Twisted Pair) is used for the functioning in USB 2.0 mode. The shielding for the
SuperSpeed channels are done so that signal losses and EMI losses are reduced. It also reduces EMI
losses.
Few changes have also been made in the USB 3.0 Type-A connectors. Also there have been
changes to the Type-B connectors and the Micro-B USB 3.0 connectors. The image below gives as
an idea about the changes in design.
The Type-B and Micro-B connectors are usually found at the device-end of the USB 3.0
cable. It can also be noted that there is also an appearance wise difference in the design from the
earlier USB 2.0.
The device will have a change in the colour at the port end. For the USB 2.0 systems the
colour of the ceramic portion at the insertion end was white. It has been changed to blue for easy
identification.
A more detailed approach to power management system of USB 3.0 will be dealt with later.
The independent, dual-bus architecture allows for the activation of each of the buses
independently and provides for the attachment of USB devices to the highest speed bus available for
the device.
Bus power Same as USB 2.0 with a 50% increase Support for low/high bus-powered
for unconfigured power and an 80% devices with lower power limits for
increase for configured power. un-configured and suspended devices
Port state Port hardware detects connect events Port hardware detects connect events.
and brings the port into operational state System software uses port commands
ready for SuperSpeed data to transition the port into enable state
communication
Data transfer USB 2.0 type with SuperSpeed Four data transfer types: control,
types constraints. Bulk has streams capability. bulk, interrupt and isochronous
Layers of the SuperSpeed interconnect. The three left-most column ( host, hub, and device)
illustrate the topological relationship between devices connected to the SuperSpeed bus. The right-
most column illustrates the influence of power management mechanisms over the communication
layers.
The electrical aspects of each path are characterized as a transmitter, channel, and
receiver, collectively representing a unidirectional differential link.
Each PHY has its own clock domain with Spread Spectrum Clocking (SSC)
modulation. The USB 3.0 cable does not include a reference clock so the clock domains on each end
of the physical connection are not explicitly connected. Bit-level time synchronization relies on the
local receiver aligning its bit recovery clock to the remote transmitter’s clock by phase-locking to the
signal transitions in the received bit stream.
The receiver needs enough transitions to reliable recover clock and data from the bit stream.
To assure the adequate transitions occur in the bit stream independent of the data content being
transmitted, the transmitter encode data and control characters into symbols using an 8bit/10bit code.
Control symbols are used to achieve byte alignment and are used for framing data and managing the
link.
The physical layer receives 8bit data from the link layer and scrambles the data to
reduce EMI emissions. It then encodes the scrambled 8-bit data into 10-bit symbols for transmission
over the physical connection. The resultant data are sent at a rate that includes spread spectrum to
further lower the EMI emissions. The bit stream is recovered from the differential ink by the
receiver, assembled into 10-bit symbols, decoded and descrambled, producing 8-bit data that are then
sent to the link layer for further processing.
A SuperSpeed link is a logical and physical connection of two ports. The connected ports are
called link partners. A port has a physical part and logical part. The link layer defines the logical
portion of a port and the communication between link partners.
The physical layer provides the logical port an interface through which it is able to:
Manage the state of its PHY (i.e., its end of the physical connection), including power
management and events (connection, removal, and wake).
Transmit and receive bit streams, with additional signals that qualify the byte stream as
control sequences or data. The physical layer includes discrete transmit and receive physical
links, therefore, a port is able to simultaneously transmit and receive control and data
information.
Packet headers are the building block of protocol layer. They are fixed size packets with type
and subtype field encodings for specific purposes. A small record within a packet header is utilized
by the link layer (port-to-port) reliably. The remaining fields are utilized by the end-to-end protocol.
Devices may asynchronously transmit notifications to the host. These notifications are used
to convey a change in the device function or state.
2.3.4 Robustness
There are several attributes of SuperSpeed USB 3.0 that contribute to its robustness:
Signal integrity using differential drivers, receivers and shielding.
CRC (Cyclic Redundancy Check) protection for header and data packets.
Link level header packet retries to ensure their reliable delivery.
End-to-end protocol retries of data packets to ensure their reliable delivery.
Detection of attach and detach and system level configuration of resources.
Data and control pipe constructs for ensuring independence from adverse interactions
between functions.
Robustness also mainly includes error detection using CRC checks and error handling which can
happen in either software or hardware level.
Link power management occurs asynchronously on every link (i.e., locally) in the connected
hierarchy. The link power management policy may be driven by the device, the host or a
combination of both. The link power status may be driven by the downstream port inactivity timers
that are programmable by host software. The link power status is propagated upwards by hubs (e.g.,
when all downstream ports are in low power state, the hub is required to transition its upstream port
to a low power state). The decisions to change link power status are made locally. The host does not
directly track the individual link power states. Since only those links between the host and deice are
involved in a given data exchange, links that are not being utilized for data communications can be
placed in a lower power state.
Packets are routed, allowing links that are not involved in data communications to transition
to and/or remain in a low power state.
Packets that encounter ports in low power states cause those ports to transition out of the low
power state with indications of the transition event.
Multiple host or device driven link states with progressively lower power at increased exit
latencies.
As with USB 2.0 bus, devices can be explicitly suspended via similar port-suspend mechanism. It is
similar to what we do when we give eject command for a USB 2.0 pen drive but yet we keep it
connected. This sets the link to the lowest link power state and sets a limit on the power draw
requirement of the device.
2.3.6 Devices
All SuperSpeed devices share their basic architecture with USB 2.0. They are required to
carry information for self-identification and generic configuration. They are also required to
demonstrate behaviour consistent with the defined SuperSpeed States.
SuperSpeed inherits the categories of information that are supported on the default control
pipe from USB 2.0. The USB 3.0 specification defines two sets of USB devices that can be
connected to a SuperSpeed host. They are:
Peripheral Devices: A USB 3.0 peripheral device must provide support for both
SuperSpeed and at least one other non-SuperSpeed speed. The minimal requirement for non-
SuperSpeed is for a device to be detected on a USB 2.0 host and allow system software to
direct the user to attach the device to a SuperSpeed capable port. A device implementation
may provide appropriate full functionality when operating in non-SuperSpeed mode.
Simultaneous operation of SuperSpeed and non-SuperSpeed modes is not allowed for
peripherals devices.
Hubs: Hubs have always been a key element in the plug-and-play architecture of the USB.
Hosts provide an implementation-specific number of downstream ports to which devices can
be attached. Hubs provide additional downstream ports so they provide users with a simple
connectivity expansion mechanism for the attachment of additional devices to the USB.
SuperSpeed hubs actively participate in the (end-to-end) protocol in several ways, including:
Routes out-bound packets to explicit downstream ports.
Aggregates in-bound packets to the upstream port.
Propagates the timestamp packet to all downstream ports not in a low-power state.
Detects when packets encounter a port that is in a low-power state. The hub
transitions the targeted port of the low-power state and notifies the host and device
(in-band) that the packet encountered a port in a low-power state.
2.3.7 Hosts
A Sub 3.0 host interacts with the USB devices through a host controller. To support the dual-
bus architecture of USB 3.0, a host controller must include both SuperSpeed and USB 2.0 elements,
which can simultaneously manage control, status, and information exchanges between the host and
devices over each bus.
USB system software requires its architectural requirements from USB 2.0, including:
Device enumeration and configuration
Scheduling of periodic and asynchronous data transfers
Device and function power management
Device and bus management information
USB 2.0 handles transaction error detection and recovery and flow control only at the end-to-
end level of each transaction. SuperSpeed splits these functions between the end-to-end and
link levels.
The USB 2.0 broadcasts packets to all enabled downstream ports. Every device is required to
decode the address triple {device address, endpoint, and direction} of each packet to determine if it
needs to respond. SuperSpeed unicasts the packets; downstream packets are sent over a directed path
between the host and the target device while upstream packets are sent over the direct path between
the device and the host. SuperSpeed packets contain routing information that the hubs use to
determine which downstream port the packet needs to traverse to reach the device.
USB 2.0 style polling has been replaced with asynchronous notifications. The SuperSpeed
transaction is initiated by the host making a request followed by a response from the device. If the
device can honour the request, it either accepts or sends the data. If the endpoint is halted the device
responds with a STALL handshake, if the reason is lack of buffer memory it sends a Not Ready
response. When the device can handle the request it sends an Endpoint Ready (ERDY) response to
the host.
The move to unicasting and the limited multicasting of packets together with asynchronous
notifications allows links that are not actively passing packets to be put into reduced power states.
Hence this system of transactions allow for better power management of the device and host.
A Data Packet (DP) traverses all the links in the path directly connecting the host and a
device. DP is made up of two basic parts: a Data Packet Header (DPH) which is similar to TP
and a Data Packet Payload (DPP) which consists of the data block plus a 32-bit CRC used to
ensure the data’s integrity.
An Isochronous Timestamp Packet (ITP) is a multicast packet sent by the device to all
active links.
An OUT transfer on the SuperSpeed bus consists of one or more OUT transaction consisting
of one or more packets and completes when any one of the following conditions occurs:
3.3.7 Efficiency
SuperSpeed efficiency is dependent on a number of factors including 8b/10b symbol
encoding packet structure and framing, link level flow control, and protocol overhead. At a 5Gbps
signalling rate with 8b/10b encoding, the raw throughput is 500MBps. When lnk flow control, packet
framing, and protocol overhead are considered, it is realistic for 400 MBps or more to be delivered to
an application.
The bottom layer is a bus interface that transmits and receives packets.
The middle layer handles the routing data between the bus interface and various endpoints on
the device. As in USB 2.0, the endpoint is the ultimate consumer or provider of data. It may
be considered as a source or sink for data.
The top layer is the functionality provided by the serial bus device, for instance, a mouse or
video camera interface.
A device has several possible states. Some of these states are visible to the USB and the host, while
some other are internal to the device. We deal with the visible states of USB 3.0 currently.
4.1.1 Attached
A device may be attached or detached from the USB. When it is in attached state it basically is
not doing mass data transfers, and is not in undergoing data transfers.
4.1.2 Powered
Devices may obtain power from an external source and/or from the USB through the hub to
which they are attached. Externally powered devices are termed self-powered. Although self-
powered devices may already be powered before they are attached to the USB, they are not
considered to be in the powered state until they are attached to the USB and Vbus applied to the
device. A device may support both self-powered and bus-powered configurations. If a device
operating in SuperSpeed mode is self-powered and its current configuration requires more than
150mA, then if the device switches to being bus-powered, it shall return to the powered state. Also
USB 3.0 can deliver more power to the device than USB 2.0. Hence devices which needed additional
power in USB 2.0 would not require it in USB 3.0.
4.1.3 Default
When operating in SuperSpeed mode, after the device has been powered, it shall not respond
to any bus transition until its link has successfully trained. The device is then addressable at the
default address. A device that is capable of SuperSpeed operation determines whether it will operate
as a part of the connection process.
4.1.4 Address
All devices use the default address when initially powered or after the device has been reset.
Each device is assigned a unique address by the host after reset. A device maintains its assigned
address while suspended. A device responds to requests on its default pipe whether the device is
currently assigned a unique address or is using the default address.
4.1.5 Configured
Before a device’s function may be used, the device shall be configured. From the device’s
perspective, configuration involves correctly processing a SetConfiguration() request with a non-zero
configuration value. Configuring a device or changing an alternate setting causes all of the status and
configuration values associated with all the endpoints in the effected interfaces to be set to their
default values.
4.1.6 Suspended
In order to conserve power, devices automatically enter the Suspended state when they observe
that their upstream link is being driven to the U3 state. It is a deep power saving state where portions
of power may be removed. When suspended, the device maintains any internal status, including its
address and configuration. Attached devices shall be prepared to suspend at any time from the
default, address, or configured states. A device shall enter the suspended state when the hub port it is
attached to is set to go into U3. This is referred to as selective suspend.
Chapter 6 Conclusion
The Universal serial bus 3.0 is supporting a speed of about 5 Gbps, i.e., ten times faster than
the 2.0 version. And it is also faster than the new Firewire product S3200. So hopefully by the help
of this SuperSpeed data transfer rate the USB 3.0 will be replacing many of the connecters in the
future. The prototype of the USB 3.0 was already implemented by ASUSE in their motherboard. The
drivers for the USB 3.0 are made available to the opensource Linux. The Linux kernel will support
USB 3.0 with version 2.6.31, which will be released around August. Because of the backward
compatibility of the USB 3.0 the devises which we are using now and the ports we are using now
(which is USB 2.0) will be working proper with the new USB 3.0 devises and ports. Consumer
products like pen drives with USB 3.0 have started coming into the market at the beginning of 2010.
Yet the other kinds of products are still remaining to catch-up with this change. The various
consumer products like digital cameras, camcorders, etc. have not yet started including the USB 3.0
standard in their systems. Also PC’s available at market off shelf have not been upgraded to USB
3.0. Hence as this trend follows only by the mid of 2011 can it be expected for the USB 3.0 become
as popular as USB 2.0 currently is.
References
1) USB 3.0 Specifications released by USB developers consortium
http://www.usb.org/developers/docs/
2) http://www.usb.org/developers/whitepapers/
3) http://www.intel.com/technology/usb/spec.htm
4) http://en.wikipedia.org/wiki/Universal_Serial_Bus
5) http://www.interfacebus.com